406 karma · joined Jul 22, 2010 (16y ago) · 242 submissions
comment 1d ago · link · parent
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
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 2d ago · link · parent
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
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
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
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
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
comment 5d ago · link · parent
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
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
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
comment 3w ago · link · parent
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
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
R0 = R1 + R2
[1]: https://en.wikipedia.org/wiki/Blackfin#Core_featurescomment 1mo ago · link · parent
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
@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).
comment 2mo ago · link · parent
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