frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

ASCII characters are not pixels: a deep dive into ASCII rendering

https://alexharri.com/blog/ascii-rendering
106•alexharri•1h ago

Comments

nathaah3•1h ago
that was so brilliant! i loved it! thanks for putting it out :)
Jyaif•1h ago
It's important to note that the approach described focuses on giving fast results, not the best results.

Simply trying every character and considering their entire bitmap, and keeping the character that reduces the distance to the target gives better results, at the cost of more CPU.

This is a well known problem because early computers with monitors used to only be able to display characters.

At some point we were able to define custom character bitmap, but not enough custom characters to cover the entire screen, so the problem became more complex. Which new character do you create to reproduce an image optimally?

And separately we could choose the foreground/background color of individual characters, which opened up more possibilities.

Sharlin•37m ago
And a (the?) solution is using an algorithm like k-means clustering to find the tileset of size k that can represent a given image the most faithfully. Of course that’s only for a single frame at a time.
finghin•23m ago
In practice isn’t a large HashMap best for lookup, based on compile-time or static constants describing the character-space?
spuz•15m ago
In the appendix, he talks about reducing the lookup space by quantising the sampled points to just 8 possible values. That allowed him to make a look up table about 2MB in size which were apparently incredibly fast.
brap•7m ago
You said “best results”, but I imagine that the theoretical “best” may not necessarily be the most aesthetically pleasing in practice.

For example, limiting output to a small set of characters gives it a more uniform look which may be nicer. Then also there’s the “retro” effect of using certain characters over others.

sph•53m ago
Every example I thought "yeah, this is cool, but I can see there's space for improvement" — and lo! did the author satisfy my curiosity and improve his technique further.

Bravo, beautiful article! The rest of this blog is at this same level of depth, worth a sub: https://alexharri.com/blog

adam_patarino•34m ago
Tell me someone has turned this into a library we can use
nathell•7m ago
Well there's aalib and libcaca, but I'm not sure about their fidelity compared to this.
guerby•4m ago
Don't know what algorithm are used by the famous libcaca:

https://github.com/cacalabs/libcaca

nickdothutton•34m ago
What a great post. There is an element of ascii rendering in a pet project of mine and I’m definitely going to try and integrate this work. From great constraints comes great creativity.

ASCII characters are not pixels: a deep dive into ASCII rendering

https://alexharri.com/blog/ascii-rendering
110•alexharri•1h ago•11 comments

The Dilbert Afterlife

https://www.astralcodexten.com/p/the-dilbert-afterlife
48•rendall•22h ago•17 comments

ClickHouse acquires Langfuse

https://langfuse.com/blog/joining-clickhouse
94•tin7in•3h ago•21 comments

The 600-year-old origins of the word 'hello'

https://www.bbc.com/culture/article/20260113-hello-hiya-aloha-what-our-greetings-reveal
18•1659447091•1h ago•4 comments

Map To Poster – Create Art of your favourite city

https://github.com/originalankur/maptoposter
54•originalankur•2h ago•23 comments

Architecture for Disposable Systems

https://tuananh.net/2026/01/15/architecture-for-disposable-systems/
17•tuananh•1h ago•4 comments

Show HN: Streaming gigabyte medical images from S3 without downloading them

https://github.com/PABannier/WSIStreamer
53•el_pa_b•4h ago•9 comments

US electricity demand surged in 2025 – solar handled 61% of it

https://electrek.co/2026/01/16/us-electricity-demand-surged-in-2025-solar-handled-61-percent/
81•doener•2h ago•39 comments

East Germany balloon escape

https://en.wikipedia.org/wiki/East_Germany_balloon_escape
556•robertvc•19h ago•218 comments

Finding and Fixing a 50k Goroutine Leak That Nearly Killed Production

https://skoredin.pro/blog/golang/goroutine-leak-debugging
13•ibobev•5d ago•1 comments

After 25 years, Wikipedia has proved that news doesn't need to look like news

https://www.niemanlab.org/2026/01/after-25-years-wikipedia-has-proved-that-news-doesnt-need-to-lo...
96•giuliomagnifico•2h ago•73 comments

Cloudflare acquires Astro

https://astro.build/blog/joining-cloudflare/
854•todotask2•22h ago•367 comments

Lies, Damned Lies and Proofs: Formal Methods Are Not Slopless

https://www.lesswrong.com/posts/rhAPh3YzhPoBNpgHg/lies-damned-lies-and-proofs-formal-methods-are-...
43•OgsyedIE•3d ago•21 comments

Fitdrop: Personal exploration of fashion from 1980 to 2025

https://fitdrop.cc/
4•num42•1h ago•0 comments

High-Level Is the Goal

https://bvisness.me/high-level/
171•tobr•2d ago•80 comments

Cursor's latest “browser experiment” implied success without evidence

https://embedding-shapes.github.io/cursor-implied-success-without-evidence/
592•embedding-shape•22h ago•259 comments

FLUX.2 [Klein]: Towards Interactive Visual Intelligence

https://bfl.ai/blog/flux2-klein-towards-interactive-visual-intelligence
168•GaggiX•13h ago•49 comments

6-Day and IP Address Certificates Are Generally Available

https://letsencrypt.org/2026/01/15/6day-and-ip-general-availability
427•jaas•21h ago•242 comments

AV1 Image File Format Specification Gets an Upgrade with AVIF v1.2.0

https://aomedia.org/blog%20posts/AV1-Image-File-Format-Specification-Gets-an-Upgrade-with-AVIF/
17•breve•1h ago•0 comments

LLM Structured Outputs Handbook

https://nanonets.com/cookbooks/structured-llm-outputs
283•vitaelabitur•1d ago•47 comments

Drone Hacking Part 1: Dumping Firmware and Bruteforcing ECC

https://neodyme.io/en/blog/drone_hacking_part_1/
88•tripdout•10h ago•10 comments

Post-PARA: What survived 4 years of real use

https://cortwave.github.io/posts/post-para/
9•cortwave•4d ago•0 comments

Releasing rainbow tables to accelerate Net-NTLMv1 protocol deprecation

https://cloud.google.com/blog/topics/threat-intelligence/net-ntlmv1-deprecation-rainbow-tables
128•linolevan•15h ago•73 comments

Dell UltraSharp 52 Thunderbolt Hub Monitor

https://www.dell.com/en-us/shop/dell-ultrasharp-52-thunderbolt-hub-monitor-u5226kw/apd/210-bthw/m...
241•cebert•19h ago•300 comments

STFU

https://github.com/Pankajtanwarbanna/stfu
885•tanelpoder•19h ago•533 comments

Reading across books with Claude Code

https://pieterma.es/syntopic-reading-claude/
111•gmays•18h ago•23 comments

Gut micro-organisms associated with health, nutrition and dietary intervention

https://www.nature.com/articles/s41586-025-09854-7?lid=t94o71j7gslg
13•lonelyasacloud•1h ago•1 comments

Keifu – A TUI for navigating commit graphs with color and clarity

https://github.com/trasta298/keifu
54•indigodaddy•12h ago•8 comments

The five orders of ignorance (2000)

https://cacm.acm.org/opinion/the-five-orders-of-ignorance/
73•svilen_dobrev•5d ago•18 comments

Which is "Bouba", and which is "Kiki"? [video]

https://www.youtube.com/watch?v=1TDIAObsqcs
21•basilikum•6d ago•18 comments