Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
leni536
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
181.
▲
by
leni536
1y ago
Look up the passkey idiom.
182.
▲
by
leni536
1y ago
Don't do that in C++. Maybe unless if you are debugging. This can blow up in your face in unexpected ways.
183.
▲
by
leni536
1y ago
You have critical section in the bonus section behind the pipe. Maybe shared state protected by that critical section could be your shared memory, like the state of the coins there.
184.
▲
by
leni536
1y ago
I stand corrected, not sure where I heard this then.
185.
▲
by
leni536
1y ago
AFAIK it records multithreaded applications on multiple threads and CPU, rr records them on a single OS thread, AFAIK. Not sure about replay. Never used undo though, so not sure how much better it is.
186.
▲
by
leni536
1y ago
> noticed how you encoded a flip (AB <--> CD) Exactly! There is also a less obvious relationship between A and B too: B is a A "backwards" (A rotated 180°, starting the curve from the opposite end). The strategy was to pu
187.
▲
by
leni536
1y ago
Found a space-filling curve for the wallflower: https://onlinetools.com/math/l-system-generator?draw=ABCD&sk... The previous one fills out the Koch island.
188.
▲
by
leni536
1y ago
The the arms of the author's "wallflower" fractal don't seem to curve, as opposed to the other, similar fractal (quadratic von Koch island). Which can be explained by each iteration adding a mirroring.
189.
▲
by
leni536
1y ago
Got a bit nerd-sniped by this and came up with an L-system that fills out (I think) "the wallflower": https://onlinetools.com/math/l-system-generator?draw=AB&skip... edit: On second thought, this probably
190.
▲
by
leni536
1y ago
Anything GPU related isn't great in WSL either.
191.
▲
by
leni536
1y ago
Most streaming does some batching. If you stream audio from a live source, you batch at least into "frames", and you batch into network packets. On top of that you might batch further depending on your requirements, yet I would st
192.
▲
by
leni536
1y ago
I'm drawn towards nix because of home-manager and because it seems to be the only package manager and distribution of neovim plugins that does package signing and somewhat resilient to supply chain attacks.
193.
▲
by
leni536
1y ago
Something like that is heading into C++26 actually. Except the initialization is not to zero, but to some unspecified value (with explicit intention of not allowing leaking garbage) and allowing to trap. It's called "erroneous val
194.
▲
by
leni536
1y ago
I'm not trying to find an attack vector, I'm trying to find a threat model where relying on non-signed commits on master is insecure, but relying on commits signed by the github key is secure. If you are looking at and trusting gi
195.
▲
by
leni536
1y ago
Signing with the github key doesn't add anything if you can verify based on UI/API anyway.
196.
▲
by
leni536
1y ago
So Github attests that the merge was done on Github's side, but what does "commit came from a particular person" mean? Who opened the PR? Who is the author of the commits in the PR (can be impersonated)? Who are the "com
197.
▲
by
leni536
1y ago
Don't you get all those guarantees by just pulling from github? I guess it's nice that you get an attestation that you can verify offline, but it feels like a marginal benefit.
198.
▲
by
leni536
1y ago
But that doesn't make any difference in the way you have to address existing `char arr[4] = "abcd"` declarations.
199.
▲
by
leni536
1y ago
I either don't understand how the annotation would work on types, or what would be gained by it. What type would be annotated? A typedef to char[]? edit: Unless what they actually mean is annotating struct members , that would actuall
200.
▲
by
leni536
1y ago
I fail to so what security you gain by trusting Github's key.
201.
▲
by
leni536
1y ago
The problem can occur in general if there is a greedy match within the regex: https://github.com/hanickadot/compile-time-regular-expressio... Although it looks like that this got fixed for simple patterns.
202.
▲
by
leni536
1y ago
How fitting https://www.smbc-comics.com/comic/2011-02-17
203.
▲
by
leni536
1y ago
> CTRE is fine as long as you don't overflow the stack Which is to say CTRE is mostly not fine, if you use it on user-provided strings, regardless of target environment. It's heavily recursion based, with never spilling to the
204.
▲
by
leni536
2y ago
I can no longer make outgoing connections on 465 and 586, which is annoying as that's how I used a relay SMTP server. Which is funny because they suggest to use an SMTP relay, and I already did.
205.
▲
by
leni536
2y ago
Old support page: https://web.archive.org/web/20241217094107/https://docs.digi... Not sure how this change makes sense.
206.
▲
DigitalOcean blocks SMTP ports 465 and 587 since last month
(docs.digitalocean.com)
26 points
by
leni536
2y ago
|
17 comments
207.
▲
by
leni536
2y ago
I'm sure this move improves some engagement metric.
208.
▲
by
leni536
2y ago
While mostly agree, they do have some questionable practices. Like pretty much guaranteeing a middle seat if you don't reserve one, except if you purchase "avoid middle seat" from the popup right before checkout. Or deliberat
209.
▲
by
leni536
2y ago
How often does glibc introduce a breaking change?
210.
▲
by
leni536
2y ago
Stable API implies stable size, but not the other way around. If I have a vector class that is a pointer and two sizes and change that to a vector class that is three pointers then I didn't change the size, but I broke ABI. Any change
More ›