Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
planede
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
51 ms
·
571.
▲
by
planede
4y ago
Sounds like a cool sci-fi idea, but you would probably need to put a significant amount of material 1,500,000km away to put a shade over the Sun. Probably comparable to the mass of our atmosphere. And then repeat every decade.
572.
▲
by
planede
4y ago
For me the most important defining characteristic of a framework is inversion of control. With a framework high level control flow is dictated by the framework itself. It follows from this that using two different frameworks can be challeng
573.
▲
by
planede
4y ago
Yeah, but this has other trade-offs than the other two options of just using a 3rd party framework and inventing your own. Not saying that this is not viable though.
574.
▲
by
planede
4y ago
> and with older packages, but that's usually okay Just use sid/unstable. Debian really did a disservice for naming it "unstable". Don't use "testing".
575.
▲
by
planede
4y ago
> You can't expect modern Windows to ship 20+ year old DLLs that allow running Windows 98 APIs as that's a major security vulnerability since older APIs had direct hardware/memory access without any kind of checks and bala
576.
▲
by
planede
4y ago
There are several such apps on f-droid.
577.
▲
by
planede
4y ago
Ah, OK, fair enough.
578.
▲
by
planede
4y ago
Volumes XVIII, XIX and XX: closing parens.
579.
▲
by
planede
4y ago
Submissions for the Hutter price also include the size of the compressor in the "total size". So I assume that's hard to beat if you use huge neural networks on the compression size, even if decompression is fast enough.
580.
▲
by
planede
4y ago
the `read -r foo < configfile` might be obscure, but every line in a POSIX text file ought to have a newline terminator. If this is worth erroring out on probably depends on context.
581.
▲
by
planede
4y ago
[]{}() was always valid, but you can drop the arguments in more cases in C++23.
582.
▲
by
planede
4y ago
The difference here is that the behavior would need to be documented. That's why I didn't bother with "the behavior of the program is unspecifed", because that really is just undefined behavior. But yeah, actually listin
583.
▲
by
planede
4y ago
You are right, but OP asserted that IB (implementation defined behavior) would be needed for this. IB would also allow this, but it is not necessary. All of undefined/unspecified/implementation-defined allows this. edit: Whether u
584.
▲
by
planede
4y ago
Unspecified behavior and implementation defined behavior are distinct in theory. The latter requires the behavior to be documented by the implementer, while the former does not. In practice I dare you to find compiler documentation for each
585.
▲
by
planede
4y ago
vector is a template, at most vector<some_type>::operator[] will be a weak symbol, and I bet it's inlined from -O1 and above.
586.
▲
by
planede
4y ago
Good news, in C++20 you can add <> there somewhere, although probably it can't be empty. Anyway, probably obscure enough: int main() { []<class=void>(){}(); }
587.
▲
by
planede
4y ago
UB does not prevent that. Compilers already have flags for those, for example gcc's -ftrapv and -fwrapv .
588.
▲
by
planede
4y ago
I have an autossh + tmux setup. It's along the lines of autossh -M 0 -t remote "tmux new-session -A -D -s $RANDOM$RANDOM$RANDOM$RANDOM" with appropriate ServerAliveInterval and ServerAliveCountMax settings. It works so
589.
▲
by
planede
4y ago
What's the typical circuit found in a laptop or phone? They all have to deal with this stuff internally. IMO a cheapo x64 laptop is better than a raspberry PI + some jerry-rigged UPS setup for a low-power home server setup, YMMV.
590.
▲
by
planede
4y ago
IMO the arrows point to the right direction, in a sense that in my mental model arrows are typically owned by the pointer, not the pointee. The pointees are typically unaware of what points to them. A base class "doesn't know"
591.
▲
by
planede
4y ago
I think most importantly your opponents become less likely to knock your number out. The goal is your number to win, not your opponents to lose.
592.
▲
by
planede
4y ago
If we discovered them, I don't know. But if they discovered us then they probably use 0-based arrays.
593.
▲
by
planede
4y ago
You will, your opponents will choose matching numbers 28% of the time if they use the Nash-equilibrium mixed strategy.
594.
▲
by
planede
4y ago
Got the closed-form solution: P_i = a^i (1/a - 1) where a is the real-valued solution of a^3 + a^2 + a - 1 = 0 . a = 1/3 (-1 - 2/(17 + 3 sqrt(33))^(1/3) + (17 + 3 sqrt(33))^(1/3)) edit: The probability to win comes
595.
▲
by
planede
4y ago
> unknown non-optimal strategy The hard part is to establish a prior for this "unknown". Otherwise you can't say anything.
596.
▲
by
planede
4y ago
What's super surprising if that I'm "dumb" and I play against two "smart" players then I can't have a bad strategy. Assuming that the "smart" players play the Nash-equilibrium mixed strategy then
597.
▲
by
planede
4y ago
I feel that it's actually the opposite. There is a world of difference between 0.0...01 and 0.0...001 , where ... represents the same number of 0s in the two cases. Same applies for the other end. edit: Do I really want more resolution
598.
▲
by
planede
4y ago
For what it's worth you can define main as auto main() -> int { ... } in actual C++, which is not very far off.
599.
▲
by
planede
4y ago
IMO differentiating a specification and reference this way is just nitpicking. However it looks like that at least unsafe rust is underspecified regarding aliasing rules, therefore a bunch of unsafe rust is undefined behavior by definition.
600.
▲
by
planede
4y ago
Instead of speculating whether something like this could or could not be true, there should be a way to test it scientifically. * Have pairs of mobile devices set up from factory configuration with WhatsApp and Instagram installed. * Simula
More ›