Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kennylevinsen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
kennylevinsen
3y ago
There as nothing in the Lufthansa plans or policies that would make this flight or landing impossible, unreasonable or unsafe. I imagine this landing at night is not a first either.
2.
▲
by
kennylevinsen
5y ago
> That would depend on if you knew more about how the code is intended to work than the original author of the code. Do you presume to know more about how this code is intended to work than the original author? I am not sure if you are s
3.
▲
by
kennylevinsen
5y ago
> The "well-designed" argument here is a bit No True Scotsman, and absolutely not true. This counter arguments can be interpreted as a mere No True Scotsman of "responsiveness", so this is not a very productive line o
4.
▲
by
kennylevinsen
5y ago
> All well-designed interactive GUI applications do not interact with the file system on their main thread I strongly disagree. A well-designed interactive GUI application can absolutely interact with the filesystem on its main thread wi
5.
▲
by
kennylevinsen
5y ago
As mentioned elsewhere, the file descriptor table is an array and a bitmask - finding the next fd is a matter of finding the first unset bit, which is extremely efficient. And that's before we ignore that the file descriptor table is r
6.
▲
by
kennylevinsen
5y ago
This sounds like premature optimization. FD availability is tracked in a bitmask, and finding the next available slot is a matter of scanning for the first unset bit under a spinlock. This is going to be extremely fast. While you could sh
7.
▲
by
kennylevinsen
5y ago
This argument does not make sense - the kernel already needs to track per-process file descriptors. It just looks for the first hole instead of giving the "next" value. Go's random map iteration does not apply here. Not only
8.
▲
by
kennylevinsen
5y ago
You would not use io_uring for things like that. Not only will you still use regular file operations on device files for various reasons, should you chose to use io_uring you would want it to run your entire eventloop and all you I/O r
9.
▲
by
kennylevinsen
5y ago
Patch author here. It is important to not conflate POSIX requirements with expected behavior, especially for device files which require very specific knowledge of their implementation to use (DRM ioctl's and resources anyone?). You mig