Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ygra
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
331.
▲
by
ygra
4y ago
Well, the pauses are somewhat predictable in that they may appear when the count of an object reaches zero. I had a very expensive closing brace in (admittedly not well-written) C++ code once.
332.
▲
by
ygra
5y ago
Not only the build, but also research. Chris has published a paper on it during a lengthy build hiatus.
333.
▲
by
ygra
5y ago
Yes, asm.js, which by now has been abandoned and superseded by WebAssembly. And while Chrome never really supported asm.js, they added some optimizations that benefitted code written in that style. I think that may also have been a problem
334.
▲
by
ygra
5y ago
(In)famously, Windows NT put GDI into the kernel for performance reasons. Any application wanting to draw something would also have to pay for that context switch, which apparently was deemed not a problem back then. Have context switches b
335.
▲
by
ygra
5y ago
I don't particularly see a new large player come in the browser space, though. Creating a browser from scratch is a huge untertaking and the fact that everyone except Google, Mozilla, and Apply have given up is testament to that. Edge
336.
▲
by
ygra
5y ago
Ah, now I get the confusion. Yeah, most of interpreters probably wouldn't have made the in-memory distinction between small ints and doubles. So the conversion would have to happen back and forth every time a bitwise operator would be
337.
▲
by
ygra
5y ago
That goes back to at least ECMAScript 1 in 1997. Possibly further. Not sure there are that many legacy engines from before that still around.
338.
▲
by
ygra
5y ago
In fact, the specification even guarantees that for all the bitwise operators.
339.
▲
by
ygra
5y ago
I guess if you're just using LucidChart to draw something interactively, it's a good replacement and even better (probably mostly comes down to what your UI preferences are). I'm not sure there's a good replacement for L
340.
▲
by
ygra
5y ago
Maybe the initial picture most of us have regarding ship wrecks is ships built from metal, which rust and fall apart significantly easier when submerged.
341.
▲
by
ygra
5y ago
From Wikipedia about the ship: > Every detail of her construction had been scrupulously planned to ensure maximum durability: for example, every joint and fitting was cross-braced for maximum strength. > ... > Though her hull looke
342.
▲
by
ygra
5y ago
I thought about this too a bit just now. But I think it's not the shell setting up stuff outside your process that then fails. Rather you already get handles to the "full" file system at process creation and then it's yo
343.
▲
by
ygra
5y ago
I guess the more sensible option would just be to use a bicycle to get around. Simply because with the car you require most power just to get the car moving, not so much the person inside.
344.
▲
by
ygra
5y ago
The resize event is compatible with IE < 10. Depending on compatibility guarantees this can be a reason.
345.
▲
by
ygra
5y ago
You can use cubic Bézier curves to approximate a circular arc: https://pomax.github.io/bezierinfo/#circles_cubic . In many cases that's even how circular arcs are rendered, even when they are represented with a dif
346.
▲
by
ygra
5y ago
You can also drag on the main view instead of the slider.
347.
▲
by
ygra
5y ago
One trick I've been using fairly often to ensure integer coordinates is to divide my shape into a uniform grid that can then be stretched to the actual size. Then you can use a combination of the SVG's size, viewBox and preserveAs
348.
▲
by
ygra
5y ago
Having tried to think about how to map Graphviz (language parsing, styles, and layout) onto our graph drawing offering, I'm not sure I can agree here. The dot graph description language itself is fairly simple (-ish). There are a few n
349.
▲
by
ygra
5y ago
I guess the part about overflow in the title primes most experienced developers to immediately think about a solution where the added numbers are restricted beforehand to avoid the overflow. From there the obvious answer is to halve them, w
350.
▲
by
ygra
5y ago
Not by calling VirtualAlloc and friends, though. At least that part of the code has to be rewritten per platform.
351.
▲
by
ygra
5y ago
Data is from OpenStreetMap, so just add it there (which incidentally benefits all data consumers instead of just one single map). Note though, that Wikipedia is not a compatible source for OSM data; the licenses are incompatible.
352.
▲
by
ygra
5y ago
OpenStreetMap in general seems to have way more contributors from Europe: https://www.osmstats.neis-one.org/ But in this case perhaps much of that data came from a data import that didn't have compatibly-licensed data
353.
▲
by
ygra
5y ago
Considering they're circles on a Mercator projection, they can't be the actual range, or at least they'd be off in at least one direction.
354.
▲
by
ygra
5y ago
It probably also won't reset the setting if the game crashes.
355.
▲
by
ygra
5y ago
Google may just have more resources to throw at the problem. And not to forget, a few of the most-viewed pages on the internet, each of which will show you a popup suggesting that you switch to the browser that Google's sites are reall
356.
▲
by
ygra
5y ago
Perhaps the confusion stems from that StackExchange sites will ask once per site (which makes sense, as they're all different domains). So I've now seen probably half a dozen of those dialogs on their sites.
357.
▲
by
ygra
5y ago
There's a lot more that doesn't have to do with the JIT. Yes, in some cases it's about providing hints to the JIT to generate better code. Things like casting to unsigned types for example. But the weird ones (one I came acro
358.
▲
by
ygra
5y ago
That is the instruction for multiplying just one double (the SD suffix stands for scalar double); the respective instructions for handling more than one number at the same time have a PD suffix (for packed double). The alternative would b
359.
▲
by
ygra
5y ago
It's probably an unfortunate decision either way: For interacting with things the user types the ordinal approach is wrong, but for low-level handling of text the ordinal approach is faster. In both cases you basically have to know you
360.
▲
by
ygra
5y ago
I guess the answer is ... complex. As explained in the linked source for the algorithm ( http://0x80.pl/articles/simd-strfind.html#introduction ): The main problem with these standard algorithms is a silent assumption t
More ›