frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Porting a C JSON Tokenizer to Go: A Technical Deep-Dive into Jsmn-Go

https://substack.com/home/post/p-168126583
1•alikatyc•3h ago

Comments

alikatyc•3h ago
Hey everyone,

I've been working on a Go port of jsmn, the minimal C JSON tokenizer. The goal was to create a version that leverages goroutines to parse large JSON files in parallel. It's part of a larger project I'm calling SafeHeaders-Go, where I'm attempting to create safe, concurrent Go ports of popular single-file C header libraries.

You can check out the jsmn-go implementation here: https://github.com/alikatgh/safeheaders-go/tree/main/jsmn-go

Currently, parallel parsing is performed by naively splitting the JSON input into chunks and processing them concurrently. It's showing a decent performance improvement (around 2x on larger files in my benchmarks), but I'm sure the chunking logic could be much smarter.

I have two main questions for the community:

1. How would you approach the parallel chunking more robustly? I'm concerned about correctly handling tokens that get split across chunk boundaries.

2. Are there other popular C header libraries you'd find helpful to have a safe, concurrent Go port of? I've been considering something like stb_image.

I'm open to any and all feedback, and pull requests are very welcome.

Upwork Suspended My Account Without Reason

1•kerimn•3m ago•0 comments

Zuck Races to Build Godlike AI, Women and People of Color Aren't Invited

https://gizmodo.com/as-zuck-races-to-build-godlike-ai-women-and-people-of-color-arent-invited-2000628303
4•Bluestein•3m ago•0 comments

Why U.S. Geothermal May Advance, Despite Political Headwinds

https://e360.yale.edu/features/united-states-geothermal-republican-spending-bill
1•jbotz•3m ago•0 comments

Superpowers are real–these people are living proof

https://www.nationalgeographic.com/science/article/superpowers-real-human-abilities-genetics
4•Bluestein•4m ago•0 comments

Show HN: Sage-AI – AI-Powered Writing Assistant

https://sage-ai-waitlist.vercel.app
1•jawwadjamiu•5m ago•0 comments

Ask HN: What are some non-standard ways to reduce the size of executable files?

1•FerkiHN•8m ago•0 comments

Show HN: A simple old school news website

https://news.unixpods.dev
1•dd_xplore•11m ago•0 comments

Better Software Conference (Casey Muratori on OOP)

https://www.twitch.tv/bettersoftwareconference
2•creikey•17m ago•0 comments

Show HN: Free YouTube Tag Generator to Improve Video SEO

1•rahulbstomar•26m ago•0 comments

Building a Distributed Cache for S3

https://clickhouse.com/blog/building-a-distributed-cache-for-s3
1•subset•27m ago•0 comments

Bad Actors Are Grooming LLMs to Produce Falsehoods

https://americansunlight.substack.com/cp/168074209
2•nsoonhui•31m ago•0 comments

The Open Source AI Definition 1.0

https://opensource.org/ai
2•doener•33m ago•0 comments

Leave Russia

https://leave-russia.org/
5•austinallegro•38m ago•0 comments

Invisible Text

1•alizefeeney•49m ago•0 comments

Jonathan Blow – Jai Demo and Design Explanation

3•gethly•49m ago•0 comments

Separation of storage and compute without a performance tradeoff

https://neon.com/blog/separation-of-storage-and-compute-perf
1•davidgomes•56m ago•0 comments

Development in Progress

https://consilienceproject.org/development-in-progress/
1•arunkd13•1h ago•0 comments

Damn Small Link Forwarder (DSLF) – rust based bit.ly replacement

https://github.com/vpetersson/dslf
2•mvip•1h ago•0 comments

Systemd's Nuts and Bolts – A Visual Guide to Systemd

https://medium.com/@sebastiancarlos/systemds-nuts-and-bolts-0ae7995e45d3
2•ssernikk•1h ago•0 comments

Attended Windsurf's Build Night 18 hours before founders joined Google DeepMind

1•schwentkerr•1h ago•0 comments

Malware Found in Official GravityForms Plugin Indicating Supply Chain Breach

https://patchstack.com/articles/critical-malware-found-in-gravityforms-official-plugin-site/
2•taubek•1h ago•0 comments

Google Glass Wasn't a Failure. It Raised Crucial Concerns

https://www.wired.com/story/google-glass-reasonable-expectation-of-privacy/
7•Bluestein•1h ago•0 comments

Milgram shock-study imaginal replication: how far do you think you would go?

https://link.springer.com/article/10.1007/s12144-025-07962-1?
3•XzetaU8•1h ago•0 comments

One California worker dead, hundreds arrested after cannabis farm raid

https://www.reuters.com/legal/government/one-california-worker-dead-hundreds-arrested-after-cannabis-farm-raid-2025-07-11/
3•perihelions•1h ago•0 comments

Science Fiction, the Future, and Now: Some Mid-Life Reflections

https://fafnir.journal.fi/article/view/156305/101846
4•jruohonen•1h ago•1 comments

Show HN: XUtil – 40+ fast, privacy-friendly developer tools (no ads, no fluff)

https://xutil.in
3•RohitPModani•1h ago•0 comments

Longevity Might Be All in Your Head

https://nautil.us/longevity-might-be-all-in-your-head-1223517/
2•XzetaU8•1h ago•0 comments

White-sounding names get called back for jobs more than Black ones, study finds

https://www.npr.org/2024/04/11/1243713272/resume-bias-study-white-names-black-names
5•Bluestein•1h ago•0 comments

AI therapy bots fuel delusions and give dangerous advice, Stanford study finds

https://arstechnica.com/ai/2025/07/ai-therapy-bots-fuel-delusions-and-give-dangerous-advice-stanford-study-finds/
6•olyellybelly•1h ago•1 comments

The Great Exhibition of 1851

https://www.thegazette.co.uk/all-notices/content/100717
2•jruohonen•1h ago•0 comments