Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6064979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:20:22+00:00 2026-05-23T09:20:22+00:00

I am making some kind of sandbox-engine, the end-users are able to make scripts

  • 0

I am making some kind of sandbox-engine, the end-users are able to make scripts to make their world dynamic etc, currently I am only looking at LuaJava because I have quitte some experience with Lua and find it a very readable/easy language. But I also understand that it might be a bad idea to choose only based on personal preference, after all Lua is meant to be embedded into C so performance wont be the best I imagine.

But after a look at some of alternatives (Groovy, Clojure) I find the syntax just unreadable/too abstract, Lua was my first programming experience and even that was quite hard to ‘get’ at first, I’m afraid these languages would just have scared the crap out of me and I would never have looked at scripting again.

Are there scripting languages that can be embedded in Java that compete with Lua on simplicity?

Edit
My problem with JavaScript, JPython is all the braces etc, as a starting user symbols tend to look ‘hard’. Also for python there is the concept of Object’s that the user needs to comprehend and isn’t that useful in this case.

func = function(arg)
   print(arg)
end

Is so simple…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:20:22+00:00Added an answer on May 23, 2026 at 9:20 am

    I think JavaScript is very simple, and it can be embedded in Java quite easily via Rhino. Scripts can be both pre-compiled, or compiled on-the-fly via the javax.script classes, which are used to connect to script engines for the Java platform (of which Rhino is one).

    If you like Lua, though, there’s a Lua for Java project called — *cough* — Kahlua. They list “Fast runtime of the most common operations” as one of their goals.


    Edit: Re your edit, I’m not immediately seeing why this:

    func = function(arg)
       print(arg)
    end
    

    is substantially easier to understand than this:

    func = function(arg) {
       print(arg);
    };
    

    …which is the literal translation from Lua to JavaScript, pre-supposing a function called print exists on your platform. I would normally write that like this instead:

    function func(arg) {
       print(arg);
    }
    

    …but the other way is fine for most purposes.

    But you should use what you’re comfortable with.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

currently im making some crawler script, one of problem is sometimes if i open
I'm planning on making some dynamic PHP websites and I need a free Authentication
I'm making some kind of movie with a webpage. For that I have to
I'm sure I'm making some kind of silly mistake here, but when converting a
I am making some kind of wrapper around the TFS SDK. I would like
Is it possible for an iPhone app to stay dormant while making some kind
Currently I am making some decisions for my first objective-c API. Nothing big, just
I'm making some kind of UI layers with HTML5 canvas. All layers can be
I'm making a logger and I wish to have some kind of stream-like happenings
While i making some kind of jQuery image rotator, i met problem. Where is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.