HN user

alexharri

1,074 karma

Website: https://alexharri.com GitHub: https://github.com/alexharri

Posts45
Comments19
View on HN
marijnhaverbeke.nl 16d ago

TypeScript's unknown type and type variance

alexharri
2pts0
www.seangoedecke.com 2mo ago

I use LLMs as a staff engineer in 2026

alexharri
11pts1
alexharri.com 6mo ago

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

alexharri
1353pts149
danilafe.com 6mo ago

Microfeatures I Love in Blogs and Personal Websites

alexharri
3pts0
tonsky.me 6mo ago

Personal Information

alexharri
3pts0
www.jenn.site 8mo ago

Rich Friend, Poor Friend (2022)

alexharri
3pts0
www.zerobanana.com 9mo ago

The Myth of Rational Design (2010)

alexharri
3pts1
www.flother.is 10mo ago

The Age of Greater Reykjavík

alexharri
2pts0
dynomight.net 10mo ago

Social dynamics of Bluetooth speakers (2022)

alexharri
1pts0
alexharri.com 11mo ago

Compressing Icelandic name declension patterns into a 3.27 kB trie

alexharri
240pts81
yosefk.com 1y ago

Do call yourself a programmer, and other career advice (2013)

alexharri
3pts0
www.seangoedecke.com 1y ago

Arguing point-by-point considered harmful

alexharri
2pts0
www.benkuhn.net 1y ago

Staring into the abyss as a core life skill (2022)

alexharri
1pts0
www.yalelawjournal.org 1y ago

Amazon's Antitrust Paradox (2017)

alexharri
3pts0
procreate.com 1y ago

AI is not our future

alexharri
235pts168
smarimccarthy.is 1y ago

The Icelandic Voting System (2024)

alexharri
143pts143
tratt.net 1y ago

Four Kinds of Optimisation (2023)

alexharri
41pts14
alexharri.com 1y ago

A flowing WebGL gradient, deconstructed

alexharri
222pts41
developer.chrome.com 1y ago

Animate to height: auto; (and other intrinsic sizing keywords) in CSS (2024)

alexharri
1pts0
linebender.org 1y ago

Curve Families

alexharri
13pts0
yosefk.com 1y ago

Efficiency is fundamentally at odds with elegance

alexharri
1pts0
alexharri.com 1y ago

Type assertions are not a substitute for non-null assertions

alexharri
1pts1
alexharri.com 1y ago

Sharing Changes, Visuals First

alexharri
1pts0
jakelazaroff.com 1y ago

My Modern CSS Reset

alexharri
12pts0
madebyevan.com 1y ago

CRDT: Fractional Indexing (2022)

alexharri
1pts0
alexharri.com 1y ago

Searching for and Navigating Git Commits

alexharri
2pts0
skamille.medium.com 1y ago

The Senior Shortcut

alexharri
1pts0
www.baldurbjarnason.com 1y ago

A note on estimated reading times

alexharri
3pts2
alexharri.com 1y ago

The web's clipboard, and how it stores data of different types

alexharri
273pts77
umferdin.is 2y ago

Umferdin.is: Traffic and Road Condition Information for Iceland

alexharri
3pts0

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).

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.

Hmm, good idea. There are names that have the exact same pronunciation yet have different patterns of declension, for example:

- Ástvaldur -> ur,,i,ar - Baldur -> ur,ur,ri,urs

The "aldur" ending is pronounced in the exact same manner, but applying the declension pattern of "Ástvaldur" to "Baldur" would yield:

- Baldur - Bald - Baldi - Baldar

The three last forms feel very wrong (I asked my partner to verify and she cringed).

Spoken Icelandic is surprisingly close to its written form. I wouldn't expect very different results for the trie if a "phonetic" version of names and their endings were used instead of their written forms

It would be good to cover more names for sure -- that's an ongoing process at DIM. Names are frequently added to the approved list of Icelandic names, so there's always going to be some lag.

I would not be confident enough myself to add the data myself since I'd probably be wrong a lot of the time. When reviewing the results for the top 100 unknown names I frequently got results that I thought _might_ be wrong, but I wasn't sure. For those, I looked up similar names in DIM to verify, and often thought "huh, I would not have declined those names like this". For that reason, I rely on the DIM data as the source of truth since it's maintained by experts on the language.

As a native Icelandic speaker, I have an intuition for how to decline names -- I don't really think about it consciously. I'd assume that for most people it's just pattern matching.

Native speakers very frequently decline names in ways that are not technically perfect but sound correct enough. For example, my name (Alex) should not be declined, but people frequently use the declension pattern (Alex, Alex, Alexi, Alexar).

There's some parallel to be drawn with how the compressed trie applies patterns that it's learned to names. That's at least how I thought about it when designing the library.

Hmm, good point. I’m abroad this week and don’t have a laptop, but I’ll look at adding an MIT licence to the shader itself when I’m home. (I don’t want the post contents to be MIT licensed, but the website code and examples should be)

Thanks for raising this

Thanks a lot! Yeah tons of work went into this post, I’ve been working on it since November. The shader itself was about 2-3 weeks of evenings to get the effect 90% of the way

Planes in 3D Space 2 years ago

I haven't heard of this before, I'd be interested in learning more about how this is useful. Do you know of a good resource to read more about this?

This post was intended as a source of information for developers who might want to implement vector networks in their own projects.

Back in 2018 I wanted to support vector networks in my animation editor project, but had a really hard time finding information. I didn't have a math or CS background, so just knowing what concepts to Google was somewhat of a brick wall. Googling "vector networks" didn't yield any useful results, because there weren't any resources discussing them (aside from marketing content from Figma). So in writing this post, I wanted to create the resource I needed back then.