Recent submissions

Comment · 2 months ago
Comment · 2 years ago
Comment · 2 years ago
You can put an extra 'level' in, to make both options return the same 0,1...9

    def loop():
        for number in range(10):

            def outer(n):
                def inner():
                    return n

                return inner

            yield outer(number)
Is there a neater way?
Comment · 2 years ago
Comment · 2 years ago
It may be different on newer MacOS but on mine you will need ping6

> ping6 ff02::1%en1

for example.

I wasn't able to get it to work on Windows (I can get the command to work in WSL but it seems to sit alone in an internal network). Any advice welcome.

Comment · 2 years ago
Comment · 2 years ago
In my youth I had a ZX spectrum which had BASIC with line numbers and no renumber command. Sometimes when adding code I'd simply run out of line numbers so had to GO TO an unused block of line numbers, put the new code there and GO TO just after the original code. I've never quite recovered from that.
Comment · 2 years ago
Comment · 2 years ago
Comment · 2 years ago
Also Brian Anderson (brson) was/is a significant rust contributor
Comment · 2 years ago
And could one swap between the two backends with the same VM image (.vbox +.vdi) to see which one gave the better performance?
Comment · 2 years ago
Comment · 2 years ago
Might depend on what kind of book it is - do you have a lot of images, tables, cross-references, ... or is it mostly plain text?
Comment · 2 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton