April 2023 Project Updates

By Kathy Davis

Check out the updates from Matthew Davidson, Dragan Djuric, Danny Freeman, Daniel Higginbotham, Martin Kavalar, Ethan Miller, and Bobbi Towers.

Project Aleph/Manifold: Matthew Davidson (Update 1)

HTTP/2 support

Other Aleph changes

Supporting library work

Community support

Update March 31, 2023


Project Clerk: Martin Kavalar (Update 1)

Issue Gardening We took the Clojurists Together funding (which I’m very grateful for 🙏) as an opportunity to do housekeeping in Clerk’s issues. We took inspiration from how José Valim manages to keep Elixir’s issue count below the threshold of a single page on GitHub (25).

I’m happy that we’ve been able to close 49 issues since the beginning of February) and are now also well below this threshold. We hope to be able to respond more quickly to issues that folks encounter going forward. 🤞 We’ve updated Clerk’s changelog (it’s big!) and we’re improving error messages to ease the upgrade process before cutting a release.
Besides the various smaller fixes, the highlight features of this release will be:

Project Clerk: Martin Kavalar (Update 2)

Clerk v0.13, Execution Progress, Fragments

We started March with the release of Clerk v0.13. Since then, we’ve been focused on the following new features:

We’ve reworked the Composing Viewers section in the Book of Clerk.

We also had the chance to present a Clerk essay at the Programming Experience workshop. The essay is written with Clerk and published with Garden. We’ve also been able to generate a PDF (via nextjournal/markdown, Pandoc and LaTeX) which will be included in the ACM Digital Archives. If you’re interested in how this works, check out the source code.

Update April 5, 2023


Project Clojure_ts_mode: Danny Freeman (Update 1)

So far I have working:

Upcoming work for the rest of the project

Update March 15, 2023


Project Donut: Daniel Higginbotham (Update 1)

For late January / February I mostly focused on https://github.com/donut-party/system. The immediate goal is to get it ready for a 1.0 release. Changes include: Added helpers for documenting and inspecting a system
A challenge with working with DI libraries is that, over time, it’s easy to lose track of what components do, why they’re there, and how they relate. I’ve added helper functions that structure present top-level views and documentation of a system so that a system is more comprehensible to devs and maintainers.

Added with-*system* macro and testing tools and docs
Users brought up that there weren’t clear ways to test projects built with donut.system. I added the with-*system* macro and system-fixture function to aid testing, and updated docs with testing recommendations.

Removed specter
Specter was thoroughly woven into the code base. I removed it to lighten the compilation size for ClojureScript projects, and to reduce the learning curve for contributing to the project.

Added plugin system
One of the goals for donut.system is to provide a foundation for composition, a more structured way to provide libraries that others can use to extend their system with minimal manual work to wire things up. I’ve added a plugin system to achieve this goal.

Make component selection independent of signal
In response to feedback, I’ve tried to simplify the way component selection works:

This also seems to be a bit more semantically accurate, in that selecting components is more about defining the system you’re using than it is about signalling

Significantly updated README
I’ve made numerous improvements to the README to make it easier to learn how to use the library and to cover more use cases, like mocking components.

Update April 8, 2023


Project Exercism: Bobbi Towers (Update 1)

The work proposed included expanding the track syllabus by teaching additional concepts, and improving the automated analysis tooling to provide better feedback.

As part of the Exercism #12in23 challenge (to learn 12 languages in 2023), I was invited to host Functional February on YouTube and Twitch. So I developed the syllabus in real time, with the live audience representing our most popular type of student, which is one who has skills in some language, but may be completely foreign to functional programming concepts. On one stream we ported an exercise that teaches map, reduce and filter. On another, we built an exercise generator and used it to automate the porting of additional practice exercises using the canonical data from Exercism’s problem-specifications repo. The streams have been so much fun we’ve decided to extend the series with Functional Forever.

An area of improvement not mentioned in the proposal, but certainly valuable is the in-browser editor. While there are those who are most at home in their text editor, the online editor exists for a good reason and the experience should be good enough that should one choose to use it, they won’t be missing out on the interactive style of development using the REPL which makes working with Clojure so special. Conveniently the Exercism editor uses Codemirror 6 which has been wrapped by Nextjournal for outstanding Clojure support for structural editing/navigation and inline evaluation. I’ve prototyped my vision for a more interactive coding experience and plan to help integrate it into the site in the coming months. Rather than add a separate output window, I’ve opted to show the results entirely inline, but the text will be selectable, and will be cleared when the user presses a key. The evaluation context is powered by SCI, and will pair well with the exercise test runner which runs the unit tests and submits the solution.

