191 karma · joined Aug 15, 2022 (4y ago) · 67 submissions
comment 2w ago · link · parent
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
comment 1mo ago · link · parent
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 2mo ago · link · parent
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
> 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
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 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
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 10mo ago · link · parent
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 1y ago · link · parent
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