Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
amitp
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
amitp
6d ago
I think it'd be reasonable to keep uber, but I had dropped it because it wasn't in /usr/share/dict/words on Linux or Mac. That was a quick&dirty way to filter out proper names, but it misses some other word
2.
▲
by
amitp
6d ago
I added the word list to the main article. The rule is for two words, ubiquitous and ubiquity, so maybe the rule should be tightened to word.startswith("ubiqu"). Uber and Ubuntu are not in my word list (which attempts to exclude p
3.
▲
by
amitp
6d ago
*hones
4.
▲
by
amitp
6d ago
Good catch — "homes" wasn't in my /usr/share/dict/words for some reason so I missed this case!
5.
▲
by
amitp
6d ago
That is my favorite podcast of all time!
6.
▲
by
amitp
1mo ago
Bookmarked! I love the interactive diagrams! I love that you have a touch-point larger than the drag handle. And I'm impressed that the label placement takes care to avoid the axes. Some feedback: You have vector s in blue, and then ve
7.
▲
by
amitp
1mo ago
Thanks — yes, I'm still struggling to find a good way to explain the colors. The landmark is green. The blue tiles are the savings — the difference between using the landmark and not using it. I'll work on a different wording or m
8.
▲
by
amitp
1mo ago
Yes, it's a bit weird! There are also optimizations that do what you describe, with landmarks along the way, but at least at the time I learned about it, road map pathfinding was using landmarks behind the target.
9.
▲
by
amitp
2mo ago
Good catch. I was thinking people would read that after they have moved the green L but I should handle both before and after moving L.
10.
▲
by
amitp
2mo ago
The landmark data can be calculated in a background thread. For DF I imagine you'd have a background thread running all the time, updating one landmark every so often. But what happens if you look for a path before the landmark data is
11.
▲
by
amitp
5mo ago
I found https://www.youtube.com/watch?v=a_rAXF_btvE to be more balanced than the LTT video, but I think it mostly depends on your expectations of the cameras. The videos themselves are stored locally, not in the cloud. But
12.
▲
by
amitp
6mo ago
Slug preserves the vector shapes. MSDF first converts to a texture, which can lose small details. How much depends on the size of your texture and the complexity of the font. I expect MSDF will never look better than Slug. However, MSDF
13.
▲
by
amitp
7mo ago
Thanks!
14.
▲
by
amitp
7mo ago
I originally had that near the top but in one of the rewrites I moved the papers to the end — https://www.redblobgames.com/articles/sdf-fonts/#appendix
15.
▲
by
amitp
7mo ago
Some of these banks are ridiculous. HDFC bank insists that I send them my photo id, address, phone number, and my Indian id number to prove that I'm not their customer. I tried explaining that I don't have an Indian id number beca
16.
▲
by
amitp
9mo ago
Also, emacs M-x from 1980 or maybe TECO's extended command from 1978 (learned these from Bobbie Chen who wrote https://digitalseams.com/blog/why-do-sublime-text-and-vs-cod... )
17.
▲
by
amitp
10mo ago
Nice interview! I didn't realize there was inspiration from Theme Park [1], a game from Demis Hassabis (DeepMind). [1] https://en.wikipedia.org/wiki/Theme_Park_(video_game)
18.
▲
by
amitp
1y ago
BTW in the next article the author goes into wind, evaporation, orographic rainfall, rivers, biomes. But not ocean current or tectonic activity. There's a different blog series that does go into plate tectonics: https://froz
19.
▲
by
amitp
1y ago
Love it! For typescript, esbuild has been my favorite tool for turning typescript into browser-readable js, and then I check type errors separately using the ide plugin.
20.
▲
by
amitp
1y ago
I love having comments on my site/blog. I learn so much from some of them. For example, on my hexagon page, someone said there's a connection with "Eisenstein integers". I had never heard of them, and they were fun to
21.
▲
by
amitp
1y ago
Suggestion: canvas.addEventListener('dragstart', (e) => { e.preventDefault(); } ); At least on Firefox/Mac, sometimes while dragging it "picks up" the image to drag it. This should prevent that.
22.
▲
by
amitp
1y ago
BTW this author also has a fantastic YouTube channel in which he live-draws geological diagrams with MS Paint https://www.youtube.com/@TheGeoModels
23.
▲
by
amitp
1y ago
Agree. Weatherspark is great too — https://weatherspark.com/map?pageType=4&yearNumber=2025&ids=... Each of those icons is a full year of weather data. Left to right is Jan to Dec. Bottom to top is the hours of the
24.
▲
by
amitp
1y ago
There's a version of Facebook that only shows things from your friends, and not "suggested" or "reels" etc.: https://www.facebook.com/?filter=all&sk=h_chr (it still shows ads but not the other
25.
▲
by
amitp
2y ago
With the older tree-sitter package[1], I was able to use it with the existing major modes. The new built-in emacs tree-sitter seems to be more ambitious, involving new major modes. [1] https://emacs-tree-sitter.github.io/
26.
▲
by
amitp
2y ago
(author here) I agree, the `type` example could be done with regular expressions. In part 2 I'm planning to describe the real reason I was using tree-sitter here. I wanted to highlight certain combinations of operations based on the na
27.
▲
by
amitp
2y ago
Cool! A large part of the reason I'm using these other services instead of hosting my own is because of mobile apps + browser extensions.
28.
▲
by
amitp
2y ago
Fantastic article! I've been trying to figure out antialiasing for MSDF fonts, and have run across some claims: 1. antialiasing should be done in linear rgb space instead of srgb space [1] [2] 2. because of the lack of (1) for decades
29.
▲
by
amitp
2y ago
I love this page. Thank you. I bookmarked it in 2018 but still haven't used it, doh! https://wwwtyro.net/2019/11/18/instanced-lines.html is also nice.
30.
▲
by
amitp
2y ago
Thank you for Grapher! I love Our World in Data.
More ›