3 ms·
I have some code duplication between android, iOS and a webapp / PWA. How realistic is it to look at something like nim for codesharing?
by jamil7 7y ago
I have some code duplication between android, iOS and a webapp / PWA. How realistic is it to look at something like nim for codesharing?
- dom96 7y agoNot the parent poster but I'd say it's very realistic. I've written a few applications that target both JS (web browser) and binary (server) and it works very well. One example of this is https://picheta.me/snake/ https://picheta.me/snake/. 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.
- treeform 7y agoSharing code between Desktop and Mobile still a bit rough. I have done some experiments and it looks promising: https://forum.nim-lang.org/t/5197 https://forum.nim-lang.org/t/5197 Does not appear to be any harder then sharing C or C++ libraries.