Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
planede
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
planede
2y ago
C23: > The unary * operator denotes indirection. If the operand points to a function, the result is a function designator; if it points to an object, the result is an lvalue designating the object. If the operand has type "pointer t
32.
▲
by
planede
2y ago
How does arithmetic work with NonZeroI16 and remain efficient? What's the codegen of adding/subtracting two NonZeroI16 values?
33.
▲
by
planede
2y ago
Like one that is free'd or point to a stack object that is no longer in scope. Or one that points one past the last element of an array.
34.
▲
by
planede
2y ago
More like: switch (e) { case A: foo(); break; case B: bar(); break; } std::unreachable(); instead of: switch (e) { case A: foo(); break; case B: bar(); break; default: std::un
35.
▲
by
planede
2y ago
On libstdc++ std::unreachable() also reliably crashes if you define either _GLIBCXX_DEBUG or _GLIBCXX_ASSERTIONS. libc++ should have a similar macro. I expect MS STL to also reliably crash on debug builds here, as it's quite heavy on d
36.
▲
by
planede
2y ago
I recommend omitting the default case and putting std::unreachable() outside the switch and omitting the default label for the sole reason that compilers are more likely to warn for a missed case label this way (-Wswitch vs -Wswitch-enum in
37.
▲
by
planede
2y ago
However matmat is done, row-major vs column-major for both matrices shouldn't make a difference (for square matrices at least). I don't know if tiling is done for matvec. I don't think it makes sense there, but I didn't
38.
▲
by
planede
2y ago
C code conforming to the ISO C standard generally requires a (very small) runtime.
39.
▲
by
planede
2y ago
Even if the RGB components correspond to sRGB, to linearize you apply the same non-linear function to each component value, independently. So even if you do the interpolation in a linear colorspace, the order of the sRGB components does not
40.
▲
by
planede
2y ago
Your reasoning starts out nicely with y=Ax, but you get the wrong conclusion. The layout of x and y are not affected at all by row or column order, they are just consecutive numbers in either case. So you have to look at the layout of A. Fo
41.
▲
by
planede
2y ago
Technically still better than not offering deletion at all, but of course in reality it's in many ways worse.
42.
▲
by
planede
2y ago
The images might have ~10cm resolution, but that doesn't necessarily mean that there can't be larger scale systematic offsets and other distortions for larger tiles. I recently learned that satellite images are often corrected to
43.
▲
by
planede
2y ago
Hmm, this opens the possibility to also commit these files as directory structures. I wonder how this would affect merges and conflicts.
44.
▲
by
planede
2y ago
If you asked a person to give you a random number between 1 and 6, would you accept if they just said a number they just came up with or would you rather they rolled a die for it?
45.
▲
by
planede
2y ago
> I'd prefer a messy history but have a way to just see MRs into master/main as the main sequence of changes. git log --first-parent gets you there. > Then be able to zoom in futher if necessary to see how an MR was arrived
46.
▲
by
planede
2y ago
Switzerland has a lot in my experience. At least the few cities that I visited. They are also very well mapped on openstreetmap, so it was easy to search for a nearby one with osmand whenever I was thirsty.
47.
▲
by
planede
2y ago
problem statement: git history, as normally presented, is hard to follow and contains too much noise. article's proposed solution: simplify the git history by destroying information that are irrelevant. That's what rebase is. The
48.
▲
by
planede
2y ago
Because that's not the framework where N and NP applies. There is no notion of black boxes outside of the algorithm.
49.
▲
by
planede
2y ago
A bag of bytes is a bag of bytes. Any encoding should be either assumed by the protocol being used or otherwise specified.
50.
▲
by
planede
2y ago
I would think that the majority of immigrants that are not white are also not from the EU, but I don't know that statistics.
51.
▲
by
planede
2y ago
The "printf" hiding is probably too crude and tailored to bash. But I don't see why the so file couldn't just modify the environment once it's loaded.
52.
▲
by
planede
2y ago
Merges of course should have changes, but IMO they shouldn't have changes that are not resolving conflicts (either actual conflicts marked by git, or conflicts that manifest in failing tests, etc...). An entirely unrelated change stuff
53.
▲
by
planede
2y ago
Interesting. From what I can find the pixel format is 4 polarization directions per pixel, 45 degrees apart. Even though there are 4 channels this doesn't allow to deduce the V Stokes parameter (this camera can't capture circular
54.
▲
by
planede
2y ago
> like 256 orientations per pixel per image You only need 4 parameters to describe the polarization at a single wavelength[1]. Naively this could be 4 parameters per color channel, so 12 channels overall. I think you could potentially ne
55.
▲
by
planede
2y ago
For me that means having multiple keys in `authorized_keys` for the same user and never transferring private keys between devices. From what I gathered from the discussion here, this is not a given.
56.
▲
by
planede
2y ago
I would say if it still runs other unmodified xbox games natively then it's an xbox (and possibly more).
57.
▲
by
planede
2y ago
I think this tool must share a lot techniques and use cases with rr. I wonder how it compares in various aspects. https://rr-project.org/ rr "sells" as a "reversible debugger", but it obviously needs the
58.
▲
by
planede
2y ago
There were proposals for optimizing this kind of stuff for C++ in particular for error handling, like: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p07... > Throwing such values
59.
▲
by
planede
2y ago
I don't think a fresh boot is the best benchmark for this. I do use plasma and in my experience memory usage tends to go quite a bit higher with use, even if you close everything. I don't think they have leaks and it's probab
60.
▲
by
planede
2y ago
> Scotopic vision occurs at luminance levels of 10−3[5] to 10−6[citation needed] cd/m2 They should have more than enough brightness to be clearly visible in those light conditions on almost any visible wavelength they chose for the
More ›