Better HN
topnewbestaskshowjobs
Log inSign up

Retro_Dev

1,116 karma · joined May 29, 2025 (1y ago) · 128 submissions

Religious, Linux user, Programmer.
Submissions

91.

Zig - All Package Management Functionality Moved from Compiler to Build System(ziglang.org ↗)

4 points · by Retro_Dev · 5mo ago · discuss

comment 5mo ago · link · parent

Indeed - definitely not cost effective to run it on this laptop LOL. It makes me wonder how fast we could run the model if we could fit the weights entirely within CPU cache (assuming a whole ton of CPUs with low latency & high speed IO of course).

comment 5mo ago · link · parent

I ran it on my laptop, which is a Lenovo Legion 5i (think 32 GB RAM, 4060 w/ 8 GB VRAM, you get the picture). It was a quantized model (otherwise it would not fit on my NVMe 1TB drive) at 4 bits per weight - UD_Q4_K_XL. It ran at about 12 seconds per token (not tokens per second). A fun project, but not worth it. I used 4096 tokens of context cache, and I ran it with llama.cpp - as it supports memory mapping. Because the whole thing could obviously not fit in RAM, I was curious how much it would need to stream from SSD. The answer? For a simple 4 sentence description of who it was, about 1.5 TiB was streamed from disk.

comment 5mo ago · link · parent

OpenZL is nice, but it's often less useful than you think - it requires that you know the structure of your data, and don't care about inspecting that data outside of your program. I've extracted one too many png files from a word document (by renaming .docx to .zip) to desire OpenZL everywhere... It might be better as a short-term "data in transit" compression than for long term storage.

95.

Zig – SPIR-V Backend Progress(ziglang.org ↗)

100 points · by Retro_Dev · 5mo ago · 70 comments

comment 5mo ago · link · parent

"open source" means that the code itself (for LLMs - this is training code) is available to the general public. "open weights" means that the weights (trained over time) are available publicly, rather than locked behind a paywalled chat. I do not know of an open source LLM that is not also open weights (unless they never bothered training it). Models like Claude and Gemini are neither open source, nor are they open weights.

comment 5mo ago · link · parent

Attemping to write my own CDCL SAT solver right now. I've experimented in the past with a DP & DPLL SAT solver. I'm currently somewhat mentally stuck on how to create the derived clause after a conflict, but I'll get there :)

comment 5mo ago · link · parent

I hope that this brings out a bunch more real study about the qualitative metrics of these models, both to increase the confidence and accessibility of local LLMs, but also to reduce the blind worship that seems to be propagating about their miracle work in all domains.

comment 5mo ago · link · parent

No questions, but I really enjoyed the article - thank you for sharing. It amazes me how few vacuum tubes these early computers use, compared to the billions and trillions of mosfet transistors used in modern devices.

comment 7mo ago · link · parent

A gamma wavelength handheld laser would be cool; "and on this petri dish, we see a dot of cells instantaneously develop cancer"

101.

Zig – Incremental Compilation with LLVM(ziglang.org ↗)

2 points · by Retro_Dev · 7mo ago · discuss

comment 8mo ago · link · parent

I'm very pleased with the performance of the largest gemma4 model (which I tested through ollama). My singular data point on whether an LLM remembers things well is whether it can translate toki pona to (and from) English. I find it easy to evaluate because I know the language. This local LLM marks the first version that 1) doesn't hallucinate words - at least, for the largest model - and 2) uses common word-phrases that other toki pona speakers use, and most importantly 3) can actually run on my laptop.

103.

Type resolution redesign, with language changes to taste(ziglang.org ↗)

401 points · by Retro_Dev · 8mo ago · 268 comments

104.

Zig – io_uring and Grand Central Dispatch std.Io implementations landed(ziglang.org ↗)

369 points · by Retro_Dev · 9mo ago · 305 comments

105.

Zig – Package Management Workflow Enhancements(ziglang.org ↗)

1 points · by Retro_Dev · 9mo ago · discuss

106.

Bypassing Kernel32.dll for Fun and Nonprofit(ziglang.org ↗)

4 points · by Retro_Dev · 9mo ago · discuss

comment 10mo ago · link · parent

There's solid reason for the translation here; the Zig core team is aiming to eliminate duplicated code and C functions, and avoid the need to track libc from multiple sources. In the future, LLMs could serve as part of this, but they are currently quite terrible at Zig (as far as I understand it, it's not a lack of Zig code samples, it's an imbalance of OLD Zig to NEW Zig, as Zig changes quite frequently).

You would need to consider if it is even worth it translating your C code. If the paradigm is identical and the entire purpose would be "haha it is now one language," surely you could just compile and link the C code with libzigc... In my opinion, it's not worth translating code if the benefit of "hey look one language" requires the cost of "let's pray the LLM didn't hallucinate or make a mistake while translating the code."

108.

Making Redstone circuits with SAT solvers(alloc.dev ↗)

2 points · by Retro_Dev · 10mo ago · discuss

comment 1y ago · link · parent

In the theoretical world where a subset of English could be formalized and proven and compiled, the complexity of the language would reduce my willingness to use it. I find that the draw of AI comes from it's "simplicity," and removing that (in favor of correct programs) would be pointless - because such a compiler would surely take forever to compile "English" code, and would not be too different from current high level languages, imo.

110.

LLMs Are Transpilers(alloc.dev ↗)

2 points · by Retro_Dev · 1y ago · 2 comments

111.

Zig got a new ELF linker and it's fast(github.com ↗)

123 points · by Retro_Dev · 1y ago · 50 comments

112.

C3 Programming Language 0.7.4 Release(github.com ↗)

3 points · by Retro_Dev · 1y ago · discuss

113.

Birth of new Zig backend - aarch64(github.com ↗)

7 points · by Retro_Dev · 1y ago · discuss

114.

Bing Translate vulnerable to prompt injection(alloc.dev ↗)

3 points · by Retro_Dev · 1y ago · discuss

115.

Zig breaking change – Initial Writergate(github.com ↗)

238 points · by Retro_Dev · 1y ago · 227 comments

116.

Writing a C Compiler, in Zig(asibahi.github.io ↗)

4 points · by Retro_Dev · 1y ago · discuss

comment 1y ago · link · parent

It is my opinion that even if Zig were nothing more than a syntactical tweak of C, it would be preferable over C. C has a lot of legacy cruft that can't go away, and decades of software built with poor practices and habits. The status-quo in Zig is evolving to help mitigate these issues. One obvious example that sets Zig apart from C is error handling built into the language itself.
12345