HNHacker News
TopNewBestAskShowJobs

loup-vaillant

10,104 karma · joined July 1, 2009

http://www.loup-vaillant.fr

https://monocypher.org

https://elligator.org

submissionscomments
loup-vaillant··on The Crime Messenger
"Nothing someone says before the word 'but' really counts".
loup-vaillant··on The Crime Messenger
For this one however this seems to be the case? The wording of the article isn't crystal clear, but it looks like the cops took control of the servers, and decrypted messages from there. So either the messages weren't truly end-to-end encrypted, or the encryption truly was broken.
loup-vaillant··on The Crime Messenger
This quote sure was a huge red flag to me.

"My dad's a genius" because you're not supposed to rely on genius to make a good crypto system, and also because it makes Eap sounds like he has absolutely zero knowledge on the subject.

"highest level of encryption available" because there's a fairly low floor above which it's all uncrackable anyway (ChaCha20 + BLAKE2B authenticated encryption, and Curve448 + post quantum winners for the public stuff, should go beyond total overkill).

I don't believe it was intentional though. I'm just out of a quick job implementing SSCPv2 (encryption over RS485 to secure communication between card readers and central computer, typically used to secure buildings). Good specs, fairly good separation between cryptography and business logic, and as far as I could tell the crypto isn't broken… but it is quite old school: AES CBC + HMAC SHA256, using MAC then encrypt. https://moxie.org/2011/12/13/the-cryptographic-doom-principl... And while I think my implementation is okay, I did have to pay special attention to specific traps raising from this design, and to be honest wouldn't bet my life on having ironed out all possible timing attacks.

SSCPv2 was almost certainly designed after 2020, but it took books from 2005. Good books for their time, but a bit dated unfortunately. I'm pretty sure no actual cryptographer was involved. If there were, they would almost certainly have used standard authenticated encryption scheme like AES CGM, or ChaPoly (RFC 8439), they would have authenticated the unencrypted header, and provided an even better separation between crypto and business logic.

loup-vaillant··on The two factions of C++
> Changing 1% of code on top of that is probably not really that much compared

Quite a few companies have millions and millions of lines of code. Changing 1% of it would mean changing more than 10K lines of code, perhaps even more than 100K. In much bigger code bases, where changing anything has a risk of breaking something — not just because you might make a mistake, but because your program is full of Undefined Behaviour, and changing anything might manifest latent bugs.

Given that, I'm not surprised people say that Sutter quote with a straight face.

loup-vaillant··on The two factions of C++
For a moment there I thought you were referring to this trademark: https://pcsoft.fr/windev/index.html Which was known at a time for having young women in light clothing in their marketing material.
loup-vaillant··on How to give a senior leader feedback without getting fired
> At-will employment laws protect employees that want to quit

Does your unemployment insurance work after you quit? Or does it only work when you're fired?

loup-vaillant··on A career-ending mistake
I'm afraid "supposed to" is the operating word here.

In practice, the people who make the calls more often does not do so because they inherited a crap load of money, not because their own genius or hard work raised them to the top.

loup-vaillant··on A Career Ending Mistake
> You probably won’t get to choose what to work on, and you may not agree with all the decisions of the powers that be. In fact, it’s practically certain you won’t. After all, you know more about the subject matter than they do.

Wait a minute if the people most suited to make a decision are overridden by people less competent than them (they have to be most of the time, given the different focus of their career), that's kind of a problem, isn't it? Is there any way to avoid such structural failures?

loup-vaillant··on How to give a senior leader feedback without getting fired
> I can’t see a reason why this is all not equal on both sides.

I can.

Think of what employment is for a second: shareholders (or company owners) own the capital, and the employee gets to follow orders. Structurally, the company pay workers less than their actual value: shareholders gotta hold, and they squeeze the margin out of the employee. The margin may be thin, but it's never meant to be zero (except for non-profits, but they're the exception).

Such a relationship is fundamentally asymmetrical, such an exchange fundamentally unequal. If you want any hope of restoring fairness from this system, termination conditions have to be asymmetrical as well.

loup-vaillant··on How to give a senior leader feedback without getting fired
> every employment should be at will!!

I would agree in an ideal world where salaries are tied to a qualification (a notion a tad more nuanced than just diploma), instead of their job. While there is no (nor should be any) constitutional right to work at any given company, I think people should have an inalienable right to live. Which in practice means food, shelter, and health care at a minimum, regardless of their ability (perhaps even willingness) to work anywhere.

