HNHacker News
TopNewBestAskShowJobs

mspreij

10 karma · joined April 21, 2012

submissionscomments
mspreij··on A walkable ASCII cyberpunk city in one HTML file [video]
I was pretty proud of my Game of Life & Wireworld implementations for the terminal, with half-character resolution o.o; Guess I'll have to up my game and start work on Twin Cobra and Dune ][ clones.. now that I've seen it's possible..

Using sprites is clever :-) then I guess that's how these older games worked too.

mspreij··on A walkable ASCII cyberpunk city in one HTML file [video]
Uh.. that looks freakin' awesome. How?!
mspreij··on There's no escaping it: an exploration of ANSI codes
https://en.wikipedia.org/wiki/ANSI_escape_code goes a bit more in-depth.
mspreij··on Show HN: X86CSS – An x86 CPU emulator written in CSS
> CSS should NOT be becoming turing complete. Nor any other DSL

Hasn't it been so for a while? I mean I agree with you but it's a bit late

mspreij··on Pong Clock
I spent longer than I care to admit trying to find the player keys..
mspreij··on The Machine Stops (1909)
Excellent idea. I could see a scifi story based on that too.
mspreij··on Converting Codebases with LLMs
This should help porting all the old Cobol and Perl apps out there, no?
mspreij··on 9999999999999999.0 – 9999999999999998.0
ChatGPT 4 pondered for a while, then started "Analyzing..", and eventually "Finished analyzing" (all following verbatim output):

python 9999999999999999.0 - 9999999999999998.0 Result 2.0

The result of the calculation 9999999999999999.0−9999999999999998.0 is 2.0.

This result may seem counterintuitive, but it's due to how floating-point numbers are represented and handled in computing. Floating-point arithmetic can introduce small rounding errors, especially with very large numbers, as precision is limited. In this case, the precision required to represent these large numbers exactly is beyond what typical floating-point representations (like IEEE 754 double precision) can handle, leading to a slight error in the calculation.