HNHacker News
TopNewBestAskShowJobs

pierrebai

1,310 karma · joined October 13, 2011

submissionscomments
pierrebai··on How far could a spaceship go if we never ran out of thrust? (2020)
I would not classify it as great, but somewhat below par. I made a list of things I did not like about the book, but it would spoil many things. Not spoiling bits:

    - All characters are two-dimensional. The further from the main protagonist, the more 2D.
    - Dialogues go from wooden to cringe-worthy, with few exceptions.
    - Protagonist swings from super over- cautious to careless and back.
    - Alien with deus-ex-machina syndrome, always having the perfect tech, material or skill to fill in the lacks of the protagonist.
    - Tired trope of amnesia to make the protagonist remember stuff progrssively for the reader.
    - Extreme over-usage of flash-back, linked to previous point, but oh boy! Half the book is flashback. Waaay over-used story-telling tech.
The science, outside of the magic fuel and magic alien material is mostly correct. That's the main strong point of the book.
pierrebai··on Monkey Island PC-speaker music player
I wonder if using RLE encoding would not have been but vastly simpler and more compact that the huffman encoding used. Just frequency + duration.
pierrebai··on A monorepo misconception – atomic cross-project commits
In multi-repo, on all projects I've worked on, there is no such problem.

First, inter-repo dependencies are managed by pulling specific a commit or tag. So changing a library has zero effect on the program depending on that library.

Second, if you are introducing breaking change and you know not all client will want the change, you can have multiple branches. No, you do not want this as the default choice and not on the long term, but for the short-term transition, that is possible.

From that point on, clients of the library can upgrade to new versions with the changes on their own schedule. The client is never forced to upgrade until there a feature is absolutely needs. The library is not forced to support two versions of code.

That last point is not trivial. If every braking change need to go through this dual-support period in the same single code base it can become a support and testing nightmare. You need to duplicate tests and as the number of such dual-version of API increase, the compatibility matrix grows exponentially.

This is entirely avoided in the multi-repos scenario.

