Better HN
topnewbestaskshowjobs
Log inSign up

hiimkeks

191 karma · joined Aug 15, 2022 (4y ago) · 67 submissions

Submissions

comment 2w ago · link · parent

To me, foo?.bar?.baz ?? 0 looks really hard to reason about, if I imagine it sits in the context of some wider processing code.

Explicit options nudge you towards a data model that handles the None/null case early, so you don't have to write code that does the coalescing. If you parse-dont-validate early, you more often than not end up with a data model that is simpler and easier to process.

But then, this also depends on the sort of code you write. In the code I write, matching/"if-let"ing on Options to understand their value and then translating that into some enum that encodes the value on the abstraction level of the domain or algorithm has often been really really helpful.

comment 1mo ago · link · parent

What would also lessen the confusion would be people putting in the effort to read a little further than the headline before coming up with a hot take.

comment 1mo ago · link · parent

Not quite but close: https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu...

comment 1mo ago · link · parent

Ex falso quodlibet.

(note that your comment uses present tense)

comment 1mo ago · link · parent

I agree, but.

The thing with MLS is that it basically requires a central server for ordering the commits. For Matrix' interpretation of federation, this doesn't really work because a group isn't really owned by a server, it is a DAG of events, which, as is the nature of DAGs, does not have the total order needed for MLS commit ordering.

So either you introduce a central party that does ordering, or you do BFT-style consensus, or you try to get some idea of branching an merging of group states into MLS, which isn't really possible with what RFC 9420 offers.

My impression also is that the Matrix community really loves their DAGs and the group state management that they built, and from an MLS perspective it makes more sense to store that in the group context (either as extensions or as components as defined in draft-ietf-mls-extensions-10).

There is draft-xue-mls-decentralized which proposes two ways to MLS offer some foundations, one of which (IMO) only solves half the problem and the other (IMO) doesn't make sense.

The fediverse folks are also trying to solve this and it just is hard. https://github.com/swicg/activitypub-e2ee/issues/56

Edit: (I work on OpenMLS)

comment 1mo ago · link · parent

My guess is if you pronouce this "nool" it sounds similar to "bool", and it's a slice of the name "Bernoulli" because the models generate Bernoulli distributions

comment 2mo ago · link · parent

It's Dragostea Din Tei all over again

comment 2mo ago · link · parent

[always_has_been.jpg]

Before 2004 Germany had a %vol limit for selling alcohol to 16 year olds. In 2004 they changed the law such that it is not based on percentage, but whether it contains distilled alcohol to prevent under 18 year olds from drinking sweet alcopops, which apparently was a big thing back then.

comment 2mo ago · link · parent

Just today I had Sonnet 5 generate this (asking about always-on display in the iPhone e-versions):

> This mirrors how Apple has always segmented Pro vs. non-Pro iPhones: base models got LTPS panels while Pro models got LTPO, and only with the mainline iPhone 17/17 Plus did that gap close the standard versions previously lacked the smoother 120Hz ProMotion technology and the always-on display feature, unlike the Pro models — the 17e is the one model line still using the older, cheaper panel.

(emphasis mine)

I mean, I can guess what it is trying to say, but who RL'd this nonsense?

comment 5mo ago · link · parent

Can you remind me what RFC number the Protocol of the Elders of Zion was again?

comment 5mo ago · link · parent

Git is over 20 years old at this point. If somebody is in their 60s now, they were in their 40s when it came out. This is not about age. They must have slept on it for a long time.

Nobody expects an engineer to be a git expert, but if a senior software engineer has heard of git only yesterday or don't have a vague concept of how DVCSs like hg or git work (DAG of commits), then something has gone very wrong.

