Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vgel
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
vgel
1y ago
It's less calibrated but still useful, yea
2.
▲
by
vgel
2y ago
Reading the transcript of Stalin, Molotov, etc's conversation with Eisenstein was really interesting. Even if you disagree with their analysis and what they're doing, it's clear they know the period very well--it's hard
3.
▲
by
vgel
3y ago
Thank you for making it free! I've used it on my blog ( https://vgel.me ) forever, since back before I ever would've paid for analytics, and it's been rock-solid the whole time. Some of the most "set it and for
4.
▲
by
vgel
3y ago
Oh, we already sequenced it awhile back. As for physical media, that's not exactly what happened... https://www.ncbi.nlm.nih.gov/nuccore/NC_001611.1?report=fast...
5.
▲
I made a transformer by hand (no training)
(vgel.me)
3 points
by
vgel
3y ago
|
0 comments
6.
▲
by
vgel
3y ago
Oh, interesting--I remember messing around with flags on the stack but was having issues with the WASM analyzer (it doesn't like possible inconsistencies with the number of parameters left on the stack between blocks). I think your sol
7.
▲
by
vgel
3y ago
Looks like Schism ( https://github.com/schism-lang/schism ) got part of the way there, but it unfortunately seems to be dead.
8.
▲
by
vgel
3y ago
I think because it's ambiguous with unary plus (a = +b), since C isn't supposed to have significant whitespace in most circumstances.
9.
▲
by
vgel
3y ago
Oh, that's neat (funny that they skipped out on similar things to me, like GOTO and structs :-) I didn't see a link to the source in the article, but this seems to be it: https://sourceforge.net/p/tiny-pascal&
10.
▲
by
vgel
3y ago
Maybe not the language choice, but the codegen of this compiler is terrible because of the single-pass shortcuts (for example, it unconditionally loads the result of all assignment operations back to the stack just in case you want to w
11.
▲
by
vgel
3y ago
Well, I set the 500 line budget up front, and that was really as much as I could fit with reasonable formatting. I'll be excited to see your 500 line C compiler supporting all those features once it's done ;-)
12.
▲
by
vgel
3y ago
I actually almost made it a C-- ( https://www.cs.tufts.edu/~nr/c--/download/ppdp.pdf ) compiler, but IIRC the `goto`s made me go with the regular C subset instead.
13.
▲
by
vgel
3y ago
I think the code is fairly readable! It's formatted with Black (and therefore limited to reasonable line lengths) and well-commented. IMO, being under X lines of code is part of the readability—10,000 lines of code is hard to approac
14.
▲
by
vgel
3y ago
Ooh, this is cool! Using WASM let me avoid writing a register allocator (though I probably would have just used the stack if I had targeted x86/ARM since I wasn't going for speed).
15.
▲
by
vgel
3y ago
I'm not sure, haven't looked at the codebases of old compilers in a long time. Definitely a lot of the language is pretty amenable to it, especially if you have unstructured jumps for e.g. the for advancement statement. I had a di
16.
▲
by
vgel
3y ago
Oh, C4 is neat—technically it has me beat since it also implements the VM to run the code—though their formatting definitely takes advantage of long lines :-)
17.
▲
Writing a C compiler in 500 lines of Python
(vgel.me)
510 points
by
vgel
3y ago
|
165 comments
18.
▲
by
vgel
3y ago
A lot of the reasons for decline cited in the article feel fluffy. "The best washer/dryer depends on who you are"? The Wirecutter always gave alternatives and "upgrade picks". "People prefer influencers"?
19.
▲
by
vgel
3y ago
We had superhuman diagnosis systems 50 years ago! > Mycin was never actually used in practice. This wasn't because of any weakness in its performance - in tests it outperformed members of the Stanford medical school. It was as much
20.
▲
by
vgel
3y ago
> Swing dancing Swing It Seattle? Me and my wife go to the wednesday dances :-)
21.
▲
Does GPT-4 think better in JavaScript?
(vgel.me)
2 points
by
vgel
3y ago
|
0 comments
22.
▲
by
vgel
3y ago
Yeah, exactly, but to enjoy the small game at that point, I think you need to have an appreciation for small games. I guess it's possible to enjoy a small game as only the core of an imagined larger game, but... it's not how I t
23.
▲
by
vgel
3y ago
Some people, yeah. But a lot of people only enjoy the game because of complex systems that were added later: redstone, slimeblock machines, building complex farms, gear progression via material and enchantment upgrades, exploring an infinit
24.
▲
by
vgel
3y ago
I think a lot of it is what types of games or genres you're interested in. Certain games / genres of games work better as small games than others. Like I've worked on a lot of small games ( https://vgel.itch.io ),
25.
▲
by
vgel
3y ago
I still use an iPhone 6s—typing on it right now in fact—and the web has definitely moved on past these old devices. When I got it, it worked perfectly. Now lots of websites will run out of memory and crash the tab after a bit (e.g. new Redd
26.
▲
by
vgel
3y ago
I think that kobold is cute!
27.
▲
by
vgel
4y ago
Oh yeah, absolutely. Just not something I'd use for, e.g., mortgages where denying someone unfairly could lead to a lawsuit.
28.
▲
by
vgel
4y ago
But note that just because a model says it's using chain-of-thought or tools to come to a certain conclusion, doesn't necessarily mean that it is: https://vgel.me/posts/tools-not-needed/
29.
▲
by
vgel
4y ago
Oh, this is really cool. Thanks!
30.
▲
by
vgel
4y ago
Microsoft bought Mojang in 2014 and forced people to merge their Minecraft accounts into Microsoft accounts in 2021. Microsoft bought Github in 2018. We'll see what happens in 2025...
More ›