Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
exDM69
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
121.
▲
by
exDM69
2y ago
> Rust game development seems more about releasing half baked crates than actual games It's because these are mostly passion projects by hobbyists. A lot of the stuff is written by undergrad students with a lot of time on their hand
122.
▲
by
exDM69
2y ago
The distance from Helsinki to Tallinn is just above 80 km and there is only a narrow sliver of international waters in between the territorial waters. It is quite well monitored by surface and underwater surveillance. In this particular cas
123.
▲
by
exDM69
2y ago
In Vim, the "stupid" auto complete will get 80% of the way there and works without setting up a language server and it works for any language. By default it will give all the identifiers in all open files. Having a few of the rele
124.
▲
by
exDM69
2y ago
> (it'd need to also save memory map Typically the memory map is only required when capturing the backtrace and when outputting the stack frames' addresses relative the the binary file sections are given/stored/printe
125.
▲
by
exDM69
2y ago
> Your binary usually won't get loaded at the same address in memory. The addresses you typically see in a backtrace error message (with debug syms disabled) are relative to the sections in the binary file, the runtime address it wa
126.
▲
by
exDM69
2y ago
Why does adding `backtrace` to thiserror/anyhow require adding debug symbols? You'll certainly need it if you want to have human readable source code locations, but doesn't it work with addresses only? Can't you split of
127.
▲
by
exDM69
2y ago
On an embedded system out in the field? Depends on the use. On your prototype devkit? Absolutely.
128.
▲
by
exDM69
2y ago
I will respectfully disagree with your statement, with the caveat that I mostly dabble in arithmetic with 128b/256b float and int vectors. Using C or C++ with vector extensions (Gcc/Clang) or Rust (nightly) std::simd is very easy
129.
▲
by
exDM69
2y ago
> package management belongs to the os Os package managers do a fundamentally different task than dependency management tools used in development. They ship a bunch of applications and the libraries you need to run the applications. If y
130.
▲
by
exDM69
2y ago
I haven't measured because I broke my pH testing kit. Thanks for the pointers, I will read further.
131.
▲
by
exDM69
2y ago
I need to monitor my compost to keep it from freezing in the winter. Probably not what OP's system is for, given that they are from Australia. The biological processes produce enough heat to keep the thermally insulated compost bin fro
132.
▲
by
exDM69
2y ago
I have a similar technique before, embedding the entire font data in the fragment shader source code. Then you can use `snprintf` to directly print into a GPU buffer mapped to the CPU (this is a footgun, I know). Instead of drawing individu
133.
▲
by
exDM69
2y ago
> Ray tracing is just math, is that math applicable for any non graphics use? It's not "just math", it's data structures and algorithms for tree traversal, with a focus on memory cache hardware friendliness. The math
134.
▲
by
exDM69
2y ago
This statement isn't true at all. There are tons of fixed function hardware units for graphics in GPUs in addition to compute cores: triangle rasterizers, texture units, raytracing units, blitters, copy engines, video codecs, etc. They
135.
▲
by
exDM69
2y ago
> Can this be adapted to work with classic line segments made from quads or is it just for drawing grids in screen space? It can be applied like a texture in the fragment shader using UV coordinates and their partial derivatives. You can
136.
▲
by
exDM69
2y ago
I have an even better darn grid shader that I use in my graphics projects. The shader in this article wants to emulate the look of a sampled texture so that it blurs to medium gray at distance while avoiding moire patterns. And it does inde
137.
▲
by
exDM69
2y ago
Absolutely, look into your standard library, CPU built-ins and intrinsics first. However, these tricks are not useless even on modern CPUs. There are scalar instructions for a lot of this stuff, but if you are working with SIMD, several of
138.
▲
by
exDM69
2y ago
> At least the electrical ones I’ve seen wouldn’t work on a 12” log. I have cut 12" logs on a small electric chain saw with batteries and it works pretty damn well. Much better than a small gas powered chain saw of similar size beca
139.
▲
by
exDM69
2y ago
I have to agree with the author that battery powered chain saws are not for heavy forestry work. But for a homeowner's odd chain saw jobs they beat gas powered chain saws hands down. Particularly if the use is infrequent, it starts whe
140.
▲
by
exDM69
2y ago
> GPUs are Turing complete computers. > what's missing from existing GPU languages that prevents this kind of flexibility? GPUs contain many Turing complete computers that are orchestrated by a non-Turing complete fixed function
141.
▲
by
exDM69
2y ago
Yes, radix sort can sort integers in linear O(N) time.
142.
▲
by
exDM69
2y ago
Problem with radix sorting strings is that it is O(k*N) where k is length of key, in this case it's the second longest string's length. Additional problems arise if you are dealing with null terminated strings and do not have the
143.
▲
by
exDM69
2y ago
Guitar Pro tabs have time durations on every note (as described in the article), and can also be displayed in standard musical notation. It also has a whole host of articulation symbols, including the standard musical articulations (mezzofo
144.
▲
by
exDM69
2y ago
They are very similar, but wgsl is its own language. Vulkan can run SPIR-V shaders written in glsl, hlsl or slang. Other experimental languages exist (like rust-gpu). Wgpu is a bit behind on GPU features, for example they've added supp
145.
▲
by
exDM69
2y ago
I've done some compute shaders with Vulkan (and a lot of graphics shaders). It's quite nice and simple, after you have gone through the initial hurdle of setting it up (or used a helper library to do it for you). For compute shade
146.
▲
by
exDM69
2y ago
Yes, but audio glitches are much worse for the experience.
147.
▲
by
exDM69
2y ago
Games do a very impressive amount of work for graphics but there's a huge difference: a dropped/late graphics frame every now and then is not a big deal. An audio glitch is very annoying by comparison, especially if the applicatio
148.
▲
by
exDM69
2y ago
You need to remember that when TrueType fonts were introduced, a typical display resolution was 640x480 to 800x600 on a 13-15" display. If you rasterize the Bezier curve outline of a ttf font at that resolution, you will have very croo
149.
▲
by
exDM69
2y ago
TrueType fonts have had a Turing complete virtual machine (almost?) since the beginning. It is used for "hinting" to allow partially colored pixels at low resolutions to remain legible. It's basically a program that decides w
150.
▲
by
exDM69
2y ago
In addition to the missing newlines, the inline assembly code is also not correctly marking that it clobbers memory. It is probably not an issue for the entry point function, but the lack of it could mean the compiler is allowed to do incor
More ›