Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Jasper_
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
121.
▲
by
Jasper_
3y ago
Java Card is a very different language that's only superficially similar to Java. It prohibits OOP, only allows static methods, and makes you store everything in byte arrays and use System.arrayCopy. It's basically a less convenie
122.
▲
by
Jasper_
3y ago
Are you kidding me? It was all basically vaporware that disappeared when the free money ended. The Kiwi food delivery robots were basically fake -- they only went about 1/8 of a mile automatically. So they'd drive a car to the end
123.
▲
by
Jasper_
3y ago
Basically, if you have one piece of codebase call gl.enable(gl.BLEND), then either that needs to reset it at the end with gl.disable(gl.BLEND) and you have some vague ambiguous default state that everything enters and leaves. If you don
124.
▲
by
Jasper_
3y ago
Most people that want to keep using OpenGL would be better served by a cross-platform D3D11. WebGPU is similar-ish to that.
125.
▲
by
Jasper_
3y ago
I think OpenGL and Vulkan fail at opposite reasons for this. OpenGL is a giant ball of yarn state machine that's way too complicated to drive and doesn't do what you want. Vulkan requires spelling everything out in excruciating de
126.
▲
by
Jasper_
3y ago
I'm a graphics programmer who has quite a bit of experience with WebGL, and (disclaimer) I've also contributed to the WebGPU spec. > Quite honestly, I have no idea how ThreeJS manages to be so robust, but it does manage somehow
127.
▲
by
Jasper_
3y ago
MIDI does not have a sound. It's just instrument data. The classic "MIDI sound" that you recognize is the Roland GM soundkit shipped with Windows (an early version of Roland's Virtual Sound Canvas product). This website
128.
▲
by
Jasper_
3y ago
The N64 has no native sound processor -- just PCM sample output. Game developers often integrated some form of custom sequence or MIDI format, combined with PCM samples, and some playback code running on the N64 CPU. The miniusf file format
129.
▲
by
Jasper_
3y ago
foo += 1 was never atomic. It always compiled to something like: LOAD_FAST foo LOAD_CONST 1 BINARY_OP + STORE_FAST foo The GIL only protected you during any of those operations, so you can still switch threads waiting
130.
▲
by
Jasper_
3y ago
You can build far better abstractions than what we have here. A lot of games that support more than two platforms have graphics abstractions that leak less than this.
131.
▲
by
Jasper_
3y ago
It's a very weird one. createRenderPipelines uses the branch to add #version 460 to the beginning of shaders (one would think the platform backend could do that for you, also this won't support GLES2 or GL3), and also makes the pr
132.
▲
by
Jasper_
3y ago
Even outside of platform-specific stuff, I'm seeing it all over the core rendering code. I'm not impressed. https://github.com/facebook/igl/blob/main/samples/desktop/Ti...
133.
▲
by
Jasper_
3y ago
For small triangles, they use a software rasterizer into the V-buffer. Obviously for 1px triangles since they don't want to waste quad overdraw, but I think they found it's faster up to 12px/tri or so on AMD.
134.
▲
by
Jasper_
3y ago
X is color-managed to the same degree that it is in Wayland. That is, all buffers are sRGB, and the application needs to convert output buffers in sRGB format. Chrome certainly takes great care to do color management of the content displaye
135.
▲
by
Jasper_
3y ago
All Wayland compositors I am aware of use KMS planes to push a hardware cursor plane. It should work fine.
136.
▲
by
Jasper_
3y ago
I certainly have some complaints with Wayland's design, but I'm curious what you would remark as dealbreakers here. As someone intimately familiar with both X11 and Wayland (and used to maintain stacks for both), Wayland is a real
137.
▲
by
Jasper_
3y ago
X is not color-managed either.
138.
▲
by
Jasper_
3y ago
Grayscale AA is still common on Retina screens, but subpixel AA is rare. Mostly because subpixel AA is difficult to do compositing with transparency with, but also because it's less necessary on Retina screens. The tradeoffs are just t
139.
▲
by
Jasper_
3y ago
No, OTF supports both TrueType font outlines [0] (quadratic only) and CFF/CFF2 outlines [1] (cubic or quadratic). In fact, CFF is relative rare in the wild. [0] https://learn.microsoft.com/en-us/typography/ope
140.
▲
by
Jasper_
3y ago
https://classic.minecraft.net/
141.
▲
by
Jasper_
3y ago
Epic Games Store happened.
142.
▲
by
Jasper_
3y ago
Oh, I was assuming it was occupied by an enemy piece, and would capture it. You're right that if it was occupied by an allied piece, it's not a legal move.
143.
▲
by
Jasper_
3y ago
> - In the second bitboard, the rook on e4 should be able to move to e1,a4,e8,h4. It's trying to find the set of legal moves. Or, rather, it's trying to find the set of illegal moves that it can exclude from the subset of pos
144.
▲
by
Jasper_
3y ago
The form factor we have now is basically identical to what headsets looked like in the 80s and 90s [0]. They are barely smaller than they were back then. The problem is not the computers, it's the optical pathway. You can't shrink
145.
▲
by
Jasper_
3y ago
That would lead to inconsistent brightness across devices -- white on a 2000 nits HDR TV is extremely bright, you likely don't want that as a paper white background. Standardizing on some good enough value of nits (usually between 80 a
146.
▲
by
Jasper_
3y ago
In theory, you could do this with the rec2020 color space included in CSS Color 4. https://www.w3.org/TR/css-color-4/#predefined-display-p3
147.
▲
by
Jasper_
3y ago
More recently, the TouchBar and 3D Touch are both pretty massive market failures for Apple despite being engineered to perfection. I think the killer was that in the Platforms State of the Union, they didn't show anybody wearing the th
148.
▲
by
Jasper_
3y ago
Sample-rate shading is exceptionally rare (MSAA is rare-ish these days, but I only know of exactly one title that has shipped sample-rate shading), so requiring a basic compiler transform to handle it, especially when they can do so easily
149.
▲
by
Jasper_
3y ago
Except constexpr isn't a guarantee. Compilers can choose to silently evaluate constexpr things at runtime. And I have ran into this before: a compiler with a recursion limit causing it to bail on constexpr and just emit the code. So
150.
▲
by
Jasper_
3y ago
In the same way that you are still trespassing even if you can easily step over a fence saying "no entry". Try going to a judge and saying "well the sign lied, because yes I was able to entry when it said I shouldn't be
More ›