Better HN
topnewbestaskshowjobs
Log inSign up

wpollock

400 karma · joined Jun 18, 2023 (3y ago) · 244 submissions

Submissions

comment 1w ago · link · parent

> Companies and individuals standing up their own hardware and learning how it works is a threat to their [cloud/big tech] business model.

This point never occurred to me but it explains so much. In addition to the points made in this thread, I have seen a dismantling of tech education. For example, I created the two-year degree program for Florida in Linux system administration 20+ years ago. I later learned the program's requirements were gutted by a committee; the took a Windows administration degree document and s/Windows|Microsoft/Linux/g. The new requirements included adding users using Linux active directory and other absurdities. Programming degree knowledge requirements were also dumbed down.

All this because educated tech workers are a threat to someone's bottom line.

comment 1w ago · link · parent

Note that value types will still be a "preview" feature in Java 28.

I'm looking forward to structured concurrency in Java 28. I already thought of a title for my article "Java Concurrency - Past, Present, and Futures".

comment 1w ago · link · parent

> No, you’re right. I misremembered.

We both misremembered. I found where this is documented and the range is -128..127 inclusive: <https://docs.oracle.com/en/java/javase/27/docs/api/java.base...>

comment 1w ago · link · parent

> But it uses flyweight instances for values up to 256, so in Java, whether two Integers with the same numeric value are equal according to the = operator depends on what that value is. ...

I believe Java caches Integer objects for values -128..+128, not 256. But that may be an implementation detail, and not something to count on.

comment 1w ago · link · parent

As I recall, Microsoft tried something similar with Internet Explorer, claiming it was an integral part of their operating system. Back then the courts were not impressed with Microsoft's arguments.

comment 1w ago · link · parent

Came here to say that too.

comment 1w ago · link · parent

This is great news! Well done Rust team!

As this release seems to include breaking changes, shouldn't the major version number have been bumped, as per semver?

Has the Rust book(s) been updated to include the new APIs?

comment 2w ago · link · parent

Pax has an interesting use in POSIX: combined with od, pax is the only way (in POSIX) to get a Unix timestamp from the command line. The exact command line is left as an exercise for the interested reader.

comment 2w ago · link · parent

In C, you can use setvbuf to control buffering on stdout. There are also Linux command line utilities you can use to control buffering, unbuffer and stdbuf.

comment 3w ago · link · parent

> It being Halloween yesterday ...

This comment was made on October 30th. So "yesterday" was the 29th. Where in the world is Halloween on the 29th? I thought it was on October 31st throughout the world.

comment 1mo ago · link · parent

> There are no book bans in the US. ...

Not true here in Florida. The governor banned and burned books that taught slavery was bad, revoked tenure and fired all teachers who were reported teaching that slavery was bad. The new state-approved textbooks teach that slavery taught blacks useful skills and that there was violence on both sides.

comment 1mo ago · link · parent

I sometimes wonder if Kubernetes was designed with selling support and training services as a goal.

comment 1mo ago · link · parent

While I understand why C++ defines bool as an Integer, it might have been better if it wasn't. It's not a problem for me that in some modern languages, boolean cannot be mixed with numbers in an expression.

comment 1mo ago · link · parent

Is "fearless concurrency" a technical term? I thought it was just the catchy name of a chapter of the Rust book.

comment 1mo ago · link · parent

I too love plain text data, but absent a universally accepted standard, meta data is needed to avoid guessing a document's charset, encoding, and line ending convention.

Associating such meta data with text files wasn't simple in the beginning, but that changed in the 1990s. Nearly all filesystems since then allow meta data: POSIX compliant filesystems support extended attributes, mostly used for security meta data. Even ancient HFS (Apple Mac) supports meta data. NTFS supports it with alternative file streams.

While possible, no system I know of attempts to use any such meta data, probably due to a lack of standards. A pity.

comment 1mo ago · link · parent

I think the best shape for a city is a Mobius strip: go anywhere without turns, so no traffic lights needed.

comment 2mo ago · link · parent

Dang says tomhow is the better moderator.

Dang, says tomhow, is the better moderator.

comment 2mo ago · link · parent

WiFi is not an acronym for "wireless fidelity"; the developers likely just thought it sounded cool. The term is probably just a play on the words from the audio term "high fidelity". The phrase "Wireless Fidelity" is meaningless.

