This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-26
Channels
- # aatree (6)
- # admin-announcements (2)
- # aws (1)
- # beginners (46)
- # boot (341)
- # braid-chat (3)
- # cider (20)
- # clara (1)
- # cljs-dev (3)
- # cljsjs (7)
- # cljsrn (73)
- # clojure (63)
- # clojure-art (4)
- # clojure-dev (3)
- # clojure-russia (83)
- # clojurescript (77)
- # core-async (12)
- # core-matrix (2)
- # cursive (9)
- # data-science (1)
- # datomic (14)
- # dirac (3)
- # emacs (9)
- # hoplon (3)
- # immutant (8)
- # ldnclj (80)
- # luminus (13)
- # mount (7)
- # off-topic (4)
- # om (288)
- # onyx (20)
- # overtone (5)
- # pedestal (10)
- # perun (3)
- # proton (103)
- # quil (1)
- # re-frame (3)
- # reagent (13)
- # ring-swagger (7)
- # yada (43)
interesting that I've never heard of metabase before (and they have emoji in their git commit messages 🎉 )
I am using metabase, and it is very simple, and one of the best out there. My users love it
what's the difference (in a clojure internals sense) of when a symbol is evaluated versus defined?
@gerred macros are useful (indeed necessary) if you want to delay the evaluation (or otherwise manipulate the code) without requiring the user to quote something.
so when I (def mysymbol "foo"), or (loop <sym>), mysmbol and <sym> aren't being evaluated because those are macros.
(i'm trying to sort this out in my own head for when I go to create my own macros, assigning things to symbols)
next step is to figure out what the hell defproject in Lein is doing, since it obviously takes a map without...wrapping things in a map. 😉
You could, in principle, have def be a function (say def-function) but then you'd have to call it as (def-function 'mysymbol "foo")
Generally, by convention, symbols that are named def<something> are macros that add symbols to the namespace.
Where can I find information about how that works under the hood? Is there a certain function that adds to the namespace?
Really, that should be "add vars"
Symbols are just names
Vars are named boxes for values
Namespaces store mappings from names to vars
What (function, etc.) ultimately registers a var into a namespace though? Is a namespace just a map?
Unfortunately namespaces are gross mutable Java objects
Phone is about to die, later!
As to defproject
, the reason its arguments looks like a map is the way Clojure does varargs.
I was asked to deploy a non-Immutant clojure .war to WildFly, and ended up getting this error presumably because the file it's trying to access isn't found anywhere: 2016-01-26 09:38:15,518 ERROR [io.undertow.request] (default task-20) UT005023: Exception handling request to /admin-rrs-sm/css/normalize.css: java.lang.IllegalArgumentException: No method in multimethod 'resource-data' for dispatch value: :vfs
Should I add handler to the undertow subsystem to fix this?
OK never mind. I tried this just now and it didn't work.
Even doing (assoc-in [:static :resources] false)
in my ring defaults doesn't do anything either
Deploying the exploded war manually produces the same error too. ...
Not to mention deploying an actual application in immutant to wildfly results in 403 when accessing it. ?_?