Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Jasper_
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
211.
▲
by
Jasper_
4y ago
Note that PyCharm and mypy's semantics differ in some key ways: https://youtrack.jetbrains.com/issue/PY-54411/Type-checkers-... . https://youtrack.jetbrains.com/issue/PY-24834/Support
212.
▲
by
Jasper_
4y ago
The reason is that the community decided they needed some form of type annotations, but nobody could agree on which ones or how they should work. So some syntax was added just so the parser wouldn't fall over, but the semantics were le
213.
▲
by
Jasper_
4y ago
The usual cases are scroll positions, selected text, form fields, event handlers, basically any state that isn't naturally captured in the HTML text. That's where the VDOM differ comes in handy, by modifying existing elements and
214.
▲
by
Jasper_
4y ago
wgpu supports both a SPIR-V passthrough mode [0] and a regular SPIR-V mode where it will get some transformations added to it (e.g. bounds checks are added on backends without VK_KHR_robustness). I don't believe Dawn has a similar pass
215.
▲
by
Jasper_
4y ago
I believe both Dawn and wgpu are planning on supporting SPIR-V ingestion for native use cases,
216.
▲
by
Jasper_
4y ago
This does not seem particularly in-depth.
217.
▲
by
Jasper_
4y ago
Frenet frames are simply any orthonormal frame. A rotation-minimizing frame is a frame that has minimal twist from some previous frame.
218.
▲
by
Jasper_
4y ago
Yeah, I don't understand the disparaging of 4-bit ADPCM as being terrible quality when this is effectively a 3-bit ADPCM. Most ADPCM codecs I've seen shipped have a similar table based system with a frame header with coefficients
219.
▲
by
Jasper_
4y ago
The galaxy is billions of years old. Human civilization is a few thousand. Human civilization with a significant radiometric footprint above noise is less than a hundred. And there's some not unreasonable concern that if we don't
220.
▲
by
Jasper_
4y ago
There were a lot of people that left Python for other languages and never came back in the whole 2 to 3 debacle. It doesn't help that the early versions of Python 3 were really opinionated and terrible. Python 3 only took off after the
221.
▲
by
Jasper_
4y ago
Personally, I see elevating Fabrice Bellard to this godlike figure that nobody else can possibly touch as insulting to the whole rest of the multimedia community who helped maintain ffmpeg. Fabrice didn't touch ffmpeg past the first co
222.
▲
by
Jasper_
4y ago
> There was talk about upgrading PNG to support the equivalent of animated GIFs but it never really happened because of complexity This was mostly due to overengineering on the part of the PNG committee. Why stop at animated PNGs, when w
223.
▲
by
Jasper_
4y ago
Residuals and royalties are still ongoing payments.
224.
▲
by
Jasper_
4y ago
The only consistent thing yet hear about the FAANG interview process is how universally bad it is, but also how you should just play along to get your $300k/yr salary.
225.
▲
by
Jasper_
4y ago
Author here. I left the Linux world 6 years ago, though my passion for making this kind of educational content has not faded. These days, I work in the games industry, and make videos explaining game graphics concepts. https://ww
226.
▲
by
Jasper_
4y ago
The easiest way to describe matrix multiplication is nested function composition. f(x) = 2x g(x) = x + 5 It should hopefully be obvious that "nesting" the two isn't commutative: g(f(x)) = (2x) + 5 = 2x + 5
227.
▲
by
Jasper_
4y ago
> That said, I think programmers are prone to some of this simply due to the fact that programming requires a baseline obsessive attention to detail that most people don’t want to think about. It requires some careful attention, planning
228.
▲
by
Jasper_
4y ago
TCP/IP does not use the OSI model. Stacking layers on top of each other promotes inefficiency and poor security, and is one reason why TCP/IP won over the OSI-recommended protocols.
229.
▲
by
Jasper_
4y ago
Yeah, if it wasn't for the improved developer velocity of these fancy new JavaScript frameworks, we would have been left with a basic HTML version of the widget that doesn't require any JavaScript and has all the same features. Un
230.
▲
by
Jasper_
4y ago
Unfortunately, `int a[static 3][static 4]` does not work.
231.
▲
by
Jasper_
4y ago
Worth noting that there is a spec for the custom XML file, it's known as FXG. S starts a cubic Bezier curve in absolute coordinates: https://web.archive.org/web/20110611002637/http://opensource...
232.
▲
by
Jasper_
4y ago
> w3c's XHTML was machine understandable. It took great care to introduce rigid and reusable semantics. You could spider the web and directly extract facts without ML or heuristics. It did absolutely none of this. It was an presenta
233.
▲
by
Jasper_
4y ago
Ian Hickson stepped down a few years ago and has started working on Flutter instead (Flutter started as a "what would a browser look like if we removed a bunch of legacy from the HTML spec" project). It's now maintained by Do
234.
▲
by
Jasper_
4y ago
It's worth noting that Python str's are sequences of code points, not scalar values. This was a truly horrendous mistake made mostly out of ignorance, but now they rely upon it in surrogateescape to hide "invalid" data,
235.
▲
by
Jasper_
4y ago
I have a MacBook I use occasionally for work. I don't have an AppleID and don't want to make one (same as Microsoft Account). Every time I boot the system, there are about 20 untagged login prompts and have to manually cancel.
236.
▲
by
Jasper_
4y ago
The simplest way I know of to make a discriminated number type in TypeScript is: declare const isRobotID: unique symbol; type RobotID = number & { [isRobotID]: true }; and now you can cast a number to a RobotID and back.
237.
▲
by
Jasper_
4y ago
Yep. See my comments on this the last time this came up: https://news.ycombinator.com/item?id=32767673
238.
▲
by
Jasper_
4y ago
I really wish that int arr[5] adopted the semantics of struct { int arr[5]; } -- that is, you can copy it, and you can pass it through a function without it decaying to a pointer. Right now in C: typedef uint32_t t1[5]; typedef st
239.
▲
by
Jasper_
4y ago
Anything animated isn't supported as well, only static meshes.
240.
▲
by
Jasper_
4y ago
You do as much of that offline as possible. The "split them into micropolygons" happens at editor time, along with a search tree that makes it really easy to find them. It's still very demanding! But the goal is that you bake
More ›