frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: Chonkify – updated 1kB chunker, now grapheme-aware

https://github.com/ushakov-igor/chonkify
2•Beardier•1d ago
Hey all!

Thanks again for the thoughtful feedback on my original post — much appreciated.

I’ve made a few updates to chonkify, my tiny (~1kB) utility for chunking anything (arrays, strings, buffers, async iterables, etc.):

- Full source now included (no more minified-only dist)

- Clarified string behavior:

-- chonk() uses UTF-16 code points (like JS)

-- new chonkGraphemes() splits by grapheme clusters (so emoji stay intact)

- Updated README with clear examples and tradeoffs

I still think grapheme support is cool — just not the default anymore.

JS strings are based on UTF-16, but real-world text (emojis, Hindi, Thai, etc.) often needs grapheme-aware handling. Now you can choose between "what JS does" and "what users expect".

This is still very much a pet project — I built it primarily for myself and don’t claim any production-grade seriousness. That said, I’d be thrilled if it turns out useful to anyone else.

Would love more feedback!

Comments

pvg•1d ago
https://news.ycombinator.com/item?id=44172017

Science Proceeds One Question at a Time

https://scholars-stage.org/science-proceeds-one-question-at-a-time/
1•blobcode•5m ago•0 comments

Mastering Claude Code in 30 minutes with its creator, Boris Cherny [video]

https://www.youtube.com/watch?v=6eBSHbLKuN0
1•consumer451•7m ago•1 comments

Anker comes clean about its Eufy security cameras (2023)

https://www.theverge.com/23573362/anker-eufy-security-camera-answers-encryption
2•arkadiyt•10m ago•1 comments

From AI-friendly to AI-first: How Zapier is transforming hiring and onboarding

https://zapier.com/blog/zapier-ai-first-hiring-leaning/
1•cebert•12m ago•0 comments

Show HN: A Simple Tool to Copy Special Characters and Symbols Easily

https://special-characters.aitoolshubs.com/
1•sagasu007•13m ago•0 comments

Ask HN: Who's Using the Origin Private File System?

1•ChadNauseam•14m ago•0 comments

Open Source Distilling

https://opensourcedistilling.com/
1•nativeit•19m ago•0 comments

Assume people use reader mode

https://catskull.net/assume-people-use-reader-mode.html
3•catskull•23m ago•0 comments

Scientists Create 'Worlds' Smallest Violin'

https://www.bbc.com/news/articles/cp92pr5pr48o
1•WorldPeas•29m ago•2 comments

LawConnect is a new AI that helps you understand your legal issues, for free.

https://lawconnect.com
1•marvinfat•30m ago•0 comments

We decreased Gitlab repo backup times from 48 hours to 41 minutes

https://about.gitlab.com/blog/2025/06/05/how-we-decreased-gitlab-repo-backup-times-from-48-hours-to-41-minutes/
2•sashk•32m ago•1 comments

A conversation on Claude Code with Boris Cherny, the creator [video]

https://www.youtube.com/watch?v=Yf_1w00qIKc
1•consumer451•38m ago•1 comments

The Game of Snake and the Nature of Order

https://akkartik.name/post/2025-06-01-devlog
2•surprisetalk•44m ago•0 comments

How do you prototype a nice language?

https://kevinlynagh.com/newsletter/2025_06_03_prototyping_a_language/
1•surprisetalk•45m ago•0 comments

Astronomers observe the Sausage cluster at low radio frequencies

https://phys.org/news/2025-06-astronomers-sausage-cluster-radio-frequencies.html
3•wglb•47m ago•1 comments

RTX 5060 Ti 16GB sucks for gaming, but seems like a diamond in the rough for AI

https://old.reddit.com/r/LocalLLaMA/comments/1kf9i52/rtx_5060_ti_16gb_sucks_for_gaming_but_seems_like/
3•teleforce•49m ago•0 comments

America's skies may soon open up to supersonic travel

https://www.cnn.com/2025/06/05/travel/supersonic-travel-american-skies-still-big-problem
2•dabinat•52m ago•0 comments

Nyreth Framework – A Symbolic Language and Cognitive Substrate for AI

2•NyrethAI•53m ago•1 comments

Tanaka Isson

https://jacobfilipp.com/isson/
1•surprisetalk•55m ago•0 comments

What If Disney World Was Rebuilt for Cars Instead? [video]

https://www.youtube.com/watch?v=CG0qRAOoVgI
2•surprisetalk•56m ago•0 comments

When was peak message in a bottle?

https://interconnected.org/home/2025/05/16/bottle
2•surprisetalk•57m ago•0 comments

Decrease in Entry-Level Tech Jobs

https://newsletter.eng-leadership.com/p/decrease-in-entry-level-tech-jobs
1•thunderbong•59m ago•0 comments

Test Postgres in Python Like SQLite

https://github.com/wey-gu/py-pglite
4•wey-gu•59m ago•2 comments

The Loneliness Epidemic, in Data: Who Americans Spend Time with [video]

https://www.youtube.com/watch?v=h7w339vE2F8
3•surprisetalk•1h ago•0 comments

Cosmic

https://www.cosmic.new/
1•handfuloflight•1h ago•0 comments

Debugging Deadlocks in PostgreSQL

https://www.cybertec-postgresql.com/en/debugging-deadlocks-in-postgresql/
4•lobo_tuerto•1h ago•0 comments

Ask HN: Is Adrian Colyer of "The Morning Paper" fame ok?

4•yencabulator•1h ago•0 comments

Better Contract Drafting (2023)

https://www.oncontracts.com/contracts-favorites/
1•wslh•1h ago•0 comments

NATS Server 2.11 Release

https://nats.io/blog/nats-server-2.11-release/
1•yurivish•1h ago•1 comments

LISA: Linux Integration Services Automation by Microsoft

https://github.com/microsoft/lisa
2•teleforce•1h ago•0 comments