The compromise most EU countries have settled on is that once you're employed and past some probation period (in my line of work that can last up to 8 months), then they can't fire you without a damn good reason or a hefty severance (the better the reason the lower the severance, basically). But it cuts both ways: I personally can't leave immediately, I have to tell my employer 3 months in advance. It is in a way a kind of severance.

loup-vaillant··on How to give a senior leader feedback without getting fired
Genuine question: how do we train managers, then? Surgeons have pigs, but even then it's not perfect, and there comes a point where they have to perform surgeries on actual humans (hopefully under supervision).
loup-vaillant··on How to give a senior leader feedback without getting fired
> These are all rhetorical techniques to make your idea their idea.

Ok, cool, I've heard this a gazillion times by now. I don't disagree, it does looks like it's better at getting shit done. Just one question: how do I get credited for anything? I have my career to look out for too.

loup-vaillant··on How to give a senior leader feedback without getting fired
> Why would you get fired for giving feedback? Is this just a US thing?

Possibly: in many places there they have "at will" employment, where they can basically fire you with little to no severance at any time for any reason. There are limits, but compared to most of Europe that's the gist of it.

So yeah, you can be fired just because someone doesn't like you. And giving feedback is a good way to not be liked.

loup-vaillant··on How to give a senior leader feedback without getting fired
The difference is how measurable the consequences are. In aviation when there's a screw up people die right then and there. People dying is a very hard to game metric, and it provides a very strong incentive.

The consequences of bad management in a software project on the other hand are much more nebulous. And nobody died as a direct consequence of some manager being a jerk… oh wait, I'm sure some did (committed suicide or gone postal), but it's easy to just blame the worker instead of the working place.

loup-vaillant··on How to give a senior leader feedback without getting fired
One important option seem to be entirely missing here: Start. A. Union.

It seems the real problem here is the power difference between people, combined with the powerful side not having a thick enough skin… or lacking the actual competence that we ought to expect of their position.

A competent leader will not be offended or feel threatened by a piece of feedback, however negative: either the feedback is crap and they'll calmly say "nope, trust me I know what I'm doing here", or the feedback has enough truth in it for them to say "oops, I'll do better next time", and then proceed to actually do better.

An incompetent leader however likely know they're incompetent, and they're less likely to meaningfully judge feedback. They're more likely to look for social validation, and more importantly secure their position. Any negative feedback threatens that position, and when that feedback comes from below, the solution is obvious: slap the peasant down, perhaps even fire them.

Often there's little you can do around those people. For instance, I once applied for a contracting gig that would involve cryptographic work. I was rejected because I was "more competent than the project lead". My guess is the hiring manager there knew that if they brought in someone more competent than the project lead, things would go bad. Quite the indictment of the project lead if you ask me.

My best project lead on the other hand had no problem being a worse programmer than the people under him (the tech lead for sure, and I probably). He worked on the parts he could, trusted us to do our thing, and I trusted him with telling me the priorities. Best gig of my entire career.

loup-vaillant··on You Don't Know Jack about Bandwidth
ISP issued home routers have a remote update procedure, enabled by default. At least that's how it works out in France.

Starting from there (to be checked), shortage of equipment is not a thing: most routers are programmable computers, all we need to do is update the software to something that doesn't suck. And best of all, the customer doesn't even have to know. They just wake up one morning, and as if by magic, their Zoom/Meets/Hangouts calls suddenly work better.

Now if most home routers are not updated by the ISP… my condolences to your country I guess.

Edit: OK, real question: how does home routing actually work in the US? Who is responsible for what equipment, and for the ISP issued equipment, are there any relevant remote update capabilities, and if so are ISPs actually competent at doing updates?

loup-vaillant··on Trump wins presidency for second time
The third person plural is so convenient. You did well, not directly accusing me of uncritically accepting an idea. You did well, not directly saying I didn't think it through enough to explain it. Your caution paid off, you just avoided two mistakes in one sentence.

You're a bit light on justifying the burden of proof, though.

loup-vaillant··on Trump wins presidency for second time
Just look up "intersex". Or don't. It's your time. Mine is up.
loup-vaillant··on Trump wins presidency for second time
Considering that the biggest threat to independence is probably the USA themselves… I'm guessing not very far. You'll probably be okay if you cater to businesses and foreign investments, but if you stray too far from the USA's preferred economic model you may suddenly find yourself subject to astroturfed protests, coup attempts, or even straight up military intervention.

