You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
# Compile to native binary (default) gloat app.clj # Creates ./app binary gloat app.clj -o myapp # Creates ./myapp binary # Output intermediate formats gloat app.ys -t clj # Clojure to stdout gloat app.ys -t glj # Glojure to stdout gloat app.ys -t go # Go to stdout # Create files with -t .ext shorthand gloat app.ys -t .clj # Creates app.clj gloat app.ys -t .glj # Creates app.glj gloat app.ys -t .g
JVM の 約 50 倍速 の起動、Babashka の 約 3 倍速 です。CLI ツールやスクリプトを Clojure で書くときに「起動遅いから shell で…」と妥協する必要がなくなります。 ただし、大きな数値計算ワークロードでは JVM や go-joker の WASM JIT が勝ちます。let-go が強いのは 短命プロセス・小さなデータ処理・配布のしやすさ というニーズがある場合のようです。 2.2. Clojure の中核機能がほぼ動く Clojurian が日常で書くものはだいたい動きます。 永続データ構造、遅延シーケンス、トランスデューサ protocols, records, multimethods atoms, metadata, regex, BigInt clojure.string / set / walk / edn / pprint / test
この記事はFOLIO Advent Calendar 2023の2日目です。 この記事は? この記事はClojureランタイムであるBabashkaを簡潔に紹介します。また、いくつかの役に立つコードスニペットを示し、チートシート的に使えることも目指します。 対象読者 シェルスクリプトに疲れた人 Babashka/Clojure固有の複雑な機能は使いませんが、LISP/Javaの右も左もわからない方には厳しいかも Babashkaとは? Clojureは、LISP系のプログラミング言語で、JVM上で動くことが特徴です。 Babashkaは、Clojureのランタイムの一つで、GraalVMを利用し、Clojureコードを高速に実行できます。bashなどのシェルスクリプトの代替として、Clojureを利用できるようにすることを目指しています。 なぜBabashkaを使うべきなのか? 高速な起動
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く