Just a sea of Claudese slop, it's a rather grating and slow read. An insult to the reader, really.
It's impossible to make Claude write fluent, coherent and correct English, even with instructions. (in a long-context setting – eg. "thinking" seems to exacerbate this)
(with a massive tome of guidelines, Gemini Neon + GPT 6.1 Sol/Astra might approach something that doesn't make one want to vomit immediately.)
The early ai period we're in is like the 50s for the tech we have today. You shitting on a rough first gen doesn't make you cool. If this were the 50s you'd be shitting the equivalent of your neighbor buying a fridge or a chambers oven. It doesn't make you cool
The slowest part is always emulating the MMU, as that adds a 2-3× overhead to every memory access. In that sense ARM Sv39 is not a great choice.
Usually emulators use a direct-mapped cache (basically a software TLB).
In this case though, since you control the kernel, it could use something like the MIPS software-managed TLB of the olden days, with bespoke paging data structures and fast-path page fault handlers, perhaps also using PowerPC Inverted Page Tables as inspiration. (and eg. changing page allocation strategies to constrain pages in the lower address space region to simplify cache look up, and something to prevent cache set conflicts).
Given that the working set is small tho in this use case, eg. just a kernel-managed direct-mapped `page_number[MAX_PAGES] → base_address` table is sufficient and fast. (with some trick for page faults; also who needs granular RWX access permissions...)
I tested this, doesn't seem to offer a speedup in real workloads, there is a speedup only in a simulated tlb thrashing microbenchmark
wasm32-jit on a ryzen 9 3900, lower ms = faster
workload baseline flat-mmu winner
------------------------ -------- -------- ------
conflict (tlb thrashing) 491 ms 39 ms flat-mmu 12.7×
chase (pointer chasing) 448 ms 116 ms flat-mmu 3.9×
stream (sequential rmw) 78 ms 80 ms baseline 1.03×
sieve (primes) 81 ms 84 ms baseline 1.04×
high-conflict (>64 mib) 484 ms 506 ms baseline 1.05×
fib (cpu) 35 ms 37 ms baseline 1.05×
mem (memory ops) 69 ms 75 ms baseline 1.08×
sha (hashing) 97 ms 106 ms baseline 1.09×
boundary (64 mib edge) 73 ms 82 ms baseline 1.13×
high (hot pages >64 mib) 27 ms 32 ms baseline 1.21×
control (hot pages) 27 ms 32 ms baseline 1.21×
If what's supposed to be just removing code and instructions from the hot path is benchmarking as slower, I think there's a problem with the implementation :)
Did you check the final compiled assembly for the memory access path?
Also measuring only the whole system in a comparison benchmark is not statistically appropriate/legible, what's desired is something like causal profiling (to isolate the slowness of the rest of the system vs. the part that's being optimized):
You are right, after more cleaning up the micro-benchmarks recovered. I still could not get it to translate to improvements in real-world tests (nix eval, sqlite, etc). The original patch put a 64 MiB range check and a second lookup in front and kept the old path as the fallback
microbenchmark flat map 8x TLB
conflict 13.7x 14.5x
chase 3.6x 3.5x
high-conflict 0.81x 16.2x
high 0.76x 1.00x
mem/sha/sieve 0.90-1.03 ~1.00
real world:
cold boot 278 -> 276 ms
nix eval 670 -> 726 ms
sqlite 10k 676 -> 724 ms
Memory leaks and memory corruption are two sides of the same thing.
They're just symptoms of managing the lifetime of memory incorrectly. Same solution for both - either better (safe) explicit lifetime management or GC.
Arenas don't fundamentally solve leaks nor corruption.
(I'm excluding resource leaks from the definition of memory leaks, to not muddy the discussion)
> Memory leaks and memory corruption are two sides of the same thing.
> They're just symptoms of managing the lifetime of memory incorrectly
No, they aren't. They are completely different class of a bug.
And have little to do with memory lifetime management.
Memory corruption happens, because certain language(s) make extensive use of unsafe constructs and doesn't have as little as basic built in container types (like friggin arrays or even strings) that do boundschecking by default, so you can overrun buffers and everything - left, right and center. And that's exactly what happens!
So C and to some extent C++ (with additional hundreds of footguns of all stripes)
The biggest benefit of languages like C# - more than anything, in addition to overall better ergonomics - is that they are memory safe first and foremost, and not inherently because of GC.
The whole point of these things is to cover the most common 95+% cases of memory corruption - the low hanging fruit - while paying none of the performance cost of full mark & sweep tracing GC.
Temporal memory safety bugs are way less common & egregious compared to eliminating low hanging fruit spatial (and temporal) memory safety bugs by using basic tools and arenas, etc.
The subtype of "temporal memory safety bugs" you'd could get by using arenas and basic bounds checked containers are of entirely different - much lower severity and difficulty type bugs.
Smart pointers ie. reference counting are a (not very good) form of GC...
Especially in multi-threaded settings, smart pointers perform poorly (compared to GC) due to requiring atomics on hot paths, and the alternative (epochs, hazard pointers, RCU) is orders of magnitude more complicated to get exactly right than just using GC.
This also explains why historically the most interesting concurrent data structures were first implemented in Java, not C++.
eg. Java got a decent concurrent hash table WAY before anything else - in 2003 vs. the 2006 initial release of Intel TBB, and the performance was not as good for all use cases. C++ performance did not catch up until ~2017 with the release of folly::ConcurrentHashMap!
> After all, it’s not like Anthropic is doubling their data set every year (?) and yet their models definitely improve by more than that.
They're not doubling the pre-training data set, but I will bet they are way more than doubling the post-training (reinforcement learning etc.) one, from where a lot of the actual "intelligence" to solve practical problems comes from.
> They're not doubling the pre-training data set, but I will bet they are way more than doubling the post-training (reinforcement learning etc.) one, from where a lot of the actual "intelligence" to solve practical problems comes from.
My belief is that this is true, but it also points to the problems with future growth. They both need to get better data, and figure out how to make non-verifiable tasks work much better.
I'm sceptical that this is achievable in the near future, tbh.
Just another observation from someone not involved:
The paragraph immediately read like Claude slop to me so I closed the tab. It has its common writing smells (inconsistent level of detail / no model of reader's mind, non-physical objects "doing" physical actions metaphorically, overuse of compound sentences / comma-separated clauses for unconnected things).
Claude output does not sound like a human wrote it. It's generally unpleasant to read due to having to constantly mentally "translate" it into accurate technical English, and the cognitive distraction of running into the same ~10 writing style quirks over and over and over again.
That's fair, but the problem is that maintaining docs by hand also takes time, and Jolt itself is actively evolving. So, it just doesn't seem like the right time to focus on this aspect to me. I'd rather spend it improving the language itself right now. But of course, if people want to contribute better, hand written documentation, I'm all for it.
I think people need to take to heart what we've known for generations: writing refines our own thinking. LLMs eliminate that central part of your rework when they do all your human writing for you.
Sure, writing can be great for refining your thinking, but the reality is that I only have so much time in a day, and I have to choose where I spend it. Right now, I see making the language more functional as a bigger priority than writing about it.
Wait what? Most plugin systems do NOT use process isolation as the performance overhead is horrible.
Usually it's either safety-via-language (Lua, JS etc.) or just YOLO (dynamically linked libraries), at best lightweight isolation like WebAssembly but that's modern projects, <1%.
The process isolation approach is only widely used for Go (Kubernetes, Terraform), because Go doesn't support DLLs (nicely)... (and the systems themselves are very slow anyway)
I use it constantly and with 0.50 now it's smooth and stable to resize it dynamically with the IPC remote control protocol using kitten @ resize-os-window --action=os-panel --incremental lines=<N>
200Mhz PPro can theoretically execute 600 MIPS (3 instructions per clock), assuming only high-throughput instructions are used and no cache misses. (the average IPC for realistic workloads is ~1.0 though)
The Pentium Pro is an out-of-order, superscalar processor (that started the lineage of modern x86 processors).
yeah, i just looked it up again because I started to doubt what I found the first time and you're right. Still, a good estimate of how many instructions are required to evaluate a move/position is needed and I can't imagine that would be a small number (I just moved the bishop, i still have my finger on it :) what is it attacking now, what is attacking it?), and I don't see a promising way to "factor" that across multiple positions without hardware support as Deep Blue had or the parallel circuits in the human brain.
It's a different process altogether as you become stronger at the game. Chess becomes much more like a language where you no longer really need to consciously think about such things so much. Like when you read these words you are, at some level, 'remembering' the definition of each word, how to spell each word and so on. But it all happens at a subconscious and basically instant level, such that you aren't consciously exerting much of any real effort even though you're drawing on a knowledge base of many thousands of words, spellings, grammar rules, expressions, and more.
Exact same thing happens in chess. Here's a video of Hikaru playing puzzle streak [1]. He's definitely a freak of nature in terms of speed, but all strong players are going to be capable of similar displays, even if to a less extreme degree. You obviously can't do anything remotely like this when you're still consciously thinking about what attacks what.
It's impossible to make Claude write fluent, coherent and correct English, even with instructions. (in a long-context setting – eg. "thinking" seems to exacerbate this)
(with a massive tome of guidelines, Gemini Neon + GPT 6.1 Sol/Astra might approach something that doesn't make one want to vomit immediately.)
reply