October 2021 Monthly Update

By Alyssa Parado

This post includes also our long-term projects updates. Here are the project updates from the second half of October to November. Updates for December will be coming soon!

Clojure LSP

This month we had 2 important releases with a lot of fixes and improvements!

release 2021.10.20-13.04.11

This release had some big core changes like replacing the cache db implementation from sqlite to datalevin, this increase a lot the performance of saving and reading the cache improving clojure-lsp startup time. Besides that, a lot of bugs and improvements were made like auto refresh settings if any changed, performance improvements, new code actions to create tests from current function, and last but not least, the clojuredocs integration, showing examples, documentation, notes about the current symbol!

Here is the changelog of this release:

release 2021.11.02-15.24.47

This release added some new features like new live rename locals on files with the new LSP LinkedEditingRange feature, new Unwind thread code actions, huge improvement on Add missing require code action making it smarter on finding which namespace is related to the unresolved alias, and the change of :notify-references-on-file-change from false to true after important performance improvements on clojure-lsp, which this clojure-lsp will have more consistent diagnostics about user’s projects becoming a more reliable tool.

Here is the changelog of this release:

Clojurians-log-v2

Hello fellow clojurians!

The alpha release of Clojurians log v2 is now live at: https://clojurians-log-v2.oxal.org/ ðŸĶ„ 😊

Source code: github.com/oxalorg/clojurians-log-v2

PS: it’s not 100% usable on mobile yet, please use a desktop for the time being!

This release brings in the following features:

I wanted to ship the minimal possible version first and then iterate over it. And I’m quite happy with this. Looking forward to adding lots more features and polish over the next few months, especially related to text searching!

Please feel free to hop over in #clojureverse-ops channel in clojurians slack to discuss anything related to this project! Thanks.

Malli

Have spent a lot of time working with Malli internals: on hammock, paper protos, reading about stuff done elsewhere, perf tuning and testing, better designs, in the mushroom forest, refactoring and finally, an initial new internal design I’m quite happy with.

The Performance gains

The Release

All the current improvements are shipped in [metosin/malli "0.7.0-20211031.202317-3"], will test it properly againt real projects before releasing 0.7.0. See the full CHANGELOG.

PCP

TLDR

[x] Created docker image for PCP [x] Created template project with 1-click deploy to DigitalOcean [x] Improved security with strict mode by only allowing access to /var/pcp/ [x] Automatically route domains to similarly name folders

Hello friends. Hope you’re all well. It’s been a pretty productive month and half. I’m pretty happy with the progress so far and I hope you’ll be too.

These last 45 days I focused on achieving a 1-click deploy to DigitalOcean (DO). Unfortunately DOs app platform doesn’t natively support Clojure (or Java for that matter), it does however support docker images. And so I went down the long winding path of creating a docker image for PCP and deciphering the DO spec for 1-click deploy apps.

Out of this herculean effort (aka skimming the docs and paying the price) a number of default options are now configurable via environment variables; when PCP was only service this wasn’t necessary. We also got 1-click deploys to DO from this effort. That “Deploy to DigitalOcean” really is a thing of beauty.

Once deploying was working it dawned on my that further changes to the core of PCP were required. You see hosting multiple sites per instance was pretty simple when PCP was running as a service on a VPS, but now with docker some changes were necessary. After some tinkering, PCP now routes requests based on the host name of a request so your various domains will be routed to the right place with minimum admin on your part. e.g. navigating to www.clojuriststogether.org will send PCP looking for a project in /var/pcp/www.clojuriststogether.org/. If no folder matches the host name PCP targets /var/pcp/default. Pretty neat, right?

So what’s next?

There are a few more tweaks I’d like to make so that copying the template project easier. From there my focus will then shift to the CLI and deploying from git. Depending how things go I might also create a 1-click deploy to Heroku. My only hesitation with Heroku is their pricing for upgrades, it’s tad too steep.

That’s all from me. Stay frosty.

Alex

Here are the updates from our long-term project grantees.

Bozhidar Batsov

My focus for the past couple of months were:

The main improvements to CIDER in this period were:

As usual there was also some bug-fixing, documentation updates and lots of support work going on.

Michiel Borkent

I’ll be going over the releases of existing and new projects and will mention highlights in some of them. Often, the devil is in the details and there aren’t any new user-facing features, but still a lot of work has gone into refining existing features.

Note that the projects listed below are not exclusively my effort and are worked on by a number or regular contributors. My thanks also goes out to them.

Nbb

Ad-hoc CLJS scripting on Node.js using SCI.

Many releases on npm.

Highlights:

Many exciting things are happening around this project in the community. It’s now possible to run nbb on lambda. Exercism is using babashka and nbb to run Clojure exercise submissions. Sitefox is a CLJS + Node.js web framework that works well with nbb.

Clj-kondo

A linter for Clojure (code) that sparks joy.

Releases: 2021.10.19, 2021.09.25, 2021.09.15, 2021.09.14

Highlights:

Babashka

Native, fast starting Clojure interpreter for scripting.

Releases: 0.6.4, 0.6.3, 0.6.2, 0.6.1, 0.6.0

Highlight:

Api-diff

