Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mabster
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
91.
▲
by
mabster
2y ago
In most games I would suspect the tree doesn't fall. Philosophy bypassed!
92.
▲
by
mabster
2y ago
I still use C++ because of constexpr, templates, etc. But I've long given up on OOP (unless I have to).
93.
▲
by
mabster
2y ago
Terms like "range reduction" will definitely be loaded differently in different fields, so my bad. Yeah, maybe they don't by the sounds. I don't do much on GPUs nowadays, but I still find this stuff interesting. I'm
94.
▲
by
mabster
2y ago
Just for your information: when calculating trig functions, you first modulo by 2 pi (this is called range reduction). Then you calculate the function, usually as a polynomial approximation, maybe piecewise. But if it supports larger floats
95.
▲
by
mabster
2y ago
I couldn't find much information on those. I assume that they don't include range reduction?
96.
▲
by
mabster
2y ago
I still picture them as expensive. Things like trig functions are still very expensive.
97.
▲
by
mabster
2y ago
Our previous apartment was listed under the wrong postcode. Annoying for Uber Eats because they would get lost. Our current building is one of those 56-66 style buildings. Different service use a different number (e.g. postal is 56, gas is
98.
▲
by
mabster
2y ago
I don't code in JS very often, so there's that. Both sets of code were fine, but I understood the loop variant instantly, while it took me a bit longer with the FP code. As a side note: The only real JS I did was optimising some p
99.
▲
by
mabster
2y ago
The BBC used to call out the government, but yeah that has clearly changed. Australian ABC still does call out the government. In fact they were raided for reporting on the Afghan files. The politicians have threatened revoking the charter
100.
▲
by
mabster
2y ago
I've always felt this is fine, just as long as there are API calls to preload. Then on one screen you start preloading the next screens while the user is navigating your menus to hide all this latency as much as possible.
101.
▲
by
mabster
2y ago
In the "you're still going to have to wait for something" sense, sure. But the reason ECS exists is because the industry had to change our architecture when we moved to many core CPUs to take advantage. I'm battling to u
102.
▲
by
mabster
2y ago
It doesn't sound to me like the engines you dealt with use ECS, which are usually resolved with a job system (your work units and functors), but correct me if I'm wrong. The good job systems I've dealt with have their depende
103.
▲
by
mabster
2y ago
I missed that generation of consoles, so no hands on experience, but yeah it looks like they did the sorting for you on the GPU end. Nice!
104.
▲
by
mabster
2y ago
The game engines I've dealt with separate opaque and transparent geometry. It is generally good to render opaque geometry back to front to reduce overdraw, but not going so far as sorting the objects. We would do stuff like render the
105.
▲
by
mabster
2y ago
That's why I've always liked Java's take on this. Throw an InterruptedException and the thread is considered terminated once that has dropped all the way through. You can also defer the exception for some time if it takes tim
106.
▲
by
mabster
2y ago
My Japanese partner was saying that small businesses are complaining about these because apparently some machines that process banknotes are unable to detect them.
107.
▲
by
mabster
2y ago
I think we will get there in the end but it will be slow. When I was doing performances stuff: Intel was our main platform and memory consistency was stronger there. We would try to write platform-agnostic multi threading code (in our case,
108.
▲
by
mabster
2y ago
Seconded on Princess Mononoke. TBH, I haven't really enjoyed any of Ghibli's modern stuff since they moved from stories with morals to essentially dream sequences.
109.
▲
by
mabster
2y ago
Ah, misunderstood you. Thanks for clarifying.
110.
▲
by
mabster
2y ago
I don't recall the coprocessor having either reciprocal or reciprocal square root? I didn't do much Intel until later in my career though, so I might be missing something though. Both _mm_rcp_ps (rcpps) and _mm_rsqrt_ps (rsqrtps)
111.
▲
by
mabster
2y ago
Agreed on multiplying the top 64 bits rather than dividing: if the hash is calculated via prime multiplications, the top bits are "more random" than the bottom bits. But we don't really know the hash table type. It could be d
112.
▲
by
mabster
2y ago
I wouldn't be surprised if _mm_rsqrt_ps is actually implemented using the same bit level trick. Same as Carmack's, we did a single step of Newton's method and it was definitely good enough.
113.
▲
by
mabster
2y ago
Yeah, that's what I meant. I would like per column type-hinting so that data frames are type-checked along with the rest of our stuff and everything is explicit. I don't have anything I can show because the stuff I was working on
114.
▲
by
mabster
2y ago
Also, my grief with DF is they aren't typed (typing module) by column. Maybe that's changed though? It's been a while. The only way to understand what's going on with DF code is to step it in a debugger. I know they can
115.
▲
by
mabster
2y ago
All the places I've worked for had some balance here, but it would definitely be on the very few tests end. We would write tests to catch a bug in a low level system, and keep the test after. We had lots of Design by Contract, includin
116.
▲
by
mabster
2y ago
Thanks! I've used the trick and derived why it works a few times, but always forget. I battled to understand the post. Your explanation got me there very quickly.
117.
▲
by
mabster
2y ago
That should totally become the norm. It looks so efficient. Way better than vertical writing systems, etc.
118.
▲
by
mabster
2y ago
I've seen a few Famicom games do the clause spacing though, so it's easier to read. You can almost hear the emphasis tone on all the particles haha. And yeah in Japanese it's fine, there's a clear visual situation betwee
119.
▲
by
mabster
2y ago
My favourite is a production team spending millions on something trying to make it look like a home movie, etc.
120.
▲
by
mabster
2y ago
It's fine nowadays but there was a time when "git pull --rebase" worked slightly differently to "git fetch" and "git rebase". I'd get conflicts with the former that I didn't get with the latter.
More ›