Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
yoklov
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
151.
▲
by
yoklov
9y ago
Or more generally bounding volume hierarchies, of which AABB trees are a subset. They’re great. Good perf, while being one of the simpler ways of accelerating spatial queries (compared to other types of trees, at least)
152.
▲
by
yoklov
9y ago
The term you’re looking for is speculation, not specialization, but no, I don’t think it does either. C++ and other languages targeting WASM often do type specialization, but it’s entirely done before the browser sees WASM, and has nothing
153.
▲
by
yoklov
9y ago
Also RMV in some states (MA, at least), Registry of Motor Vehicles
154.
▲
by
yoklov
9y ago
It is, thanks.
155.
▲
by
yoklov
9y ago
ESR versions get security updates.
156.
▲
by
yoklov
9y ago
> Also, even since 57, this week Firefox ("stable" build) consistently gets hung up with just one tab open and spins 100% CPU on one thread. I mean, this probably isn't the right venue to ask about this, but that sounds ra
157.
▲
by
yoklov
9y ago
You should be able to import your history from chrome, and then use firefox sync. Or am I misunderstanding what you're looking for?
158.
▲
by
yoklov
9y ago
I'm reading from Windows, and the fonts used look good to me?
159.
▲
by
yoklov
9y ago
Many games will want to, both for plain canvas or for webgl.
160.
▲
by
yoklov
9y ago
I've also (recently) had poor performance on MSVC when "outside the loop" meant "a function argument", for a type that was essentially a struct wrapping a single primitive. It ended up being ABI weirdness that was c
161.
▲
by
yoklov
9y ago
Eh, this kind of knowledge can absolutely be beneficial when debugging. It won’t help you structure a program though.
162.
▲
by
yoklov
9y ago
Declaring a primitive variable inside vs outside a loop in c or c++ will have no effect when compiled with optimizations on by any major compiler. For non-primitive types it will depend on a number of factors, and the better choice for perf
163.
▲
by
yoklov
9y ago
If they’re suggesting better or even equivalent ways, I just do it. If you are not sure, also just do it? Life’s too short to be arguing about every code review comment. The only time I argue about review comments is if i think it wont work
164.
▲
by
yoklov
9y ago
Not including the struct in the header defeats the ability of the user to control where the type is allocated in memory, among other things. That’s a feature that many c programmers are willing to give up a certain degree of api/abi co
165.
▲
by
yoklov
9y ago
I am, but it certainly was at 60fps on my laptop when I wrote it, which was also a mac.
166.
▲
by
yoklov
9y ago
I did something fairly similar to this here: https://codepen.io/thomcc/pen/vLzyPY (I need to look into why this isn't running at 60fps anymore on my laptop, it certainly used to...) The big difference is that
167.
▲
by
yoklov
9y ago
AIUI it wasn’t considered a disease similar to how cold sores aren’t.
168.
▲
by
yoklov
9y ago
JS is the only one of those that has dynamic typing, at least by the conventional meaning of the term.
169.
▲
by
yoklov
9y ago
> The basic problem with C++ is that it has heavy encapsulation without memory safety. No other language has that. I think in general these things are unrelated, unless you stretch the definition of memory safety rather far. Also, you ca
170.
▲
by
yoklov
9y ago
Yeah, more or less, but a project this size (small) would really bear those differences out, I think. In particular, resource binding is very different between Metal and Vulkan. Metal's resource binding is more simple/traditional.
171.
▲
by
yoklov
9y ago
Name resolution is already so insanely complicated in C++ it's hard for me to lament this too much.
172.
▲
by
yoklov
9y ago
Clean room is a defense against copyright and not patent, AIUI. For patents it doesn't matter if you knew someone had patented it. Not a lawyer, though, but a quick search confirms this.
173.
▲
by
yoklov
9y ago
IME most of it is due to how bad c++'s builtin allocator support is though. C++11 helps a little but a lot of stuff you might want to do seemed to be impossible last time I looked. This is awful since games will often use pools and are
174.
▲
by
yoklov
9y ago
I wouldn't assume so unless you're comparing against a fairly naive JS implementation. Copying strings between JS and asm.js/wasm is slow, so there's additional overhead just calling back and forth. Reading through the C
175.
▲
by
yoklov
9y ago
IME a more common case is overengineering. Not only does this slow someone down initially, but the extra complexity often continues to slow them (and anybody else in the same codebase) into the future.
176.
▲
by
yoklov
10y ago
This isn't the issue I'm describing at all. E.g. if I missed a bounds check, and access past the end of a `Foo[]`, it would be typed as `Foo` (and not `Foo | undefined`), but really be `undefined. Consider this code. var f
177.
▲
by
yoklov
10y ago
> The funny thing is, its the opposite for the low level stuff. This was not my experience or the experience of people I know at all. I imagine that it depends on which companies you work with, or what country you're in, but my expe
178.
▲
by
yoklov
10y ago
> Strict null-checking eliminates the dreaded null-pointer exception When I was using typescript this still came up if you missed an array bounds check, you'd end up with an unexpected undefined. Pretty annoying and tough to debug.
179.
▲
by
yoklov
10y ago
It's a common example for a patent that had a lot of prior art but was granted anyway. I don't know enough about patents to say if there was a reason the prior art didn't apply, but I know that Namco was fairly protective of
180.
▲
by
yoklov
10y ago
Windows' stack is still a ways from being reliable in a lot of somewhat important cases like (real) fullscreen, but it's certainly miles beyond X11 and Linux. (I don't have enough experience with Mac's to speak to it).
More ›