HNHacker News
TopNewBestAskShowJobs

astrobe_

2,240 karma · joined October 1, 2011

submissionscomments
astrobe_··on The last Romans are still around
Still romanian. "The common law—so named because it was common to all the king's courts across England—originated in the practices of the courts of the English kings in the centuries following the Norman Conquest in 1066" [1]

France (and Normandy) was conquered by Rome before it was granted to Rollo, a Viking. A few generations later, his descendant William the Conqueror claimed the English crown. Just like what happened with Gauls and Romans, the conquered people adopted large parts of the language and customs of the conqueror. That's why the English language is ~25% of Roman origin for it's vocabulary. I suppose it is the same for English common law.

[1] https://en.wikipedia.org/wiki/Common_law#History

astrobe_··on LuaJIT 3.0 proposed syntax extensions
You can have them in C/C++ at least [1]

[1] https://en.cppreference.com/cpp/language/operator_alternativ...

astrobe_··on Extreme Heat conference cancelled due to extreme heat warning
The title reads "too little, too late" to me.
astrobe_··on Linux eliminates the strncpy API after six years of work, 360 patches
This only makes a difference in terms of memory size, not in terms of speed, because for decades processors and compilers have been optimized for moving bytes around.

But one would note that in order to gain memory for this particular case of slicing, one introduces 2 extra words (size and pointer) for every other cases. Like perhaps the second most common string operation, concatenation. In those other cases, the benefit is slightly negative.

I've had extensive experience with "counted strings" because I implemented a bunch of Forth interpreters which also uses this scheme. Including the common trick of using counted and zero-terminated strings, which is the worst of both worlds in the end. Forth is the kind of language that quickly show you how bad your choices are.

I eventually dropped all that and adopted ASCIIZ strings because they are generally more efficient (if you pay attention to the strlen() performance pitfalls) and having a dead simple interface with the rest of the world (OS, libraries) is more valuable.

astrobe_··on Ask HN: Will programmers write more efficient code during the memory shortage?
We sill probably see an increase in the use of OS-level memory compression tricks instead - things like zwap on Linux, for instance. Because the trend is usually to cure the symptoms, not the cause, as it is generally easier to set up and good enough. Makers who already have invested on memory-careless tech such as Electron won't rewrite; at best they'll just be replaced by better alternatives.
astrobe_··on A generic dynamic array in C that stores no capacity and needs no struct
I think it was sarcasm. I have about as much experience as them in low-level C programming, and I was wondering why this is on front page. I've also discovered again a few things too, so I won't look down on OP. It's certainly better than vibe coding.
astrobe_··on Report on an Unidentified Space Station
If you like nitpicking, Poe's short story *The unparalleled Adventure of One Hans Pfall" [1] should keep you busy a couple of days ;-)

[1] https://en.wikipedia.org/wiki/The_Unparalleled_Adventure_of_...

astrobe_··on AI outperforms law professors in Stanford Law study
I'd say if it does have methodological deficits, it should be ignored. Measuring a length with a wet spaghetti can only result in nonsense.
astrobe_··on AMD pulls a bait-and-switch on Linux users with Vivado licensing changes
I haven't shipped millions of units but I do have occasional glimpses of the HW side as a firmware programmer. My impression is that decisions regarding costs are not always entirely rational, hence my questioning. Thanks for the answers.
astrobe_··on AMD pulls a bait-and-switch on Linux users with Vivado licensing changes
It depends on the HW:SW cost ratio and the volume. In favourable case the extra bit on the price tag can amount to a rounding error. Moreover, the price tag includes a profit margin, which is usually adjusted to match the competition already.

Besides, "ignorant" HN comments on e.g. FOSS software and funding problems have mentioned that the paperwork you have to do to buy software licences can be a PITA, so free software can be perceived as a plus when the R&D selects the parts.

