This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-15
Channels
- # announcements (5)
- # architecture (17)
- # aws (2)
- # bangalore-clj (1)
- # beginners (157)
- # boot (22)
- # boot-dev (2)
- # cider (64)
- # clara (2)
- # cljs-dev (3)
- # clojure (30)
- # clojure-art (2)
- # clojure-australia (1)
- # clojure-belgium (1)
- # clojure-denver (1)
- # clojure-dusseldorf (1)
- # clojure-europe (8)
- # clojure-finland (2)
- # clojure-italy (9)
- # clojure-nl (21)
- # clojure-spec (261)
- # clojure-switzerland (3)
- # clojure-uk (67)
- # clojurescript (57)
- # clojurewerkz (2)
- # cursive (3)
- # datomic (27)
- # emacs (12)
- # figwheel-main (2)
- # fulcro (48)
- # garden (67)
- # graphql (41)
- # jobs (8)
- # kaocha (8)
- # liberator (2)
- # lumo (1)
- # off-topic (19)
- # parinfer (9)
- # perun (4)
- # re-frame (50)
- # reagent (7)
- # remote-jobs (4)
- # ring-swagger (20)
- # rum (6)
- # shadow-cljs (170)
- # specter (3)
- # tools-deps (19)
- # vim (3)
I meant on a non collection it should throw. It seems like you want exceptions here.
> As some of you probably know, Christophe Grand has joined nREPL’s team and is working on bringing some amazing features from unrepl to nREPL: > The ability to upgrade a plain socket REPL to nREPL. > Sideloading - allowing clients to act as network classloaders. > A rich value printer with collection elision. > (Extremely) Exciting times ahead! I cannot thank Christophe enough for the amazing work he has been doing on nREPL recently! People like him are the heart and soul of the Clojure community and the reason why I love being part of it!
Is there a JSON library which lets you only read what you need from a JSON string, to save performance? Like what you would do when writing your own JSON deserializer for a type in e.g. Java or Haskell.
is there any way I can hook into ring.middleware.reload
when it's actually doing a reload? Would like to perform some custom task when it's reloaded (specially restart a task that runs every X seconds)
looking for something similar to on-js-reload
from figwheel, which lets you run code when the code has changed
Ring reload event only if ns which you point to is reloaded. I have dev/user.clj which is wrapper app on core app with extra middleware. You can add to this ns restart task code.
Hi all. Does anyone have any tips on how to deal with clojure metadata on the Java side?
I have some data with my own metadata attached which I need to pass on to Java code. How do people normally deal with this?
the metadata is accessible via a method on the Object it's attached to, but you can just use meta
via Clojure.var
IFn meta = Clojure.var("clojure.core", "meta");
meta.invoke(o);
if you cast the object to IFn
, java should let you call the meta
method
o.meta();
, but I think the meta function is more reliable as an entrypointBut maybe I misunderstood? Are you doing this from Clojure and just want to know how to pass the metadata?
Yes, I'm doing it from Clojure, but the data needs to go through some Java and back. So I'm thinking what's the best way of doing that.
the meta
function retrieves the metadata, then you can use it with the java methods in whatever way makes sense
and if you need to round-trip, you can use with-meta to attach the metadata to a new data structure if needed - but this only works with Clojure things (vars, functions, persistent collections, symbols etc.)
Is there a way to to (str #inst "2018-10-15T14:45:07.000000000-00:00") without the time being converted to my time zone?
Yes, you really need to look into java time stamp formatting
Clojure really relies on the jdk for all that stuff
Will do, thanks
Answer to my question: use SimpleDateFormat
Is it possible to read session value with https://github.com/xeqi/peridot ? I am doing this now in that way:
(->> (get-in mock [:cookie-jar "localhost" "ring-session" :value])
(get @mem)
:uuid
(some?))
But it would be nice to use come kind of ring reader from session instead.