@nasser basically if you want to access that string anywhere outside of the C function being called by Lua, make a copy of it.

@nasser oh sorry you said from Lua to C. I think the pointer you get from luaL_checkstring is valid only while that stack index is unmodified

@nasser afaik lua_pushstring makes a copy of the string and never keeps any C pointers

last year I started building a memorial to the martyrs of the ongoing genocide on Gaza. it invites people from around the world to read out the names of the dead and acknowledge their humanity through collective grief. this weekend i managed to finish giving the project a fediverse presence 🙏

@memorial

the bot will post one recording of a martyr's name from the memorial every day. please follow to keep them in your hearts and to keep the ongoing genocide on your mind. boosts welcome.

and as always if you feel moved to contribute your voice, please do at contribute.gaza.memorial/

give me one good reason not to use std::wstring for all unicode strings

what i came back here to say is: stay away from 3 letter acronyms in computer programming, they're never anything good

noone cares about programming shitposts on bluesky, so i come crawling back here

Show older
coolkids.house

this is where the cool kids live