Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
spc476
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
50 ms
·
571.
▲
by
spc476
6y ago
Integer support was added in Lua 5.3 (released in January 2015). It also added binary operators, rendering the bitop module obsolete. One thing I never understood is the mania for OO programming---I regularly see people announce Yet Anothe
572.
▲
by
spc476
6y ago
At work, we have: * two services that accept requests via telephony protocols (SS7, SIP, these are quite small) and forwards the request to: * the business logic component (large only because of the complexity of the business logic implemen
573.
▲
by
spc476
6y ago
Earlier this year, I reported a bug in Firefox. In my report, I included steps to reproduce the issue, the expected result and the actual result (because I've been on the other side). There were no back-and-forth messages to clarify
574.
▲
by
spc476
6y ago
So where does Standard Oil fall into this classification? It spent the 1880s and 1890s using its vast profits from refining oil to buy up railroads to stifle competing oil refineries by restricting access to rail transport.
575.
▲
by
spc476
6y ago
I did something similar with I implemented coroutines for C (both 32 and 64 bit x86). [1] https://github.com/spc476/C-Coroutines
576.
▲
by
spc476
6y ago
I stopped using Roll20 but switched to Zoom chat. Zoom chat has much better video chat support, also has a private chat function, and for our game, we could do without the "whiteboard" and the computerized dice rolling. It als
577.
▲
by
spc476
6y ago
QNX has been around for a long time. Back in the mid-90s I did some consulting work porting some Unix utilities to QNX, and if there were patents back then, they have now expired.
578.
▲
by
spc476
6y ago
The way Linux works now seems sane. You might very well have seen a change in the way Linux works. But when you've seen it change, multiple times, and each time 50% of what you know has to be tossed out and relearned, it gets tires
579.
▲
by
spc476
6y ago
Yes, several times. It was kept in because other text based protocols (like SMTP, HTTP) also specify the use of CRLF, at least for the request.
580.
▲
by
spc476
6y ago
With respect to the status codes, the original spec was worse (single digit response codes) than what exists now. I didn't agree with the original spec, so when I wrote my own Gemini server [1][2] I reused codes from HTTP. It was o
581.
▲
by
spc476
7y ago
SHL/SAL/SHR/SAR (the shifts) affect the condition codes so one could check for overflow (or use it as part of multibyte arithmetic) while LEA does not affect the conditions code (so overflow goes undetected). It's s
582.
▲
by
spc476
7y ago
Why can't the following be a warning? int foo(bar *x) { x->blah = 0; if (x == NULL) ... ... } And produce something like "NULL check removed---pointer used before check"?
583.
▲
by
spc476
7y ago
Well, that should be `snprintf()` to start with, but even with that, there are issues. The return type of `snprintf()` is `int`, so it can return a negative value if there was some error, so you have to check for that case. That out of th
584.
▲
by
spc476
7y ago
At work, our customers are the Oligarchist Cell Phone Companies (about three at this time). As I was joking with a higher up about adapting agile programming, it doesn't matter if we're on a two-week sprint when our customer is o
585.
▲
by
spc476
7y ago
You might think you are joking, but that's exactly what happened with sendmail. It's configuration file is so complex (and I think Turing complete) that people came up with a completely different configuration file to generate
586.
▲
by
spc476
7y ago
The call to munmap() requires both a stack (which will be unmapped at some point) and the code from libc (which will be unmapped at some time). The program gets a list of all the allocated pages first, then creates one more for the JIT code
587.
▲
by
spc476
7y ago
I do remember (and don't have to check [1]) but MS-DOS used interrupts 20h through 2Fh (mostly 21h). BIOS used interrupts 10h through 1Fh. 10h was for text and graphics. The "text" screen could be at either B000:0000 (phys
588.
▲
by
spc476
7y ago
Sounds like the The Programmer's PC Sourcebook (which is on my shelf, and yes, one could say it has a pink cover).
589.
▲
by
spc476
7y ago
Assembly may be easier, but programming in assembly is a lot more tedious. A simple expression like "y=7*x+5" is at least four instructions, assuming you have a MUL instruction. And string manipulation is just as bad, if not wor
590.
▲
by
spc476
7y ago
I think that would be a wonderful idea. Show the flag (along with the lock icon) of the country of the CA. That would at least give a bit more transparency to the user of the certificate other than checking the details manually.
591.
▲
by
spc476
7y ago
Even if it's for academics, the academics 30 years from now won't be able to study the game. Five years ago, I examined BASIC for the Atari 2600. I'm far from an academic, but even so, I was still blown away with that was d
592.
▲
by
spc476
7y ago
I'm becoming more and more convinced that Google employees don't give out reasons for their decisions because they can't! They trust too much in their machine learning and there's no way for employees to know why this
593.
▲
by
spc476
7y ago
Of the 12 manned Apollo missions [1], 3 out of 36 astronauts died, for an 8% fatality rate. [1] https://en.wikipedia.org/wiki/List_of_Apollo_missions#Manned...
594.
▲
by
spc476
7y ago
Starting with the IBM PC in 1981, it was made with off-the-shelf parts and you could get not only the schematics but the BIOS listing as well. It was very modular so one could be upgraded piecemeal. But at the same time, Moore's Law
595.
▲
by
spc476
7y ago
With cooperative multitasking (coroutines) you can get by with saving less CPU state. I do this for my C coroutines package [1] for x86 and x86-64 by only saving the registers required by the calling convention. [1] https://gith
596.
▲
by
spc476
7y ago
The literal 0 in a pointer context will be converted to a NULL pointer, which can be a non-zero bit pattern (there are some systems where the actual NULL pointer isn't all zeros). Going through a variable might not do what you think.
597.
▲
by
spc476
7y ago
There is: https://wiby.me/
598.
▲
by
spc476
7y ago
The 6502 is a very constrained CPU. It only has 6 registers, only one of which (PC) is 16 bits. The stack is fixed at addresses 0x0100 to 0x01FF, and the two index registers are 8-bits in size. So is the accumulator and the stack registe
599.
▲
by
spc476
7y ago
My initial reaction was "Cute, in a 'dots I's with hearts' type of way, but not really for me." And after watching the video and reading the site, I still feel that way, but I can see where you are going with this,
600.
▲
by
spc476
7y ago
As another lefty, I don't see the issue, unless you write with a "hook hand." I hold the pen (pencil, etc.) as a right-handed person would, just mirrored. I've even done both European and Chinese calligraphy left hande
More ›