4 ms·
Interesting question, pike has a stable C API for creating C modules Step by step instructions https://pike.lysator.liu.se/docs/cmod-step-by-step/ https://pike
by tored 4y ago
Interesting question, pike has a stable C API for creating C modules
Step by step instructions
https://pike.lysator.liu.se/docs/cmod-step-by-step/ https://pike.lysator.liu.se/docs/cmod-step-by-step/
What is CMOD?
http://wiki.gotpike.org/index.pike?page=PikeDevel/C%20Modules/CMOD http://wiki.gotpike.org/index.pike?page=PikeDevel/C%20Module...
Calling pike functions from within C/CMOD code
http://wiki.gotpike.org/index.pike?page=PikeDevel/C%20Modules/Calling%20Pike%20Code http://wiki.gotpike.org/index.pike?page=PikeDevel/C%20Module...
example
https://github.com/pikelang/Pike/blob/master/src/modules/Inotify/inotify.cmod https://github.com/pikelang/Pike/blob/master/src/modules/Ino...
I guess it is more of packaging issue of using pike in that manner, perhaps this is something for the pikers to explore. Could be a great way to revitalize the language, the world could need a embeddable strictly typed C like dynamic language.
- chadcmulligan 4y agoThere is a need I think, Wren is the only one. Lua and javascript are king of the hill, but both have their quirks. Though Pike isn't on ARM either (from what I can see), so probably a bit of work.
- em-bee 4y agopike is in debian on all architectures as far as i can tell, including ARM in any case. on other distributions it should compile fine from source.