Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
variadix
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
91.
▲
by
variadix
1y ago
National security is the obvious reason. That includes the ability to switch to a wartime economy, which requires low-tech manufacturing and resource extraction to not be reliant (and thus vulnerable) on imports from potential adversaries.
92.
▲
by
variadix
1y ago
This is a great way of putting it. The more things you can prove are invariant, the easier it is to reason about a piece of code, and doing the hoisting in the code itself rather than expecting the compiler to do it will make future human a
93.
▲
by
variadix
1y ago
Interesting article. I heard SUPERHOT VR was a really good (if not one of the best) VR games when released. I’ll probably pirate it if I ever get around to playing it now. I disagree with the author on whether ‘woke’ is an accurate term to
94.
▲
by
variadix
1y ago
If it’s opt-in then code written for the default (ie most code that wasn’t written to use the unintuitive behavior for some performance reason) will be either well-formed code that relies on the behavior (fine, but for signed int wrapping t
95.
▲
by
variadix
1y ago
If it has inline assembly it’s low-level in my opinion. This feature (or at a minimum the ability to link against and interface with assembled objects) is _the_ requirement for all hardware-facing programming, since general purpose programm
96.
▲
by
variadix
1y ago
This is certainly an interesting argument for making certain behavior (in this case, uninitialized access) the default and UB. There’s a similar argument for making signed overflow UB instead of defined to wrap, even if you’re only targetin
97.
▲
by
variadix
1y ago
Eh, there are better implementations that are less syntactically obtuse (no ->void) but other than that it’s fine. Fairly obvious what it’s supposed to do and I’ve needed similar things in the past. There’s a cppcon talk that use ->*
98.
▲
by
variadix
1y ago
I’ve noticed a similar issue in a different crypto library before (mbedTLS), IIRC their MPI implementation allocated and deallocated _a lot_ of tiny allocations during ECC operations.
99.
▲
by
variadix
1y ago
How does this compare to a 128 bit MCG or LCG? See https://www.pcg-random.org/posts/does-it-beat-the-minimal-st... for examples and constants
100.
▲
by
variadix
1y ago
Path tracing
101.
▲
by
variadix
1y ago
Depends on if you need to allocate/deallocate nodes. If you construct the tree once and don’t modify it thereafter you don’t need to. If you do need to modify and alloc/dealloc nodes you can use a bitmap to track free/occupie
102.
▲
by
variadix
1y ago
Not directly, but I wouldn’t be surprised if there’s enough of an efficiency improvement to obviate hiring an engineer or two (across 100+ people). In the same way that Google and StackOverflow made people more efficient when compared to ha
103.
▲
by
variadix
1y ago
The use case that comes to mind is doing manual compile time optimization based on macro arguments. E.g. you have some assembly block that is fast but requires some immediate arguments, and you have a fallback path for the dynamic case, and
104.
▲
by
variadix
1y ago
__builtin_choose_expr can be used instead of a ternary to avoid the type conversion rules that require the typeof cast
105.
▲
by
variadix
1y ago
I would really like to see some exploration of alternative site structures, ways to design new social media sites with better systems of incentives, for users and for mods. There is very little diversity in how social media sites are driven
106.
▲
by
variadix
1y ago
This is so hilariously reductive it reads like satire. As if someone’s life experience can be deduced from their immutable characteristics.
107.
▲
by
variadix
2y ago
I haven’t worked with ffmpeg’s code, but I have worked with QEMU. QEMU has a lot of OOP (implemented in C obviously) that is supported by macros and GCC extensions. I definitely think it would have been better (and the code would be easier
108.
▲
by
variadix
2y ago
Unless I’m missing something, I don’t really see the point of putting the functions in the struct instance since it doesn’t seem like you need to use any form of polymorphism/function overriding. If you have normal, non-virtual instanc
109.
▲
by
variadix
2y ago
C compilers are still pretty bad at auto vectorization. For problems where SIMD is applicable, you can reasonably expect a 2x-16x speed up over the naive scalar implementation.
110.
▲
by
variadix
2y ago
It’s not a “gotcha” question, there’s clearly one right answer. It’s not a philosophically interesting question, anyone or anything that cannot answer it succinctly is clearly morally confused
111.
▲
by
variadix
2y ago
Point object could be either, since the coordinate systems are truly interchangeable, e.g. the class could just store everything as Cartesian internally and convert to/from polar as needed. In a class with more mutually exclusive prope
112.
▲
by
variadix
2y ago
Most of this sounds like the symptoms of an individualist society. If people only take into consideration their own incentives, why would they care about the experience of anyone else? In my opinion this world view is a result of a society
113.
▲
by
variadix
2y ago
Technology isn’t the issue Mass immigration and increasing wealth disparity are much more relevant.
114.
▲
by
variadix
2y ago
Western elites have been pushing degrowth policies for the last decade or so. GP’s precise intent is unclear, but is probably suggesting there is a hidden, sinister purpose to it.
115.
▲
by
variadix
2y ago
SF Mono is by far my favorite, unfortunate it can’t be included It can be extracted from the apple dev fonts dmg if you want to use it in your editor on a non-OSX platform
116.
▲
by
variadix
2y ago
For programming, I really enjoy the Corne (crkbd). Having all symbols and numbers on easily reachable keys is much more ergonomic, and the tenting helps a lot with wrist strain. I also have macros for stuff like moving lines around, jumping
117.
▲
by
variadix
2y ago
I can’t comment on the current job market, but I was looking for work as a fresh grad in 2021. After applying to 200+ positions I received 5 callbacks, 3 of which were defense contractors. 3.9 GPA in EE at a top 10 state school, 2 internshi
118.
▲
by
variadix
2y ago
Since ChatGPT’s release you can’t rely on user testimonials for products on Reddit. There were paid shills before ChatGPT, but it was harder to do at scale. Now there are way too many bot replies to sift through.
119.
▲
by
variadix
2y ago
The same density _overall_ but locally the density varies. Maybe there’s some way to use this for detection but I don’t see it.
120.
▲
by
variadix
2y ago
Indeed. The uses I’ve seen of slop are mostly in regard to media produced by large companies that is unremarkable and derivative, meant to be consumed and quickly forgotten, making way future media that is practically identical. AI generate
More ›