Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pm215
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
64 ms
·
661.
▲
by
pm215
8y ago
Note that "provide an emulation of an x86 CPU that is sufficiently true to the hardware that it is impossible for a guest program to distinguish it" is not a goal of upstream QEMU -- in part because we don't think it's a
662.
▲
by
pm215
8y ago
I agree, but I also think it's easy to avoid that. If you say in your cover letter "I appreciate that this might not be in a good state to merge, but I don't personally have any more time to spend on it and won't be able
663.
▲
by
pm215
8y ago
There's a reason 32-bit ARM has 'move base register down and then do some stores' and 'do loads and then move base register up' (stmdb and ldmia) rather than just plain old ldm and stm, and I'm pretty sure it&#
664.
▲
by
pm215
8y ago
I definitely found that C made more sense to me on my second attempt at it, after I'd done some assembly language programming. (But then I also had the advantage of another year or so of experience and a much better suited computer for
665.
▲
by
pm215
8y ago
One related wrinkle that can catch out UK people (who tend to conflate local non-summer-time with UTC) is that the epoch is not midnight 1 Jan 1970 in UK time -- we were in the middle of a "UK time is GMT+1 all year round" exper
666.
▲
by
pm215
8y ago
You absolutely need some kind of licensing setup for canals, to avoid standard tragedy-of-the-commons outcomes with too many boats (particularly houseboats) on a limited amount of water. There are also safety issues -- the canal byelaws def
667.
▲
by
pm215
8y ago
By-laws in the UK are delegated legislation (see https://en.wikipedia.org/wiki/Byelaws_in_the_United_Kingdom ). Parliament makes a law which grants some other body the power to make byelaws (which then come into force s
668.
▲
by
pm215
8y ago
The figure you have in mind there is the percentage of the employee's salary that they are legally guaranteed as maternity pay. The percentage the grandparent/parent comment is talking about is the percentage of the employer'
669.
▲
by
pm215
8y ago
This sounded unlikely to me (I'm from the UK), but https://www.gov.uk/recover-statutory-payments confirms that UK employers can recover 92% of statutory maternity/paternity pay that they pay to employees, or 103%
670.
▲
by
pm215
8y ago
Variously: SMS; the "call my landline and speak the code to me" options some systems have; 2FA app on an android tablet; special purpose just-shows-a-number dongle. None of this is great, though. I believe you can run 2-factor-aut
671.
▲
by
pm215
8y ago
I can recommend https://www.seat61.com/ for information about longer-distance train travel: frequently updated, lots of useful information, discussion of different route options, etc -- he has a page about Trans-Siberian ra
672.
▲
by
pm215
8y ago
I agree, but my sense is that the number of people and projects willing to fix complaints reported by compiler warnings is larger than the number of people who care enough to run a separate tool over their codebase. This is purely a UI thin
673.
▲
by
pm215
8y ago
gcc and clang have been getting better at this recently. For instance if you do an "x == x" comparison for an int x clang will warn "warning: self-comparison always evaluates to true [-Wtautological-compare]". I complete
674.
▲
by
pm215
8y ago
I think GArray is the wrapper for a dynamically allocated array.
675.
▲
by
pm215
8y ago
I like 'stgit' for this -- it lets you manage a work-in-progress patch series as a stack of patches you can move around in, update, reorder and so on, which I find more natural than raw git rebases.
676.
▲
by
pm215
8y ago
I have my gmail signature set to an ascii art 'ruler', so I know where column 75/80 are while I'm writing, and then I delete it when I'm done (and I do manual line breaks and if necessary manual rewrap of paragraphs
677.
▲
by
pm215
8y ago
My solution to the "find all the comments made on one patch" is variously (a) look at that email subthread only or (b) use a webinterface like patchwork (eg https://patchwork.ozlabs.org/patch/938069/ ) or
678.
▲
by
pm215
8y ago
I use gmail for code review on a "send email patches" project (QEMU), and what I do is: * for sending patches, use git-send-email from the command line * for reading, use a greasemonkey script to make gmail use a fixed width font
679.
▲
by
pm215
8y ago
True in the UK; https://security.stackexchange.com/questions/100268/does-han... has a decent description of the history and includes a note that BT changed in 2014 from a several-minute timeout to 10 seconds, beca
680.
▲
by
pm215
8y ago
Man, the number of times I hit function-= (reset the computer) on that thing when I meant shift-=... lots of lost unsaved work.
681.
▲
by
pm215
8y ago
The nature of the thing is that there's a chunk of per-architecture work required (maybe 20-30 lines of actual kernel code and another 700 lines of userspace/testcase support, judging by the diffstat). What's gone in to start
682.
▲
by
pm215
8y ago
If you don't have any results for the query, then return a page saying so. Otherwise you're annoying the user by making them scan through a page of irrelevant text to confirm that it really is all irrelevant. When this happens to
683.
▲
by
pm215
8y ago
gcc will recognize the usual rotate idiom: unsigned int rotv(unsigned int x, int c) { return (x << c) | (x >> (32 - c)); } On x86 it emits a rol instruction, for instance.
684.
▲
by
pm215
8y ago
That timetable looks like it's on 5-second granularity, not 1-second. Which is still pretty tight -- the UK's working timetables are half-minute granularity. (The UK also demonstrates that it's not merely a matter of having a
685.
▲
by
pm215
8y ago
My rule of thumb is that "why did we change this?" goes in a commit message, and "why is this like this?" goes in a comment. The latter is less often necessary than the former, but if the reader of the code would otherwi
686.
▲
by
pm215
8y ago
It's unfortunate that github doesn't let a project disable the on-website UI for pull request submission; as it is it's easy for somebody to end up wasting their time trying to submit a change that way. (QEMU has that issue t
687.
▲
by
pm215
8y ago
Sure, maplit's hashmap! is just a convenience macro, but then so is vec!. Hashtables are a pretty fundamental data type and they deserve to be easy to write constant initializers for, just like vectors. 'const fn' seems like
688.
▲
by
pm215
8y ago
Needing to use two separate third-party crates (lazy_static and maplit) to have a global constant-initialized hash table is the one that surprised me recently.
689.
▲
by
pm215
8y ago
I originally set up fail2ban because I got fed up with the noise of the hard disk going tick...tick...tick every 15 seconds or so, as another password guessing bot login attempt got logged and the disk heads had to seek as the logfile was w
690.
▲
by
pm215
8y ago
"Why" is what commit messages are for (and also comments); quality of commit message is worth checking in code review while the details are still fresh in everybody's minds...
More ›