Hacker Newsnew | past | comments | ask | show | jobs | submit | hyperman1's commentslogin

While I think rust is one of the best languages today, this is a corner where it reminds me of C++: Here is a rule with lots of tiny special cases, it has painful consequences in the real world, and if everyone adds some 'best practice' magic to their code, we have 90% of a solution.

It is our numeric system that is backward. 123 should be written 321. But, Arab is written right to left, and we took their convention when we took their numbers.

Most spoken languages are big endian, as were most historical numeral systems like Roman, Greek, Chinese or Maya numerals, so it can be argued that big endian is more natural for humans.

Big endian is better for humans, but the vast majority of humans never look at a raw memory dump. Heck, the vast majority of programmers never look at a raw memory dump.

I rarely look at memory dumps, but when I do I wish computing had settled on big endian. At least most network protocols are big endian...

Best way seems to be mixed-endian as in German or Dutch: 345 = three hundred five and forty… But stuff like 91 = fourscore and eleven as in French isn't bad either.

French numbers seem to be a relic from an older vigesimal system. Some languages use base 20 numbers, like the aforementioned Maya languages or some Eskimo languages.

https://en.wikipedia.org/wiki/Maya_numerals

https://en.wikipedia.org/wiki/Kaktovik_numerals


If the author is listening:. How does the table based approach avoid paying the cost for out of bounds checks? Is there a way to prove to the compiler all indices are inside the table?

After 5 years of KDE, I now got Gnome on my office laptop since 3 days. I'm cursing quite a lot on it. All my hotkeys are failing, everything is in the wrong place, and the whole UI feels wrong and broken.

Now partially it is because Gnome is oversimplified, but a big thing is just that I have to unlearn a lot of habits. So I won't switch to KDE for at least a month, as I need to get out of my comfort zone.


If it takes weeks to get some code into production, I understand how AI can enormously speed up things. Yes, AI can be fantastic but if people claim 100x increase, something else is majorly fubar.

I don't know what OP means. The deployment pipeline takes weeks or the release process?

The latter is probably the case for most enterprises.

Getting releases deployed into the testing environments, much less production, requires coordination, testing, reports and sign-offs.

Of course this can normally be expedited or bypassed for incident management and critical fixes.


I've had a program where some R code stuffs some input in an URL, fires it at a server, then reads the returned CSV. No error handling or validation is attempted.

As it happens, basically anything is a valid CSV.

If the input is wrong, the server responds with an XML error. This got interpreted as a CSV. Every line became a record, but no column headers were found so every expected field is null/NA. All these nulls get nicely sorted and processed, which causes more string errors, etc ... Mayhem ensues when thst stuff ends up in a database.


CSV is not a format, its a vague idea, https://www.youtube.com/watch?v=YrqSp8m7fmk - this is a great video on how to make it fast, and how its pretty bad

Can't agree more. I've dealt with a CSV where multiple CSVs were cat'ted together, but the originals were not in the same dialect and differed even in charset encoding. Wrote a statistics based parser that decided which part of the file had to be decoded which way. Interesting technical challenge, but my god the reasons for its existence were dumb.

Falsehoods programmers believe about CSV: "Yeah, sure it's a mess and there are like, a gazillion different dialects of it, but at least once you know the dialect of a file, you can decode it"...

Claude decode this.

"How to use a billion dollar GPU cluster to parse commas, in 5 easy steps"

It would be free

My god. I love CSVs because the lack of any standardization makes them incredibly flexible, but combining CSVs is just a wild idea. What was that person thinking?

Nobody was thinking anything. A bunch of managers of a group of frenemy corporations was condemned by the governement to share date. Every company sent the data to a trusted third party. This party removed the source company, anonymangled things a bit, taped them all together, and sent the result back to everyone. Managers wanted CSV as it was easy to open in excel, and they were going to let their underlings process them manually. Then it turned out to be a few 10s of millions of records and excel couldn't yet deal with >64k rows, so IT got to deal with it.

Comma Separated Values, in which commas, separations, and values are all optional.

You jest, but ssh/git has a similar problem. The client tries every key it can if the config is naive enough. So, the server knows which cluster of public keys identify the same person. Github is said to do this kind of fingerprinting.

I'm surprised how big pterry still is. I love his books, even today, but he's gone 10 years now, with no real new stuff.

I've always assumed to be non-mainstream, so I'm surprised but happy to see how he seems to move into the list of cultural eternals.


Many many of his books were best-sellers, and remained so for a long time.

Plus I suspect a lot of parents had them around the house, and they've found a second life in their children.

The covers always fascinated my child, for example. I have the complete collection of Discworld novels as paperbacks, and I remember my kid looking at them, pulling them off the shelf to do so, even before he could read.

In short Pratchett was very much mainstream, in the UK for a long, long time.


I've always wondered what is going on with Ubuntu. Right now, after the ICC rug pull, Europe is interested in an OS not controlled by the USA. Canonical should go all-in on an opportunity like this.

But even basic company tooling like Landscape is not doing great (Oh, look, all your machines are not fully patched 5 minutes after we released a patch. Sound the alarms)

Meanwhile, they spend a lot of effort on things that ultimately not gain traction. Upstart or snap might be technically OK, but socially they are dead ends. Half baked Rust coreutils in an LTS? Who asked for that?

I've seen multiple major CVEs and showstopper bugs just sit there, while Debian and Red Hat move weeks faster than them, and other individuals and big companies providing ppas with workarounds.

I like the company, but some major bigwigs over there need to wake up.


Did you ask it for wisdom? I once asked it for 20 quotes that (RIP Terry Pratchett) sound very meaningfull without meaning very much. ChatGPT obliged with 20 pieces of deep-sounding total nonsense.

long after the bucket has forgotten the well, the water still remembers the shape of thirst

The Morpheus' quoted text is also nonsense. It was hardly the judgement that kept individuals together and led to civilization building. This kind of logic may seem plausible only to an individual of nowadays' condition, to whom the covered basic needs faded out of attention. The basic needs (with the need for security at the center of them all) was sufficient reason for group cohesion, time and time again.

In the times about which you speak, Judgement was central to encouraging good behavior and behavior that prioritized the survival of the group over the individual, as well as discouraging the opposite through shame and punishment. Groups and civilizations fall apart without it.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: