At the same time, it feels like an attractive option to add out-of-the-box scripting that won't be foreign to users, keeps the footprint small, and is reasonably full-featured. mruby is also made for embedding (something that's not practical with MRI Ruby) and it's pretty easy to spin interpreters up and down.
One minor question around all this is whether mruby should be embedded in libral outright, or just be made available as an external interpreter. For now, I'll play some more with it, look into adding it to the libral build process, and try to write some providers with it.
I'd love to hear other people's thoughts, especially if you've ever used (or looked at) mruby before.
David
--
You received this message because you are subscribed to the Google Groups "libral" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libral+unsubscribe@googlegroups.com.
To post to this group, send email to lib...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/libral/CAHN%2BA%2BX_vVbC7-aKMKbrE1OXzmu%3D%2BXjkeBi3vRdPhfgMRcZ6CA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/libral/CAJ2H4QORfO2Uzm1xTVxEkCi66VHEMUvJiBSno9563erbC15g7w%40mail.gmail.com.
David, mruby looks great. As for embedding it or using it as an external interpreter, I'm really split-minded on that question. Embedding would simplify packaging and distribution for libral; mruby would always be there in the binary and at the expected version. However, the external interpreter model might also be good, allowing us to leave mruby behind when not needed or wanted, like barebones container environments. I'm sure you've have the same thoughts.
To view this discussion on the web visit https://groups.google.com/d/msgid/libral/CALF7fHZW3YDyBpQLmuWNC1iv_4zT2HeNjquv2v2wfyY8GyYkCQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/libral/CAJ2H4QOnZHFCshdMqN8bX7H2nh4J6tAGHmPRgJZzwmyFYtUj-g%40mail.gmail.com.
If anybody is interested, I just put up a PR that adds mruby - there are a couple rough edges in terms of setup/installation, but other than those, things seem to work. I am starting to like this mruby thing more and more ...The PR also has a small bridge between current libral API and (some approximation) of the t&p proposal from puppet-dev - that bridge should go away when I rework the libral API.
On 5 March 2017 at 05:36, David Lutterkort <lut...@puppet.com> wrote:If anybody is interested, I just put up a PR that adds mruby - there are a couple rough edges in terms of setup/installation, but other than those, things seem to work. I am starting to like this mruby thing more and more ...The PR also has a small bridge between current libral API and (some approximation) of the t&p proposal from puppet-dev - that bridge should go away when I rework the libral API.If you're referring to Ral::CLI in https://github.com/puppetlabs/libral/pull/9/files#diff-6a615615c290551b1800bc22d3a4bf34R108 , I couldn't find the code for that. Did you add it to the commit?