Coder Social home page Coder Social logo

Comments (4)

marcobambini avatar marcobambini commented on May 12, 2024 2

Sorry for the late reply but the question you posted has not an easy answer.
They are both very interesting projects but cannot be compared to Gravity. Gravity is just born and in the near future a lot of interesting features will be added.

I really don't like to reinvent the wheel but I like the idea to create a very maintainable and efficient language that can be highly customized and extended. I am a big fan of Lua and Gravity VM performance are always compared to the highly efficient Lua VM.

I could have surely saved a lot of time just adding a Gravity like syntax over an existing VM but the result would be yet another syntax on top of Lua. The things I learned (and that I can now teach with the Internals project) during the development of Gravity and the possibility that we now have would not be possible with a shortcut.

I realize that you could probably disagree with my reply but for the challenges we faced during the development of Creo, I strongly believe that Gravity has been the right answer.

In the end the right choice would be Gravity on top of LLVM and not on top of LuaJIT that cannot run on ARM processors (it is an x86 only project) and Gravity with LLVM is in my roadmap.

from gravity.

romix avatar romix commented on May 12, 2024 2

Thanks for your reply!

Quick question about the following statement:

In the end the right choice would be Gravity on top of LLVM and not on top of LuaJIT that cannot run on ARM processors (it is an x86 only project) and Gravity with LLVM is in my roadmap.

Do you mean LuaJIT cannot run on ARM processors? If this is what you mean, it looks like apparently it can. See e.g. http://luajit.org/luajit.html and https://luajit.org/performance_arm.html But the JIT part is disabled on iOS devices due to AppStore policies, AFAIK.

And, BTW, I can totally see that your own VM may be more extensible than at least LuaJIT, which is pretty hard to extend.

As for the GravityVM vs LuaVM/Wren VM, I'm eager to learn more about their essential differences, once you start publishing more information on your Internals project pages.

Don't get me wrong: I'm not questioning the purpose of the whole effort. Gravity and GravityVM are small and elegant. There is no doubt about that. I'm just trying to understand the "unique selling points" of Gravity when it comes to the VM part (not the language). To do that I'd like to understand the major differences between GravityVM and LuaVM/Wren VM and LuaJIT.

from gravity.

romix avatar romix commented on May 12, 2024

Ping! :-) It seems to be the only issue without any response after 5 days. Is there any hope to get one?

from gravity.

marcobambini avatar marcobambini commented on May 12, 2024

I didn't know that LuaJIT was ported to so many platforms. It is really an amazing technology.
I am going to close this thread, for any other question don't hesitate to open others issues.

from gravity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.