Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Jasper_
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
76 ms
·
841.
▲
by
Jasper_
6y ago
> it turns out to be really hard Everyone was yelling this at you since the beginning. Ever since Apple proposed "safe HLSL", and then it morphed into WHLSL and then WLSL and then the competing Tint proposal which is now WGSL,
842.
▲
by
Jasper_
6y ago
for (let elem of arr) {} is actually quite a bit slower than for (let i = 0; i < arr.length; i++) {} because the people who built the JS spec decided that there should be a brand new heap object created every iteratio
843.
▲
by
Jasper_
6y ago
It's word games. The delivery pay is normally, say, $10 without tips. If you tip $5, that goes to your delivery person, but they also reduce the delivery pay to $5. So in practice, DoorDash always pays the driver $10, and your tip is t
844.
▲
by
Jasper_
6y ago
I will say MSL and associated tooling is horrendous. I like MSL as a language but it pays a heavy price for "being different", it's woefully underspec'd, even compared to HLSL, and the tooling is pretty miserable. You
845.
▲
by
Jasper_
6y ago
To be clear, pjmlp, I don't think you've ever written a Vulkan app, ever. You don't need an "extension loading framework" on Vulkan (you might be confusing something like volk with that), since the loader is standar
846.
▲
by
Jasper_
6y ago
A team of small engineers inside AMD created Mantle, and AMD management did fuck-all with it; they donated it to Khronos for Vulkan, but some lawyers got involved and patent claims held up the release for a few years (Vulkan being late? Tha
847.
▲
by
Jasper_
6y ago
While I like the ideas behind this guide, it's very misleading and out of date compared to what today's lossless compression algorithms care about. Anybody speaking the words "Huffman tree" will be thrown out the window.
848.
▲
by
Jasper_
6y ago
The magic is knowing when to take a new reference photo, in case someone else walks in, or I drink from a cup of coffee, or hold up an object to the camera. At which point we're almost back to H.264, except it's unclear if that wi
849.
▲
by
Jasper_
6y ago
I imagine it's doing the SwiftShader fallback, and the JIT tends to have a few specializations for "quick" shaders. Would be curious what's going on, though.
850.
▲
by
Jasper_
6y ago
Mobile is dominated by cost. Qualcomm, Samsung, AMD have all tried their hand at good ARM processors but the perf gains and costs have never been good enough to sell mass market devices. Apple is the only one remaining, and they spend a lot
851.
▲
by
Jasper_
6y ago
Flash Alchemy was roughly equivalent to emscripten. What you're likely thinking of is Starlet/Stage3D, which, uh, have you used it? Did you seriously write AGAL code? WebGL is a lot more tenable. Not great, but far better.
852.
▲
by
Jasper_
6y ago
Somehow caching the gigabytes of cooked data that is a game. Web apps don't have any way to do data management, and even Chrome's cache on desktop regularly corrupts itself on large files.
853.
▲
by
Jasper_
6y ago
SIMT has always just a fancy disguise on top of SIMD hardware, but don't tell the GPU manufacturers I said that :)
854.
▲
by
Jasper_
6y ago
One difficulty is that the "principles" aren't really pixels anymore, but things like triangles, rasterization, and SIMD programs that run. Understanding the historical context of super old "graphics adapters" might
855.
▲
by
Jasper_
6y ago
There used to be something similar to do this called "scoped styles", but they were removed in favor of WebComponents. We could have had this without all of the Shadow DOM baggage. Though maybe it's coming back now? https:&#
856.
▲
by
Jasper_
6y ago
Sure they did -- the old guard of Daniel Stone, Peter Hutterer, Adam Jackson, even Kristian Hoegsberg, they were all Xorg hackers before Wayland was a thing, and only a few had ever worked at Red Hat. X.org doesn't really have maintain
857.
▲
by
Jasper_
6y ago
This is a bizarre comment, because Google and Apple themselves were the ones to heavily push for 99c / free apps. I worked at a high profile game developer attempting to make premium mobile games at the very start of the lifecycle; no
858.
▲
by
Jasper_
6y ago
Not always. Computed gotos can be faster, because it can relax some restrictions that the switch statement can't amke. Most VM implementations, including CPython, use computed gotos for a not insignificant performance improvement. htt
859.
▲
by
Jasper_
6y ago
But it's not like every tiny optimization will turn the runtime into unreadable soup. But that's been the defense every time someone proposes adding some extremely basic optimizations [0]; these things aren't difficult and an
860.
▲
by
Jasper_
6y ago
That doesn't solve the spam problem, though? The issue from spam is that bad actors can sign up for any number of free-standing servers, without being blocked from the service as a whole. Blocking whole servers isn't the solution;
861.
▲
by
Jasper_
6y ago
That would imply that centralized solutions would have even less spam, since they have much stronger guarantees of identity. And yet sites like Twitter has plenty of spam. Even Hacker News gets spam! And this is not a popular place in the g
862.
▲
by
Jasper_
6y ago
That is not true. They've been working on a new OpenCL compiler. You can see commits from Jesse Natalie in here, they're one of the D3D12 engineers at MS working on mesa and contributing code. This is fully free-standing and is no
863.
▲
by
Jasper_
6y ago
Ah, this is a classic "RGB overlay", as pioneered by Matrox for the workstation market, which doesn't really mean much, and I assume is fully emulated on a modern chip. Nothing like a modern overlay pipe like you see in the C
864.
▲
by
Jasper_
6y ago
Huh, I've never heard of this. Traditionally, hardware overlays are consumed by the system compositor. Do they have an OpenGL extension to expose it to the app?
865.
▲
by
Jasper_
6y ago
So one thing to note is that hardware overlays are really uncommon on desktop devices. NVIDIA only has a single YUV overlay and a small (used to be 64x64, now it might be 256x256?) cursor overlay. And even then, the YUV overlay might as w
866.
▲
by
Jasper_
6y ago
It happened multiple times, and one of the times, the project needed to be renamed, causing a huge argument, lots of eyes on the project, and momentum to slow. There's a huge social cost to a fork. https://github.com/na
867.
▲
by
Jasper_
6y ago
const enum doesn't work when in transpileOnly mode (e.g. webpack, Parcel), and Babel treats "const enum" the same as "enum". I'd really love a non-broken const enum in TypeScript, though.
868.
▲
by
Jasper_
6y ago
Gallium's architecture of "state trackers" are sort of antithetical to the idea of Vulkan in many ways. Neither Intel's Vulkan driver, nor RADV, bother using it.
869.
▲
by
Jasper_
6y ago
I've rewritten hot loops (decompression & texture detiling) from JavaScript into specialized AssemblyScript and seen a decent (2-3x) perf boost? I'm not sure how much of that is "running hot" in JS, since in the exam
870.
▲
by
Jasper_
6y ago
It makes perfect sense without GA -- a precalculated normal vector is effectively a stored cross product (this is what the "bivector" terminology is attempting to explain, but is unclear). While the cross product is invariant unde
More ›