Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
leni536
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
211.
▲
by
leni536
2y ago
The section about the "perfect ABI stability" is rather naive. If you have a 3rd party library that exposes a class like this in a header: class SomePublicClass { pystd::HashMap<pystd::U8String, size_t> member; &
212.
▲
by
leni536
2y ago
I learned that most email services do attach the IP address of the MUA (that is, the user's computer) if you send through SMTP. I set up an SMTP relay for myself to hide that. The user's IP address is not attached if you use webma
213.
▲
by
leni536
2y ago
Assembly doesn't really have indexes, as it doesn't have arrays. It's all addresses and offsets. Offsets are naturally 0-based. Everywhere else, indexing is just a convention, even in natural language and math.
214.
▲
by
leni536
2y ago
About the "validity" period: in practice it seems to be more like a rotation period, the code themselves seem to be valid longer than this, that is you can often enter them for quite some time after they get rotated. And I also of
215.
▲
by
leni536
2y ago
Note that without a reverse shell you could still leak the secrets in the built artifact itself.
216.
▲
by
leni536
2y ago
That's fantastic, that's exactly what I need to revive a bit-rotten python project I am working with.
217.
▲
by
leni536
2y ago
That's a horrifying suggestion.
218.
▲
by
leni536
2y ago
> one time I wanted to write generic printers. E.g. printer of any type which support C++ iterators. How would that work for types where the required functions are not instantiated, or not instantiated as a standalone function? Most iter
219.
▲
by
leni536
2y ago
Do some Rust types have invalid object representation or trap representation? On SysV x86_64 bool only has two valid representations in memory, the rest are trap representations. So for an array of bools (if Rust matches SysV) freeze wouldn
220.
▲
by
leni536
2y ago
My gripes with AI slop: * Insincerity. I would prefer a disclaimer that you posted AI generated content than presenting it as your own words. * Imbalance of efforts. If you didn't take the effort to write to me with your own words then
221.
▲
by
leni536
2y ago
Maybe it was a consideration of code size. If you already choose to support floats then you might as well only support floats and save a bunch of space by not supporting other arithmetic types.
222.
▲
by
leni536
2y ago
It depends on the image. If the two images are too far apart then it could require your eyes to diverge, and not to just converge slightly less. That might be impossible.
223.
▲
by
leni536
2y ago
That's what allocators do. If C's object model doesn't allow users of the language to write their own allocators then that object model is broken. C++ relatively has fixes to allow allocators to work, it requires calls to std
224.
▲
by
leni536
2y ago
glibc allocates in its fallback algorithm within qsort. It has to free the allocation when a C++ exception is thrown in a comparison, unless it wants to leak. I recently filed a ticket for this. They kinda have to compile at least qsort wi
225.
▲
by
leni536
2y ago
"If -fexceptions is enabled, then cleanup_function is run during the stack unwinding that happens during the processing of the exception. Note that the cleanup attribute does not allow the exception to be caught, only to perform an ac
226.
▲
by
leni536
2y ago
Doesn't have DejaVu Sans Mono, which would be a better contender than the obviously garbage fonts. I got Source Code Pro as the winner, which I think is very similar.
227.
▲
by
leni536
2y ago
Sure, I didn't mean to distinguish browsers and the JS websocket API and websocket libraries in other languages.
228.
▲
by
leni536
2y ago
To have multiple independent websocket streams, without ordering requirements between streams.
229.
▲
by
leni536
2y ago
Supposedly websockets (the protocol) support authorization headers, but often there are no APIs for that in websocket libraries, so people just abuse the subprotocols header in the handshake.
230.
▲
by
leni536
2y ago
It's not like phishing trainings don't exist, but almost all of them are just wrong. They tell you things like "look out for spelling mistakes and sketchy looking URLs".
231.
▲
by
leni536
2y ago
All of those work. As for bluetooth, I can connect multiple bluetooth headphones and playback audio at the same time. This is a bit fiddly, but I wouldn't even know where to start on some other systems.
232.
▲
by
leni536
2y ago
Apart from the LLM bs, it looks like spammers exploit the fact that they can submit bug reports at no to little cost, while the maintainers have to spend a significant amount to triage the reports. If this spamming goes out of control, then
233.
▲
by
leni536
2y ago
An impressing feat, considering it was written in assembly.
234.
▲
by
leni536
2y ago
> Are there any downsides to completely skip dependency managers of specific languages and just use submodules to handle dependencies? Submodules suck once you encounter a diamond dependency problem.
235.
▲
by
leni536
2y ago
Hmm, it appears that you are right. I vaguely remembered that zip was streamable, but it appears that it only means that it's stream writable, as in you can write zip file contents from a datastream of unknown size, and append the chec
236.
▲
by
leni536
2y ago
This contradicts the specification, which explicitly supports stream-processing zip files, which necessarily can't happen if your source of truth is the central directory record. Unless if you can wrap your stream processing in some ki
237.
▲
by
leni536
2y ago
On the other end of the spectrum there is [1]. It's both performance and usability oriented, although compile times are probably higher. Nlohmann is the slowest out of the popular libraries, AFAIK, and not particularly more usable than
238.
▲
by
leni536
2y ago
I guess postscript could be an other interesting target, so you could run your emulated C code on some printers.
239.
▲
by
leni536
2y ago
I would guess that in team sports/esports betting some people use more advanced models, but they obviously keep it secret.
240.
▲
by
leni536
2y ago
Fortunately Teams takes ctrl shift v, and it also leaves links untouched. Unfortunately it's rather easy to mistype it as ctrl shift c, which --as you might have guessed-- is "call everyone".
More ›