HackerTrans
TopNewTrendsCommentsPastAskShowJobs

alexharri

1,074 karmajoined 4 tahun yang lalu
Website: https://alexharri.com GitHub: https://github.com/alexharri

Submissions

TypeScript's unknown type and type variance

marijnhaverbeke.nl
2 points·by alexharri·7 hari yang lalu·0 comments

I use LLMs as a staff engineer in 2026

seangoedecke.com
11 points·by alexharri·2 bulan yang lalu·1 comments

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

alexharri.com
1,353 points·by alexharri·6 bulan yang lalu·149 comments

Microfeatures I Love in Blogs and Personal Websites

danilafe.com
3 points·by alexharri·6 bulan yang lalu·0 comments

Personal Information

tonsky.me
3 points·by alexharri·6 bulan yang lalu·0 comments

Rich Friend, Poor Friend (2022)

jenn.site
3 points·by alexharri·8 bulan yang lalu·0 comments

The Myth of Rational Design (2010)

zerobanana.com
3 points·by alexharri·9 bulan yang lalu·1 comments

The Age of Greater Reykjavík

flother.is
2 points·by alexharri·10 bulan yang lalu·0 comments

Social dynamics of Bluetooth speakers (2022)

dynomight.net
1 points·by alexharri·10 bulan yang lalu·0 comments

comments

alexharri
·6 bulan yang lalu·discuss
The ASCII moon tool is fun to play around with!

No plans to build a library right now, but who knows. Feel free to grab what you need from the website's code!

If I were to build a library, I'd probably convert the shaders from WebGL 2 to WebGL 1 for better browser compatibility. Would also need to figure out a good API for the library.

One thing that a library would need to deal with is that the shape vector depends on the font family, so the user of the library would need to precompute the shape vectors with the input font family. The sampling circles, internal and external, would likely need to be positioned differently for different font families. It's not obvious to me how a user of the library would go about that. There'd probably need to be some tool for that (I have a script to generate the shape vectors with a hardcoded link to a font in the website repository).
alexharri
·6 bulan yang lalu·discuss
I did actually try out various alphabets e.g. Cyrillic, Greek and symbols (e.g. box drawing symbols), but ended up removing them: https://github.com/alexharri/website/commit/d969ef839

Using only ASCII felt more in the "spirit" of the post and reduced scope (which is always good)
alexharri
·6 bulan yang lalu·discuss
Looks very cool! Thanks for sharing.

The resulting ASCII looks dithered, with sequences like e.g. :-:-:-:-:. I'd guess that it's an intentional effect since a flat surface would naturally repeat the same character, right? Where does the dithering come from?
alexharri
·6 bulan yang lalu·discuss
Just pushed a fix, should be live in a minute or two, thanks again!
alexharri
·6 bulan yang lalu·discuss
Good catch, thanks! I’ll push a fix once I’m home
alexharri
·6 bulan yang lalu·discuss
Yeah, this is good to point out. The primary constraint I was working around was "this needs to run at a smooth 60FPS on mobile devices" which limits the type and amount of work one can do on each frame.

I'd probably arrive at a very different solution if coming at this from a "you've got infinite compute resources, maximize quality" angle.
alexharri
·6 bulan yang lalu·discuss
Author here. There isn't a library around this yet, but the source code for the blog is open source (MIT licensed): https://github.com/alexharri/website

The code for this post is all in PR #15 if you want to take a look.
alexharri
·6 bulan yang lalu·discuss
Happy New Year from Reykjavík, Iceland!