Chile's attempt at lukewarm socialism didn't fail from internal causes. Cuba didn't brought embargo on themselves. To name but two. Considering the USA has been at war for almost the entirety of it's history, there must be a couple more.

"Club" was a tame euphemism I only took from the comment I was replying to. I think "Mafia" would be more appropriate.

loup-vaillant··on Trump wins presidency for second time
Oh come on, don't pretend you don't know what I mean.
loup-vaillant··on Trump wins presidency for second time
> Stop doing that and almost everyone will happily leave you alone to dress and behave however you please.

I'm pretty sure they won't. And for that reason alone… https://www.youtube.com/@TacticoolGirlfriend

loup-vaillant··on Trump wins presidency for second time
Do I upvote the sarcasm or flag the transphobia?
loup-vaillant··on Trump wins presidency for second time
Because people like you are often at the forefront of wider social movements. Stuff like healthcare, safety nets, worker empowerment… Your influence goes way beyond gender care or women's rights. Beyond their bigoted sensibilities they have an incentive to shut down many of the wider political views you may defend.
loup-vaillant··on Trump wins presidency for second time
> Democrats believe a man who thinks he is a woman is scientifically a woman

It's a bit more complicated than that. Gender is a social construct, mostly determined by genes & genitalia. It's not quite enough to believe you're a woman, other people have to believe it too. Another issue at play is that there are far more "intersex" people (who have some characteristics of the opposite sex, sometimes to the point doctors don't quite know whether to list them as male or female), and from what I've heard trans people often (possibly generally) are "intersex" in a way that wasn't visible at birth. The idea of a female's brain in a male's body isn't that far fetched.

> They believe in censorship.

I believe this one is more popular in the far right (when in power) than in the far left (when in power)

> They believe in supporting and growing the military industrial complex.

Militarism sounds like it's more popular on the right. Though it can be more complicated: military backed imperialism can indeed support stuff like welfare at home.

---

Now the elephant in the room: last time I checked, democrats were firmly capitalists: they believe the means of production should be owned privately. Even if you exclude actual communism from acceptable discourse, they're fairly poor at public services and keeping inequality in check.

loup-vaillant··on Trump wins presidency for second time
By that reasoning Nazi Germany and Fascist Italy weren't far right, because a very significant portion of their population actually voted for that. Or France now, our "Rassemblement National" used to be far right, but now enough people (about a third) vote for them that they no longer are.

Sorry if that feels like a strawman, but I find the idea of using popularity to determining what counts as "far" stupid and dangerous.

loup-vaillant··on Trump wins presidency for second time
> In practice this benefits USA as a major weapon producer, at least it has until now.

This feels like a club you pay 2% for protection…

loup-vaillant··on OOP is not that bad
You're correct. Which is why in practice I often consider using a forward declaration and pointer to implementation instead.

But you know what, even that can be gamed. I have gamed it once: I copied & pasted the definition of the struct, and accessed its member from a place that was supposed to only have access to an opaque pointer. It worked. (To be fair, this isn't the kind of stuff you do by mistake, unlike merely accessing a struct member.)

loup-vaillant··on OOP is not that bad
By "legacy", I mean "old stuff we thought were good, but is not useful for new projects". Now nothing prevents people from using a useless technique for new projects.

Anyway, I don’t care about what we should mean by this and that. What I do care about is whether inheritance is useful or not. And so far, I have seen no evidence that it is anything more than highly situational — meaning, doesn’t have a better alternative for almost everything.

The study I recall didn’t measure productivity, it counted bugs.

Anyway, I spent enough time on the subject to close the case. Until I stumble upon cogent evidence to the contrary, inheritance is not worth my time. I won’t use it, I will steer my colleagues away from it, and I will quit gigs that use it too heavily.

loup-vaillant··on OOP is not that bad
The most reputable resource I know of is Making Software, edited by Andy Oram and Greg Wilson.
loup-vaillant··on OOP is not that bad
> Projects describing the real world.

Yeah, one of the 3 big lies of computer programming: thinking that we should program around a model of the world. We should program around a model of the data that we need to transform to solve whatever problem we need to solve. Even in simulation software like games.

A car have a motor which have pistons. But why would I model that? To be honest I’m not sure OOP is appropriate even for CAD software here. Now maybe we could give the user the ability to make a mesh and call that "piston", an let them copy & paste that mesh to build a super-mesh they would call "motor", but this kind of composition is not quite OOP, and the appropriate way to program this stuff is probably not OOP either.

← PreviousPage 4 of 34Next →