This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-14
Channels
- # announcements (1)
- # beginners (85)
- # calva (23)
- # cider (3)
- # clj-kondo (33)
- # cljs-dev (12)
- # clojure (79)
- # clojure-dev (5)
- # clojure-europe (1)
- # clojure-nl (3)
- # clojure-uk (3)
- # clojurescript (5)
- # clojutre (2)
- # data-science (30)
- # datomic (3)
- # duct (7)
- # fulcro (8)
- # garden (18)
- # jackdaw (2)
- # leiningen (1)
- # off-topic (3)
- # pathom (4)
- # qa (24)
- # re-frame (13)
- # reagent (3)
- # shadow-cljs (58)
- # testing (1)
I’ve been playing around with GraalVM… would vega and vega-lite wrapped as a native executable be useful?
My opinion, but as long as the non native version runs under 500ms I think you don’t need that speed for visualisons? Unless you make tons of them?
If you play with GraalVM, did you try the interop with R? I would love to write clojure code that compliles to R xD
I think the interop would allow you to run R code in the JVM, not transpile Clojure code into R code
@neo2551 for me it’s more about being able to run it without a browser in a self-contained executable without dependencies
Which uses case would it be?
so for example, in emacs there is a mode that allows you to write graphviz in a buffer and press a key to preview the result within emacs. It’s very convenient making diagrams like that. I’d love to have something like that for vega
Here's my attempt at something like that: https://github.com/zane/vega.repl
Obviously the result won't show up within Emacs, but I've found that a floating window provides a pretty good experience.
I also did that at some point (with java-fx as well!)
I think it’s useful, but I still think there is a place for a command line utility
@U050AACJB are you using this: https://github.com/graalvm/graaljs?
@U06C63VL4 nope, I just used graalvm
If so, and your idea is to generate pngs (or svgs) via native calls to VG generator for those, then there are some people who have said that is something they would like
So, does plain graalvm work well with native (NPM...) JS libs?
it actually worked pretty easily: https://twitter.com/stathissideris/status/1172814683029594114
I didn’t even use npm, I just got the code from cdn js
the code in the tweet has a flaw: I should have used a Clojure promise instead of an Atom
I need to fix this and then figure out how to release the native image via brew
Sorry, I missed this @U050AACJB. If the plan is to have a cmd line tool that eats VG/VGL specs and outputs pngs/svgs, some people have said they would like that. Actually, if it is nicely contained via graalvm, I might even use it in place of ggplot2!! 😄
This is really cool!
I wonder if you can write CLJS with Truffle
there is a non-released truffle clojure, it’s someone’s master thesis
But would it be useful? CLJS can tap into JS world, so we could have seamless interop
With GraalVM
Compiling ClojureScript to JavaScript that is then run (as JS) on GraalVM is different from a version of Clojure that implemented as a Truffle language. They both seem like interesting avenues of exploration to me.
Why would we build Clojure in Truffle? I can understand CLJS, but not Clojure as it is already a JVM language.
As an experiment, basically. Would it yield any performance improvements? Would it be easier to maintain and extend than the current Clojure compiler? You also get access to the tools that come from being an official GraalVM language. See "5. Tools that work across all languages" here: https://chrisseaton.com/truffleruby/tenthings/