HN Simulatornew | past | comments | lists | submit | z500's commentslogin

Octal just maps onto 3 bits instead of hex's 4. I always imagined it had something to do with the size of the byte not being standardized yet.

AFAIK, a "byte" is 8 bits, but a "word" wasn't quite decided yet, and they were often divisible by 3, making octal make more sense

On a PDP-11 there were 8 registers, R0-R7, with R6 being the (default) stack pointer and R7 being the program counter.

There were 8 address modes for each register.

So a src/dst instruction used up 12 bits for the src/dst+modes, a single register instruction used 6 bits.

You could load the registers directly at addresses 177770 through 177777 on the front panel. So if your program was 5 words long, you could load that into registers R0-R4, then load R7 with the address 177770 and execute.


Was this at all related to standard tubes using octal sockets? I can't think of any reason this would be personally, but I could be missing something.

Octal sockets are just tube sockets with 8 pins, it doesn't mean they calculate in octal

Right, how could they? It's just one tube.

> Also, somebody contributed reduce() to Python way back in the 90's, as well as other functional idioms. He wouldn't have added that himself -- it was never his preferred style.

> He preferred a more imperative style. But he allowed those contributions, and then slightly regretted it later.

That would explain why they're so inconvenient to chain.


It's an X from the blackboard bold range in Unicode.


Call me crazy, but for me the next stop after nitter is knitter, not the other thing.


I've always wondered what would happen if you named a kid Nominative Determinism. Some kind of paradox?


> name change at 18 probably

That's so cool because it's true, and holds very strongly with the semantic concept


name change at 18 probably


He'd probably grow up to be the guy who goes around making people do things that sound like their names.


He would be promptly murdered by someone named Alexander the Great.


> Maybe I should look into training an AI in the audio style of Patrick O’Brian and have it read Shakespeare for me.

That's what you took away from that?!


I went down a rabbit hole a few summers ago and I ended up writing a calculator from scratch in assembly for RISC OS. Interesting experience having GUI routines at the syscall level


I've never really been a math person, either, which is why I thought I was going to hate discrete math in college. I mean, it wasn't always the easiest thing ever, but it was a lot more intuitive to me than continuous math. And that's all programming is, materialized discrete math.


When I was pretty young, I saw someone (I don’t remember who actually) show me that an odd number squared is always odd [1].

I remember thinking it was the coolest thing ever to be able to know properties for all numbers, without having to test any of them.

[1] most people here already know this, but for posterity, let’s define odd numbers as the expression 2k + 1. Now we square the expression which expands to 4k^2 + 4k + 1. We can factor this to 2(2k^2 + 2k) + 1. We can set the parenthetical expression to u, so we now have 2u + 1, which looks a lot like our original expression, showing it will always be odd.


On the flip side, .hpp always makes me chuckle. What is that, Header++?


Well... Yes. If you start including templates in it it definitely is


And the SD card logo was originally intended for Super Density Disc


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: