エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Scala Native — Scala Native 0.5.13-20260708-d9a5e7f-SNAPSHOT documentation
Scala Native is an optimizing ahead-of-time compiler and lightweight managed runtime designed spe... Scala Native is an optimizing ahead-of-time compiler and lightweight managed runtime designed specifically for Scala. It features: Low-level primitives. import scala.scalanative.unsafe._ type Vec = CStruct3[Double, Double, Double] def sum(vec: Ptr[Vec]): Double = return vec._1 + vec._2 + vec._3 @main def main(): Unit = val vec = stackalloc[Vec]() // allocate c struct on stack vec._1 = 10.0 // init









2016/04/22 リンク