Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Tobu
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
Tobu
4mo ago
Is there a list of CMD builtins somewhere?
2.
▲
by
Tobu
4mo ago
In the case of find and sort, the command invoked also depends on argument sniffing, with a fallback through the registry when that is indecisive: https://github.com/microsoft/coreutils/blob/main/src/
3.
▲
by
Tobu
2y ago
The method is called `CoherentAllocation::into_parts`. And it takes self by value, which means the struct is consumed (this is implied by the into_ prefix). Of course you would either reconstruct the allocation or free the allocation your
4.
▲
by
Tobu
2y ago
> will they abdicate their power Yeah, no. This is a coup and they are all in. They would not be this blatant about taking control illegally and fast if they expected to leave any institutions to still enforce the law against them.
5.
▲
by
Tobu
2y ago
Looks like the Steam team moved to control spawning and do execvpe. I would like to see at least in-process environment modification discouraged. Rust is dealing with the issue by considering getenv unsafe when coming through C, but gettin
6.
▲
by
Tobu
2y ago
It is possible to check for setenv/unsetenv/putenv with nm -D, and a quick sample of my ~/.cargo/bin/* shows far too many programs using those. Yeah they could be single threaded, but who can guarantee they will re
7.
▲
by
Tobu
2y ago
There's a proof of concept here: https://sinrega.org/2024-03-06-enabling-containers-gpu-macos...
8.
▲
by
Tobu
2y ago
There was indeed sabotage, in the form of dismantling and not replacing hundreds of working mail sorting machines in an election year: https://www.forbes.com/sites/andrewsolender/2020/08/19/repor...
9.
▲
by
Tobu
2y ago
I've had my own bad experiences with Btrfs (it doesn't behave well when close to full), and my intuition is that Facebook's use of it is in a limited operational domain. It works well for their use case (uploaded media I thi
10.
▲
by
Tobu
2y ago
fclones for example covers it well for any filesystem with reflinks: https://lib.rs/crates/fclones fclones group |fclones dedupe
11.
▲
by
Tobu
2y ago
> Error handling on CRC read error > 2 or more copies of file, CRC on error, read other copy, data returned to userspace, does not correct bad copy That's been implemented; in Linux 6.11 bcachefs will correct errors on read.
12.
▲
by
Tobu
2y ago
The Into<SpanArithmetic> argument feels a little too magical. Since you are not constrained by a trait, I would prefer something like Span::add_with_reference(&self, other: &Span, reference: impl Into<SpanRelativeTo&g
13.
▲
by
Tobu
2y ago
The other actress wasn't the only one involved in the production; she provided input but OpenAI building a voice model would involve a lot of data and input. They had to have a model of her ready to go when they asked her for permissi
14.
▲
by
Tobu
2y ago
Emergency braking feels more like shoving the wheel forward than shifting oneself behind the wheel. You ignore balance for a while, get yourself into a sitting position fast, the system can right itself (or not) after you've bled enou
15.
▲
by
Tobu
2y ago
Adept -> Guru is the logical association
16.
▲
by
Tobu
3y ago
There are two level of pointers: the environment block points to an array of pointers to C strings, this higher-level pointer can be updated and the previous one freed, which is a problem when it is being iterated on (which getenv does). T
17.
▲
by
Tobu
3y ago
Who doesn't? libc itself calls getenv when getting system time: https://news.ycombinator.com/item?id=38344224 You may have a mutex on getenv/setenv, like the Rust stdlib does, but when libc doesn't look at t
18.
▲
by
Tobu
3y ago
kernel developers are free to factor in common functionality, calling into it library style, without making it into an externally visible layer. IIRC fs encryption and case insensitivity are often done that way, and I think I'd count
19.
▲
by
Tobu
3y ago
Of course bcachefs can cache data; that was the main draw of bcache as well. Quoting an example from https://bcachefs.org/GettingStarted/ bcachefs format /dev/sd[ab]1 \ --foreground_target /
20.
▲
by
Tobu
3y ago
I think the word they were looking for is "fragmented".
21.
▲
by
Tobu
3y ago
I was thinking of that around the "stack-based interpreted language" paragraph. Mozilla's RLBox/wasm2c approach would be good for this, for example. Postscript can still mix data and code, but it won't jump outside
22.
▲
by
Tobu
3y ago
Thank you! I couldn't find it last time I needed it (it was on a Heroku domain that went https://http.cat/status/404 )
23.
▲
by
Tobu
3y ago
404 is handled exceptionally inside the sequence, and for a while it was double-exceptionally possible to land on it through the random button: https://web.archive.org/web/20190328010454/https://plus.goog
24.
▲
by
Tobu
3y ago
https://xkcd.com/2822/ -> https://datatracker.ietf.org/doc/html/rfc2822 Any other fun easter eggs in the XKCD counter? - https://xkcd.com/404/ 404s (obviously) -
25.
▲
by
Tobu
3y ago
https://www.cvedetails.com/vulnerability-search.php?f=1&prod... finds quite a few: double free, array out of bounds, buffer overflows in the stack and the heap… There's also a format string vulnerability that would
26.
▲
by
Tobu
3y ago
Indeed, here's GitHub doing exactly that (fixing mixed content warnings by reverse-proxying third-party HTTP content), back in 2010: https://github.blog/2010-11-13-sidejack-prevention-phase-3-s...
27.
▲
by
Tobu
4y ago
Some popular proc-macros could be pre-compiled and distributed as WASM, and it would be impactful, since they tend to bottleneck the early parts of a project build. However I don't think that could be made entirely transparent, becaus
28.
▲
by
Tobu
4y ago
The author was gently panned when this was originally posted on Reddit, and they added that note, but now that the article is being reposted uncritically where people may not know the difference, it's worth pointing out again. The way
29.
▲
by
Tobu
4y ago
I don't see why you'd blame Linux for deleting a file you asked it to. However, if the process is sufficiently long-running, it is possible to relink the file by looking inside `/proc/$(pgrep yourprocess)`.
30.
▲
by
Tobu
4y ago
As far as I'm aware (ICEs…) compilers aren't hardened against untrusted code, and a sufficiently capable exploit could be used to poison the cache.
More ›