Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nickcw
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
45 ms
·
301.
▲
by
nickcw
5y ago
Here is my offering https://gist.github.com/ncw/5419af0e255d2fb62b98 It's a Go channel based quicksort. It sorts a channel of ints using O(n) go routines! Interestingly it doesn't need to know how many ints a
302.
▲
by
nickcw
5y ago
If you ever have to do to this again checkout convmv - this can convert for example latin1 encoded file names into utf8 encoded file names.
303.
▲
by
nickcw
5y ago
I just figured out you can draw on it while it is animating the frames - that is really fun! (And perhaps the point, but only just figured it out!) https://giphy.com/gifs/sketchmachine-6WvwbFin0jmeX8lnRU
304.
▲
by
nickcw
5y ago
There is an answer to CSV mode a bit further down the page https://news.ycombinator.com/item?id=28708145 ...but if your files are CSV, there is a CSV extension for gawk @include "csv" BEGIN { CSVMODE = 1
305.
▲
by
nickcw
5y ago
I love the box plots showing the spread of ping times, download rates etc. Very well done.
306.
▲
by
nickcw
5y ago
My Dad had one of those calculators he built from a kit. I remember it had a great bug if you divided by 0. It would go mad for a moment then start counting very quickly on the screen. My time spent with the calculator was doing that, and t
307.
▲
by
nickcw
5y ago
> NULL is only slightly special as a pointer value: if we look in stddef.h, we can see that it's just defined to be the pointer with value 0. Your C compiler is at liberty to use a different value than 0 for the actual NULL pointer
308.
▲
by
nickcw
5y ago
I hadn't realized it was now ready for general use... SQLite 2020-08-14 13:23:32 fca8dc8b578f215a969cd899336378966156154710873e68b3d9ac5881b0ff3f 0 errors out of 928271 tests on 3900x Linux 64-bit little-endian Whee, I sha
309.
▲
by
nickcw
5y ago
For anyone that read the code at the end of this article and was wondering what the spaceship / flying saucer operator <=> was doing in a C++ program, I found a write up on this on stack overflow page: https://stackove
310.
▲
by
nickcw
5y ago
Big Clive's YouTube channel is worth a watch if you like seeing electrical items disassembled and critiqued. It also has the occasional explosion and unusual cooking videos! https://www.youtube.com/channel/UCtM5z2g
311.
▲
by
nickcw
5y ago
flock locks are released when the file is no longer open. This means that no matter how your command exits the OS will close open files and release the lock for you. The problem with creating files is that you then have the stale lock file
312.
▲
Solving Tetris in C (2011)
(qntm.org)
2 points
by
nickcw
5y ago
|
0 comments
313.
▲
by
nickcw
5y ago
C++ doing infinite loops in zero time!
314.
▲
by
nickcw
5y ago
IPv6 is a hard sell for the average customer and because of that to the ISPs that provide service to them. IPv6 doesn't make anything go faster, or let customers access anything they can't already access and quite likely it will m
315.
▲
Leaked print spooler exploit lets Windows users remotely execute code as system
(theregister.com)
4 points
by
nickcw
5y ago
|
0 comments
316.
▲
Want to Disprove the Reiman Hypothesis?
(twitter.com)
2 points
by
nickcw
5y ago
|
0 comments
317.
▲
by
nickcw
5y ago
Ah yes, I forgot the barrel shifter. Shift anything in no extra cycles :-)
318.
▲
by
nickcw
5y ago
I will shed a small tear for the passing of AArch32 as it was the first processor architecture I really enjoyed programming. I wrote hundreds of thousands of lines of assembler for it and what a fun architecture it was to program for. Enoug
319.
▲
by
nickcw
5y ago
> This means representing numbers in base 2^{m} where m is your register width). With components this big, we usually call these “limbs”: wordplay on “digits”, of course. I never realised limbs was wordplay on digits. Duh!
320.
▲
Google Cloud confirms departure of EMEA president Chris Ciauri
(theregister.com)
3 points
by
nickcw
5y ago
|
0 comments
321.
▲
by
nickcw
5y ago
I you are at all interested in this sort of thing then I recommend this book: John Chadwick - The Decipherment of Linear B It is written for the lay person and describes the process of cracking linear B and some of the human story as well a
322.
▲
Half a million lines of Go
(blog.khanacademy.org)
360 points
by
nickcw
5y ago
|
508 comments
323.
▲
by
nickcw
5y ago
Just in case anyone (like me) is thinking - wait did that aeroplane have a parachute? From: https://en.m.wikipedia.org/wiki/Cirrus_Airframe_Parachute_Sy... The Cirrus Airframe Parachute System (CAPS) is a whole-plane b
324.
▲
by
nickcw
5y ago
Zig can cross compile and link libc on lots of different architectures out of the box, which is amazing given how much effort this takes to set up cross compilers normally.
325.
▲
by
nickcw
5y ago
When I was about 14 (and in the advanced math set) my math teacher gave me this problem. Specifically the one with the goat in a square field tethered in the center of one side. I spent ages trying to solve it and managed to convince myself
326.
▲
by
nickcw
5y ago
In my experience the S in SNMP is anything but simple. Conceptually it is simple, but once you add MIBs in (which describe the data) it gets really complicated. SNMP support in actual devices seems to be more of a box ticking exercise than
327.
▲
by
nickcw
5y ago
I loved this article - it is so my life. > I manage releases for a bunch of free & open-source software. Just about every time I ship a release, I find a novel way to fuck it up. With rclone I have got nearly everything scripted now
328.
▲
by
nickcw
6y ago
89%! But I did get my 13yr old to help me with the Pokémon... That was very funny. There are a lot of big data services out there with very odd names. There are also a lot of Pokémon out there with very odd names, probably for the same reas
329.
▲
by
nickcw
6y ago
Looks like Haskell dreaming of FORTH. Quite fun and surprisingly readable to this old FORTH programmer. Though List<Char> for strings had me coughing up a fur ball.
330.
▲
by
nickcw
6y ago
@addWithOverflow is easy to implement in C, but you still need to look at the assembler code to see if the compiler did the right thing. I don't like that tension between C code you've arranged in just the right way and hoping tha
More ›