Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Jasper_
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
40 ms
·
421.
▲
by
Jasper_
5y ago
Stallman rightly predicted that corporations want to amass power and control over you, and that counter-culture technologies like the computer and the Internet would slowly revert to mainstream, corporate-friendly and capitalism-friendly id
422.
▲
by
Jasper_
5y ago
Ah, yes, the Google strategy. Accidentally break the feature, then look at the analytics six months later when nobody uses it because it doesn't work, decide that it was a useless feature, just remove it instead of fixing it. And I mea
423.
▲
by
Jasper_
5y ago
SolarCity was such a bad investment he had to hide the financials by stuffing it inside of Tesla
424.
▲
by
Jasper_
5y ago
Planes are natural gliders and you can recover from engine failure. It's not like they just fall out of the sky.
425.
▲
by
Jasper_
5y ago
I've done this before for plenty of tight loop code. Nothing irks me than staring a profile and seeing "Major GC" multiple times in the middle of a big algorithm. It's certainly not helped by the latest language fads jus
426.
▲
by
Jasper_
5y ago
> I tend to believe there are some great ideas embedded in the cryptocurrency world Name one. Just one.
427.
▲
by
Jasper_
5y ago
If you allow yourself to do this work offline, that's one thing, but keep in mind that 2D realtime graphics are a requirement. People still need to render SVGs, HTML5 canvas, the CSS drawing model, etc. Grid fitting might eventually go
428.
▲
by
Jasper_
5y ago
Yes, it should be illegal. Some of them were once upon a time. But businesses keep lobbying saying that conditions like these are hurting their ability to retain profits, and the laws tend to get clawed back under the pretense of "job
429.
▲
by
Jasper_
5y ago
Having a queue of 1,000 independent work items to do doesn't mean something is "embarrassingly parallel". Operating systems are a classic example of something that's hard to parallelize, and they have 1,000 independent p
430.
▲
by
Jasper_
5y ago
Yes, we can make GPU programs that render vector images this way, but they tend to be slower than an equivalent CPU program. Branches are not the problem, GPUs handle those just fine now actually. The problem is duplicated work. GPUs have
431.
▲
by
Jasper_
5y ago
This is basically "all parabolas are linear transformations of one parabola", and the details can be found in Loop-Blinn.
432.
▲
by
Jasper_
5y ago
Both of the sibling comments describe quadratic Bezier curves (used often in font rendering because TrueType only supports quadratic), while graphics APIs and CFF font outlines often mandate support for cubic Beziers. Cubics are a lot more
433.
▲
by
Jasper_
5y ago
Both the 2D and 3D here are vectors -- both the 2D lines and the 3D triangles are represented as a sequence of mathematical points which have to be "rasterized". But, put simply, triangle rasterization is just a much easier proble
434.
▲
by
Jasper_
5y ago
I don't know if I'd go that far -- icons and text are vector paths. Strokes and drop shadows (aka blurs) are all things that GPUs aren't great particularly great at. Simple shapes like rounded rectangles, GPUs can be OK at, b
435.
▲
by
Jasper_
5y ago
The linked article covers the major challenges that makes it difficult to adapt the GPU to 2D vector graphics rendering. tl;dr 2D cares about shapes and curves and proper antialiased coverage of super small shapes, the traditional rasteriza
436.
▲
by
Jasper_
5y ago
Line miters have no valid interpretation other than a view-dependent one -- the PostScript spec says that miter limit is based on curve angle, something which only makes sense in a flat, 2D perspective. Freya Holmér came up with a set of he
437.
▲
by
Jasper_
5y ago
> We see that if t (end-1) is . then e is written with the character ., as if we were to pass a very large number to the function. I don't believe this is what's happening at all... e and t are pointers, and they're not be
438.
▲
by
Jasper_
5y ago
California law requires consent of both parties for recordings. A worker who was found to record colleagues would basically be fired.
439.
▲
by
Jasper_
5y ago
System V is only a C ABI, not a C++ ABI, so of course it wouldn't cover C++-only details. What C++ ABI does MinGW use on Windows?
440.
▲
by
Jasper_
5y ago
"Act 3" of Portal 2 is perhaps surprising only by how short it is! I think it sticks in people's heads as the largest part of Portal 2, but it's only 8 levels (2 intro levels, 2 for Blue Gel puzzles, 1 transition, 2 for
441.
▲
by
Jasper_
5y ago
This is also fairly standard as a calling convention as well? The Itanium C++ ABI (the standard for x64 on Linux) has the same text: https://itanium-cxx-abi.github.io/cxx-abi/abi.html#non-trivi... So either there'
442.
▲
by
Jasper_
5y ago
It's quite lean, it requires a lot less code than OpenGL does! But it does require some -- partly because there's some cruft left in the spec, but also because there's always some work that can be shared. SPIR-V and NIR bei
443.
▲
by
Jasper_
5y ago
D3D12 is very different from D3D11, but still has a lot in common. We started our port by reusing most of the same DXGI code and getting what we called our "sprites" rendering correctly (2D quads, used by the loading screen, and o
444.
▲
by
Jasper_
5y ago
There might not be a port of Metal to Windows, but there are libraries that give a Metal-like API on top of Vulkan and D3D12. One of those is wgpu, which I think is a great API. It's native to Rust, but there are ways of using it from
445.
▲
by
Jasper_
5y ago
This is a very inaccurate summary of the space. There aren't that many studios doing Vulkan ports, unless you want to target Linux, but even Valve prefers Proton and are telling people not to port. Or Android/Stadia, but nobody gi
446.
▲
by
Jasper_
5y ago
Metal is not half-baked, it's actually quite good! It was started as a project before Vulkan as a whole, and it released a year before Vulkan. Strategically, why would Apple do their own thing and not pay attention to Khronoscor contri
447.
▲
by
Jasper_
5y ago
When a coal mine went down in China a year ago because of flooding, the global Bitcoin hashrate visibly dropped by about a third. This is maybe the only insight we have into the energy sources used by Bitcoin, and it's not a good look.
448.
▲
by
Jasper_
5y ago
The decentralization is maybe the key purpoted advantage of blockchain. I don't think it's tremendously useful, but hey, it's what people cite as a major advantage. If you're proposing switching to a centralized authorit
449.
▲
by
Jasper_
5y ago
The JavaScript runtime isn't much better; it's missing support for 64-bit types using BigInt, and the runtime itself could be far more lightweight and efficient. I would submit fixes, but the project just seems unmaintained as a w
450.
▲
by
Jasper_
5y ago
No, Google is part of the problem here too. https://orderfood.google.com/
More ›