Viewing profile — fredrikholm
fredrikholm
HN member- Joined
- Thu, Oct 08, 2020, 10:04 AM UTC
- HN karma
- 1,357
- Public activity
- 366 items
- HN profile
- View on Hacker News ↗
About fredrikholm
Email:
I do not own any hosting service. If you're wanting to contact me for this reason, I'm not the Fredrik Holmqvist you're looking for.
fredrik.d.holmqvist@gmail.com
Recent public activity
-
comment
Comment #49256404
> 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.…
-
comment
Comment #49255860
> 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, decr…
-
comment
Comment #48457546
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 transformatio…
-
comment
Comment #48408699
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…
-
comment
Comment #48398168
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 n…
-
comment
Comment #48395361
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…
-
comment
Comment #48369023
> 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 m…
-
comment
Comment #48294416
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…
-
comment
Comment #48264419
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 …
-
comment
Comment #47736584
Having to debug the build system to your build system is something else.
-
comment
Comment #47715744
> 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 …
-
comment
Comment #47620388
> 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 resta…
-
comment
Comment #47613794
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 cod…
-
comment
Comment #47597959
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 du…
-
comment
Comment #47540933
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 se…
-
comment
Comment #47500115
> 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 w…
-
comment
Comment #47218957
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 w…
-
comment
Comment #47012945
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 maintaini…
-
comment
Comment #47002504
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 …
-
comment
Comment #46934081
Hey stop it with the ad hominems!
-
comment
Comment #46780064
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 …
-
comment
Comment #46702176
> 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, i…
-
comment
Comment #46526004
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.
-
comment
Comment #46480946
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 introducti…
-
comment
Comment #46286384
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 t…