Code Monkey home page Code Monkey logo

godot-ruby's People

Contributors

onyxblade avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

un0mic burnsedia

godot-ruby's Issues

vm crash at calling from different thread

Ruby VM currently does not support multi-threading as a historical problem(https://bugs.ruby-lang.org/issues/14792). Any calls to the vm in a thread other than where ruby_init() occurred will fail.

However godot uses multiple threads to call pluginscript callbacks. I don't know if there are options to control this behaviour.

One possible solution is to switch to mruby. Hope it doesn't require much work.

Getters/setters for properties

So, I just found out this repo and looking at the limitations, I noticed something odd:

Ruby's method semantic is incompatible with the seperate properties and methods in GDScript since there are only methods in Ruby. For this we have to use get which looks weird [...] rect2.get(:position)

All properties in Godot already have getters/setters, e.g. it's get_position()/set_position() for position property. Isn't it possible to bind Ruby methods to these methods? Or auto-generate Ruby attribute accessors? It should be possible to use position/position= directly as methods instead of awkward get/set.

Roadmap

  • redirect io
  • support classes
  • support signals
  • support export and properties
  • support operators
  • support type check

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.