This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-07
Channels
- # adventofcode (114)
- # announcements (3)
- # aws (5)
- # babashka (62)
- # beginners (111)
- # calva (4)
- # cider (20)
- # clara (5)
- # clj-kondo (1)
- # cljs-dev (9)
- # clojure (255)
- # clojure-europe (75)
- # clojure-italy (10)
- # clojure-nl (3)
- # clojure-norway (5)
- # clojure-uk (6)
- # clojuredesign-podcast (5)
- # clojurescript (34)
- # community-development (28)
- # conjure (1)
- # cursive (3)
- # data-science (1)
- # datavis (1)
- # datomic (4)
- # figwheel-main (1)
- # fulcro (14)
- # graalvm (1)
- # graphql (8)
- # integrant (4)
- # introduce-yourself (2)
- # jobs (2)
- # juxt (4)
- # kaocha (2)
- # malli (6)
- # membrane-term (53)
- # mount (2)
- # nextjournal (2)
- # off-topic (27)
- # pathom (11)
- # polylith (3)
- # portal (11)
- # reagent (4)
- # reitit (4)
- # remote-jobs (1)
- # reveal (14)
- # shadow-cljs (22)
- # tools-deps (24)
- # vim (6)
- # xtdb (19)
Morning all!
Morning!
anyone here have suggestions on what libs to use to create and distribute desktop apps for Windows/Mac/Linux?
Anything but electron.
why go desktop app rather than full fat js/react/material-ui?
https://github.com/phronmophobic/membrane was mentioned at some point somewhere - not tried it, so can’t actually vouch for it though.
For some good fun, I am dabbling with PRs to https://github.com/phronmophobic/membrane.termwhich is written with membrane. @U7RJTCH6J is a very cool guy, drop by #membrane and I'm sure he'll answer any questions you might have.
Good morningÜ!
That's way too broad @otfrom - depending on the software budget, deadlines, target machine specs etc.
I'm writing it. I don't have much budget. I'd like it to be clojure and on the jvm or other clojure compatible target
(->> "good morning"
seq
shuffle
(apply str))
=> "noro ongdmgi"
The first bit seems like “no” pronounced with extreme Aussie slang. The second part seems more like a Japanese person exclaiming “Oni!“, whilst being strangled by said oni.
Anyone know of a good way to reload environment variables into a running Clojure process? It’s the main thing I’m missing in order to avoid having to restart the REPL atm.
I think you could hack it, depending on what you mean. In Java, you have to use reflection to change environment variables for the current JVM process, so presumably you could do that in Clojure. But what does “reload” mean? (I.e. what’s being loaded? Did you update your shell config, and want the new variables from that, or..?)
updated the shell’s env vars, want to put those into the JVM
@borkdude I did see a Java hack for it, guess it can be ported to Clojure, thought I’d ask first, though 🙂
good to know 🙂 Felt like pursuing it, but I’m not an interop savant, and the java code looked annoying in that regard
You could write something to launch a new shell process, read the environment variables, and set them in the JVM
This is what I wanted to do with the hack.
I see it as doable, but fraught with error
which is probably why people don’t do it 🙂
But things that have already used those values won’t change, so I guess you could end up with some confusing behaviour
@raymcdermott TIL, clojure.core.specs.alpha also works with #babashka (via spartan.spec).
user=> (require 'spartan.spec)
nil
user=> (require '[clojure.spec.alpha :as s])
nil
user=> (require '[clojure.core.specs.alpha :as cs])
nil
user=> (s/conform ::cs/defn-args '[foo [x y z]])
{:fn-name foo, :fn-tail [:arity-1 {:params {:params [[:local-symbol x] [:local-symbol y] [:local-symbol z]]}, :body [:body []]}]}
it's a drop-in alternative for clojure.spec.alpha
which isn't in babashka, since it's alpha
changing the question ... why you would include spartan.spec
rather than clojure.spec.alpha
- it seems like a distinction without a difference
because the regular clojure.spec.alpha isn't compatible with babashka. It contains things like clojure.lang.Compiler/demunge
which is a too low level thing to expose in babashka
Also I wrote it when bb was only a few months old. It didn't yet have protocols. So I rewrote everything using regular maps ;)
Wow:
/tmp/spec.alpha (master*) $ bb -cp src/main/clojure -e "(require '[clojure.spec.alpha :as s]) (prn (s/valid? int? 1)) (require '[clojure.spec.gen.alpha :as gen]) (gen/sample (s/gen int?))"
true
(0 -1 0 -2 -7 -1 -1 0 -7 -1)
I just got my visa to the Netherlands, first time. In case anyone there wants to meet some time between December the 13th and January the 12th, please let me know. Oh, and also if you have some definite suggestions about places one must visit and activities one must try while there.