Start weechat if you haven't already:
$ weechatopen up browser and go to: https://irc.gitter.im/ retrieve your /PASS
In weecaht run (thanks to raine):
| interface ExpAlg[E] | |
| fun lit(x: I32): E | |
| fun add(e1: E, e2: E): E | |
| interface Eval | |
| fun eval(): I32 | |
| interface EvalExpAlg | |
| fun lit(x: I32): Eval val => | |
| recover |
| require 'ffi' | |
| require 'benchmark' | |
| module LibC | |
| extend FFI::Library | |
| ffi_lib FFI::Library::LIBC | |
| attach_function :malloc, [:size_t], :pointer | |
| attach_function :free, [:pointer], :void | |
| end |
Start weechat if you haven't already:
$ weechatopen up browser and go to: https://irc.gitter.im/ retrieve your /PASS
In weecaht run (thanks to raine):