Script for Ruby?

I am building a Ruby On Rails website, and for its part it must be dynamic so that (sorta) trusted users can create parts of the site in different ways. For this I need a scripting language. In a similar ASP.Net project, I wrote my own scripting language / DSL. However, I cannot use this source code (written at work), and I do not want to create another scripting language if I do not need it.

So what is my choice? The script must be locked and will not be able to break my server or something else. I would really like it if I could use Ruby as a scripting language, but this is not necessary. In addition, this part of the scripts will be called for almost every request for a website, sometimes more than once. Therefore, speed is a factor.

I looked at RubyLuaBridge, but this state of Alpha seems dead.

What options for scripting language do I have in a Ruby project?

In addition, I will have full control over where this project is deployed (root access), so there are no real restrictions.

+3
source share
3 answers

There is also Rufus-lua , although it is in version 0.1.0 ...

+1
source

What about JRuby? You can use the java implementation of many scripting languages ​​such as javascript, schema, etc.

+1
source

, , Ruby In The Safe, Pickaxe. Ruby AFAIK.

Ruby , , CPU. (, .)

, , - . singleton () , - , - . . ( Ruby , 4 " ", , , , .)

(* snrk *) Lisp -1 , .

+1

Source: https://habr.com/ru/post/1739774/


All Articles