Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mabster
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
61.
▲
by
mabster
1y ago
But it's this and many other features of C/C++ that make it faster than Java. C/C++ developers really don't want to "pay" for something for safety. Though, I really like the _mm_undefined_ps() intrinsics for SS
62.
▲
by
mabster
1y ago
If m_fBladeAngle is really large (>2.2e8 back of the envelope), the subtraction will have no effect, and that would be an infinite loop.
63.
▲
by
mabster
1y ago
Best change ever, that. Now it would also be nice if sets were ordered too.
64.
▲
by
mabster
1y ago
When I was doing gamedev about 5 years ago, we were still debugging with optimisation on. You get a class of bugs just from running in lower frame rates that don't happen in release.
65.
▲
by
mabster
1y ago
For the range reduction, I've always been a fan of using revolutions rather than radians as the angle measure as you can just extract fractional bits to range reduce. Note that this is at the cost of a more complicated calculus. I can&
66.
▲
by
mabster
1y ago
I rage quit the game several times before it finally clicked. The realisation was that "wait, Link is a coward!". I then avoided most battle encounters and spent most of my time just exploring.
67.
▲
by
mabster
1y ago
Yeah that's fair enough, and I've lived with it because of how good MyPy is. But I always end with weird variable names like uuids_as_list as a result!
68.
▲
by
mabster
1y ago
We were using Luajit with our own extensions with our own binding mechanisms that included automatic translation of indices. And we had A LOT of bindings. There was some "fun" there. Luajit C functions uses space indentation that
69.
▲
by
mabster
1y ago
My big Lua codebase was a gamedev codebase, haha!
70.
▲
by
mabster
1y ago
I have mixed feelings about Java. It's a solid feature set, and I really love how InterruptedException was always a thing, so you can generally terminate a thread and it works (a lot of languages don't do this right). I love check
71.
▲
by
mabster
1y ago
The thing I find annoying with MyPt is trying to tell it I'm doing variable shadowing. E.g. X is a list of strings Translate X to a list of indices Translate X back to a list of strings. In that paragraph the input and output types are
72.
▲
by
mabster
1y ago
When I started, the culture was already engineered to prevent this reluctance. You would hear "the code is fragile, it's going to break. Noone will shout at you for that." This was great. But I would prefer to just not have t
73.
▲
by
mabster
1y ago
I would argue that machine code is typed, but this will be up to interpretation. I.e. you can add two 32 but floating point numbers or two 16 bit integers or store an 8 bit value. It's just doesn't require you to purposefully type
74.
▲
by
mabster
1y ago
I guess I mean both. In that you can take something dynamically typed and add type definitions to make it more typed over time. JavaScript would not be what I'm talking about without the existence of Typescript.
75.
▲
by
mabster
1y ago
To extend on this: There was always this implied impression that the original developers were hot because they got stuff up and running really quickly and that all the newer developers were lukewarm because they weren't getting stuff h
76.
▲
by
mabster
1y ago
With dynamically typed languages I feel it's better to wait until you've tried to maintain the code for a while before you consider the languages effectiveness. I had to maintain a very large Lua codebase that has been active for
77.
▲
by
mabster
2y ago
I loved and really miss the cell. It did take quite a bit of work to shuffle things in and out of the SPUs correctly (so yeah, it took much longer to write code and greater care), but it really churned through data. We had a generic job mec
78.
▲
by
mabster
2y ago
Agreed. It was well written. The focus wasn't on the exact timeline and facts of the situation. It was on what it felt like as he read the piece.
79.
▲
by
mabster
2y ago
FYI, Hackers Delight uses a slight variation of Lemire's. He multiplies by 19/64 (so the divisor is a shift) and has the highest integer at the end of his table (i.e. 2^64 - 1). He also uses a shift instead of a conditional, so hi
80.
▲
by
mabster
2y ago
I was saying the exact same thing about how I don't understand why people get offended when they have to transcribe their name to use Hanzi! We should have a world vote to settle which alphabet we use.
81.
▲
by
mabster
2y ago
I wrote a similar TSR (Terminate and Stay Resident) program that would reboot the machine if the letter E was typed. We had a few of us at school always messing with each other haha
82.
▲
by
mabster
2y ago
And 3. Off by one errors.
83.
▲
by
mabster
2y ago
I'm not going to speak for Linux, but on Mac the Finder is annoying enough that I ended up using CLI for file manipulation (ranger).
84.
▲
by
mabster
2y ago
I started learning Korean but never really got the far. But, straight after learning Hangul you get into sound mixing ( https://www.missellykorean.com/korean-sound-change-rules-pdf... ). Trust humans to invent something simp
85.
▲
by
mabster
2y ago
Even knowing that the software exists isn't enough. You have to learn how to use the thing.
86.
▲
by
mabster
2y ago
It's not clear from that page nor the GitHub repo whether they are using decimal floating point underneath? It's one of the nicer things when using a calculator over something like Python.
87.
▲
by
mabster
2y ago
Maybe we just try take the good and leave the bad when we borrow from previous societies?
88.
▲
by
mabster
2y ago
I agree except for any emphasis on taking a load off the medical system. That people with terrible quality of life have the option is a good thing. It should be available for full autonomy. I just don't want a case of any pressures to
89.
▲
by
mabster
2y ago
For anyone looking at knives (and other culinary tools), have a look at Kappabashi in Tokyo. There's a lot of stores there.
90.
▲
by
mabster
2y ago
I think the selection is about the same, but it's cheaper.
More ›