Live data from Hacker News

Hax – a minimalist, terminal-native coding agent written in C

usehax.dev

21–30 of 42 posts

Re: Hax – a minimalist, terminal-native coding agent written in C

#22
I just installed it via homebrew on macos and used the anthropic-compatible custom provider option to configure it to use with deepseek-flash and then used this setup to build a quick rust project that I had been deferring for months - total cost: 1 us cent and under 10 minutes total for setup and etc. Thank you for making such a lean and clean option.

Re: Hax – a minimalist, terminal-native coding agent written in C

#24
post #14

Note to be confused with Haxe: https://haxe.org/

I've been having a great time using haxe & reflaxe macros for code generation.

You can have some minimal haxe code and build tiny compilers that use it as a source of truth for generating a http client, http server stub, cli entrypoint, docs entry, integration test, openapi spec.... Agents are good at writing the macros for whatever language you want to compile to, and now you've enforced agreement between these things as part of a build, which makes for several fewer things that you ought to be diligent about.

Unlike using something like yaml as your source of truth, haxe has a type system. You can catch some problems upstream as build errors rather than waiting to catch them downstream in the generated code.

Highly recommended.

Re: Hax – a minimalist, terminal-native coding agent written in C

#26
post #14

Note to be confused with Haxe: https://haxe.org/

I've been having a great time using haxe & reflaxe macros for code generation. You can have some minimal haxe code and build tiny compilers that use it as a source of truth for generating a http client, http server stub, cli entrypoint, docs entry, integration test, openapi spec.... Agents are good at writing the macros for whatever language you want to compile to, and now you've enforced agreement between these thin…

This sounds amazing. I might give this a go!

Re: Hax – a minimalist, terminal-native coding agent written in C

#27

Something about having a very fast, very small harness written in C only to drive LLMs amuses me. Like putting a big ass spoiler on a minivan or something.

Well, you'd think so but given how slow and resource hungry the ones written in javascript are it makes a lot of sense.

Re: Hax – a minimalist, terminal-native coding agent written in C

#28
post #7

I don't understand why anyone would still start a new software project in C today, given the long track record of mistakes developers can make in it.

> I don't understand why anyone would still start a new software project in C today, given the long track record of mistakes developers can make in it. If you think that unintended consequences can result from using C, boy do I have some news for you for "programmers" from 2026.

I lol'd at this
Post reply on HN