Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
fredrikholm
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
fredrikholm
12d ago
I found Grim Fandango in a pile of discounted games as a tween in the 2000s. There was a cool skeleton in a suit on the front cover, so I bought it based on that. Even though I didn't understand most references and sarcasm, few games h
2.
▲
by
fredrikholm
1mo ago
This is a recent degradation; they've been writing blog entries for years. As a non native English speaker I can also attest to this trade being extremely demanding of English fluency: > public static void DoTheThing(Configuration
3.
▲
by
fredrikholm
2mo ago
> And if we really want to be nitpicky, and concentrating on the "reverse"-part of your statement, then even Balkan countries shine, as they literally managed to reverse the trend. That same bump is now reversing and the genera
4.
▲
by
fredrikholm
2mo ago
> Everybody is asking why birth rates plummet. It’s simple. Having a family costs a fuckton of money. It's a factor, it's not the only factor. Decrease in teenage pregnancies, decrease in alcohol consumption, contraception an
5.
▲
by
fredrikholm
4mo ago
Continuations predate transducers by some ~40 years and are mostly used as a means of control flow, but yes they are very similar. Transducers are specialized to data transformation pipelines, continuations are a form of control flow from w
6.
▲
by
fredrikholm
4mo ago
Once allocators in general click, memory management in C becomes a total breeze. Combined with typed fat pointers (slices and strings), typed hashmaps and stack-trace-assertions, C in general becomes quite nice. The rest is compiler flags.
7.
▲
by
fredrikholm
4mo ago
The famous JAMA cohort study[0] of 120k people showed some 5x difference in all cause mortality and morbidity between sedentary and highly active individuals, showing effectively no upper bound. The NHANES study[1] is another one that showe
8.
▲
by
fredrikholm
4mo ago
It's important to factor in lifestyle factors here. By the time you hit 40, you've accumulated ~20 years of adult-life habits. For a lot of people, that lifestyle is very sedentary, missing most dietary recommendations (insufficie
9.
▲
by
fredrikholm
4mo ago
> very abstract things A C macro with literals that lacks referential transparency: #define MULTIPLY(x, y) x * y int result = MULTIPLY(2 + 3, 4); // 14 Not knowing what something means does not make it bad, which is wh
10.
▲
by
fredrikholm
4mo ago
Agreed, I even find it surprisingly ergonomic. Thinking of data as offsets into memory is unusual coming from almost every other language, but once you grokk it it's actually quite nice. I love C more than I should.
11.
▲
by
fredrikholm
4mo ago
I love that book so much, it helped me grokk the more lambda calculus aspect of FP more than anything. A few chapters in I belly laughed when it dawned on me that it's going to be recursion until the cows come home. The authors insiste
12.
▲
by
fredrikholm
6mo ago
Having to debug the build system to your build system is something else.
13.
▲
by
fredrikholm
6mo ago
> When I observe normies they don't seem to care. They'll force and abuse things all the time. I did wonder if it was part of my predisposition towards engineering. Caring implies doing the right thing, which you can't aff
14.
▲
by
fredrikholm
6mo ago
> You don't need a repl for this workflow and it can be easily implemented in any language. `ls *.MY_LANG | entr -c run.sh` You get feedback whenever you save the file. As in restarting the entire program and re-running every subseq
15.
▲
by
fredrikholm
6mo ago
You evaulate code within your editor against the REPL, seeing the output in the same window you're writing in (perhaps in a different buffer). The cycle is: 1. Write production code. 2. Write some dummy code in the same file (fak
16.
▲
by
fredrikholm
6mo ago
If you don't mind me asking, how old are you, and how did this progress? I'm in my mid thirties and am noticing some minor deterioration, but I'm writing it off to loss of sleep due to having small kids. My curiosity is if th
17.
▲
by
fredrikholm
6mo ago
Thank you for great articles and what seems to be a very nice Lisp! I've written so many toy Lisps over the years that I've lost count, always fun to see when they are done more seriously. A suggestion to the website index, could
18.
▲
by
fredrikholm
6mo ago
> too many entries, most of which seem tuned to cheating benchmarks Even for entries that didn't cheat, the code was sometimes unidiomatic in the sense that "real programmers can write Fortran in any language". This[0] art
19.
▲
by
fredrikholm
7mo ago
Learning basic Levantine Arabic has brought me more smiles and free meals than I can count. It's been deeply healing in challenging the negative narratives surrounding these very warm people.
20.
▲
by
fredrikholm
8mo ago
If you only had two tilesets, sure. This scales with square of n, so in a real game you're looking at a 4000-8000 long if-else chain. You're going to spend 100x more time maintaining that disaster than you'd have learning a (
21.
▲
by
fredrikholm
8mo ago
Tiling sprites is a wonderful example of something that starts off relatively simple and then explodes into all kinds of interesting headaches. In the beginning, you're looking up a set of UVs in a table indexed by some mask value. In
22.
▲
by
fredrikholm
8mo ago
Hey stop it with the ad hominems!
23.
▲
by
fredrikholm
8mo ago
And with header only libraries (like stb) its even less than that. I primarily write C nowadays to regain sanity from doing my day job, and the fact that there is zero bit rot and setup/fixing/middling to get things running is in
24.
▲
by
fredrikholm
9mo ago
> An entry fee that is reimbursed if the bug turns out to matter would stop this, real quick. I refer to this as the Notion-to-Confluence cost border. When Notion first came out, it was snappy and easy to use. Creating a page being essen
25.
▲
by
fredrikholm
9mo ago
The omission of quotations in the title triggered my Lisp-damaged brain to man the walls, only to immediately be met with Ruby and Scheme examples. False alarm.
26.
▲
by
fredrikholm
9mo ago
https://craftinginterpreters.com/introduction.html AST interpreter in Java from scratch, followed by the same language in a tight bytecode VM in C. Great book; very good introduction to the subject.
27.
▲
by
fredrikholm
10mo ago
And nothing says they weren't thinking about the problem when it happened. I've had a lot of "aha" moments not sitting by my desk, but that doesn't mean that I wasn't thinking of the problem. When people say th
28.
▲
by
fredrikholm
10mo ago
As an adult you have the luxury of not living in a false dichotomy where the only two options are VR or fighting. As a parent you have the responsibility of spending time with the kids when they're young. You can watch your shows later
29.
▲
by
fredrikholm
10mo ago
unable to interact with other people just give it to them and use XR glasses for yourself
30.
▲
by
fredrikholm
11mo ago
We do that in Sweden if the kids made a mess. Same in Denmark, Norway, Finland, Netherlands and I'd assume Japan and Korea as well. What's so bad about it? We had a great meal at [place], might as well help the overwhelmed person
More ›