Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mabster
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
35 ms
·
31.
▲
by
mabster
1y ago
For my day job I'm either "Getting things done" or Zettelkasten anyway because it's more about retrieval than memory. But for languages, SRS is great. And I'm also glad I memorised a whole bunch of math formulas way
32.
▲
by
mabster
1y ago
Totally expected the "desirable difficulties". For SRS to work effectively it has to "be yours" and that only works effectively if you're building your own cards. With Duolingo it kind of encourage small bursts rath
33.
▲
by
mabster
1y ago
Nice write up! I've got a soroban but never got around to learning it. Definitely should pick that up again. When I was at Uni (electrical engineering) I noticed that the Chinese students would reach for their calculator way less than
34.
▲
by
mabster
1y ago
We used to learn all this stuff by word of mouth back in the day, and it's been interesting watching young developers "rediscover" these things on YouTube, etc. Its great because now these techniques are part of public discou
35.
▲
by
mabster
1y ago
I particularly don't like ternaries with side-effects or control flow. In particular with control flow I prefer it always tabbed in otherwise sometimes I miss it -- if statements are much better for this.
36.
▲
by
mabster
1y ago
Yeah understood. In electronics: Resistor values are Gaussian but they test and bucket the resistors so that they can be treated as tolerances for similar reasons.
37.
▲
by
mabster
1y ago
Yeah it's probably field specific and I guess Gaussian-based uncertainty would be more about statistical sampling rather than tolerances. I've noticed that if arithmetic is being done on it it's almost certainly Gaussian. I j
38.
▲
by
mabster
1y ago
Something that's bugged me about this notation though is that sometimes it means "cannot exceed the bounds" and sometimes it means "only exceeds the bounds 10% of the time"
39.
▲
by
mabster
1y ago
My favourite were older embedded systems where 0 was an address you actually do interact with. So for some portion of the code you WANT null pointer access. I can't remember the details but I do remember jumping to null to reset the sy
40.
▲
by
mabster
1y ago
"Alive / dead / iffy" still seems to hold up.
41.
▲
by
mabster
1y ago
Just a big thanks from someone lurking on your blog for a while now. Every article has been fascinating deep insights!
42.
▲
by
mabster
1y ago
It's been a while since I've done this stuff, but VHDL seemed like this to me: that generally if it compiles, it synthesises. I really battled with Verilog!
43.
▲
by
mabster
1y ago
On the scheduling end, I'm surprised the article didn't mention https://github.com/fasiha/ebisu which uses Bayesian statistics. When I was studying Japanese, I was thinking how it's always best to learn
44.
▲
by
mabster
1y ago
I had kind of written off using types because of the complexity of physical units, so I will be having a look at that! My biggest problem has been people not specifying their units. On our own code end I'm constantly getting people to
45.
▲
by
mabster
1y ago
Totally missed that, thanks! I don't know the library very well, but as far as I can tell they don't support .xyxy style sizzling with the SIMD Vec4 type. They're using the same "proxy object" method I was doing for
46.
▲
by
mabster
1y ago
Unfortunately GLM doesn't use SIMD instructions. I really wanted something that's compatible with shaders and fast so we can quickly swap between CPU and GPU because it was time consuming to port the code. I've been down this
47.
▲
by
mabster
1y ago
I haven't done a lot of shader programming, just modified stuff occasionally. But one thing I miss in C++ compared to shaders is all the vector sizzling, like v.yxyx. I couldn't really see how they handle vectors but might have mi
48.
▲
by
mabster
1y ago
As a low level performance guy I trust the compiler nowadays, especially with deep instruction pipelines. The compiler is beatable - a lot of the decisions are heuristic - but it takes a lot of work to beat it.
49.
▲
by
mabster
1y ago
I started my career in assembly and it's reduced over time. Towards the end of the gamedev work I was still reading a lot of assembly but no longer writing it (using intrinsics instead). It was definitely a lot slower to write. But the
50.
▲
by
mabster
1y ago
I wasn't getting RSI per se, more like my arms were fatigued after a day of development. I did the pricey split keyboard thing. One advantage there is that my vertical mouse sits between the keyboard halves which means I don't hav
51.
▲
by
mabster
1y ago
In Australia we used to have a few arcades dotted around the place but I haven't walked past one in a long time. But whenever I go to Japan I'm amazed at how vibrant their arcade scene is. It seems much more communal as well - go
52.
▲
by
mabster
1y ago
1. This problem is introduced by increasing the tab width, so this solution is basically "don't do that". 2. Line wrapping on something like C where you have braces is okay, but not with something like Python where the code n
53.
▲
by
mabster
1y ago
I would agree, except that only deals with the left hand side of the code. We are also making decisions on the right hand side of the code to deal with lime width as well which only really works if all developers have the same tab size. Now
54.
▲
by
mabster
1y ago
A big thank you! Blame history being correct is something i care quite a bit about and I always add one of these files when I do formatting changes. I think I'm probably the only developer on my teams with this configured on though hah
55.
▲
by
mabster
1y ago
I'm not knocking indie development, the scene is very very vibrant. But indies don't typically push the hardware to its limits the same way. And Java was a perfectly good choice of language for Notch for the same reasons. I don&#x
56.
▲
by
mabster
1y ago
We were using a modified Luajit, in assembly, with a bit of other assembly dotted around the place. That assembly takes a long time to write (to beat a modern C++ compiler). Then we had C++ for all our low level code and Lua for gameplay. W
57.
▲
by
mabster
1y ago
Minecraft was Indie then. And anyway, it's now in C++.
58.
▲
by
mabster
1y ago
I think the choice of C++ vs JVM depends on your project. If you're not using the benefits of "unsafe" languages then it probably doesn't matter. But if you are after performance how do do the following in Java? - Build
59.
▲
by
mabster
1y ago
I'm in that camp. After shifting from commercial gamedev I've been itching to build something. I kept thinking "I wanna build a game" but couldn't really think what that came is. Then realised "Actually it'
60.
▲
by
mabster
1y ago
Thanks for the references - that was interesting reading, particularly that initialisation can be good for instruction pipelining. A trick we were using with SSE was something like __m128 zero = _mm_undefined_ps(); zero = _mm_xor_ps(zero, z
More ›