Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
planede
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
121.
▲
by
planede
3y ago
Implementation defined is not much better than undefined. It only requires documenting the behavior, so compilers could just go like "here are all the optimizations that we apply on each target platform for each set of compiler flags&q
122.
▲
by
planede
3y ago
Great stuff. It looks like a ton of upfront work, but will greatly improve the standard, and shouldn't be too hard to maintain once it's complete.
123.
▲
by
planede
3y ago
You mean the guys the company laid off last week?
124.
▲
by
planede
3y ago
I assume it's clangd? It can be used from vim, vscode, ... etc as well and get a uniform IDE diagnostic experience across text editors.
125.
▲
by
planede
3y ago
IMO there is absolutely no reason to enable warnings in CI without -Werror. Nobody reads the logs of a successful build. If some warnings are flaky then disable them specifically. In my experience most warnings in -Wall are OK and you can s
126.
▲
by
planede
3y ago
Context. I assume you mean something like `void foo(size_t ...Idxs)`, which indeed doesn't work. It can't work, as nothing indicates that this would be a template, and it should be at least templated on the size of the pack. <s
127.
▲
by
planede
3y ago
You don't need recursion, but you do need a template, AFAIK. https://godbolt.org/z/o53o53W5r
128.
▲
by
planede
3y ago
cppinsights.io shows expanded function templates as explicit specializations. It's built on LLVM, but I don't think that this tool is upstreamed. https://cppinsights.io/lnk?code=dm9pZCBmb28oYXV0bykge30KCnZv...
129.
▲
by
planede
3y ago
In C++ that would be an "aliasing shared_ptr", for a reference counting example of the same idea.
130.
▲
by
planede
3y ago
I agree. However voltage is relevant for insulation, which also affects how heat can dissipate for the wire, and might also be relevant for a failing wire, when higher and higher voltage can build up at the point of failure (not sure if it&
131.
▲
by
planede
3y ago
Or just netcat. Throw in tar if you copy a directory.
132.
▲
by
planede
3y ago
Funnily enough I know this desert by its translated name to Hungarian as "Német csokoládé torta".
133.
▲
by
planede
3y ago
As for multi-color individual green and blue leds could be just mixed in. Do blue leds consume significantly more power too for the same brightness, or only their voltage is higher?
134.
▲
by
planede
3y ago
The math hinges on that there is the same error for exp(x) at both places. So as long as exp(x) is deterministic then this should be alright.
135.
▲
by
planede
3y ago
Paramagnetism/diamagnetism doesn't apply to "magnets", which I assume you use to refer to materials that have external magnetic field without applying external excitation.
136.
▲
by
planede
3y ago
Roads can be efficient, as buses exist. Cars are not.
137.
▲
by
planede
3y ago
Do they actively block porn, or the browser just doesn't support rendering VR content yet?
138.
▲
by
planede
3y ago
About transparency and blending: Please use premultiplied alpha for the arithmetic (and a linear colorspace, but hopefully that already happens).
139.
▲
by
planede
3y ago
Ouch. My takeaway is that I should probably delete my slack account before leaving the company.
140.
▲
by
planede
3y ago
I saw a tech demo somewhere that showcased that Qt applications on wayland could be checkpointed and restored with CRIU.
141.
▲
by
planede
3y ago
The only GCC error that apologizes (that I know of): https://godbolt.org/z/GMxz5c339 "sorry, unimplemented". It really felt out-of-place when I first encountered it, but I think it messages intent a bit more
142.
▲
by
planede
3y ago
A trap representation is not a NaN-like sentinel value. The post also didn't discuss the updated semantics of integer operations, but I assume it just simply shrinks the range of representable values by removing -2^(N-1), and operation
143.
▲
by
planede
3y ago
> Personally, my preferred behavior would be to have a compiler flag that could be used to enable a trap if unsigned arithmetic resulted in wrap-around, as in the above case when the vector is of length zero. That probably has the potent
144.
▲
by
planede
3y ago
-ftrapv is an implementation-provided flag that defines the behavior of some operations that are otherwise not defined by the language standard. The implementation could define the behavior (under the same or different flags) to this newly
145.
▲
by
planede
3y ago
Some keywords are `mousemoveevent' and '<MouseMove>'. Then you can hook up anything into a mousemove event, including activating an LSP hover window. I like to activate hover info by keyboard, so I never looked into thi
146.
▲
by
planede
3y ago
You can have hover support even in a terminal nvim instance, so maybe that's just not a distinguishing feature.
147.
▲
by
planede
3y ago
> "Type the question into ChatGPT and do what it says" is not the "how" that companies are looking for. They are probably not looking for that, because LLMs perform poorly with some kind of problems, and you don'
148.
▲
by
planede
3y ago
No, I don't think that's reasonable. Any outside resource ranges from pen and paper, a basic calculator to all the books you have, the Internet, ChatGPT and the help of other people. I would say that the only thing that should be
149.
▲
by
planede
3y ago
> However the fact that our first n=1 sample happened to be red (and not something else) gives a small (and varying) amount of confidence towards red-heavier mixes rather than the red-scarce ones. I wouldn't characterize this as a s
150.
▲
by
planede
3y ago
I think translucency is mostly whacky because it's typically represented by a single alpha channel, and a tint is represented by a color added on top. Which is not how most transparent materials look like. I think we could do better, e
More ›