Hacker News new | past | comments | ask | show | jobs | submit login
New Playground: Memory Spy (jvns.ca)
98 points by modinfo on May 25, 2023 | hide | past | favorite | 5 comments



I thought it was neat how this helped me understand that IPv4 addresses are represented in a in_addr_t using just 4 bytes.

https://memory-spy.wizardzines.com/game.html#example=convert...


And the dotted representation is just that: both of these may bring you back to HN, and be pingable.

http://0xd1d8e6f0 http://3520653040

I made a short Go thingy to help you play around with this if you'd like: https://play.golang.com/p/Rybs_gwzLym


Yup, IPv4 addresses are 32 bit unsigned integers which makes them very convenient to work with. That‘s also what that 50.60.70.80 syntax is about: Those are just the four individual bytes that make up the 32bit integer, separated by a period.


This is a nice tool, especially because nowadays I'm surprised by how many people don't seem to know what a debugger is...


Looks nice, but would benefit from longer examples (10+ lines) to really get a feel for things.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: