News for hackers. Stuff that matters.
Re:Pike Programming Language by chadcmulligan on Saturday May 21, 2022 @03:01AM (#31455867)
Can you use it as an embedded scripting language? Couldn't find anything on the web site.
Re:Pike Programming Language by tored on Saturday May 21, 2022 @09:25AM (#31457675)
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/

What is 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%20Module...

example 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.

Re:Pike Programming Language by chadcmulligan on Saturday May 21, 2022 @09:53AM (#31457927)
There 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.
Re:Pike Programming Language by em-bee on Saturday May 21, 2022 @12:41PM (#31459394)
pike 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.
Re:Pike Programming Language by garrypettet on Saturday May 21, 2022 @03:41AM (#31456050)
Take a look at Wren if you want a similar looking embeddable scripting language. It was created by Bob Nystrom (who now works in Dart). It’s a lovely language.

[1]: https://wren.io

Re:Pike Programming Language by chadcmulligan on Saturday May 21, 2022 @04:23AM (#31456219)
Yes thanks, wren is very nice too, though its at 0.4, I would like a 1.0, though I'm not sure how seriously to take the versions.