People have already thought of that, sure. But has it been thought about and executed properly? Like the added value of open-sourcing the SW (made a lot easier when you don't need to copy-protect it). Or do they just go for the extra source of profit the SW licence sales provides, anyway?

astrobe_··on AMD pulls a bait-and-switch on Linux users with Vivado licensing changes
SW dev costs can be accounted for in the HW price tag, especially when you sell a lot of units, and assuming the SW is much better than "good enough". HW is the best licensing key; if you can do that, go for it.
astrobe_··on Air France and Airbus found guilty of manslaughter over 2009 plane crash
You can't send a "moral person" to jail, unlike "physical persons". But sometimes I wonder if taking a fraction of their shares from them would make them more... Moral I guess.
astrobe_··on C++26 Shipped a SIMD Library Nobody Asked For
Besides Spolsky's law of leaky abstractions, "abstractions" can also result in "lowest common denominator" situations, which are the opposite of performance optimization. Talking negatively about abstractions is not what deals damage; you are shooting the messenger here. It's the abstractions themselves that deal damage when misplaced. "Zero-cost abstractions" is the true hyperbole.
astrobe_··on OpenAI’s o1 correctly diagnosed 67% of ER patients vs. 50-55% by triage doctors
Indeed, even I can guess. I see two answers that end with the same word, so the correct answer is probably one of those.
astrobe_··on A treasure trove of fossils rewrites the story of early life
So "modern" is a synonym for "current" here, if one puts aside warnings about its decline due to human activity?
astrobe_··on Sabotaging projects by overthinking, scope creep, and structural diffing
The thing is, "better" is an ambiguous word. I can change a program in some way and make it smaller. I can change it in some other way and make it faster. Both are "better", but in different ways. More often than not, however, you can't have both smaller and faster - or else your are just fixing a performance bug. Often even improving one property makes some other property less good, as you can see in the numerous "pick two" rules.

So "better" means "more specialized" more often that it means "more optimized". I don't say it is a bad thing per se, but it is best to keep in mind that they are two types of improvement, fixes and specializations, because the latter is a commitment.

astrobe_··on Sam Altman's Creepy Eyeball-Scanning Company Gets in Bed with Zoom and Tinder
"I have over 4,000 emails, pictures, addresses, SNS. People just submitted it. I don't know why. They 'trust me'. Dumb fucks"

- M. Zuckerberg, ~2000.

Also: Blade Runner, anyone?

astrobe_··on Laws of Software Engineering
This reminds me of a comment I read here a long time ago; it was about XML and how DTDs were supposed to permit one to be strict. However, in reality, the person said, if the the other end who is sending you broken XML is a big corp who refuses to fix it, then you have no choice but accept it.

Bottom line: it's all a matter of balance of powers. If you're the smaller guy in the equation, you'll be "Postel'ed" anyway.

Yet Postel's law is still in the "the road to hell is paved with good intentions" category, for the reason you explain very well (AKA XKCD #1172 "Workflow"). Wikipedia even lists a couple of major critics about it [1].

[1] https://en.wikipedia.org/wiki/Robustness_principle

astrobe_··on Game devs explain the tricks involved with letting you pause a game
That's sort of the point TFA. You make implementation choices that feel OK and then the time comes to implement the "trivial" pause function...

In other domains, adding the delta time of your main loop to your timers can cause (logical) clock drifts in the long term because of resolution errors.

astrobe_··on Game Devs Explain the Tricks Involved with Letting You Pause a Game
It depends on how your timers are implemented. If they are implemented as a "rendez-vous" absolute date (as in UTC for instance - not in local time unless you want to add "eastern eggs" related to daylight saving time...), this will cause bugs. If you implement your own in-game monotonic clock that you can stop, it should be ok.
astrobe_··on Ancient DNA reveals pervasive directional selection across West Eurasia [pdf]
> The flip side is everything is being degraded by random mutation

"degraded"? Aren't random mutations precisely one of the core mechanism of adaptation?

astrobe_··on France Launches Government Linux Desktop Plan as Windows Exit Begins
There's a negligible amount of "power users" among government employees; I think the majority of them are trained in reading and applying laws, and given the strong scientific/literary divide in the French culture, they usually think of themselves as inapt with computers (and the erratic behavior of MS products didn't help, if you ask me).

But knowing France, what to really worry about is execution, in particular for administrations. Probably people working there who read the TFA already think "oh, big mess incoming" even though they don't know what this "Linux" thing is.

I think standard IT/sysadmin training focuses mainly on Windows server etc., Linux being a second class citizen (because that's what the vast majority of small/mid sized businesses use). So recruiting good Linux sysadmins could be an issue, especially since the wages in government agencies are not exactly attractive.

astrobe_··on Microsoft terminates VeraCrypt account, halting Windows updates
Frankly: that's stupid. In case you didn't figure it out, I work in the field and I can tell you that this is was not the mindset at the places where I worked.
astrobe_··on Microsoft terminates VeraCrypt account, halting Windows updates
Well, that's a different market. What I say is that there are markets in which customers wants to be sure that the firmware is from "us".

And those markets are certainly not IoT gizmos, which I suspect induce some knee-jerk reactions and I understand that cause I'm a consumer too.

But big/serious customers actually look at the wealthiness of the company they buy from, and would certainly consider running their own firmware on someone else's product; they buy off-the-shelf products because it's not their domain of expertise (software development and/or whatever the device does), most of the times.

astrobe_··on Microsoft terminates VeraCrypt account, halting Windows updates
Yes, BIOS is really a PC-thing, AFAIK. Embedded processors have "bootloaders" which often serve a similar purpose of performing the minimal viable hardware initializations in order to load the OS kernel.
astrobe_··on Microsoft terminates VeraCrypt account, halting Windows updates
I don't know about executable signing, but in the embedded world SecureBoot is also used to serve the customer; id est provide guarantees to the customer that the firmware of the device they receive has not been tampered with at some point in the supply chain.
astrobe_··on Neanderthals survived on a knife's edge for 350k years
One thing that confused me in TFA is that it says that "[neanderthals were] maybe a couple of thousand breeding individuals", yet they were enough to inter-breed with sapiens at some point(s) [1]. In my mind, tribes of "far-flung populations of just a few dozen individuals" would be shy and difficult to find.

[1] https://en.wikipedia.org/wiki/Neanderthal_genetics

astrobe_··on French e, è, é, ê, ë – what's the difference?
Ambiguë (ambiguous) and aiguë (acute) [1], but these are "old" spellings.

For instance, this word "ambiguë" was changed in the 1990 spelling reform to "ambigüe" [2] probably to emphasis the fact that the U is not mute (because for most -gue words it is, like for "fatigue" in french and english).

Like with ï and ü, the tréma mark is precisely the mark of an exception.

[1] https://fr.wiktionary.org/wiki/ambigu%C3%AB , https://fr.wiktionary.org/wiki/aigu%C3%AB

[2] https://en.wiktionary.org/wiki/ambig%C3%BCe

astrobe_··on Debunking Zswap and Zram Myths
> It only really makes sense for extremely memory-constrained embedded systems

Even "mildly" memory constrained embedded systems don't use swap because their resources are tailored for their function. And they are typically not fans [1] of compression either because the compression rate is often unpredictable.

[1] Yes, they typically don't need fans because overheating and using a motor for cooling is a double waste of energy.

astrobe_··on France's aircraft carrier located in real time by Le Monde through fitness app
Interesting point. On one hand they probably don't care if everyone knows where the carrier is (actually I'm pretty sure every military power knows where the other powers' military is), on the other hand from a "good practices" perspective, it doesn't look good.

Would it just be virtue signaling, or is there more to it?

← PreviousPage 3 of 34Next →