Hacker News new | ask | show | jobs
by floor_ 996 days ago
Coding a MUD as a hobby project using memory arenas and I am straight up not having a good time with strings. Right now I'm giving the players fixed size 4k buffers to send commands too instead of using dynamically sized strings. Everything else is golden. Just slap it on to the frame/temp arena and reset the marker back to 0 after an update.
1 comments

If you're using c++ look at pmr::string.