This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-20
Channels
- # announcements (27)
- # aws (1)
- # beginners (62)
- # boot (5)
- # calva (56)
- # clj-kondo (6)
- # cljdoc (3)
- # cljsrn (4)
- # clojure (65)
- # clojure-dev (17)
- # clojure-europe (2)
- # clojure-italy (17)
- # clojure-nl (24)
- # clojure-spec (30)
- # clojure-uk (14)
- # clojurescript (35)
- # clr (7)
- # cursive (8)
- # data-science (3)
- # datascript (38)
- # datomic (15)
- # emacs (16)
- # fulcro (34)
- # hyperfiddle (1)
- # immutant (1)
- # luminus (7)
- # nrepl (1)
- # off-topic (38)
- # pedestal (2)
- # planck (10)
- # re-frame (7)
- # reagent (7)
- # reitit (9)
- # shadow-cljs (36)
- # sql (19)
- # tools-deps (11)
- # vim (64)
- # xtdb (18)
Anyone have a nice workflow for Rust + cljs? I have some high performant webgl/wasm32 primitives written in Rust. Now however, I want a way to interact with all these objects from cljs, so I need some way to handle Rust <-> cljs serialization.
I tried running wasm from clojurescript about half a year ago with little success. You can get some typescript generated with the wasm but I don't think that would help in this case. What works the flow of information be, and how does the data look like? There is the serde library in Rust that can be used for 'dynamic' data like Json.
Hello everyone! I wonder if anyone here uses some lenses/prisms libraries in your projects?
I've been rather pleased with Specter https://github.com/nathanmarz/specter
@U87UFHEUV Yes, saw it. But I don't like it, because of the approach and tool's naming. The author is using his own terminology there and not thinking globally in terms of the optics, optics laws and mathematics. Which, I think, implies that using Specter could be pretty bad for a project.
@thenonameguy thanks! will take a closer look at it!
The Tupelo.Forest lib allows you to process tree-like data structures in powerful ways: https://github.com/cloojure/tupelo/blob/master/docs/forest.adoc
Hi folks, quick ClojureScript question..
#?(:cljs
(defn fs-working
[]
(.openSync js/fs "file.txt" "r")))
The above code works at a Node JS Piggieback repl, but when called from a test (using cljs-test-runner
) I get
#object[ReferenceError ReferenceError: fs is not defined]
Any ideas? 
js/fs
? I've never seen that. Shouldn't you require that with cljs.node/require
like here: https://github.com/macchiato-framework/macchiato-core/blob/8c0ae5c47b3495a171a028e65bd989bdce2c4915/src/macchiato/middleware/file.cljs#L9? Also I suppose you run the tests in node environment - not with some browser.
Hi, yes I agree, I've never seen js/fs
before, but interestingly it does work in my Piggieback repl (but not from tests, or when compiled)
I was using this js/fs
form instead of js/require
to try and workaround an issue I was having trying to use the macrovich
library: https://github.com/cgrand/macrovich/issues/8
However, since js/fs
didn't work in tests or compiled (and I didn't want to spend additional time figuring out why), I went for a js/require
based approach in the end (once I'd figured out how to make it work in a macro, and with macrovich)!
Setting up emacs on a new Arch Linux laptop and getting an nrepl timed out error. Lists op classpath
as the detail.
I'm using ClojureScript mode and then cider-jack-in-cljs
with figwheel as the next option. This project loads correctly when using figwheel without emacs on the same machine.
I updated the nrepl-sync-request-timeout
to be nil, so I'm really not sure what's going on.
Any help would be appreciated.
Grab the start up command it’s using from the messages buffer and run it from the terminal
Good call. To the terminal
Doh! So, reading the messages buffer I noticed a message saying that my cider-nrepl was newer than the byte-compiled version...sigh
Recompile the cider directory and bingo, nrepl no longer times out. I'd updated the timeout function, but it wasn't being used
@dpsutton not the exact approach you recommended, but thanks for prompting me toward the location to help myself
you mean like
[5:1]~cljs.user=> (str (random-uuid))
"a0a54647-4605-4fcd-b7bd-3371e72fbc5b"