News for hackers. Stuff that matters.

csjh

I found it to spiral into complete nonsense a few times when I tested it out, but it's possible that was a bug in the provider
Re:Deno 2.8 on Friday May 22, 2026 @07:18PM (#48242813)
It should be pretty mature outside of Wasi. To be fair, there's really nothing that's super mature in terms of Wasi support, except maybe Wasmtime
Re:O(x)Caml in Space on Friday May 15, 2026 @09:28AM (#48148338)
don’t look at the user that reposted the article
Re:You Are Not Your Job on Monday March 23, 2026 @12:02PM (#47491331)
maybe it implies some amount of "live to work" etymologically, but the word "living" in that context specifically refers to living in the financial sense (the act of living wouldn't really make sense in that sentence)

you live to play video games and watch movies, but you make a living by working

Re:Show HN: The Mog Programming Language on Monday March 09, 2026 @05:13PM (#47315603)
Wasm is explicitly not designed for interpretation (https://arxiv.org/abs/2205.01183)
Re:Allocating on the Stack on Friday February 27, 2026 @03:34PM (#47185219)
Optimizations like these are so cool. I love seeing higher level languages take advantage of their high level-ness
Re:Allocating on the Stack on Friday February 27, 2026 @03:32PM (#47185197)
What do you mean outside of programmer control? What's stopping you from setting the stack size in the linker flags?
Re:Nano Banana 2: Google's latest AI image generation model on Thursday February 26, 2026 @11:34AM (#47168324)
What’s the downside of SynthID?
Re:100M-Row Challenge with PHP on Wednesday February 25, 2026 @11:42AM (#47153984)
Obligatory DuckDB solution:

> duckdb -s "COPY (SELECT url[20:] as url, date, count(*) as c FROM read_csv('data.csv', columns = { 'url': 'VARCHAR', 'date': 'DATE' }) GROUP BY url, date) TO 'output.json' (ARRAY)"

Takes about 8 seconds on my M1 Macbook. JSON not in the right format, but that wouldn't dominate the execution time.

Re:How many registers does an x86-64 CPU have? (2020) on Saturday February 14, 2026 @12:04PM (#47016138)
You’re missing the fact that the compiler isn’t forced to fill every register in the first place. If it was less efficient to use more registers, the compiler simply wouldn’t use more registers.

The actual counter proof here would be that in either case, the temporaries have to end up on the stack at some point anyways, so you’d need to look at the total number of loads/stores in the proximity of the call site in general.

Re:Ask HN: What Are You Working On? (June 2025) on Sunday June 29, 2025 @10:36PM (#44418694)
Started on a dependency-free (including manual object file creation, excluding manual linker) single-pass C compiler with a goal of it being self-hosting. Spawned after my previous project (single-pass Wasm JIT) started to plateau a bit and wanted to start something more "full-stack compiler"-y.

https://github.com/csjh/c-liva

Re:Low-Level Optimization with Zig on Saturday June 07, 2025 @06:34PM (#44213120)
Maybe, but from the author's description, it seems like the interpretation of intent that they want is to generally give the most information possible to the compiler, so it can do its thing. I don't see why the right high level language couldn't give the compiler plenty of leeway to optimize.
Re:Low-Level Optimization with Zig on Saturday June 07, 2025 @03:26PM (#44211959)
> High level languages lack something that low level languages have in great adundance - intent.

Is this line really true? I feel like expressing intent isn't really a factor in the high level / low level spectrum. If anything, more ways of expressing intent in more detail should contribute towards them being higher level.

Re:Ask HN: What are you working on? (May 2025) on Monday May 26, 2025 @02:50PM (#44100377)
Appreciated, but not sure I'm ready for that yet - still need to finish uni :p
Re:Ask HN: What are you working on? (May 2025) on Monday May 26, 2025 @12:31PM (#44098952)
Been working on a single-pass WebAssembly JIT compiler (atm only guaranteed to work on M1 air), been super interesting learning and thinking through strategies to balance fast compilation & fast generated code. It's the fastest single-pass JIT output-wise that I'm aware of, but the compilation speed could use some work.

Also: the README is pretty outdated, the real interesting stuff happens in https://github.com/csjh/mitey-jit/blob/main/backend/arm64/ba...

https://github.com/csjh/mitey-jit

Re:The DuckDB Local UI on Wednesday March 12, 2025 @10:39AM (#43343768)
for the average developer I think the killer feature is allowing you to query over whatever data you want (csv, json, parquet, even gsheets) as equals, directly from their file form - can even join across them
Re:Performance of the Python 3.14 tail-call interpreter on Monday March 10, 2025 @01:59PM (#43323441)
distributing the dispatch instructions lets the predictor pick up on specific patterns within the bytecode - for example, comparison instructions are probably followed by a conditional branch instruction
Re:I Wrote a WebAssembly VM in C on Wednesday February 05, 2025 @09:39PM (#42958349)
How's it nondeterministic?
Re:DOJ will push Google to sell off Chrome on Monday November 18, 2024 @06:19PM (#42178268)
That's not true, plenty of great stuff is shipping every year. Take your pick: https://web.dev/series/baseline-newly-available https://web.dev/blog/baseline2023
Re:Ask HN: What Are You Working On? (October 2024) on Monday October 28, 2024 @10:28AM (#41971358)
Been interested in programming language implementations recently, so I'm working on an in-place WebAssembly interpreter

Currently passes all the WebAssembly 1.0 test suite minus the tests that require imports (around 9) - should have those ones fixed this week

https://github.com/csjh/wasm-interpreter

Re:WebP: The WebPage Compression Format on Saturday September 07, 2024 @03:16PM (#41475797)
I think the most surprising part here is the gzipped-base64'd-compressed data almost entirely removes the base64 overhead.
Re:Ask HN: What are you working on (August 2024)? on Saturday August 24, 2024 @10:02PM (#41343701)
I'm working on a serialization format, somewhat based on apache arrow but row-based. Includes end to end typescript type safety, and significantly faster than JSON in serialization and deserialization. Seems to do fairly well in the native version I threw together, but more of a javascript/typescript operation for now.

https://github.com/csjh/pest

Re:Porffor: A from-scratch ahead-of-time JS engine on Wednesday July 31, 2024 @05:00PM (#41123409)
It's in test262, so it basically has to be supported for the project to accomplish its goals.
My heuristic (especially for bigger, better indexed websites) is whenever archive.org first saw it
Re:The Pitfalls of Comparing BigDecimals in Java on Monday June 17, 2024 @06:58PM (#40712152)
No need to remember crazy charts to determine equality in Javascript, just blanketly use `===`
Re:NumPy 2.0.0 on Sunday June 16, 2024 @08:06PM (#40701170)
stringzilla[1] has 10x perf on some string operations - maybe they don't suck, but there's definitely room for improvement

[1] - https://github.com/ashvardanian/StringZilla?tab=readme-ov-fi...

Re:Writing memory safe JIT compilers on Friday June 07, 2024 @01:32PM (#40610859)
Futamura projections are super cool, reminds me of another post recently https://news.ycombinator.com/item?id=40406194

Older »