From busybox Fri Mar 17 15:23:59 2017 From: Laszlo Papp Date: Fri, 17 Mar 2017 15:23:59 +0000 To: busybox Subject: Re: A good scripting language for busybox? Message-Id: X-MARC-Message: https://marc.info/?l=busybox&m=148976478112789 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0782695146391744426==" --===============0782695146391744426== Content-Type: multipart/alternative; boundary=001a113f86d04c6bd5054aeec492 --001a113f86d04c6bd5054aeec492 Content-Type: text/plain; charset=UTF-8 Why do you need a scripting language in the busybox project? Cannot you just generate the platform with things like a small subset of python using Yocto or something similar? On Fri, Mar 17, 2017 at 3:20 PM, Pavel Aronsky wrote: > Apologies for maybe a wild or off-topic question. > After dealing with quite a few products with busybox and its ash shell > used as the primary scripting language, I'd like to ask you, busybox > experts: what are alternatives? > > This page: https://busybox.net/tinyutils.html - mentions Lua and > Micro-perl. I'd rather perfer a small subset of Python, but cold not find > one after a day of googling (this is surprising. I've been sure such things > exists). > > However my search hit one interesting Javascript engine named Duktape ( > duktape.org). > > Javascript looks almost as good as Python for me, it is popular and should > be familiar to new developers. Lua is less familiar, but much better for > writing moderately simple app logic than the *dreadful* shell language. > > So the question: how feasible would be inclusion of Lua or Javascript into > BB, as option for systems where one of these languages will be heavy used? > > As "plan B": has anyone seen (or thought of) a FFI interface for BB that > would allow to call shared libraries written in C, from ash? > > Thanks in advance, > > Pavel A. > > > > _______________________________________________ > busybox mailing list > busybox@busybox.net > http://lists.busybox.net/mailman/listinfo/busybox > --001a113f86d04c6bd5054aeec492 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Why do you need a scripting language in the busybox projec= t?

Cannot you just generate the platform with things lik= e a small subset of python using Yocto or something similar?

On Fri, Mar 17, 2017= at 3:20 PM, Pavel Aronsky <pavel.aronsky@gmail.com> w= rote:
Apologies for= maybe a wild or off-topic question.
After dealing with quite a f= ew products with busybox and its ash shell used as the primary scripting la= nguage, I'd like to ask you, busybox experts: what are alternatives?

This page: https://busybox.net/tinyutils.html =C2=A0-= mentions Lua and Micro-perl. I'd rather perfer a small subset of Pytho= n, but cold not find one after a day of googling (this is surprising. I'= ;ve been sure such things exists).

However my sear= ch hit one interesting Javascript engine named Duktape (duktape.org).

Ja= vascript looks almost as good as Python for me, it is popular and should be= familiar to new developers. Lua is less familiar, but much better for writ= ing moderately simple app logic than the *dreadful* shell language.

So the question: how feasible would be inclusion of Lua o= r Javascript into BB, as option for systems where one of these languages wi= ll be heavy used?

As "plan B": has anyon= e seen (or thought of) a FFI interface for BB that would allow to call shar= ed libraries written in C, from ash?

Thanks in adv= ance,

Pavel A.


=

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busy= box

--001a113f86d04c6bd5054aeec492-- --===============0782695146391744426== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox --===============0782695146391744426==--