News Score: Score the News, Sort the News, Rewrite the Headlines

GitHub - wouterken/crystalruby: Embed Crystal code directly in Ruby

crystalruby crystalruby is a gem that allows you to write Crystal code, inlined in Ruby. All you need is a modern crystal compiler installed on your system. You can then turn simple methods into Crystal methods as easily as demonstrated below: require 'crystalruby' module MyTestModule # The below method will be replaced by a compiled Crystal version # linked using FFI. crystalize [a: :int, b: :int] => :int def add(a, b) a + b end end # This method is run in Crystal, not Ruby! MyTestModule.add(1,...

Read more at github.com

© News Score  score the news, sort the news, rewrite the headlines