9 ms·
New Playground: Memory Spy
- sukilot 3y agoLooks nice, but would benefit from longer examples (10+ lines) to really get a feel for things.
- simonw 3y agoI 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=converting%20an%20IP%20address%20from%20a%20string https://memory-spy.wizardzines.com/game.html#example=convert...
- danhau 3y agoYup, 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.
- v7n 3y agoAnd the dotted representation is just that: both of these may bring you back to HN, and be pingable. http://0xd1d8e6f0 http://0xd1d8e6f0 http://3520653040 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 https://play.golang.com/p/Rybs_gwzLym
- cozzyd 3y agoThis is a nice tool, especially because nowadays I'm surprised by how many people don't seem to know what a debugger is...