The Clojure representer is responsible for grouping exercise submissions into common approaches. It does this by running the code through a series of normalizations, like formatting, names and macro-expansion. This enables automated feedback comments to be attached to approaches, which is done using the dashboard available to a select group of super-mentors. The representer is functioning well and usage statistics are available on the build status page which at the time of writing reflects that 1637 representer comments have been shown from the 47 feedback submissions I’ve written so far.

Update March 15, 2023


Project Neanderthal: Dragan Djuric (Update 1)

My goal with this round is to implement Sparse Matrix support in Neanderthal.

I started by exploring the vendors engines and APIs, with the main goal on deciding whether to write a custom C layer to MKL (as I did for Neanderhtal up to this point), or to use machine-generated JavaCPP MKL bindings (which were not available in the early days of Neanderthal). The current state of JavaCPP’s MKL turned out to suit well for Neanderthal’s needs, so I decided to try to use these instead of writing C from scratch.

I found a way to use JavaCPP side-by side with my custom C bindings for the existing parts of Neanderthal. (It might be a good thing to completely port Neandrthal to JavaCPPs bindings, but that is a larger task more appropriate for the focused project of its own).

I compiled neanderthal-native to work with recent MKL that is compatible with JavaCPP, which made it more compatible with up-to-date distributions.

I released Neandeathal and neanderthal-native 0.46.0 as a starting point for this project.

Since the support for sparse matrices will be based on JavaCPP, while the rest of neanderthal is still on my custom bindings, I decided that the sparse parts fit into a new add-on library neanderthal-sparse (https://github.com/uncomplicate/neanderthal-sparse), which might eventually be merged into Neanderthal.

JavaCPP might be a good base for integrating many native libraries other than MKL, so I decided to create a dedicated library Clojure CPP. It integrates the general parts of JavaCPP into the Clojure ecosystem.

The first version is fairly featureful, and is now available at https://github.com/uncomplicate/clojure-cpp.

Having implemented these general parts, I set to discover how JavaCPP+MKL cobination works, and how to fit it into Neanderthal. So far, I did a port of Neanderthal’s CPU vector engines to this new backend. I identified the glitches and tricky spots, and found the best ways to solve them.

It seems that the stage is ready for the actual sparse vector implementations during the next reporting period, and further ironing out the rough edges. The sparse implementation would follow in the third period, or sooner if possible.

I expect that by the end of this funding round I’ll be able to release a fully functional neanderthal-sparse, and clojure-cpp.

Project Neanderthal: Dragan Djuric (Update 2)

My goal with this round is to implement Sparse Matrix support in Neanderthal.

After preparing the stage in the 1st reporting period by creating ClojureCPP, and writing basic JavaCPP bits, and writing a dense vector prototype that works with JavaCPP, I continued with sparse vector implementation, and a port of general matrix based on JavaCPP. Along the way, I made various improvements to Neanderthal’s internals to simplify this port, and to make the eventual complete switch to JavaCPP backend easier and more reliable.

Particularly, this has been achieved in the past month.

Update March 31, 2023


Project Tablecloth: Ethan Miller

During the last quarter, my focus has been on building consensus around what an MVP for the Tablecloth `column` API should be and working to complete that MVP. I discussed this with members of Clojurians Slack here.

Broadly speaking the MVP will include the following:

The only major piece from this list that remains to be done is the documentation. So, the next steps are to work on documentation and begin a broader review process with @generateme, the author of Tablecloth. That review process will likely take place on the column dev branch here.

As this is the end of the period where this project is receiving support form Clojurists Together, I wanted to say a few words about where I think this project is heading. When we merge it into Tablecloth, the main impact will be that the column will have a definite presence within the library. Users can then interact with columns using an API that follows the same syntactical conventions everyone enjoys in the dataset API. For a draft run-through of what that API looks like, please download this PDF

While the ability to manipulate columns is useful in its own right, the presence of the column will also eventually enrich Tablecloth’s dataset API. Here one of the critical innovations provided by the column API is the ability to have functions that take a column and return a column: column => column.

Let me provide one example shared by Carsten Behring that illustrates the simple value of this for the existing dataset API. Consider this dataset-level code that creates a new column :c by adding columns :a and :b together:

(tablecloth.api/add-column ds :c
                           (fn [ds]
                             (tech.v3.datatype.functional/+
                              (:a ds)
                              (:b ds))))

This is the only way to express this change Tablecloth does not currently have column => column operations. Once the column API is part of Tablecloth, we can do the same thing more succinctly:

(tablecloth.api/add-column ds :c (tablecloth.column.api/+ ds :a :b))

This example illustrates the value of this work that has laid the foundation for the presence of the column in Tablecloth as a first class citizen.

Update March 31, 2023