doc
This commit is contained in:
parent
e373f260c9
commit
8da9a75445
1 changed files with 6 additions and 1 deletions
|
|
@ -19,7 +19,8 @@ $ bb '(vec (dedupe *in*))' <<< '[1 1 1 1 2]'
|
||||||
If you're a bash expert, you probably don't need this. But for those of us who
|
If you're a bash expert, you probably don't need this. But for those of us who
|
||||||
can use a bit of Clojure in their shell scripts, it may be useful.
|
can use a bit of Clojure in their shell scripts, it may be useful.
|
||||||
|
|
||||||
Babashka runs as a binary which results in faster startup times:
|
Babashka runs as a [GraalVM](https://github.com/oracle/graal) binary which
|
||||||
|
results in fast startup times:
|
||||||
|
|
||||||
``` shellsession
|
``` shellsession
|
||||||
$ time clojure -e "(+ 1 2 3)"
|
$ time clojure -e "(+ 1 2 3)"
|
||||||
|
|
@ -50,6 +51,10 @@ ClojureScript and around 200ms in Clojure on the JVM.
|
||||||
So the sweet spot for babashka is executing tasks from the command line where
|
So the sweet spot for babashka is executing tasks from the command line where
|
||||||
fast startup time is preferred, in the same space where you would use bash.
|
fast startup time is preferred, in the same space where you would use bash.
|
||||||
|
|
||||||
|
Where it can, babashka calls the regular implementation of Clojure on the JVM
|
||||||
|
and proxies common JVM packages like `System`, so writing code in it should be
|
||||||
|
familiar if you're already using Clojure on the JVM.
|
||||||
|
|
||||||
## Status
|
## Status
|
||||||
|
|
||||||
Experimental. Breaking changes are expected to happen at this phase.
|
Experimental. Breaking changes are expected to happen at this phase.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue