Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
spc476
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
91.
▲
by
spc476
2y ago
At this point, C and C++ are not compatible. Please stop with this "Oh, just compile C with a C++ compiler." That ship has sailed over twenty years ago with C99. One major difference is designated initializers, which works di
92.
▲
by
spc476
2y ago
"Beware of bugs in the above code; I have only proved it correct, not tried it." ---Donald Knuth
93.
▲
by
spc476
2y ago
It depends upon the manufacturer. Motorola used PC (program counter), Intel used IP (instruction pointer). I think it's only the x86 that has multiple names, depending upon the size: IP for 16 bits, EIP for 32 bits, RIP for 64 bits.
94.
▲
by
spc476
2y ago
As the author of org.conman.cbor, I'd be interested in seeing the test data. The only bit that's in C is the low-level bit packing of CBOR values. I might have to revisit the use of LPEG to validate the UTF-8 strings (used becau
95.
▲
by
spc476
2y ago
I believe that's a Linux thing.
96.
▲
by
spc476
2y ago
I've seen it stated as, "It is a bit of received computer science wisdom that any program has at least one superfluous line and at least one bug. Apply this rule recursively and you can see that any program can be reduced to a
97.
▲
by
spc476
2y ago
In my experience, it's "The meetings will continue until moral improves."
98.
▲
by
spc476
2y ago
Turns out that mmap() is the memory allocator, nothing to do with files.
99.
▲
by
spc476
2y ago
> These are the results of the buggy TCP implementation? Yes. Here's the fixed TCP implementation. 4542 open 3041 read 2990 close 2478 old_mmap 2475 munmap 2470 fstat64 1501 epoll_ctl 1007 fcntl64
100.
▲
by
spc476
2y ago
I do know how to answer most of the questions. The program is a gopher server. The list you see is the result of sending several hundred (sequential) requests to the server. The number of calls to open() vs. close() can be explained [1],
101.
▲
by
spc476
2y ago
Because they were all done sequentially, not concurrently.
102.
▲
by
spc476
2y ago
strace was not on my radar. I know it exists, it just never occurred to me to use it. So, I tried it. Here are the results: 4542 open 3041 read 2990 close 2517 epoll_ctl 2478 old_mmap 2475 munmap 2470 fstat6
103.
▲
by
spc476
2y ago
In 35 years of using Unix I've never come across anything like this. What tool do you use that this is an issue?
104.
▲
by
spc476
2y ago
I knew some acquaintances back in the day (late 80s/early 90s) who had a company selling X servers. It wasn't a big operation (maybe half a dozen people total) and it worked out of a small office in the industrial section of Ft.
105.
▲
by
spc476
2y ago
Most Perl code now a days runs under Perl5. I once tried running a Perl4 script in Perl5 and did not have a good day.
106.
▲
by
spc476
2y ago
> ReactOS must take the record for software with the longest gestation in history I think that would be Project Xanadu, started in (depending upon what you consider as "starting") in 1961 or 1965.
107.
▲
by
spc476
2y ago
> formatting rules without firm, incredibly strict enforcement ends up being a tax on the janitors Wait! I thought Google only promoted and rewarded people who do new development, not maintenance. What gives?
108.
▲
by
spc476
2y ago
It echos "ok".
109.
▲
by
spc476
2y ago
I checked the logs for May for one website I run---65% of failed requests were for PHP scripts (mostly Wordpress). I don't run PHP so I don't worry. The rest of the requests were bots that can't parse HTML [1] and other wei
110.
▲
by
spc476
2y ago
And I avoid such code. Not everything has to be OO.
111.
▲
by
spc476
2y ago
> Since everything has to be relative from the current directory, it's not very convenient to move files around or make a contained module that depend on its own module. What? Not in my experience. For instance, I have lpeg instal
112.
▲
by
spc476
2y ago
23 years so far, using my own blogging engine [1]. It's nice to see others have been doing this for over 20 years. [1] https://github.com/spc476/mod_blog
113.
▲
by
spc476
2y ago
Every feed I'm aware of contain multiple entries, so perhaps average the time between posts as a baseline to check? Perhaps add an upper limit to one/hour and a lower limit to one/week? That way, a person who starts posting
114.
▲
by
spc476
2y ago
I use the "right-to-left" style myself. To me, the qualifier (in this case, const), applies to the item to the right. This could be confusing: const char *const ptr; The first const applies to the char, but the second o
115.
▲
by
spc476
2y ago
1. I agree. 2. This would be Gemini. Most people here don't like it either. Also, most gopher sites I visit use UTF-8, and my client (which I wrote---it's not hard) hasn't had an issue with mojibake. 3. It's not as sim
116.
▲
by
spc476
2y ago
Yes, I mean slide rules. It's a bad habit I have. And yes, the one slide rule I have is the same model as the ones used by NASA astronauts.
117.
▲
by
spc476
2y ago
I have four side rulers, all of them I bought at antique stores. One of them, the Pickett N600, was used by the Apollo astronauts (it's small---6in (15cm) long, made from aluminum, and very nice). I think I paid about $10-15 for each
118.
▲
by
spc476
2y ago
That's not the fault of JavaScript, but of IEEE-754 floating point math. The behavior you're seeing is per design.
119.
▲
by
spc476
2y ago
It was printed in 1994. Linux and BSD (either FreeBSD or 386BSD, I can't recall which) where around, but Open Source (TM) as we now know it wasn't. Other, proprietary Unix systems were still viable and in use (AIX, IRIX, SunOS&#
120.
▲
by
spc476
2y ago
Not really. It was mostly about tests. Officially, I was a developer for the team (longest one on the team). Unofficially I was QA, as our new manager shut out QA entirely [1] and I became the "go-to" person for tests. Never a
More ›