Hacker News

Subscribe to Hacker News feed
Hacker News RSS
Updated: 1 hour 45 min ago

Show HN: JavaScript/JSON and CSS minifier lib in minimal C89

Mon, 07/27/2026 - 6:22am

For those 1.7 of you who may have need of a JavaScript or JSON minifier which (A) is not based on node.js and (B) is not "poisoned" by the "do no evil" license attached to Douglas Crockford's minifier (commonly seen in various projects over the years)...

My C89 CSS minifier was recently broken down into a separate JavaScript/JSON minifier. It's trivial to embed in C, "should" build fine in WASM (that's untested, though), and is pretty small: the whole combined library is about 67kb, or about 34kb for just the JS parts (much of which is docs).

It minifies only spaces, not symbols, and does not offer any options for _not_ minifying (e.g. adding newlines every so often for the sake of tools which treat extremely-long-lined files as binaries) except that by default it retains the first comment in the input if it's the first non-whitespace content (those are typically license/attribution blocks) but it can be told to optionally strip those too.

LLM disclaimer: the 100% hand-written CSS minifier was given to an LLM which, tasked with creating a JS minifier with the same interface, created the new variant in about 20 seconds. That code was later hand-refactored to consolidate parts common to the two minifiers (all of which were hand-written) but the JS-specific pieces are otherwise 100% LLM-generated.

Happy minifying!

Comments URL: https://news.ycombinator.com/item?id=49067477

Points: 1

# Comments: 0

Categories: Hacker News

Is Software Solved?

Mon, 07/27/2026 - 6:03am

Article URL: https://ahmet.ee/is-software-solved/

Comments URL: https://news.ycombinator.com/item?id=49067336

Points: 1

# Comments: 1

Categories: Hacker News

Opus Cost = Minimum Wage in South Africa

Mon, 07/27/2026 - 4:40am

I was curious and checked it out: Opus 5 on the API at normal working intensity lands at 0.9×–1.3× the minimum wage in South Africa - at an average of ~$13 per active developer-day works out to R27.33/hour against a R30.23 floor (SA min wage). I just found that interesting and curios. I wonder how it holds up around the world.

Comments URL: https://news.ycombinator.com/item?id=49066728

Points: 2

# Comments: 0

Categories: Hacker News

Show HN: We built an MCP server for document generation

Mon, 07/27/2026 - 4:36am

Article URL: https://docuqueue.com/#mcp

Comments URL: https://news.ycombinator.com/item?id=49066700

Points: 1

# Comments: 0

Categories: Hacker News

Pages