Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
exDM69
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
91.
▲
by
exDM69
1y ago
> What's a "monotonic Bezier curve"? Good question! It's a Bezier curve that has a non-zero derivative for t=0..1 (exclusive). Just your high school calculus definition of monotonic. To get from a general quadratic Be
92.
▲
by
exDM69
1y ago
Very cool stuff, text rendering is a really hairy problem. I also got nerd sniped by Sebastian Lague's recent video on text rendering [0] (also linked to in the article) and started writing my own GPU glyph rasterizer. In the video, L
93.
▲
by
exDM69
1y ago
Cool. I've also built a bar stool with green wood but it's a fairly crude shop stool rather than a fine chair. A green wood specialty in my neck of the woods is sauna ladles (used for throwing water). You can buy wooden ones but t
94.
▲
by
exDM69
1y ago
Yeah, the coefficients are the same but the initial moisture content in green wood is much higher than the wood will ever get to after seasoning, it won't suck that much moisture from the air (unless you're in a swamp or something
95.
▲
by
exDM69
1y ago
The figures I gave are annual movement. Initial shrinkage is larger when drying from green wood. The numbers (from the calculator) match my empirical observations very closely. By the way your relative humidity figures assume constant tempe
96.
▲
by
exDM69
1y ago
4 years is more than enough time for drying. Rule of thumb is year per inch of thickness. I'm just speculating here but probably the support structure didn't allow for wood movement. You need something to keep the table top flat w
97.
▲
by
exDM69
1y ago
Green woodworking is an entire field of its own. Not very common in industrial scale but it was a common method a few centuries ago. Examples of things where green woodworking is common: spoon carving, bowl turning, chair making, etc. The i
98.
▲
by
exDM69
1y ago
A good mental model for wood is that trees are a bunch of stacked cones (growth rings) on top of each other. In the spring it fills with water and the diameter grows but the tree does not get longer because it needs to support a large mass
99.
▲
by
exDM69
1y ago
This is correct but the numbers are off by an order of magnitude. The annual movement of wood is maybe 2% width wise and almost negligible lengthwise. This is for wood that is dried and stabilized, the shrinking is a bit more from green woo
100.
▲
by
exDM69
1y ago
A 32 way GPU sorting algorithm might be just what I need for sorting and deduplicating triangle id's in a visibility buffer renderer I am working on. Thanks for sharing.
101.
▲
by
exDM69
1y ago
Hey, this might be exactly what I'm looking for! To test some 3d graphics code, I need to generate a lot of textures. From a technical standpoint, just a single color texture would do but having some recognizable patterns that are ea
102.
▲
by
exDM69
1y ago
> Yeah, that will work fine for byte address buffers, to lesser extent constant buffers (they don’t convert data types but the access sematic and alignment are a bit tricky), but not much else. This is where sharing the CPU and GPU side
103.
▲
by
exDM69
1y ago
> Traditionally they're a black box without any assert() equivalent Thankfully these days we have printf in shaders that you can use for "asserts". You can detect if the shader printed anything and consider it a failure. Y
104.
▲
by
exDM69
1y ago
If you are using plain buffers the GPU and the CPU access data pretty much exactly the same way. With scalar block layout all the alignments are pretty much the same too. To get the format conversion stuff you talk about, you need to use im
105.
▲
by
exDM69
2y ago
There are meshes in morphosource too. Didn't try downloading any but they are available as STL files with 1-2 million polygons per model. Some meshes are individual bones or skulls, others are complete specimens. The interface is a bit
106.
▲
by
exDM69
2y ago
They are marked as unsafe because there are hundreds and hundreds of intrinsics, some of which do memory access, some have side effects and others are arithmetic only. Someone would have to individually review them and explicitly mark the s
107.
▲
by
exDM69
2y ago
Yes, airports in eastern Europe are now using the old ground based VHF radio beacons (VOR, DME and ILS). However, they were not in use a few years ago. Some airports never had the ground based equipment installed, others still had the beaco
108.
▲
by
exDM69
2y ago
I'm using Rust (nightly) std::simd for my 3d math stuff. It doesn't come with matrix and quaternion functions but they were relatively simple to implement based on known good algorithms. But you do get basic arithmetic operators w
109.
▲
by
exDM69
2y ago
All of the well documented cases of the past few years have occured in international waters.
110.
▲
by
exDM69
2y ago
Yes, this is a good idea. I've done this before with binary search and tree structures. I avoid unbounded loops wherever possible and the unavoidable cases are rather rare. It's not a fix but it is a good mitigation strategy. Infi
111.
▲
by
exDM69
2y ago
Correct. Burns don't have to happen only at perigee/apogee so there's more flexibility in practice. And counter intuitive stuff like bi-elliptic transfers.
112.
▲
by
exDM69
2y ago
Burns at perigee have best efficiency to make in-plane changes (raise or lower orbit) due to the Oberth effect. Burns at apogee have best efficiency for out-of-plane maneuvers (change orbital inclination plane) due to lowest velocity of the
113.
▲
by
exDM69
2y ago
Neither is really true at least for Finland. Addresses are not public information, you can opt out from having your info public. They are not even a national registry (one exists, not public) but your telco will put you in "the phone b
114.
▲
by
exDM69
2y ago
> It was perfectly clear what Hellwig meant by "cancer". No, it is not perfectly clear. The generous interpretation is that they meant it is "viral", spreading through dependencies across the codebase (which I don
115.
▲
by
exDM69
2y ago
> The position of the DMA maintainer seems also to make sense for me, to keep code maintainable over decades it must remain in a nice and tidy state. Perhaps so, but that discussion was two or three years ago. Stalling other contributors
116.
▲
by
exDM69
2y ago
I'm well aware of this and good that the option exists to bail out with abort instead. But there are still cases where you would like to fsync your mmaps, print out a warning message or just make sure your #[should_panic] negative test
117.
▲
by
exDM69
2y ago
Panics also unwind the stack and run all your Drop destructors. Setting `panic = abort` disables unwinding and this means leaking memory, not closing file descriptors, not unlocking mutexes and not rolling back database transactions on pani
118.
▲
by
exDM69
2y ago
If I understood the algorithm correctly, it is using the standard WFC algorithm to generate blocks that match a constraint. Then it creates a tiling of those blocks, and substitutes parts of the tiling with new blocks generated using WFC. S
119.
▲
by
exDM69
2y ago
Here's another interesting O(1) memory allocator but with arbitrary sized allocations and low fragmentation. Negative side is relatively high memory overhead (a few dozen bytes per allocation). This kind of allocator is often used to s
120.
▲
by
exDM69
2y ago
Very delightful article. Based on my experience in "hobby" OS programming, I would add setting up GDB debugging as early as possible. It was a great help in my projects and an improvement over debugging with the QEMU monitor only.
More ›