News for hackers. Stuff that matters.

shawnnapora

Re:Project Euler on a Microcontroller on Friday July 29, 2022 @07:52PM (#32282993)
This is pretty neat! Is there a way to have arbitrary input for the number of cycles and actually emit the answer? It looks like the answer is being read in software from a register, if I understand the .vcd output correctly.
Re:Project Euler on a Microcontroller on Friday July 29, 2022 @05:37PM (#32282058)
A virtual machine is interesting to me when it corresponds to a hardware target, since then that isn't hiding complexity in software. I suppose, though, that an enterprising individual could make a custom hardware target that implements an overly complex, overspecific instruction set and win at hardware golf but I'd honestly be very impressed.

The positive part about virtual machines in general would be the ease of debugging and sharing/validating answers, though.

Re:Project Euler on a Microcontroller on Friday July 29, 2022 @05:21PM (#32281913)
A lot relative to what? :) These 134 bytes will emit an answer without requiring a kernel or a runtime, either of which generally will be orders of magnitude larger than 134 bytes alone.