This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-04
Channels
- # announcements (10)
- # asami (6)
- # babashka (22)
- # beginners (44)
- # biff (1)
- # calva (8)
- # clj-kondo (13)
- # clojure (62)
- # clojure-art (1)
- # clojure-europe (27)
- # clojure-nl (1)
- # clojure-norway (19)
- # clojure-spec (19)
- # clojure-uk (2)
- # component (29)
- # datascript (1)
- # fulcro (9)
- # gratitude (2)
- # kaocha (6)
- # klipse (1)
- # luminus (16)
- # malli (9)
- # nbb (5)
- # off-topic (4)
- # reagent (5)
- # shadow-cljs (85)
- # spacemacs (1)
- # tools-deps (10)
- # vim (9)
- # xtdb (2)
has anyone used babashka to compress stuff? I see java.util.zip.Deflater is not there. are there other options anyone knows of?
@henryw374 There is fs/zip
Also the gzip interop stuff is supported. We can expose Deflater, so far it hasn't been necessary, but if you can provide an example where this would be useful, we could expose it. There is also fs/unzip
EDIT: turns out it was already exposed :)
what I am trying to do is encode diagrams so they can be used by kroki https://kroki.io/. It looks like the encoding they require is pretty specific, zlib on max compression: https://docs.kroki.io/kroki/setup/encode-diagram/#java I am finding it just fails with gzip or even lower compression :(.
@henryw374 If I would add a branch with the necessary class and you could download that binary as a temporary solution, would that help?
@henryw374 You can see here all classes that are exposed: https://github.com/babashka/babashka/blob/master/src/babashka/impl/classes.clj
in case anyone finds it helpful, here are bb scripts to round trip from diagram files to kroki urls (kroki creates diagrams from text see https://kroki.io/#try) : https://gist.github.com/henryw374/070845dbd8cfb4672a3c0d06cf8b00e4
@henryw374 Awesome! Since when does github gists highlight .bb as clojure? Perhaps you have an idea on this too (sharing scripts): https://github.com/babashka/babashka/discussions/1307
seems to be in here: https://github.com/github/linguist/blob/master/lib/linguist/languages.yml#L1065
yeah bb finally is not written in basic