Better HN
topnewbestaskshowjobs
Log inSign up

jaen

406 karma · joined Jul 22, 2010 (16y ago) · 242 submissions

Submissions

comment 1d ago · link · parent

By that definition almost everything is a plugin system, which makes the discussion kind of pointless.

Also note the word most in the original comment...

Common plugin system use cases are eg.: 1. Game mods. 2. Browser extensions / content scripts.

Re-iterating: Neither of those are – in general – compatible for the out-of-process approach due to performance problems.

comment 1d ago · link · parent

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):

https://github.com/plasma-umass/coz https://rocm.docs.amd.com/projects/rocprofiler-systems/en/la...

comment 1d ago · link · parent

If you think I wrote this comment to "look cool", reconsider your prejudices about people...

It was mostly a warning to others to not waste their precious time and an observation/advice about the general state of LLMs.

comment 2d ago · link · parent

Yeah, the project mixes the ARM ISA and the RISC-V page table format...

comment 2d ago · link · parent

You're mixing up (or don't understand the difference between) spatial and temporal memory safety.

What you're talking about is spatial safety, but just having that does not end memory corruption.

Not having temporal safety eventually leads to the same outcomes and issues (search the CVE lists for UAF exploits...)

Temporal safety can only be achieved via GC or explicit safe lifetime management.

comment 2d ago · link · parent

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.)

comment 2d ago · link · parent

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...)

comment 2d ago · link · parent

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)

comment 2d ago · link · parent

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!

comment 3d ago · link · parent

Nope, it's apparently "American": https://x.com/contraben/status/2123553553403039981

comment 5d ago · link · parent

LSP has a very complex protocol to make it seem the performance is not horrible. An in-process one would be quite a bit simpler and faster.

Also it is perceptibly slow if you've ever used fast editors, but that's not entirely due to the plugin protocol design.

comment 5d ago · link · parent

> 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.

comment 1w ago · link · parent

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.

comment 1w ago · link · parent

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)

comment 2w ago · link · parent

kitty apparently has this: https://sw.kovidgoyal.net/kitty/kittens/quick-access-termina...

comment 3w ago · link · parent

That's off by an order of magnitude.

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).

comment 3w ago · link · parent

Doesn't really matter for H-Nets. These are Unicode bytes, as you said, so the nets can recover their structure (as demonstrated in the article!).

(I guess the training these could be somewhat more efficient if it was codepoints instead)

comment 3w ago · link · parent

Bytes are not used as tokens here and are in some sense an arbitrary choice (but they are a good one).

The article's approach just requires some indivisible base "atoms" to start the building the larger "tokens" from. (see: the DNA example)

It could be raw bits, but that's pointless, since dividing bytes into bits does not give the model any extra expressive power and requires 8× more computation. (yes, there's some structure at the bit level eg. lowercase/uppercase is represented as a bit in ASCII, but that's trivial to learn from just bytes at the scale the model operates)

Bytes are the ~best point on the expressivity/computation curve for this approach (for text).

(something else to ponder - why do bytes have 8 bits?)

comment 1mo ago · link · parent

For those who might wonder, Blackfin is a CPU architecture with an assembly language thas has a more pseudo-codeish syntax [1]:

    R0 = R1 + R2
[1]: https://en.wikipedia.org/wiki/Blackfin#Core_features

comment 1mo ago · link · parent

No point in hashing, it's trivial to infer the license plate from the hash since the space of license plate numbers is finitely small - one can just brute-force calculate a hash -> license plate table (also called a rainbow table).

comment 1mo ago · link · parent

The project just exposes everything the hardware can do, the audio codec chip used for the conversion is Burr-Brown PCM3168A 24-Bit, 96-kHz/192-kHz, 6-In/8-Out.

comment 1mo ago · link · parent

This seems to rebuild the entire view from scratch on every model update? Or is there some diffing magic that's not shown in the article?

This loses all non-persistent UI state such as scroll positions, half-entered text etc. etc.

Not really a workable architecture for a real app. React was invented because of this problem (how to make functional-style view building actually work...)

comment 1mo ago · link · parent

Exactly the same thing also happened in 2020 with the Facebook SDK:

https://news.ycombinator.com/item?id=23097459

comment 1mo ago · link · parent

If by enums you mean sum-type ADTs (like in Rust), then Python is certainly quite expressive - it has union types, which can represent polymorphic variants - those are slightly more expressive than pure Rust-style ADTs since you can arbitrarily subset or extend the enum cases.

  @dataclass @final class CaseA[T]:
     field: T

  type MyEnum[T] = CaseA[T] | CaseB
This also gets exhaustiveness checking in `match` statements (depending on the type checker). Overall, enums have a similar style to Scala and Java >=21 (mixing OO + ADT). I guess syntactically it can be slightly verbose depending on the exact situation... I wouldn't call them second class, but yeah, not a lot of existing libraries use this style.

Typed dicts (with the latest PEPs) are an improvement over any other language besides TypeScript. Yes, in TS, certainly `Partial` / `Pick` / `Omit` and intersection types make modeling the web API swamp easier, and that's one place TS is superior to anything else.

Python does have the Type Manipulation PEP 827 [1] out to give it similar powers to TS, but I feel that's unlikely to be implemented soon / as-is.

Having an effect system for exceptions would be nice indeed. That's actually something I'm looking into (having an "allowed exceptions" annotation for functions and then checking it at test-time via failure injection and possibly in type checkers).

[1]: https://peps.python.org/pep-0827/

comment 2mo ago · link · parent

Python has a strong, expressive static type system with a very fast type checker (Pyrefly).

comment 2mo ago · link · parent

Fun times...

This is before the DOM Canvas 2D API existed, so effects like digging are implemented by overlaying multiple 1px-high black GIF <img> tags over the background.

comment 2mo ago · link · parent

More detailed presentations about the Monaka CPU:

wccftech summary: https://wccftech.com/fujitsus-monaka-chip-3d-stacks-2nm-cpu-...

2026: https://global.fujitsu/-/media/Project/Fujitsu/Fujitsu-HQ/te...

2023: https://global.fujitsu/-/media/Project/Fujitsu/Fujitsu-HQ/te...

FugakuNEXT, the supercomputer it will be used in, also some details about the next-gen Monaka-X: https://global.fujitsu/-/media/Project/Fujitsu/Fujitsu-HQ/te...

For a single CPU: 844 GB/s memory bandwidth (12 channels of DDR5 RDIMM, 8800MT/s). 4.3-6 TFLOPS.

Basically comparable to a modern (although not top-end) GPU, so good for HPC & AI workloads. (though only 2 CPUs per node, with GPUs 4-8 is more common)

comment 2mo ago · link · parent

Previous discussion of this on HN (2009): https://news.ycombinator.com/item?id=634692

comment 2mo ago · link · parent

For anyone else wondering what Loom is, it's a concurrency permutation testing tool in Rust:

https://docs.rs/loom/latest/loom/

12345
9