Better HN
topnewbestaskshowjobs
Log inSign up

pechay

68 karma · joined Jun 26, 2013 (13y ago) · 38 submissions

Submissions

comment 2mo ago · link · parent

Great work! I love to read your articles.

I'm curious to know - you say Intel's 8087 emulation code was a bit of a lump at 16KB, do you know if it emulated the 8087 microcode state machine or did it use a different strategy?

comment 4mo ago · link · parent

All C programs are interesting. The first potentially non-interesting program in C is interesting because it's the first non-interesting one. :)

comment 1y ago · link · parent

It's worth pointing out the Commodore Amiga had proper pre-emptive multitasking on a single M68000 all the way back in July '85

comment 1y ago · link · parent

Thank you for your incredibly detailed correction :)

comment 1y ago · link · parent

The ZX Spectrum ROM loader is 1500bps and some games loaded at over 3000. There wasn't any encoding, just straight-up 1s and 0s straight into RAM.

comment 1y ago · link · parent

The 68k has both signed and unsigned 32/16 bit divide instructions.

comment 2y ago · link · parent

We did this same experiment in school, with a tiny pinprick of oil, estimating the volume of the drop as a sphere, and a small water tank, and then estimated the area of oil slick as a circle.

comment 2y ago · link · parent

University of New South Whales!

comment 2y ago · link · parent

If everyone starts using cheap off-peak power, will it continue to be cheap?

comment 2y ago · link · parent

The Amiga didn't have any hardware assistance for scaling sprites, so almost certainly the former.

comment 3y ago · link · parent

pizza isn't, and can't be, opaquely modified by the topping adder this way.

comment 3y ago · link · parent

I don't like the side effects of the second addToppings. I'd much prefer

pizza.Toppings = getToppings(kind string)

comment 3y ago · link · parent

I've stayed in over fifty Airbnb in the last three years. Only three haven't worked out (misleading apartment, mouse-poop kitchen, unresponsive host). Each time Airbnb has sorted me out with a refund, called me to discuss the problem, helped finding an alternative place, and providing a voucher to cover any price gap.

comment 3y ago · link · parent

If you're certain it's what you want, don't accept no for an answer and keep hassling the school or college at different levels and see if you can still make it happen.

comment 3y ago · link · parent

Do you ever buy alcohol?

comment 3y ago · link · parent

The RCM is fantastic, definitely worth a visit, and Andy who runs the place is a legend.

comment 3y ago · link · parent

I think unrolled FILD/FIST was fastest on Pentium.

comment 3y ago · link · parent

Similarly, the manual that came with the original ZX Spectrum rubber key version was awesome, with a complete description of Sinclair BASIC and all the Z80 assembler op codes for good luck. The 48k+ manual that followed was nowhere near as useful.

comment 3y ago · link · parent

Disable JavaScript also works.

comment 3y ago · link · parent

Make sure you are paid and bonused properly regardless of any future exit, because most startups never get there. In CTO role you should get something at the exit too, because you are likely to be instrumental in that success. Because companies often pivot or your part of the company changes outside of your control, you should have both.

comment 4y ago · link · parent

You are comparing file IO, string to int, raw processing, and text output speed all at the same time. There are pros and cons associated with the choices made in both sets of libraries and compilers for each of those aspects. What exactly are you trying to measure? Can you isolate those parts more specifically and compare them instead? That would probably be more informative.

comment 4y ago · link · parent

Explore the limits of your responsibility and find out where you can make your life easier. Find allies in other parts of the business; politics are a fact of life in any big business. Carefully choose which hills are worth fighting for.

comment 4y ago · link · parent

Aside from looking at changes in your dev methods, this is a good way to demonstrate to your management the value of having fast, up to date hardware on your desk.

comment 5y ago · link · parent

If OP wants to work abroad in the future - where I come from getting a skilled visa having a degree is an advantage. Not having a degree is not a problem either. But trying to get a visa having dropped out definitely counts against you.

comment 5y ago · link · parent

Once had my Australian production system go down because a js plugin we were using had added .au to its list of media types. Integration had a different TLD. Response I got from the author was 'LOL!'. :)

comment 5y ago · link · parent

The other solutions based on file locking tools all seemed fragile. You have to change _something_!

comment 5y ago · link · parent

Add and verify a last_started and last_completed time to your local database.

comment 5y ago · link · parent

It is almost compulsory for a demo scrolltext to include "greets" to other demo groups and members and "f*kings" to those you don't like or have done something lame. Very useful to have a special symbol for that!

comment 6y ago · link · parent

1. MOV AL, BYTE PTR [RDI]

MOV EBX, EAX // partial register stall

2. MOVZX EAX, BYTE PTR [RDI]

AND EAX, 0xFFFFFF00

MOV EBX, EAX // no partial register

These don't do the same thing

comment 7y ago · link · parent

Must be a good teaching problem seeing as it's generated such a large amount of interesting discussion.
12