6,264 karma · joined Jun 30, 2017 (9y ago) · 2,652 submissions
he/him
github.com/zbentley
blog.zacbentley.com
comment 20h ago · link · parent
comment 20h ago · link · parent
Erlang, as the adjacent comment points, out, did solve that! But at such a significant runtime (performance/memory) and syntactic cost that it's very rarely used, even nowadays after the Elixir renaissance.
comment 20h ago · link · parent
Box<Rc<Container<Type>> soup gets tedious. Writing higher order functions that take closures which manipulate data bounded by a related lifetime gets really tedious. Dealing with interleaved lifetimes can be a pain. Pin and async, if you're in that realm, gets tedious to write out. And the explicit notation of Send and Sync for types that, in a language like C++, would either encode their copy/ref-stability in the documentation of the type or leave it up to the programmer to handle, also gets tedious. As an inheritance lover (we exist!), having to rewrite the same/similar implementations or signatures across multiple traits and sprinkle my code with one-off enums to model a type hierarchy can also be a drag, doubly so if I'm using something that's not dyn-compatible.
Most of those things exist for good reasons, and I appreciate the capabilities provided by having them. But even as someone who likes the language, it remains tiresome to have to type them out.
comment 21h ago · link · parent
comment 23h ago · link · parent
At which point the bubble, if it has not already popped, will pop (more destructively than if it had popped today, as these things get worse with time). Retirement accounts, real estate, and commodity prices will suffer.
And then the Democrats will have been positioned to bear the blame for an economic crisis attributed to any hearings, investigations, or arrests they order. Thus damaging their chances of winning the election after that.
Is that narrative bullshit? Sure. But “you fired some CEOs and this crashed the economy” is a simple and electorally compelling narrative nevertheless.
Is that the long term plan? No idea, but I think it’s at best a happy accident that sets up the mother of all electoral land mines for Democrats in the following years.
comment 1d ago · link · parent
Loop-blocking-as-backpressure is sometimes the right move, but only rarely. If you can isolate event loops for specific workloads (e.g. some shameless self promotion, releasing in PyPi this week: https://github.com/zbentley/async-anywhere/blob/main/src/asy...) that becomes a more tractable approach.
comment 2d ago · link · parent
I thought we as an industry had hopefully moved past "async == magic code-go-fast sauce", but apparently we have not.
As much as Go annoys me, you're right there as well. I have to admit that Go did "solve" the make-concurrency-and-parallelism-accessible (and relatively safe) space in a way that very, very few other programming languages did (and none that people widely use).
comment 2d ago · link · parent
I'm not necessarily a "statically link all the things" zealot, but I think that pattern definitely has a place where problems like yours often occur.
comment 2d ago · link · parent
Hell, it can be both within a single company. A commercial airline is both a famously terribly unprofitable venture and one that employs insane rent-seeking tactics (premium tiers, seat shrinkage) routinely. Hospitals and other healthcare industry participants are the same way: massive cost collapse leads to businesses closing and PE buyouts, at the same time as parasitic rent-seeking ("Office Visit" ICD codes, anyone?).
The recipe is usually: extremely inelastic demand/captive audiences for a service means that competition-based pricing assumptions pretty much immediately lead to rent-seeking and/or monopolistic behavior, and at the same time the margin pressure on the business might be intense.
Or, even more briefly: slim or negative margins don't always indicate a pareto optimum or the presence of competition. Sometimes, that just means that a competition/market-based pricing model isn't a good fit for a given industry.
comment 6d ago · link · parent
Sucks for the project of human learning though.
comment 1w ago · link · parent
Replacing Linux (and likely having to change some parts of POSIX as well) would be an even taller order than rewriting C code in some other language. At least for userland rewrites, you have parity and an API (POSIX, other libraries in userland) to code to.
It might still be a good idea to do both of those, mind you. But let's not fool ourselves: the main reasons the incumbents are the incumbents is that it's hard, likely-to-fail, and incredibly slow work to replace them.
comment 1w ago · link · parent
Those things wouldn't happen if "too lazy to care" was the only reason people didn't vote. A lot of people who don't vote absolutely should be counted for a given side; they don't (or can't) vote due to reasons much more externally engineered than laziness.
comment 1w ago · link · parent
You’ve never had a bug caused by None showing up in code that didn’t expect it? Or getting an object of the wrong type that didn’t have the method you tried to call on it?
comment 1w ago · link · parent
The growth of centralized authorities arises from the reality that the vast majority of devs do not and will not independently vet or attest to the quality of libraries they use. That’s not great, but it is what we have and doesn’t look likely to change.
Given that, and given that people still want as much security as they can conveniently get, centralized control (from “we run a security scanner and trust its findings” to “packages can only be downloaded from pypi/debian stable/whatever”) is a natural result.
comment 1w ago · link · parent
But they left behind a few practices that were easy to adopt and lots of people liked (whether that makes them “the good parts of agile” or “lazy process theater” depends on who you ask). Sprints, boards, paying attention to velocity, and so on.
comment 1w ago · link · parent
Because enforcing laws based on spirit rather than text has proven, again and again throughout history, to be a pretty direct path to selective enforcement (including subjective variance leading to legal unpredictability, favoritism, and persecution). When the rule of law is selective, corruption and authoritarianism increase.
Like, that's not the only way to get corruption and authoritarianism: our existing system of regulatory capture and massive-resources-required-for-legal-action is a case in point of that.
But "let's make it OK to arrest people when everybody knows that they're doing something illegal, even if it can't be proven under specific laws" is pretty much textbook descent into vibes-based authoritarian rule. And yeah, one of the big drawbacks of that approach is that it creates a class of experts at navigating the boundaries of the law. But the alternative is much, much worse.
comment 1w ago · link · parent
It lightly translates binary formats (Windows executables) into Linux-compatible executable code, and then runs that code against libraries that implement Windows APIs in terms of Linux underneath. It's not an emulator in the same way that your libc isn't emulating lockf(3) in terms of fcntl(2) underneath. In web-dev parlance, we'd call WINE a polyfill.
Rosetta and QEMU on the other hand are emulators--emulators, in this instance, being a term of art that implies interpreting bespoke meaning from machine code instructions written in another program. Some emulators translate instructions 1:1, some have optimized stencils, some (like Rosetta) have kernel support for emulating very quickly, and some (maybe like Rosetta; sources disagree) also have hardware support as well.
comment 1w ago · link · parent
Most interventions are embarked upon by working backwards from unproven (often political) theories and an extremely limited range of possible tools (“give money”, “take money”, “physically punish”). That leads to the mother of all searching-only-under-the-streetlight fallacies.
But that doesn’t necessarily indict the social science academy/frontiers of understanding (which, again, are plenty flawed—just perhaps not quite as stone-aged as the author suggests). Usually, it indicts the state/designers of the intervention in question. Blaming the sciences sometimes sounds like blaming car airbag designers for motorcyclist deaths.
I’m reminded of the conservation efforts for the spotted owl. Famous academic naturalists were asked to design a conservation plan that worked with logging. They did. The state replied “fine, but we need to clear-cut 90% of the forest you asked for, so make do with 10% of the habitat”. The program did poorly, but not because the academic understanding of how to address the problem was as flawed.
26.
2 points · by zbentley · 1w ago · discuss
comment 1w ago · link · parent
> While an EventQL precondition is evaluated, every other write waits, so that nothing can come in between; reads go on meanwhile. So that no write holds up the others for long, the EventQL preconditions of a write are evaluated for at most five seconds, all of them together, counted from when the write gets its turn: a write whose preconditions take longer is rejected, with nothing written, with a 400
(From https://www.eventfoundation.io/docs/eventsourcingdb/precondi...)
That seems like a huge foot gun. Like, sure, you don't have to implement transactional semantics or think about consistency/MVCC/snapshots. But at the cost of "every UPDATE ... WHERE prevents every other write for up to 5 seconds"? Really?
That seems like a bad tradeoff, inferior to both (massive effort) implementing proper transactionality, (medium efffort, but significantly compatibility-breaking) removing support for hierarchically-nested subjects so that the global-mutex restrictions on UPDATE-WHERE can be lifted/efficiently scoped to a subject, or (lowest effort) removing support for EventQL preconditions entirely. In any sufficiently large/multi-developer system I don't imagine that "don't use EventQL preconditions" will effectively stick.
As it is, I feel like having the main event sourcing system blocked for up to 5sec on any one client's slow EventQL precondition is asking for pervasive downtime events out of nowhere.
That said, I may be missing something that ameliorates those issues! I'm just skimming docs, so take it with a grain of salt.
comment 1w ago · link · parent
But I’m not at all convinced that 30 years ago things were appropriately secure or usable.
comment 2w ago · link · parent
As for DRAM: if by “exception loading page” you mean an OOM, then have malloc use the same error reporting system. If you instead mean “some other failure faulting/fetching a page from main memory”, well … crash? I don’t know of any platform that has semantics for handling that condition. Hardened spacecraft OSes, maybe?