This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-17
Channels
- # aleph (2)
- # announcements (20)
- # aws (43)
- # aws-lambda (5)
- # babashka (9)
- # beginners (231)
- # calva (4)
- # cider (12)
- # cljdoc (8)
- # cljsrn (3)
- # clojure (47)
- # clojure-europe (5)
- # clojure-nl (4)
- # clojure-spec (41)
- # clojure-uk (47)
- # clojuredesign-podcast (3)
- # clojurescript (20)
- # cryogen (3)
- # cursive (4)
- # data-science (2)
- # datomic (15)
- # emacs (4)
- # fulcro (21)
- # jackdaw (6)
- # jobs (1)
- # joker (13)
- # juxt (8)
- # kaocha (10)
- # malli (7)
- # off-topic (29)
- # pathom (11)
- # re-frame (19)
- # reagent (3)
- # reitit (26)
- # remote-jobs (8)
- # schema (2)
- # shadow-cljs (112)
- # spacemacs (1)
- # tools-deps (49)
- # vim (2)
- # xtdb (7)
Mornin'!
Early... ๐
Well, my merry little production clojure application is happily chugging along. Over 3,000,000 trips ingested since yesterday
@seancorfield I don't quite follow the statement from yesterday. Okay, in general something is catching the exception, but I don't want it to do that. Since I set the setDefault exception handler, shouldn't it a. overwrite what is there, or b, how on earth then does Stuart's example work, if main catches??
If you run a Clojure program via clojure.main
-- the -m
argument -- then clojure.main
is the entry point and it calls your code and it has a try
/`catch` so it can do the abbreviated exception reporting (one line, with the stacktrace written to a temp file).
You will only get the uncaught exception handler invoked if clojure.main
fails to catch it ๐ Which it won't. So it only applies if your code is the entry point, i.e., if you AOT and have a main class of your own.
so, if I change the code to be (:gen-class), don't I still need clojure.main to launch it?
If you make an uberjar with a manifest that specifies your namespace as the main class, and it's AOT'd, then clojure.main
is not involved.
You're using depstar
, yes?
So it would be clojure -m hf.depstar.uberjar uxh.jar -C -m core
as long as you've generated a pom.xml
file (`clojure -Spom`)
(not sure Java lets you have a single segment class name like that, BTW)
You just put them in :main-opts
as extra strings
:main-opts ["-m" "hf.depstar.uberjar" "uxh.jar" "-C" "-m" "core"]
mรฅning
morning
oh I didn't know he was in Basil Brush
I have already posted on #jobs, but on the basis that everyone may not be looking at it or being alerted by it.. https://cervest.earth/jobs-platform-engineer/
and the inference that fat makes you fat and/or ill seemed so obvious, despite the lack of evidence
low fat typically means high sugar - which is probably worse for most people - I personally have a mild preference for avioding 'low-fat' food