Michiel Borkent
3ec5e1806d
Use clojure.repl at REPL startup
2020-04-13 21:57:21 +02:00
Michiel Borkent
3c2e17844d
[ #353 ] set babashka.main property
2020-04-13 16:49:28 +02:00
Michiel Borkent
8266349df8
[ #344 ] print link to nREPL docs
2020-04-12 16:41:48 +02:00
Michiel Borkent
cca63e913f
[ #344 ] add nREPL docs
2020-04-12 16:30:39 +02:00
Michiel Borkent
4318fc0192
[ #346 ] nrepl: fix close
2020-04-12 14:25:36 +02:00
Michiel Borkent
f1c1a3db8e
[ #349 ] nrepl: write to output while evaluating
2020-04-12 13:50:49 +02:00
Michiel Borkent
b0a3549bab
[ #346 ] nrepl: implement close and ls-sessions
2020-04-12 13:14:24 +02:00
Michiel Borkent
e2bdd7eae2
[ #348 ] nrepl: support multiple top level expressions
2020-04-11 21:36:33 +02:00
Maurício Szabo
9f199ddef7
Send bencode using BufferedOutputStream ( #342 )
...
This new implementation is faster because you only flush when you issue `.flush`, or until the buffer is full. Some simple experiments with Chlorine confirmed that small messages are being received in a whole block, instead of fragmented.
2020-04-11 09:47:06 +02:00
Michiel Borkent
1c467080fa
borkdude/babashka.curl#13
2020-04-10 23:39:04 +02:00
Michiel Borkent
7e30c40dd9
nREPL server cleanup
2020-04-10 14:29:10 +02:00
Michiel Borkent
110f6d7644
[ #336 ] Add java.lang.Runtime to support shutdown hooks ( #338 )
2020-04-08 21:18:25 +02:00
Michiel Borkent
b522531e79
[ #329 ] create non-existing ns in nREPL message
2020-04-06 00:04:30 +02:00
Michiel Borkent
2272536026
[ #329 ] ignore non-existing ns in nREPL message
2020-04-05 23:31:36 +02:00
Michiel Borkent
249fc0a5a5
[ #19 ] make ns key optional in nREPL messages
2020-04-05 23:17:07 +02:00
Michiel Borkent
c738398eea
Add java.lang.Byte, test bencode from source
2020-04-04 15:08:52 +02:00
Michiel Borkent
3bf27445f3
[ #328 ] completions for clojure.test do not work
2020-04-04 14:26:02 +02:00
Michiel Borkent
62014c0e74
Fix babashka.curl test
2020-04-04 12:39:07 +02:00
Michiel Borkent
8b90e40de4
[ #301 ] Add nREPL server ( #326 )
2020-04-03 23:51:54 +02:00
Michiel Borkent
4263c19979
[ #308 ] print exception name in REPL
2020-03-28 11:20:39 +01:00
Michiel Borkent
fe76cd352c
[ #312 allow .getMessage on ex-info ( #313 )
2020-03-28 08:29:03 +01:00
Michiel Borkent
1105c4676e
[ #310 ] add java.nio.file.FileSystem(s) ( #311 )
2020-03-28 00:27:32 +01:00
Michiel Borkent
d9b2610eae
Add java.io.FileReader ( #307 )
2020-03-22 11:47:02 +01:00
Michiel Borkent
bb311f5480
Rename env var
2020-03-21 23:15:02 +01:00
Michiel Borkent
962eefcc76
Move disabling pipe handler to pipe ns
2020-03-21 23:11:14 +01:00
Michiel Borkent
02f5a85db3
Fix bug with *input* when used in code from classpath
2020-03-21 22:49:14 +01:00
Dainius Jocas
b14d239ebb
Support AWS Lambda custom runtime ( #305 )
...
* environment variable to disable handling of SIGPIPE
* rename env variable to BABASHKA_DISABLE_PIPE_HANDLER
2020-03-21 20:17:57 +01:00
Michiel Borkent
ef06175678
[ #264 ] Add transit-clj ( #298 )
2020-03-20 17:16:42 +01:00
Michiel Borkent
a18a5c345c
Socket-REPL: default to port 1666
2020-03-20 15:37:02 +01:00
Michiel Borkent
4db28b45e8
[ #293 ] reset ns after load-file
2020-03-20 15:12:15 +01:00
Michiel Borkent
5b50ba760e
[ #296 ] add support for cprops lib ( #297 )
2020-03-20 14:28:19 +01:00
Michiel Borkent
378b592ac7
Docs for babashka.curl
2020-03-07 14:10:58 +01:00
Michiel Borkent
1297084d53
Add babashka.curl (undocumented)
2020-03-07 14:02:37 +01:00
Michiel Borkent
8955431ee7
Add more docstrings
2020-03-06 22:33:58 +01:00
Michiel Borkent
0b23dd0fdb
eval + read-string are moved to sci
2020-03-06 11:08:53 +01:00
Michiel Borkent
aa4139931e
[ #284 ] Add read-string
2020-03-06 10:33:22 +01:00
Michiel Borkent
91a273034a
clojure.stacktrace now works with GraalVM!
2020-03-05 22:01:47 +01:00
Michiel Borkent
f52b208b7e
[ #283 ] support writer arg in clojure.pprint
2020-03-04 21:14:59 +01:00
Michiel Borkent
24a469af65
[ #255 ] support clojure.core.async/go macro by falling back on threads
2020-03-01 16:27:35 +01:00
sogaiu
7ef2cd3dc4
Support doc for file-seq ( #277 )
2020-02-26 20:27:35 +01:00
sogaiu
b744efd60b
Support doc for slurp and spit ( #276 )
2020-02-25 10:17:22 +01:00
Michiel Borkent
a4b4ce43a4
Add java.time.temporal.ChronoUnit class ( #271 )
...
* Adding java.time.temporal.ChronoUnit to classes.clj
This enables the two following kinds of calculations between
LocalDateTime, LocalTime, Instant and other Temporal descendants:
ChronoUnit.MILLIS.between(temporalOne, temporalTwo)
temporalOne.until(temporalTwo, Chronounit.HOURS)
and I assume a lot of other operations which require time
units.
* Add unit test
Co-authored-by: Matias Bjarland <matias@iteego.com>
2020-02-21 21:32:28 +01:00
Michiel Borkent
90d16fbb74
Merge branch 'master' into clojure.data.xml
2020-02-21 20:08:00 +01:00
Michiel Borkent
7ad6f3195f
Lib tests
2020-02-19 23:58:58 +01:00
Michiel Borkent
e43727955a
[ #133 ] add clojure.pprint/pprint backed by fipp
2020-02-19 23:22:49 +01:00
Michiel Borkent
41b3893056
sci: support metadata on namespaces
2020-02-18 16:25:04 +01:00
Michiel Borkent
29c0f20ead
Fix tools.cli alias
2020-02-17 18:17:14 +01:00
Michiel Borkent
e98a92c283
Sci: reify core vars, implement repl/doc ( #265 )
2020-02-16 12:54:54 +01:00
Jeroen van Dijk
c8fd1c7931
Add Security classes in order to be able to generate signatures ( #261 )
2020-02-09 20:45:29 +01:00
Michiel Borkent
01714e4bbb
Add note about rlwrap
2020-02-07 09:33:02 +01:00
Michiel Borkent
debd180681
Fix previous commit
2020-02-04 22:15:59 +01:00
Michiel Borkent
1a9dc12c38
Add java.lang.Long to imports
2020-02-04 22:15:14 +01:00
Stijn Opheide
d5ff6f7308
add java.lang.Long to classes ( #253 )
2020-02-04 22:07:11 +01:00
Michiel Borkent
d3f1b05102
Make core.async.impl.protocols namespace reachable from within bb
2020-02-04 12:42:05 +01:00
Michiel Borkent
ba3eac83b1
Fix preloads
2020-02-04 11:09:29 +01:00
Michiel Borkent
1224919bd1
sci: now includes clojure.edn
2020-02-02 18:24:58 +01:00
Michiel Borkent
b931b98f4c
Doc
2020-01-31 17:34:39 +01:00
Michiel Borkent
6abff1dbdd
[ #250 ] implement -- option
2020-01-31 17:23:22 +01:00
Michiel Borkent
8570eef019
Fix reported file
2020-01-30 10:30:11 +01:00
Michiel Borkent
6e8a2e2e9a
[ #245 ] add -iO and -Io
2020-01-29 23:55:21 +01:00
Michiel Borkent
710eee3e51
[ #247 ] add clojure.test/report
2020-01-29 23:31:29 +01:00
Michiel Borkent
f86cc84303
[ #247 ] add clojure.test as built-in lib
2020-01-29 23:22:26 +01:00
Michiel Borkent
aad41086f7
Minor
2020-01-21 15:39:03 +01:00
Michiel Borkent
736555bdb6
Add Writer, PrintWriter and PushbackReader
2020-01-21 15:27:38 +01:00
Michiel Borkent
e427060c0b
Add java.io.Reader and StringBuilder
2020-01-21 15:14:33 +01:00
Michiel Borkent
a442bde76a
[ #213 ] Allow -e argument to be repeated
2020-01-20 11:00:53 +01:00
Michiel Borkent
8f698894f6
[ #234 ] *ns* should be controllable set per socket REPL connection
2020-01-20 10:41:11 +01:00
Michiel Borkent
9269f1087f
[ #243 ] ns form doesn't work with socket repl
2020-01-19 20:01:49 +01:00
Michiel Borkent
6c4a54745a
Add time macro
2020-01-19 15:28:59 +01:00
Michiel Borkent
073fbcac20
Add Throwable to default imports
2020-01-19 14:18:52 +01:00
Michiel Borkent
45da56a964
sci: support reload
2020-01-18 20:41:46 +01:00
Michiel Borkent
d1aaa97df6
sci: record file metadata on var
2020-01-18 18:25:38 +01:00
Michiel Borkent
d9a75cf8cf
dev
2020-01-17 17:26:03 +01:00
Michiel Borkent
0713038457
[ #239 ] Fix issue with clj-http-lite
2020-01-16 10:28:17 +01:00
Michiel Borkent
bfa8b45e34
sci: performance improvement
2020-01-14 17:12:57 +01:00
Michiel Borkent
8c41237f7a
sig -> signal
2020-01-12 20:18:37 +01:00
Michiel Borkent
5a63d37486
babashka.classpath
2020-01-12 20:02:48 +01:00
Michiel Borkent
b933610626
Add experimental add-classpath!
2020-01-12 18:15:34 +01:00
Michiel Borkent
19767b54a3
[ #221 ] print name of exception
2020-01-12 17:40:41 +01:00
Michiel Borkent
8e24744d35
[ #219 ] better error message for unrecognized cli option
2020-01-12 17:27:17 +01:00
Michiel Borkent
1268792b47
Refer 'clojure.repl/dir in user ns
2020-01-12 14:01:22 +01:00
Michiel Borkent
a3b3984f05
Upgrade sci
2020-01-12 13:35:03 +01:00
Michiel Borkent
06cccf1a14
Add ns-publics + clojure.repl/dir
2020-01-12 13:33:56 +01:00
Michiel Borkent
7b85863020
Bind current-ns to user
2020-01-12 11:51:40 +01:00
Michiel Borkent
4a833e3c76
Add test
2020-01-08 22:42:58 +01:00
Michiel Borkent
f1c6f27eaf
xml
2020-01-08 22:04:59 +01:00
Michiel Borkent
90f10061b3
Merge branch 'master' into clojure.data.xml
2020-01-08 21:25:12 +01:00
Michiel Borkent
2b0cb6fb1c
Remove Unix-specific classes ( #227 )
2020-01-08 11:48:40 +01:00
Michiel Borkent
ab6ea2de08
add demunge
2020-01-05 19:01:55 +01:00
Michiel Borkent
193bbc2888
sci: preserve tag in let ( #216 )
2020-01-05 17:45:25 +01:00
Michiel Borkent
1d3cd975ba
Add constructors for Delay and MapEntry
2020-01-04 20:21:09 +01:00
Michiel Borkent
5e2c2a7ba0
Add locking
2020-01-04 20:04:29 +01:00
Michiel Borkent
62f12e75ee
sci: use public alter-var-root
2020-01-04 15:31:49 +01:00
Michiel Borkent
28b873700d
Add class for clj-http.lite
2020-01-02 16:02:36 +01:00
Michiel Borkent
978278768f
Add a bunch of classes
2020-01-02 13:39:22 +01:00
Nate Sutton
95a9e91244
Add FileTime and TimeUnit for working with times on file attributes ( #211 )
2020-01-02 09:31:03 +01:00
Nate Sutton
55e01c5b2c
Add Throwable->map ( #210 )
2020-01-02 09:30:24 +01:00
Nate Sutton
b16e2812e0
Add clojure.stacktrace ( #209 )
2020-01-02 09:29:26 +01:00
Michiel Borkent
0362ecb7f6
Fix starting REPL when no expression is given
2020-01-01 23:27:25 +01:00
Michiel Borkent
6d0531c26e
Add clojure.lang.IOBj
2020-01-01 20:11:49 +01:00
Michiel Borkent
2447f68502
Add java.util.UUID
2020-01-01 18:02:08 +01:00
Michiel Borkent
a9ac2cabbe
Add java.net.Socket/Server
2019-12-31 14:13:22 +01:00
Michiel Borkent
2ed19cef99
Cleanup
2019-12-30 18:06:13 +01:00
Michiel Borkent
24f4f7aafe
[ #200 ] add nio LinkOption
2019-12-30 11:33:23 +01:00
Michiel Borkent
9bdaafbca9
[ #200 ] import IllegalArgumentException
2019-12-30 11:28:47 +01:00
Michiel Borkent
b6f484416b
[ #200 ] add shell/with-sh-dir and shell/with-sh-env
2019-12-30 11:28:07 +01:00
Michiel Borkent
16ca4098c8
add io/resource
2019-12-29 23:37:08 +01:00
Michiel Borkent
ded6dd2355
--uberscript option ( #197 )
2019-12-28 22:52:56 +01:00
Michiel Borkent
edecf87b67
[ #194 ] *command-line-args* should be nil instead of empty list when no args are provided
2019-12-25 16:14:28 +01:00
João Santiago
5ad851d2ed
Add missing functions from cheshire.core ( #195 )
2019-12-25 15:55:49 +01:00
Michiel Borkent
2041656583
[ #154 ] minor
2019-12-24 10:24:41 +01:00
Michiel Borkent
acfc79660a
[ #154 ] Expose clojure.main/repl to babashka
2019-12-24 10:01:32 +01:00
Michiel Borkent
2ab73f2342
Add class to make (client/get "http://...") work
2019-12-22 22:10:22 +01:00
Michiel Borkent
3270d521d3
Support for clj-http-lite
2019-12-22 20:09:52 +01:00
Michiel Borkent
1c5cebb608
Add clojure.core/delay
2019-12-22 13:03:08 +01:00
Michiel Borkent
34249ad0b1
Add reflection info to support clj-http-lite
2019-12-22 09:40:12 +01:00
Michiel Borkent
2eecdea571
[ #179 ] Current file path: *file*
2019-12-21 11:39:28 +01:00
Michiel Borkent
479a08d73e
[ #173 ] <input> becomes *input*
2019-12-20 23:51:24 +01:00
Michiel Borkent
7c45baf008
Make *command-line-args* a dynamic var
2019-12-20 21:29:27 +01:00
Michiel Borkent
4f488ca684
[ #159 ] set sci var roots to *in*, *out* and *err*
2019-12-19 23:34:27 +01:00
Michiel Borkent
a9231b7ecf
[ #173 ] rename *in* to <input> (BREAKING!)
2019-12-19 21:41:57 +01:00
Michiel Borkent
5e10c913e0
[ #174 ] Add edn/read
2019-12-19 18:43:55 +01:00
Michiel Borkent
f8a19d2f46
[ #162 ] add java.util.Base64
2019-12-18 17:01:00 +01:00
Michiel Borkent
1b1e564288
[ #149 ] Add java.time.* classes
2019-12-18 16:38:21 +01:00
Michiel Borkent
316cce2b59
Add java.lang.Math
2019-12-18 13:46:07 +01:00
Michiel Borkent
aa8e6b160b
Close socket
2019-12-17 12:23:34 +01:00
Michiel Borkent
c2d9bbfab2
[ #160 ] Add support for ProcessBuilder ( #165 )
2019-12-17 11:27:40 +01:00
Michiel Borkent
83b3aad920
[ #158 ] Automate generation of reflection.json
2019-12-16 21:44:20 +01:00
Michiel Borkent
218f5e94da
Merge branch 'master' into clojure.data.xml
2019-12-16 13:55:18 +01:00
Michiel Borkent
06eca1c796
Fully qualify async thread-call
2019-12-16 13:10:38 +01:00
Michiel Borkent
1974a2362d
Update sci: fix for nested syntax quote
2019-12-15 20:55:16 +01:00
Michiel Borkent
3ed5f69b20
clojure.data.xml
2019-12-13 21:58:56 +01:00
Michiel Borkent
a74be0ad1a
[ #146 ] support --classpath / -cp and --main / -m ( #150 )
2019-12-12 23:07:35 +01:00
Michiel Borkent
3c5581fa34
[ #147 ] Add cheshire
2019-12-10 09:44:41 +01:00
Michiel Borkent
b735ae62cc
README
2019-12-08 12:51:19 +01:00
Michiel Borkent
c2037c0ed8
[ #137 ] Add REPL prompt at startup
2019-12-08 12:46:06 +01:00
Jakub Holy
f1feec799c
Fix #142 - add NIO/FileAttribute etc. ( #143 )
2019-12-07 16:27:31 +01:00
Michiel Borkent
02d9a315cb
sci: support for dynamic vars
2019-12-07 11:48:57 +01:00
Michiel Borkent
8afb87142e
v0.0.37, add tree example, fix *command-line-args*
2019-11-27 18:13:49 +01:00
Michiel Borkent
1885c45255
[ #105 ] initial support for java.nio.file.Files
2019-11-27 17:14:24 +01:00
Michiel Borkent
3e0d464bfe
Bump sci: namespaces
2019-11-27 14:10:07 +01:00
Michiel Borkent
87accff420
Move assert to sci ( #129 )
2019-11-24 13:35:34 +01:00
Michiel Borkent
cfb1f45e8b
[ #112 ] Add binding, with-out-str and with-in-str
2019-11-16 23:11:42 +01:00
Michiel Borkent
2dfb55d4a3
add clojure.core/*in* and clojure.core/*out*
2019-11-16 16:46:41 +01:00
Michiel Borkent
8c5cc4ee67
[ #103 ] add .write and .append support for BufferedWriter
2019-11-16 11:01:27 +01:00
Michiel Borkent
a0fa854969
Refactor using reflection support ( #110 )
2019-11-16 00:25:36 +01:00
Jeroen van Dijk
d21274a62d
Add clojure.core/eval ( #107 )
...
bb -e "(eval '(+ 1 2))"
3
2019-11-14 19:47:35 +01:00
Jeroen van Dijk
5695ee3a52
Added more String parsers ( #106 )
...
* Add Double/parseDouble
* Add Boolean/parseBoolean
2019-11-14 16:13:21 +01:00
Michiel Borkent
4960ed769b
[ #102 ] Add java.util.regex.Pattern
2019-11-13 21:59:29 +01:00
Michiel Borkent
0bcb568ed8
README
2019-11-13 18:06:52 +01:00