5,996 karma · joined Feb 13, 2017 (9y ago) · 3,013 submissions
comment 1w ago · link · parent
Does this implementation actually relate to Lamport clocks in some way?
comment 1w ago · link · parent
I believe there's a tension between high-throughput (distributed) and centralised (id++), and I'm not sure it can be wished away.
I built a paxos implementation that could assign values to sequential keys. It runs at a decent speed when there's no contention, but slows down when different paxos nodes are asked to assign to the same key (they argue and retry etc.). A partial solution is to use a leader (i.e. putting id++ on one node), which prevents that kind of chatter.
Another partial solution is topics/partitions (which is just a fancy way of keeping independent id++ counters that don't interfere with one another.). I don't count this as a solution because it's morally equivalent to running multiple clusters that don't know about each other.
I can't quite picture the bookkeeping that would let 10 nodes record contiguous ids without paying the centralisation cost.
comment 1w ago · link · parent
https://lists.gnu.org/archive/html/emacs-devel/2026-11/msg00...
comment 2w ago · link · parent
We use the world's resources at a rate of 1.73x the replacement rate. (It would be 5.1x if everyone lived like an American).
We've also built a pyramid scheme whereby we're so bad at meeting the needs of the non-working that we just need to pop out more workers indefinitely.
The fertility drop goes along with modernisation. India and Africa will follow.
So everyone on Earth will have an SUV that they're too old to drive and move into a nursing home with no staff or funding.
comment 2w ago · link · parent
Mastodon was my main source of doom-scrolling, but I got sick of the endless stream of posts about US politics and posts about Mastodon not having an algorithm, so I decided to give BlueSky a go, and climb back into my filter bubble, but it's even worse. Just an endless stream of people reporting US pol happenings at each other - unsourced - using screenshots of multicoloured block-letters.
comment 2w ago · link · parent
Unless you count the XML dependency management with Maven, which isn't too bad.
comment 3w ago · link · parent
llama-ui on unsloth/Llama-3.2 3B Instruct:
> hello
Runtime info
Current time is 2026-11-02T13:00:18+01:00
Runtime info
Current time is 2026-11-02T13:00:19+01:00
Runtime info
Current time is 2026-11-02T13:00:21+01:00
Runtime info
Current time is 2026-11-02T13:00:23+01:00
There is not enough information about the functions to properly answer the prompt.
Not really my jam.I did do the yak-shaving for the longest time. llama in a second-hand RTX3070 8GB was a useful tool. When gpt-oss came out, I upgraded to a second-hand 16GB card. It was slower (didn't seem to one-shot as much) but it gave smarter overall answers. At some point I bought a 24GB card which was basically dead on arrival. I kept my 16GB card in a server and maintained my VPN infra so I could access it from wherever.
I was still using this setup even when my workplace was pushing windsurf/copilot harder and harder. For me they were just broken. I'd ask for trivial tasks like "copy this unit test into a second unit test which tests something slightly different" and it would just get confused and delete shit, or leave random UUID strings throughout the codebase.
Eventually I tried out cline/openrouter/deepseekv4flash, and that was actually useful enough for me to tell it to do something to my code base, and as long as I supervised carefully enough it was useful, and priced OK.
At some point in the process I tried Claude Code because of all the hype, but I couldn't get any useful value out of it. I tried working with it all morning on something and hit my token limit without achieving anything worthwhile, so I cancelled Claude and went back to Deepseekv4flash.
These days every job application requires proficiency with claude code (or similar), so I was forced to get it again. And this time it just worked better. I haven't hit any limits, and it works like a better version of my cline/deepseek setup.
So where does that leave me?
Deepseek-v4-pro is 1.6T params, the cut-down version is 284B params, and I wouldn't trust them to do something on their own.
I'm very skeptical of a model being both small enough to run fast on my hardware and somewhere in the v4-flash <-> claude quality range.
If I did put down $2k, I wouldn't want it in such an old chip (M1) or a second-hand device that could die tomorrow with no chance of refund, especially to just 'see if it's good enough' (compared to the effectively-free v4-flash token spend).
comment 3w ago · link · parent
1) It would be no more fucked up than anything else that has been grandfathered into our tools.
2) If it already had mass adoption in the market, people would jump onto this thread to explain to me that I just don't understand the brilliant semantics behind language of why 4 = 5.
comment 3w ago · link · parent
You could write predicates over non-existent columns:
root=> SELECT * FROM t
WHERE definitely_not_a_column = 4;
Cool, definitely_not_a_column doesn't exist, so therefore that whole WHERE clause doesn't exist either, so the real query is SELECT FROM t. SELECT * FROM t WHERE 4 = 5;
a | b
---+----
5 | 6
(1 row)
We're comparing 4 and 5. Precedent? System.out.println(((Integer)4).compareTo((Integer)5));
> -1
What happens when you treat -1 as a bool? The following languages agree that -1 is true: C, C++, JS, Python, PHP, Ruby, Perl, Lua, R.So it's SELECT
FROM t WHERE true;Now, let's get busy blaming Jepsen for using the tool wrong.
comment 3w ago · link · parent
I complain that mainstream SQL engines have no problem returning less than the total number of rows if you first query WHERE column = NULL and then query WHERE column <> NULL. Your example queries remind me of that.
[1] https://medium.com/dailyjs/the-why-behind-the-wat-an-explana...
comment 4w ago · link · parent
https://www.hrw.org/report/2023/12/21/metas-broken-promises/...
https://www.theguardian.com/global-development/2025/dec/11/m...
comment 1mo ago · link · parent
Trying to one-shot 'print "hello world";' into
.LC0:
.string "hello"
"square":
push rbp
mov rbp, rsp
...
is probably a non-starter, so compiler writers tend to attack the problem by breaking it down into lots of passes.Parsing into an AST is obviously the first, then you might opt into other passes, like type-checking, handling closures, simplifying into some kind of IR, and finally generating code. Each of those stages can be effectively unit-tested (except maybe the last). If you make a mistake in parsing (e.g. mistaking a statement for an expression), you don't want to have to catch that error by inspecting machine code. It's nice if each pass can be easily tested. And one simple way to test these things is to write an interpreter for each pass (mostly because you get to enjoy the facilities of whatever host language you're writing in). Then you can start saying things like "for all inputs, interpreting the AST gives the same result as interpreting the type-checked-AST, gives the same results as interpreting the closured-AST, gives the same results as interpreting the list of IR instructions."
You mention "It ought to be easy because it is possible to only target the common subset of features these architectures support." <- That's your IR right there!
Once you have an IR that looks close enough to the target machine language, it shouldn't be too hard to translate the final step. Or just use LLVM.
I noticed in your code that you're using C, and really there's no need. Languages don't need to be stacked in a hierarchy (e.g. Clojure on top of the JVM which is C++ which compiles to asm). The compiler can be any language, because it only needs to be able to take in source code and spit out bytes.