Maybe there are use cases where SVN is superior (I can't come up with any but they may exist), and maybe engineers in that industry really are so specialized that they never get around to working on anything else!

But maybe it's because nobody else is willing to hire them.

comment 9mo ago · link · parent

I love this! The docs are really good and I am looking forward to playing with this.

I think I disagree a little bit about the value of type and lifetime annotations, I think if I used this, I would put a lot of [sig ..] into my code.

I think having a similar syntax for lifetimes would be valuable so I as a developer can make sure that some value is not 'static (or has the lifetime of some other object that lives as long as my program). Basically I want to ensure that my values are actually dropped at some point.

One thing the docs could be more explicit about is where this runs. I saw that it has a Wasm backend, but can I also compile this to native code? Do the effects require some runtime (and I don't mean something like the JRE, more like what Go has)? Maybe I missed this, though.

Anyway, I hope I get to play with this soon!

comment 9mo ago · link · parent

What I think you are saying is that computing the hash needs to process the entire string, and the length of that string roughly corresponds to log n, therefore it's O(log n). Not sure I am entirely convinced by that reasoning, but let's roll with it for now.

Because if you apply it to binary search, you need to compare the strings at every step, and by that logic, each of these operations is O(log n), which means your binary search is now O(log^2 n).

I guess the crux is that we are still comparing apples to oranges (or multiplication operations to comparison operations), and at the end what probably makes hashing faster is that we are not branching.

Still I don't think it makes sense to think of both hash tables and binary search as O(log n).

comment 9mo ago · link · parent

Parent is using normal words to say they have no idea what communism is

comment 10mo ago · link · parent

Status is yellow now, actions hang for me. Same like more or less any Thursday.

comment 10mo ago · link · parent

We definitely would need centuries for this, because Moore's law has been dead for a while, while the number of possible programs grows exponentially in it's length.

But I hope we have more efficient ways to do this in a century.

comment 10mo ago · link · parent

No, the 340 were per month, the 40 hours are per week. I usually do back-of-the-envelope calculations with 4.3 weeks per month, which would leave them below 2 EUR/h.

Edit: But you are of course right about inflation! According to this website[1] it would bump them to 3.2 EUR/h.

[1]: https://www.inflationtool.com/euro-netherlands/2005-to-prese...

comment 10mo ago · link · parent

Huh, thanks!

comment 10mo ago · link · parent

I am confused. I get E2EE chat with a TEE, but the TEEs I know of (admittedly not an expert) are not powerful enough to do the actual inference, at least not any useful one. The blog posts published so far just glance over that.

comment 1y ago · link · parent

not for me, in .de using the DNS my ISP assigned me.

comment 1y ago · link · parent

> The entire content of the function is:

> retn 4

> That's it.

I've seen this before; it's a random() function.

comment 1y ago · link · parent

https://archive.is/tDC0W

https://archive.is/IQyBG

and this was before the US elected an overt fascist

comment 1y ago · link · parent

I have the UAP-AC-LR and if you only need basic AP functionality you can even configure it from the phone (no cloud). 99% sure no cloud stuff is needed when self-hosting the controller. May have changed since then, though.

comment 1y ago · link · parent

D) They don't enable E2EE for groups at all

E) (I believe) don't enable E2EE with more than one device

comment 1y ago · link · parent

Well, the article is from 2023, but what you remember is most likely MTProto version 1, which was even more ridiculously broken, iirc

comment 1y ago · link · parent

Cory also has a giant writeup about the whole situation, including more links.

https://pluralistic.net/2025/09/27/econopocalypse/

comment 1y ago · link · parent

> This isn't a hypothetical, it is how the law is actually used.

You make it sound like it happens all the time and everyone is used to it. I know of once case (Pimmel-Andy), and that led to a shitstorm, including part of the police operation being declared unlawful after the fact.

https://www.lto.de/recht/nachrichten/n/landgericht-hamburg-a...

comment 1y ago · link · parent

Well the most famous one is conveniently not on US grounds, but operated by the US (Guantanamo). And then there is https://phr.org/our-work/resources/endless-nightmare-solitar....

comment 1y ago · link · parent

That's a strawman, because that isn't about the value of my life or my personhood.

comment 1y ago · link · parent

If who you vote for will put me into a torture camp (or otherwise devalues my life or personhood), then I can't work with you, so no it is not irrelevant.

(neither the "me" nor the "you" here refer to you or me personally ofc.)

123