I have some code duplication between android, iOS and a webapp / PWA. How realistic is it to look at something like nim for codesharing?
I'm also working on a game that I haven't quite moved to iOS/Android yet, but that is my plan. So far targeting the desktop with SDL and HTML5/Canvas with the JS backend works very well.
Does not appear to be any harder then sharing C or C++ libraries.