Better HN
topnewbestaskshowjobs
Log inSign up

shawnnapora

60 karma · joined Jul 29, 2022 (4y ago) · 4 submissions

Submissions

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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.

4.

Project Euler on a Microcontroller(shawnnapora.github.io ↗)

99 points · by shawnnapora · 4y ago · 21 comments