This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-31
Channels
- # arachne (4)
- # beginners (21)
- # boot (36)
- # cider (59)
- # cljsrn (8)
- # clojure (260)
- # clojure-filipino (3)
- # clojure-greece (3)
- # clojure-italy (15)
- # clojure-russia (58)
- # clojure-spec (54)
- # clojure-uk (99)
- # clojureremote (5)
- # clojurescript (65)
- # core-matrix (1)
- # cursive (17)
- # data-science (9)
- # datascript (7)
- # datomic (33)
- # emacs (8)
- # hoplon (2)
- # jobs (1)
- # jobs-discuss (2)
- # lein-figwheel (2)
- # lumo (2)
- # numerical-computing (1)
- # off-topic (22)
- # om (78)
- # onyx (17)
- # parinfer (3)
- # pedestal (5)
- # perun (1)
- # powderkeg (19)
- # protorepl (37)
- # re-frame (3)
- # rum (2)
- # spacemacs (1)
- # uncomplicate (8)
- # unrepl (78)
- # untangled (29)
- # yada (41)
morning
disappointed to discover that I had only dreamt that I had fixed an issue with my REPL š
I wonder if guava has anything to say about "horrible stream-based messes in Java 8"?
intermittent - but I was getting an NPE on (reset)
well, intermittent in the sense that sometimes it always happens and sometimes it doesnāt at all
which suggests Iām doing something specific
it reloads some of the namespaces fine and then borks and canāt load some, and the whole thing falls over
if I manually reload the right three namespaces in dependency order then its fine until I hit (reset)
again
the NPE is because a namespace didnāt load
I suspect it has something to do with AOT compilation
āfully qualifiedā?
Refresh is fully incompatible with aot. Don't use them in conjunction. A lein clean should solve that.
okay, so lein clean
might sort out the intermittency
thatās good to know
But ensure it's off during development. I'm not sure how to do that in lein, skip-aot metadata maybe?
mostly I steer as far from AOT as possible - but Iām AOTing the whole app for the uberjar in an attempt (that seems successful) to speed up start up time
for the jar I have one ns with :gen-class and a main-
function
Absolutely a fine use of aot. Bad for dev though. Gotta turn it off & clean between uses.
maybe a clean is all it will need if Iāve jarred it recently
so do I need to explicitly disable AOT?
I know we do on our lein projects. I've not investigated whether it's still necessary though.
the only reference to aot in my project.clj is :uberjar {:aot :allā¦
in my :profiles
You may need an :aot :none at the top level / dev profile. But I'm again, uncertain. Try clean. If not, play with that. But I imagine you'd see if aot was happening when you did lein repl
If you get really desperate, make sure it still happens if you don't hook up your editor. Sometimes caches can be problematic, particularly on big projects.
okay thanks, that gives me lots to go on if it recurs
it certainly often feels (not just with this problem) that AOT and REPLs are not good friends
Might be worth paying close attention to what is reloading. Make sure there's nothing external in there.
āexternalā?
on a lighter note Iāve been doing some ClojureScript recently and I think it should come with an addictiveness warning - itās sooooo much fun!
./resources/public/js
possibly about the same time - my project.clj certainly changed a lot when introducing Cljs to it
http://dev.clojure.org/jira/browse/TNS-45 probably running into this.
oooh, interestingā¦ ā¦but I have no cljc
ah, okay
I do use bidi (but not in my cljs)
still, it might be somewhere
yep, found some!
Re: on knowing more about the content of the clj std lib, reasons, opportunities and suggestions š https://labs.uswitch.com/an-introduction-to-the-clojure-standard-library/
Thought you folks living in the big smoke would be interested...
(interactive version) https://dancooksonresearch.carto.com/u/dancookson/viz/5eb8c336-1555-11e7-9e20-0e3ebc282e83/embed_map
korny: I didnāt do the visualisations, and have never met the person who didā¦ but we did do the data publishing work for the EPC data release which made this possible ( https://epc.opendatacommunities.org/ )
so you can access the data and make your own š
Nice - by the way, is there any public data around property boundaries and the like? In Aus there was an awesome online map where you could browse all open property data - right down to individual property boundaries. It'd be handy to have something similar here...
The aus one is at http://services.land.vic.gov.au/maps/pmo.jsp (at least for Victoria)
i think some people at the land registry were intending to publish that as open data
I guess as I'm working in http://gov.uk I should ask around here...
korny lots more data available to gov't people than generally to us who rely on the OGL
otfrom: well we built the app, prepped the data, and host and maintain it. Had to publish the data as is, so couldnāt clean it etcā¦ the publication and data is the DCLGs.
thatās one way of putting itā¦ I wonāt comment on the accuracy of that statement though š
Cool visualistion! In the bottom half of the map thereās three super expensive satellites? What might they be?
anyone know anything about java-2d in-memory representation ? i'm seeing a 5k^2 image OOM a 1GB jvm... though a trivial estimate would put that image unpacked to 200MB
the image is 5k x 5k pixels?
how many bytes per pixel?
assuming 4 bytes per pixel:
(* 4 15000 15000)
=> 900000000
(if youāre using a BufferedImage somewhere then this may explain: https://docs.oracle.com/javase/7/docs/api/java/awt/image/BufferedImage.html)
yeah, the image was 5k x 5k px
i assumed 8 bytes per pixel - 4x16-bit color chans, giving me ~200MB (i think you estimated a 15k^2 image)
anyway, looks like resizing the image to a few different resolutions was requiring ~600MB in total... works fine on a 2GB jvm
Found this quote I hadn't seen before that struck a chord with the way I need tests. > The real value of tests is not that they detect bugs in the code but that they detect inadequacies in the methods, concentration, and skills of those who design and produce the code. - Tony Hoare