pierrebai··on I had to give a wrong answer to get the job (2017)
This is dangerous, but if well documented and understood it might be okay. Some data might contain unique things (for argument's sake, say a std::unique_ptr). It can get tricky since you need to know the implementation details of everything that gets inserted and it's ownership behavior, since elements can be kept at two places. (A copy in array n and one in 2n.)

Then there is the fact that you basically make every insertion 3x as costly. You better have a good reason to need this given the additional complexity and caveats.

As for the original interview question, there are systems where an occasional longer pause is not OK. Personally, I think that sticking to your gun must have come across as being stubborn and unyielding and maybe not ready to admit errors. As an interviewer, and for having worked with people who always think they're right and inflexible, it would have been a red flag.

pierrebai··on Windows 11 still doesn't understand our complex lives – and it hurts
Or multiple profiles.

For email, I used multiple instances of Mozilla Thunderbird with multiple profiles. The existence of the multi-profile capability is not well advertised and not user friendly, as I need to create desktop shortcut with command-line arguments. But it works: i now have two different office 365 ID and they don't step of each other's toes.

(Yes, they do need to be completely separate processes. Tab would not work. OTOH, I find it soothingly reassuring hat they are separate processes. I feel the risk of the program have a subtle bug and starting to mix the two ID much, much lower in this way. It would need to be quite a severe bug.)

I did set each Thunderbird profile to use a different theme so that I can try to avoid confusing them.

pierrebai··on Updating the Go Memory Model
I came here to quote and comments on this paragraph. The poke at C/C++ undefined behaviour, claiming Go has no such thing. Except this sentence is exactly undefined behaviour: after the data race, due to possible corruption, anything could happen.

There is also equivalently smugness about the language in general. It is one thing to say there are no undefined behaviour related to the memory model, but given a compiler optimizer, you need to do hard analysis that there cannot be once optimized, with all operations re-ordering that can happen.

The simplicity of the Go memory model, which is vague on purpose, is taken as making it safe. Is it? It mostly mean it is vague, which provide a convenient cover to hide under.

Edit: toward the end, the author talks about adding documentation about compiler optimizations that would be explicitly forbidden. So some of my earlier comments would be addressed.

pierrebai··on It Is Obscene: A True Reflection in Three Parts
I'm a man and my neighbor is a man. I don't think we're the same. But thinking a born-woman and a trans-woman are different is wrong and oppressive? Transphobic is an easy word to flaunt to target people who have different opinions. I find it unbelieveable that someone could think impossible to make a difference while not having any problem with trans people. To label people transphobic for having this single opinion is itself bigotry.
pierrebai··on “Please don't add any of my stuff to this project”
IMO, it's worse than that: frenk does seem to understand the history of FOSS distribution. Most Linux distributions included packaged sources for the software. This is no different. They did not point back to the original repo, not to the source control repo. They had rmps or the equivalent.

The existence of pypi does not mean everyone is forced to link back to it and use it has their own source repo. Frenk insistance that everyone uses pypi and only pypi is just a tantrum not based on reality.

People could use his package from pypi and still have an outdated version. People could use a pinned version from pypi and they would always get an outdated version. People could be using an installed software from long ago and thus have an outdated version.

Thus his concerns are not magically solved by not packaging sources.

Plus, he has an attitude problem, is passive-aggressive, is closed minded and won't discuss. May he have fun with his newly weirdly licensed package,

pierrebai··on Radar data confirms: USS Omaha was surrounded by swarm of UFOs
100g is an acceleration of 1000m/s/s, so after 1s the thing would be 1km away. Yet this was infer by eye. These fantastic values are made up on the spot and not instrument-based measurements.

Also, these stories always assume radar have no failure mode, no false indications, no possibilities of fooling. IOW, enthusiasts ignores and never consider failures but adopt never seen, never encounters aliens with impossible tech that always happens in isolated area with no other capabilities to monitor.

And all that does not even start to account for the impossibly large inter-stellar distances.

I'll take weird failure over hugely fantastical theories.

pierrebai··on Building an efficient and portable programming language with Zig
There are many erroneous claims made regarding Zig allocators. Contrary to what is claimed, the fact that you pass an explicit allocator does not affect:

    - That an out-of-memory condition is elegantly handled or not.
    - That an out-of-memory condition is properly reported to the caller.
    - That is simplifies WebAssembly support; whatver you put in the allocator your could put into malloc.
    - That it easily allows arena allocators; you can only use an arena allocator if you intimately know every single uses of the passed in allocator, allo the implementation details of the libraries you call and of *all* its dependencies. If a dependency, for example, implements a cache, the arena allocator will corrupt it when deallocated.
pierrebai··on Homoiconicity isn’t the point (2012)
Portraying widely held opinions as propaganda is quite counter-productive, bordering on denial. Given that you provide no reasoning one way or another, I cannot say more about your personal views, but...

Denying Python's simplicity is surprising. Clarity of syntax, avoiding superfluous tokens, and ordering of code in speak-order are a few of the reason for it's simplicity. Interestingly, Python fails at syntax clarity exactly where it adopts functional-style construct: list-comprehension for example.

Like it or not, a language, like Lisp, which insist on polish notation is just unnatural, at least for most western speakers. (I don't know any spoken language that would map to placing verbs first in a sentence.)

pierrebai··on Tiny Wins
I'm always impressed by people who are top dogs at self-promotion. These are small projects, small changes, but presented as best as they could, with as much fanfare and congratulations as can be achieved.

I mean, an arrow for data flow direction? It sure is better than a non-descript triple dots, but was it that non-obvious? The mileage he gets from this small change in this blog post is remarkable.

I constantly fail at this game.

pierrebai··on The Escalation of Commitment to a Course of Action (1981) [pdf]
I find amusing that your reaction is exactly as described in their experiment: people have a favorable bias toward someone who stuck to his course of action even after multiple failures than someone trying multiple different approaches.

It's double amusing since the paper starts by outlining multiple cases where an administration of company stuck to decision to ultimate failure, yet the one example that you chose to single out is the one about president Carter being seen as waffling.

pierrebai··on Inheritance was invented as a performance hack
"I've designed this project in Go following Go naturally imposed design patterns and found that I did not need inheritance.", said the Go programmer.

"Well, mmm, duh?", thought programmers of other languages.

"I've designed this project in Rust, following Rust-imposed design principles, and found monomorphism sufficient", said the Rust programmer.

"Well, mmm, duh?", thought programmers of other languages.

"I've designed this project in Python, using Python-style design and I've found that I did not need strictly typed functions", said the Python programmer.

"Well, mmm, duh?", thought programmers of other languages.

"I've designed this project in language X, which impose Y and as such I've found that you actually don't need Z", said the X programmer.

"Well, we got the picture already", said the HN reader.

pierrebai··on Perfectly Ordinary Stones, Carried for 1,300 Years (2014)
Multiple secret societies, some protecting an obscure (but in reality, quite harmless and worthless) item, some protecting the first, some trying to infiltrate, some completely made up?

Umberto Eco and Pynchon would be proud.

pierrebai··on Perfectly Ordinary Stones, Carried for 1,300 Years (2014)
Well, the smooth cover of the pyramids have been stolen and the pyramids have been used as source material for building in the past. So, not stolen in its entirety, but damaged.

What I would think is that some, if not all, of the ordinary stones will indeed by lost, but then surreptitiously replaced by others (after all, they have no identifiable properties).

1300 years from now, there will be stones, but the not the original ones. I think it fits the purpose perfectly, just like purported official Christian relics.

pierrebai··on KDE Connect: Enabling communication between all your devices
I see nothing on the site, nor in the docs, not even in the how-it-works about security. Is this not a huge security risk in the making? Controlling your phones and your desktops seems risky.
pierrebai··on The more complex crypto seems, the higher the pyramid schemes can go
I disagree, but to each its own. I thought it was full of condescending takes.

For example:

    - "getting" Memento does not make it boring.
    - Finding the art world being often vacuous does not mean you are an acculturated ignoramus.
    - Electricity does not make blockchain valuable, it's both the social and proof-of-work, the electricity cost is incidental and unrelated. (Bitcoins and NFT works even if you are ignorant of its inner workings.)
pierrebai··on Curl those funny IPv4 addresses
I would guess because the point of the number parsing is to end-up producing that final 32-bits value. If you already have the 32-bits value, there is no point in parsing it, so there is no point in supporting it in the address text parser.

Like the article mention, supporting obscure features just makes it more likely that they can be exploited for nefarious purposes. It's not worth saving typing 4-5 characters from times to times.

Before reading the article, I would have assumed for example that 127.1 would be 127.1.0.0, not 127.0.0.1.

pierrebai··on Why bumblebees love cats and other beautiful relationships
The example, taken from the Origin of Species, of the OP is interesting, but then it goes on to list multiple inter-dependencies.

It does not address one question: are these inter-dependencies required, strict and essential to the survival of the affected species.

IOW, are not the species flexible enough and adaptable enough that any change would be fixed by a substitute or a change in behaviour?

There are many claims, both around ecology and climate changes, that hinge on the idea that the current state of the world as a whole is desirable, good and fragile.

That is the main thing that always irks me. Life survived the extinction of the dinosaurs, multiple glaciations, etc. But it is always portrayed as a fragile system. That always seemed to me a bit hypocritical.

pierrebai··on The history of UTF-8 as told by Rob Pike (2003)
One thing to realize is that UTF-8 is here and required only because we're all stuck with limitations based on the low-power, low-limitations of early systems.

There is not a single reason, other than historical, backward compatibility and the overall ecosystem putting incommensurate pressure on all future systems, why the basic memory unit is 8 bits.

We're stuck on 8 bits because all API, OS and specifications assume the basic units is 8 bits. If computer memory had evolved faster, or computer usage spread slower, the basic unit could have been 32 bits, or even 64 bits.

Think how much easier things would be. UTF could be encoded as a single unit, without ambiguous order.

What we've lost due to byte and UTF-8 is for example the text editor as the universal editor. Due to the need of UTF-8 decoding, we're no longer able to open a any (possibly binary) file as text and save it reliably after editing one character.

There are other consequences, for example at the file-system level for file names, corruption, how to handle invalid UTF-8 sequences, etc.

(And before you talk about the byte order problem, that is the point: there is no order problem for the basic unit you choose. No one (outside of some low-level 1-bit serial interfaces) cars about bit order or nibble order of bytes. Because the bit order is hidden within all interface accepting byte as the unit.)

pierrebai··on The Ambiguous Utopia of Iain M. Banks (2009)
The main problem with Consider Phlebas is that a lot of the book feels like a collection of space adventures. These early part of the book feel less sophisticated than latter novels. Yet by the end it becomes pretty great. It is also one of my favorite Culture novel because the Minds ambiguities are less present and the elitism constantly in displays in other novels are at least justified here by the unique morphing capabilities of the protagonist.
pierrebai··on The Ambiguous Utopia of Iain M. Banks (2009)
I didn't like Use of Weapons. I found the plot cliché, the usual super-elitism of SC pushed to the unbearable point (the fact that the main protagonist would be such a unique and uber-warrior / strategist / whatever) and the source of his emotional turmoil over the top.
pierrebai··on The Ambiguous Utopia of Iain M. Banks (2009)
People are free to disagree and I certainly do.

You can claim that the failing of the Culture are scenaristic conceits needed to have a plot for a book, that's an easy cop-out. The Culture is what the books shows. That its flaws were only made up to have a story doesn't change that.

In my opinion, when people claim the Culture is a prefect utopia, they base their view on a non-existent Culture, that of everything good seen in the book with the unsavory part s excised as book-writing-fodder unnatural warts. Bu that's different thing, a made-up, cleaned-up version of the Culture.

To me, the Minds clearly are toying with humans for a subtle version of cruelty.

I'll just take the "Player of Games" as the most explicit example (although "Surface Details" is pretty telling too): the Culture has been monitoring the Azad for decades, fully knowing how corrupt and evil they are, horribly torturing people 24/7. Yet they take decades before even setting up a contact. Ironically (if we can call it that) the novel ends with the events the Minds claim as their reason for not intervening directly.

I find the Minds behaviour described through Special Circumstances to be consistently amoral.

pierrebai··on Chomsky – The Machine, the Ghost and the Limits of Understanding (2012) [video]
I think Feynman take on this is more interesting and less muddled. For example, in the video series "The Pleasure of finding things out", he clearly lays out that something can only ever be explained by taking something else for granted, and at some point you need to stop the regression and just admit that you have to take something as true on faith (or simply admit that you cannot know.) [1]

You also get to understand that all there is is always action at a distance. The mechanical philosophy as based on an error: that direct action (a physical object pushing another for example) exists. In reality, again as Feynman brilliantly explains, it just electromagnetism between atoms, so action at a distance.

I'm not even going to go into what "intelligible" theories is even supposed to mean. Again, it's either intellectual fappery or infinite philosophical regression. The notion that someone could know something as an absolute truth as never existed. Every explanation at every epoch was based on assumptions, It's just that at times, people were not aware of their own limits.

Also, who pretends that nature is reducible to physics? We can't even calculate precisely the interaction of three atomic particles. These kind of claim are always an annoying strawman.

[1] https://vimeo.com/340695809

pierrebai··on Translating Newton’s Principia
You did? Maybe you can explain it to me, because I rather thought it was a pure semantic game. Saying that "material" is no longer considered relevant was just a typical intellectual game of stripping words from their usual definitions.

(I also despise his continual use of the rhetoric device during his lecture of claiming that a particular philosophical debate has been settled and the "evident" correct answer is his own position on the subject. He keeps using that turn of phrase where his opinion is presented as the only tenable one by an intelligent thinker. He always does that. I think it's a weak trick so silence critics.)

pierrebai··on Why asynchronous Rust doesn't work
He says the problem is the proliferation of async libraries, which forces their use and pollute everything they touch in association with the closure problem. It's the combination of both.
pierrebai··on TSMC at the head of history’s tide: two high walls and one sharp knife
I think it refers to this:

    Seek immediate Security Council action to provide assistance to Belarus, Kazakhstan and Ukraine if they "should become a victim of an act of aggression or an object of a threat of aggression in which nuclear weapons are used".
Obviously, Russia did not use nuclear weapon... but maybe the fact that Russia has nuclear weapon and invaded Crimea means Ukraine is under threat of nuclear weapons...
pierrebai··on TSMC at the head of history’s tide: two high walls and one sharp knife
This is the kind of Chomskyism that leads to nowhere.

You can take the criticism to the letter, so that "no other society" is true because the total of the exact characterization matches only one society, and is thus a tautology. Or you read it more generally, and then the claim that no other society is as indoctrinated is absurd.

pierrebai··on Why Learn Haskell? (2018)
Curious: why last takes the quantity second, unlike nth? That inconsistency would drive me mad.
← PreviousPage 6 of 15Next →