Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pm215
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
31 ms
·
391.
▲
by
pm215
5y ago
There's a stretch of disused railway near here which is still clearly visible in aerial photos over 170 years after it was closed... ( https://en.m.wikipedia.org/wiki/Newmarket_and_Chesterford_Ra... -- the line fro
392.
▲
by
pm215
5y ago
The code is doing a lot of preprocessor macro magic, though, which rather obscures some of what is going on.
393.
▲
by
pm215
5y ago
Yes. The thing which is controlled per-process (per-thread, really) is the extent to which you can pass a tagged address to a kernel syscall and have it strip the tag and operate on the 'real' address versus handing you a '
394.
▲
by
pm215
5y ago
You can do that where for instance the VM has PCI and can plug in a virtio RNG device. But a lot of the QEMU setups Guenter Roeck reported issues with are emulating real (usually old) hardware which didn't have a PCI bus, or any other
395.
▲
by
pm215
5y ago
The place I work at (size: couple of thousand employees) has had a 'staff' title for at least a decade, but my impression has always been that it was mostly just the result of "we have enough levels that we want a title above
396.
▲
by
pm215
5y ago
GCC 5.1 (released in 2015) is hardly latest-and-best, though: moving the version bar up only very slowly and with an eye to what distros are using as their compiler version is a pretty solid boring-technology approach, in my view.
397.
▲
by
pm215
5y ago
If you want "malloc failure is fatal", which I agree is a good idea for a lot of programs, the way to do that is have a wrapper that aborts() if it does, not to just ignore the possibility of error. That way if the unlikely event
398.
▲
by
pm215
5y ago
The major benefit to "tool is part of the compiler" is that vastly more people will use it and maybe fix the errors. There's a Google paper from 2018 ( https://m-cacm.acm.org/magazines/2018/4/226
399.
▲
by
pm215
5y ago
It was simple specifically for the people writing it at the time. We know this, because they've helpfully told us so :-) It might or might not have been harder than a different approach for some other programmers writing some other OS
400.
▲
by
pm215
5y ago
There is exactly a fork-exec combo like that: it's called posix_spawn(): https://man7.org/linux/man-pages/man3/posix_spawn.3.html I think the reason for fork() and exec() as primitives goes back to the e
401.
▲
by
pm215
5y ago
That's backwards from my experience, which is that most users of fork() only do "fork; child does small amount of setup, eg closing file descriptors; exec". Shells are one of the few programs that do serious work in the child
402.
▲
by
pm215
5y ago
The distro kernel will stay on the LTS branch, certainly -- but the upstream kernel folk like people to be able to compile upstream kernels and not have to stick with the distro ones. (I've done it myself on occasion and i'm not a
403.
▲
by
pm215
5y ago
I get the impression that a big part of it is just a general choice to be very conservative about forcing newer minimum versions. So to raise the version bar you have to make the positive case for why it's worthwhile -- merely "gc
404.
▲
by
pm215
5y ago
Linux has always relied heavily on GCC extensions, though -- it makes no attempt to actually be C89-compliant portable code. What it actually has is a minimum supported gcc version, which in turn governs whether particular features can be u
405.
▲
by
pm215
5y ago
On your last point -- whether a FOSS project is set up to be able to do anything useful with $800 varies a lot, I think. If it's something put out by a consulting company or by a one-man-band independent or even by a student, sure. But
406.
▲
by
pm215
5y ago
It means you can tax car usage more heavily than would be the case if you just taxed their electricity consumption at the same rate as electricity used for other purposes (like home lighting and heating), in a way analogous to how in the UK
407.
▲
by
pm215
5y ago
Given that the Chinese writing system has retained its large number of complex-to-draw characters for thousands of years, I think it's a bit of a stretch to consider that an alphabet is "far too efficient to ignore". Historic
408.
▲
by
pm215
5y ago
It's not in the codebase proper, but the Linux Test Project https://github.com/linux-test-project/ltp is probably a good place to start to see what's currently being tested for a syscall and to add new tests
409.
▲
by
pm215
5y ago
Since she was English, I suspect Christie would have considered herself middle-class on the basis of her parents, and not believed that her wealth had much to do with what class she fit into. Equating income levels with class levels is more
410.
▲
by
pm215
5y ago
The article quotes that 28% as being the amount of inflation "from 2010 until the middle of 2021". I haven't checked the figures, but that seems believable for a decade's worth of inflation.
411.
▲
by
pm215
5y ago
The "Linux enablement" section of https://www.morello-project.org/ says that is "under development", with an initial prototype musl based system available now and a fuller-fat Debian scheduled some time
412.
▲
by
pm215
5y ago
Yes; if you read the introduction to the version of the "Lions Book" which was republished in the 1990s with the 6th Edition UNIX source code, you can see that the only reason it happened was that the executives in charge of the c
413.
▲
by
pm215
5y ago
You only have to do that if you're in a situation where your correspondent expects same-day responses. Mostly you should try to avoid creating that expectation -- or where you do want to provide that level of service, eg for customer i
414.
▲
by
pm215
5y ago
The difference between 'doubt' and 'doute' is the vowel sound, not a presence/absence of 'b'. 'debt' and 'dette' don't sound quite identical to me (as a native English speaker and
415.
▲
by
pm215
5y ago
My abiding memory of typing in listings on my TI-99/4a is how often I intended to type shift-equals to get '+' but instead hit function-equals, which reset the machine and lost all my work since I last saved (and since it was
416.
▲
by
pm215
5y ago
The twitter thread says it specifically doesn't change the size of a page, though. AIUI the idea is that it allows one TLB entry to cover more than just one page -- the page table entry promises "all 64K have the same permission
417.
▲
by
pm215
5y ago
No, the Granny Smith is an eating apple (for instance this BBC Good Food page -- https://www.bbcgoodfood.com/glossary/apple-glossary -- lists it in the eating apples, not in the cooking apple list with varieties like B
418.
▲
by
pm215
5y ago
I put my question to a friend of mine who works on linkers, and his take was that for a single threaded linker like ld.bfd the copy-bytes part would probably dominate, but that for a multithreaded linker like lld that part trivially paralle
419.
▲
by
pm215
5y ago
Is the slow part of linking the "copy all the bytes into the executable" step (in which case avoiding separate-link is a clear win, saving a copy), or is it the "do all the relocations" work, which I think needs to be do
420.
▲
by
pm215
5y ago
Weird naming is definitely part of the problem. I think the other part that makes git painful for beginners is that it does not mandate a workflow (do you have a central authoritative server? where is it? Do you merge master into working br
More ›