Print API diffs between library versions.

This is a new project.

SCI

Configurable Clojure interpreter suitable for scripting and Clojure DSLs.

Releases: 0.2.7

Highlights:

Neil

A CLI to add common aliases and features to deps.edn-based projects.

This is a new project.

Edamame

Configurable EDN/Clojure parser with location metadata

Releases: 0.0.12

Scittle

The Small Clojure Interpreter exposed for usage in browser script tags.

Releases: 0.0.4

Babashka.fs

File system utility library.

Releases: 0.1.0

Highlight: add fs/zip function.

Deps.clj

A faithful port of the clojure CLI bash script to Clojure. Used as native CLI, deps resolver in babashka and getting started REPL in Calva.

Various releases

Graal-build-time

Library to initialize Clojure packages at build time with GraalVM native-image.

This is a new project.

Graal-config

GraalVM native-image configurations distribution for Clojure libraries.

This is a new project.

Jet

Releases: 0.0.16

Highlight: allow keywordize fn to access all available conversion functions from camel-snake-kebab lib. e.g. csk/->PascalCase.

Digest

Digest algorithms (md5, sha1 …) for Clojure.

I took over this library from Miki Tebeka and I’m maintaining it under clj-commons.

Carve

Carve out the essentials of your Clojure app.

Fixed a regression.

Dragan Djuric

My main objective in September and October was to improve Deep Diamond’s support for advanced neural networks. Previously, Deep Diamond supported fully connected layers, convolutional layers, and a bunch of supporting infrastructure for effective learning, including access at different abstraction tiers, from lowest, tensor routines level, to automatic network construction from pure, simple, Clojure functions. Tensor operations were quite well developed, too. However, the high level API only supported sequential architecture of layers (which is quite useful) but not branching that would enable advanced direct acyclic graphs, which is used in many modern networks. This required implementation of relevant lower level concepts and the integration with appropriate Intel DNNL routines. While I was at DNNL, I decided to integrate a few other layer types, which will be used all-around in network training.

This includes:

- Implementation of Bach Normalization (API, functions, layer, and the DNNL backend)
- Concatenation (API, functions, layer, DNNL backend)
- Branching (API, functions, layer, DNNL)
- Sum (API, functions, layer, DNNL)
- Split (API, functions, layer, DNNL)
- Parallel network branches support
- Support for directed acyclic graphs in high-level API
- Implementation of Reduction operation in DNNL backend
- Removing a few protocols and concepts that were rendered obsolete by the new code
- Improving support for simpler resource requirements for inference-only networks
- Several important bugfixes (that took lots of time to even identify bugs, so it was subtle but important for future robustness)
- Tests for all this
- Research (literature, theory) in the background

All this work solidly, but needs more polishing AND functional tests with real networks, so I was not able to cut a release (of course, whoever wants to experiment, can easily clone the repository from GitHub and build their own snapshot). I plan to tackle this in the next period.

In particular, I need to implement the same stuff on the GPU with cuDNN, and properly test and polish this new functionality.

I hope that in the next two months I’ll be able to do that, and release this major improvement. After that, the next big chunk of work will be Recurrent Networks support, as the last major feature that was missing from DD.

In addition to this, I devoted lots of time to learning skills and early preparations for a new Clojure project that I plan to start with a new Clojure programmer. There’s a long path ahead, so it might be many months until we’re ready to actually build and release something, but I hope that this long shot will be interesting to many Clojurists, and hopefully many not(yet)-Clojurists.

Thomas Heller

Time was mostly spent on doing maintenance work and some bugfixes. As well as helping people out via the typical channels (eg. Clojurians Slack).

I did some work on the shadow-cljs UI as well, most notably:

David Nolen

Nikita Prokopov

Hi, this is Niki Tonsky and we are building a Desktop UI Framework in Clojure!

The work on UI framework started in September with a blog post that collected everything I knew about UI frameworks. This is that post: https://tonsky.me/blog/clojure-ui/

The post caused a fantastic feedback and filled my read/watch list for weeks to come. In reaction to that feedback, I did three public interviews with developers involved in UI programming:

Both JWM and Skija were migrated from JetBrains Github into the neutral HumbleUI organization and deployed to Maven Central repository.

JWM got a few quality-of-life fixes regarding mouse scroll, themes, z-order and macOS crashes. We also got native-image example contributed.

Finally, as the culmination of all that preparation, the first commit to the new Clojure UI framework has been made!

Another big thing that happened in October is Sublime Clojure: a new Clojure REPL client for Sublime Text.

Github repo: https://github.com/tonsky/sublime-clojure Blog post: https://tonsky.me/blog/sublime-clojure/ Youtube lecture on Clojure REPLs in general: https://www.youtube.com/watch?v=Rdk5r1bjBoc

DataScript, Uberdeps, Tongue are all continued to be maintained and got few PRs merged.

Finally, one more post was written in September https://tonsky.me/blog/python-build/

My hope is that majority of November and December will be focused on Humble UI from now on.

If any of that sounds exciting to you and you want to participate, both JWM (Java/C++) and Sublime Clojure (Python) need a few helping hands and both have a huge scope for contributions. Let me know!