The more you know!

comment 2mo ago · link · parent

> The website should display a qr code you can scan with your phone that allows you to then login...

A malicious website can display a QR code too. I think this "feature" could cause some of the security issues that passkesys were intended to solve.

I use Keepass and the free tier of Dropbox, to keep my passwords strong and available across multiple devices. (Dropbox not required, you can store the database on a thumb drive.) Backups are no problem.

Keepass (or KeepassXC) stores other data as well, including the correct URLs for sites. So my workflow is simply to click the URL from within Keepass, copy the username and password, and paste them into the login screen. So easy even an adult can do it! (Humor attempt)

For convenience, Keepass database can be unlocked with either a password or biometrics (your fingerprint).

(Not affiliated with Keepass, just a happy longtime user.)

comment 2mo ago · link · parent

Two suggestions, based on my experience:

1) Add a section called "Potential Changes". This is broader than "missing features", and can include other items too, such as new hardware that might become avaliable, customer requirement changes you might anticipate, possible new technology (e.g. a new database or cloud service that might be useful), multilingual support, etc. Listing some of these often causes reviewers to think of others as well.

Ensuring the design is modular around such changes means implementing any of them will be far easier than if assumptions are hard-coded throughout the codebase.

2) Security and privacy are two aspects of a more general category of "compliance assurance". Those two are worthy of their own categories, but you should have a section covering any other legal, regulatory, or corporate requirements. The plan for auditing these compliances should be listed too.

Often, of course, there are none beyond security and privacy.

comment 2mo ago · link · parent

Your point is fishy. But if the IAU definition changes to "a body orbiting a star", we can rename them to "paparazzi".

comment 2mo ago · link · parent

[Edited for clarity.] My issue with the IAU's definition is that the body must "orbit the Sun". I would prefer they said "star" instead, and excluded other stars (so a binary star means neither star is a planet).

comment 2mo ago · link · parent

You remind me of Episode 2 of the Apothecary Diaries: several Chinese troops were poisoned after eating local food. The food was fine, the wood used for fire and eating utensils was the source. I wonder if something like that ever actually happened?

comment 2mo ago · link · parent

You might enjoy the book "The Weans" by Robert Nathans, <https://www.goodreads.com/en/book/show/2664067-the-weans>

comment 2mo ago · link · parent

> ... so why would a community living on the edge of subsistence, whose primary concerns were finding food, keeping that fire going, protecting children from predators, allow someone to spend so much time away from those tasks?

One possibility that occurs to me is the carving was done by the elderly, the injured, or possibility the young, who would not have such duties. A carving by a shaman is another possibility.

comment 3mo ago · link · parent

> Just learn SQL....

I agree. In my experience, ORMs are more complex and harder to learn to an expert level than SQL. Knowing Java (but not SQL) doesn't help much with learning Java ORMs (Again, to an expert level). Besides not supporting all the SQL features of some DB, ORMs also covers other things such as caching.

Learning ORMs is likely just as difficult as learning SQL. It is likely harder to learn how to optimize performance with ORMs.

SQL as opposed to code has the advantage that it can be kept in a separate file, and thus modified by experts in databases without changing the code. The article claims the author found migrations harder with SQL than with his framework. I would think it would depend a great deal on the database one is migrating.

I'm not convinced that LLMs make things easier, you still need an expert to verify the generated code, and to tune it, as often the database is business critical with serious consequences if wrong, slow, or turns out to be infringement of someone's copyright.

Just learn SQL!

comment 3mo ago · link · parent

Just because the cave is sealed now, does not mean it has been sealed for millions of years. Even for geology, 5.5M years is a long time. I don't understand how they can claim it never had connections to the outside, just because it doesn't have connections now.

comment 3mo ago · link · parent

> He thinks everyone needs manpages. I told him I never look at any local man page ever; I only look online for help...

Everyone's workflow is different. Your's obviously works for you and many others.

But I like local man pages. They get updated at the same time as the software is updated. Sometimes I have an older version of software and the online version is for a newer version, or vice-versa. Local man pages are always available and generally quicker than accessing them online.

If the machines in question are mult user, you should always install local documentation regardless of your personal preferences.

comment 3mo ago · link · parent

I think you have mixed up ordered and unordered lists? But a fun sounding project, good luck!
12345
9