Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
amitp
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
91.
▲
by
amitp
4y ago
Vue's is especially nice in that it handles deep and imperative updates. For example: you have an observable foo, and it has an array bar. You can read foo.bar directly instead of needing a wrapper getter function. You can also update
92.
▲
by
amitp
4y ago
I've been helping test https://gasgame.net/ . It's pretty early in development and somewhat unpolished, but it seems you haven't gotten many replies here. Desktop, multiplayer, no mobile support, top-down tan
93.
▲
by
amitp
4y ago
Take a look at what they've done. The basic idea is that the video is "on rails", moving forward on its own, but at any point you can pause and move around the objects from the video. Then you can go back to the video and it
94.
▲
by
amitp
4y ago
I think that's a good shortcut. Converting from axis-angle to quaternions is similar to switching from an angle to a vector (cos angle, sin angle). However I didn't really grok quaternions until looking at geometric algebra, and I
95.
▲
by
amitp
5y ago
Corfu might be worth a look, as a lighter weight alternative to company mode: https://kristofferbalintona.me/posts/corfu-kind-icon-and-cor...
96.
▲
by
amitp
5y ago
Interesting! I've wondered about that. (Also: hi again! we seem to have so many shared interests over the decades — bbs, usenet, gamedev, c2 wiki, programming languages — that we should meet up someday)
97.
▲
by
amitp
5y ago
BTW the accused reporter is an occasional HN user who maintains a blog[1] and wiki[2] about BBS software. He started that site after seeing that Wikipedia was deleting pages about BBS software[3]. [1] https://breakintochat.com&#x
98.
▲
by
amitp
5y ago
Screeps is fascinating but I never got motivated to play it. :( I use the Stanford pages [1] to link to interesting papers and I use Red Blob Games to explore interactive ways of presenting topics. The most recent update to the Stanford pag
99.
▲
by
amitp
5y ago
Thank you!
100.
▲
by
amitp
5y ago
I was amazed by how bright this page could get, on both Macbook and iPhone — https://kidi.ng/wanna-see-a-whiter-white/ — and I want to figure out how to use this superwhite on my interactive tutorials. But as far as I
101.
▲
by
amitp
5y ago
That's more than most of my blog posts :-) Blogger says I have "20 followers" but some people subscribe via RSS. I would normally get ~50 views and ~0 comments.
102.
▲
by
amitp
5y ago
It is similar in topic but not written in reaction to. I had written the post almost a year ago and posted it a few days ago.
103.
▲
by
amitp
5y ago
I'm using Comic Mono in my terminal and Iosevka in my editor but your comment reminded me that I can pick and choose individual characters — look at all the drop-down boxes on section 02 of https://typeof.net/Iosevka&
104.
▲
by
amitp
5y ago
That's more of an intermediate level; I think https://www.redblobgames.com/maps/terrain-from-noise/ is a simpler place to get started. For concepts ("frequency", "octaves", etc.), see htt
105.
▲
by
amitp
5y ago
Yes. I used "savings" in the title and first paragraph for SEO reasons. This blog post is from 2006, when google didn't change words into other words without asking, so it was useful to use the variant that people search for
106.
▲
by
amitp
5y ago
Same here — Hammurabi and King were what got me started writing games. I learned so much from experimenting with that core loop, and it got met interested in math, economics, and lots of other subjects. Fur Trader, Civil War, and Combat a
107.
▲
by
amitp
5y ago
This looks beautiful!
108.
▲
by
amitp
5y ago
For a "cannot unsee" demo of Simplex Noise in 2d, see the animation on the first row [1]. Simplex Noise is a light/dark pattern in each hexagon. [1]: https://www.redblobgames.com/x/2107-webgl-noise/w
109.
▲
by
amitp
5y ago
I agree. I've put a lot of work into building these types of visualizations (Red Blob Games) and I've been able to come up with useful visualizations for only some of the problems I work on, and for a small subset of the data stru
110.
▲
by
amitp
5y ago
Yes, xor can be used as part of this — see the paper[1] and code[2]. The idea is that you're generating a random shuffle of a sequence, but you can do it in a way that doesn't require storing the entire shuffled sequence. You
111.
▲
by
amitp
6y ago
My life is also in Emacs. I'm using it all the time on the new Macbooks and it's working great for me (gui mode, not terminal mode). There are two major versions of Emacs on Mac. There's the "NextStep" version, whic
112.
▲
by
amitp
6y ago
https://gtoolkit.com/ looks different from most IDEs I've seen, but I haven't tried it yet.
113.
▲
by
amitp
6y ago
Also in nature: there is a giant hexagon on Saturn! http://www-cs-students.stanford.edu/~amitp/diagrams/saturn-h...
114.
▲
by
amitp
6y ago
Yes, old school web! A few of the others I like: https://faculty.evansville.edu/ck6/tcenters/ ; http://paulbourke.net/ ; https://pomax.github.io/bezierinfo/ ; https:/&#
115.
▲
by
amitp
6y ago
Hexagons are bestagons!
116.
▲
by
amitp
6y ago
A surprise to be on HN! Tech notes for the curious: I started the page in 2013 based on notes I had been collecting for ~20 years before that. I update this reference page as I come up with better visualizations and explanations. The last m
117.
▲
by
amitp
6y ago
I use this approach too but it fails whenever there's any state in the elements. An example is input elements: function update() { let value = document.querySelector("input")?.valueAsNumber; document.querySelect
118.
▲
by
amitp
6y ago
The migration guide [1] lists breaking changes. If you use many Vue 2 libraries you'll want to wait until they're updated to Vue 3. (I reminds me of the Python situation where if you used lots of Python 2 libraries you'd writ
119.
▲
by
amitp
6y ago
Thank you! Glad to hear it!
120.
▲
by
amitp
6y ago
There are some gotchas when using sprites/images for hexagons. 1. The bounding boxes overlap, so you'll want to make sure that the sprites have transparent corners so that they don't overwrite what's in the next hexagon.
More ›