goluaをさわってみる

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →
take_cheeze
February 12, 2019

 goluaをさわってみる

take_cheeze

February 12, 2019

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

18 slides
  1. Luaの バージョンに ついて - Luaそんな詳しくない - 5.0: レジスタマシン導入 - スクリプト言語実装界隈でそこ

    そこ話題に - 5.1 / 5.2 : LuaJIT - ライブラリの追加はあったり - 微妙に非互換があったはず - 5.3: 数値の内部表現に整 数が追加 - 最新安定系
  2. VMの実装 - Goのtype便利 - 命令型のint32に低コストでメ ソッドを生やせる - Cの汚いマクロとおさらば - VMは関数テーブルでディ

    スパッチする - fetchで対応する関数を取得 - executeで終端まで実行 - Direct Threaded Codeみたいな ことはさすがにできないらしい
  3. luaのC APIを goluaで 実装できるか? - 完全にはできない - 詳しくはcgoのPassing Pointers -

    一度Goを通せばいい? - Go References to C - 関数ポインタを呼べなくもない?
  4. APIが 難しいって? - This api is too difficult to use.

    This is Golang not c! - Cより一応マシ? - interface{}による振り分け がstate.Pushではある

More Decks by take_cheeze

Other Decks in Programming