Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
masklinn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
211.
▲
by
masklinn
6mo ago
The file may have been renamed or deleted since the fd was opened, and it might have been legitimate and on purpose, but there’s no way to tell what trying to resolve the fd back to a path will give you. And you need to do that because noth
212.
▲
by
masklinn
6mo ago
To the extent that locking exists in posix it is various degrees of useless and broken. And as far as I know while BSDs have extensions which make some use cases workable Linux is completely hopeless.
213.
▲
by
masklinn
6mo ago
> For example, Unix's `rename` syscall takes two paths as arguments; you can't rename a file by handle And then there’s renameat(2) which takes two dirfd… and two paths from there, which mostly has all the same issues rename(2)
214.
▲
by
masklinn
6mo ago
> SNES is so old I wonder why you couldn't get away with CPU-only. Depends what level of accuracy you want. higan (bsnes) does cycle-accurate SNES emulation on the CPU (and has for more than a decade) so that's definitely feasi
215.
▲
by
masklinn
6mo ago
The European green belt is an even starker example, it’s thousands of miles long but just a few tens to hundreds meters wide in most locations, yet its stability and continuity have made it a huge wildlife conservation area.
216.
▲
by
masklinn
6mo ago
> It's not totally clear to me exactly when or why it became widespread It’s not exactly a tough nut to crack: it changed 2-ish years ago after guidance (and cargo’s defaults) changed: https://blog.rust-lang.org/2023
217.
▲
by
masklinn
6mo ago
> The only good syntax highlight to me is 00 and perhaps FF. But that's my opinion of course. Would probably make the most sense to have various ranges you can enable depending on what you’re looking for (or to look for patterns) e.
218.
▲
by
masklinn
6mo ago
> It encodes to the same number of bytes
219.
▲
by
masklinn
6mo ago
The question is why one idiom won over the other, which happened a long time ago. Because as the article notes on "any modern x86 processor" both xor r, r and sub r, r are handled by the frontend and have essentially no cost.
220.
▲
by
masklinn
6mo ago
It was also used by professional who needed to transfer large (for the times) amounts of data but not so much or without the technical background that high density tapes or routinely swapping hard drives was sensible (or possible): images,
221.
▲
by
masklinn
6mo ago
> I never read how the zip drive can achieve 100x or more capacity than the floppy. What is the engineering feat that allowed this? Improvement in production processes and materials (e.g. magnetic coatings) allowing smaller tracks and sm
222.
▲
by
masklinn
6mo ago
Given the claims relate to path traversal I assume it’s from (some) software treating http path trailers as FS paths, where a leading / would be an absolute path.
223.
▲
by
masklinn
6mo ago
When people created firebase keys years ago they did not expect or imagine these keys would become valid for AI that didn’t exist years down the line.
224.
▲
by
masklinn
6mo ago
They do not no. Afaik GitHub has little to nothing that is cross repository.
225.
▲
by
masklinn
6mo ago
Stacked PRs track changes through updates and can be integrated progressively as they get validated. They also allow reviewing commits individually, which is very frustrating to do without dedicated support (unless you devolve back to maili
226.
▲
by
masklinn
6mo ago
Merge trains are an integration method. In GitHub that’s called merge queues. Stacked PRs are a development method, for managing changes which are separate but dependent on one another (stacked). The two are orthogonal they can be used toge
227.
▲
by
masklinn
6mo ago
Not sure why I'm being downvoted. Here's the segment where Manley explains this: https://youtu.be/shcj7MUK5BU?t=828 and this is also the section where Manley explains Artemis III is not going to the moon so it won
228.
▲
by
masklinn
6mo ago
> only two prongs of which make it through The big recess above the pins is what encases the button of the charger and provides grounding if it includes metal strips. Assuming the charger itself has a metal button. In the EU a grounded c
229.
▲
by
masklinn
6mo ago
In my understanding of the Manley video, the materials change will only occur for Artemis 3, for which it will be irrelevant as that will not be leaving LEO.
230.
▲
by
masklinn
7mo ago
Unions can be used as a somewhat safer (not safe by any means but safer), more flexible, and less error-prone form of transmute. Notably you can use unions to transmute between a large type and a smaller type. That is essentially the motiva
231.
▲
by
masklinn
7mo ago
I assume it's anthropic rejecting the US Government's use of their software for domestic mass surveillance or fully autonomous weapons, and openai happily agreeing to it. That has led to a significant number of people switching ov
232.
▲
by
masklinn
7mo ago
> Downvoting is the tool for items that you think don't belong on the front page. You can’t downvote submissions. That’s literally not a feature of the site. You can only flag submissions, if you have more that 31 karma.
233.
▲
by
masklinn
7mo ago
> Skipping a commit that doesn't build is trivial (especially if you're automating your bisects). A broken commit usually compiles, if you don’t even compile before committing you should go back to school. > If you feel the
234.
▲
by
masklinn
7mo ago
50 years of computing have proved pretty conclusively that less than that is wishful thinking at best. Large C++ programs, even with massive amounts of resources and tooling, can’t even get memory management correct.
235.
▲
by
masklinn
7mo ago
> Yes, it's also a systems language without a runtime. But that's not the novel part. Low level strong correctness was absolutely a novel part. In fact it’s exactly why many people glommed onto early rust, and why it was lowere
236.
▲
by
masklinn
7mo ago
> all the correctness When did OCaml get affine types? Or unique references?
237.
▲
by
masklinn
7mo ago
> I imagine Rust has features which can not be translated into Go's assembly Why would there be? Go’s assembly might be lacking ways to make them optimally efficient, but that’s probably a given either way without an optimizing comp
238.
▲
by
masklinn
7mo ago
> It's similar to how Rust has isize but no fsize. isize is the type for signed memory offsets, fsize is completely nonsensical.
239.
▲
by
masklinn
7mo ago
2018 (tham luang cave rescue) is when the cracks really started showing up, so the trajectory was probably set a while earlier. The tendency was probably always there given the serial lying about self driving started circa 2015, or the weir
240.
▲
by
masklinn
7mo ago
I assume it’s either Antirez’s sds or a variant / ancestor thereof, yes. It stores a control block at the head of the string, but the pointer points past that block, so it has metadata but “is” a C string.
More ›