9

Journal 2019.9 - jdk regression, clojure.main, spec

 4 years ago
source link: https://insideclojure.org/2019/03/02/journal/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Journal 2019.9 - jdk regression, clojure.main, spec

JDK regression

Following up on this from last week, I had the idea that maybe moving all of the code out of the RT static initializer was not necessary. The other big thing happening is loading clojure.core, but all of that code is AOT compiled. I put together a new patch on CLJ-2484 and sure enough, just moving the load of user.clj out of the RT initializer is sufficient. Seems like work on the Java bug is continuing to progress, but slowly.

clojure.main

We had a long discussion this week about what to do on CLJ-2463 around error reporting when invoking clojure.main. I think the fundamental insight is that process invocation via clojure.main is inherently a poor API as we basically have a return code and printing to convey information. Consumers of this “API” may have wildly varying needs (one-off invocations via clj, dev-time tooling like lein, or a prod server).

As such, we ultimately decided that we should focus the default printing on the message we spent a lot of time on in 1.10 (what you now see in the clojure.main REPL). But also, we want to retain as much info as possible for cases where that’s needed, so we’re writing that into an .edn temp file. There is also an override flag to force printing to stderr instead for production cases where that’s more useful. More details and patch in the ticket if you’re interested.

We’re considering a possible 1.10.1 with the two issues above, but TBD.

Continued some work on the new spec select as well, but nothing useful to talk about yet.

ClojuTRE

If you’re heading to Helsinki for ClojuTRE, I’ll see you there! I have a few candidate talks but haven’t decided yet what I’ll be talking about. Looking forward to seeing Finland for the first time and meeting you all!

Other stuff I enjoyed this week…

Shout out this week to the Motortrend show Roadkill which I thoroughly enjoy, despite knowing next to nothing about “car stuff”. I particularly enjoy the hosts’ calm and thorough competence that comes from understanding every system they’re working with from first principles. I enjoy imagining that this is Rich and Stu in some alternate universe.

Written on March 2, 2019

Recommend

  • 27
    • www.tuicool.com 6 years ago
    • Cache

    Clojure.spec Beginner's FAQ

    Clojure.spec has been available (in alpha) for some time, and there are great talks and resources like the...

  • 48

    spec I spent almost the entire week completing the large chunk of refactoring I’ve been doing in spec-alpha2. At this point, I think everything is put back together. I’ve updated the

  • 60
    • www.tuicool.com 6 years ago
    • Cache

    Journal 2019.12 - Clojure 1.10.1-beta1

    Clojure 1.10.1-beta1 The big news this week is the release of Clojure 1.10.1-beta1. This is a tightly scoped release and we are not expecting to add much, if anything, more to it before it’s released. There are...

  • 39

    Clojure 1.10.1 work Stu screened and I updated CLJ-2504 headed for a 1.10.1-beta3. That probably won’t happen till early next week due to travel. T...

  • 35

    Hey all, I’m a little off rhythm as I’ve had some vacation time recently, but now is a good time to check in! Clojure 1.10.1 Today we released

  • 14

    Journal 2019.25 - dep graphs, s3 transporter, spec 2 Probably the last update of the year. I had hoped to do it this weekly in 2019. That didn’t quite happen but since this is the 25th update of the year, I average about...

  • 9

    Journal 2019.24 - spec and-, tools.deps.graph I’ve fallen off the pace on these journals but here’s an update! Spec 2 Most fresh in my head is some ongoing work on Spec 2. This week I added s/and-...

  • 6
    • insideclojure.org 4 years ago
    • Cache

    Journal 2019.16 - closed spec checking

    Closed spec checking As I mentioned last week, I’ve been working on adding a new form of closed spec checking and that’s in master for spec 2 now, or at least the first cut of it. The idea is that you can mark one or more (or all) s...

  • 10

    JDK regression I wrote about this issue last week and spent a good chunk of this week better understanding the sco...

  • 10

    Journal 2019.7 - jdk regression, spec, sets, tools.deps JDK regression There was a rash of reports this week about significant startup time slowdowns after switching to the latest version of Java 8 and 11. I tr...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK