r/Clojure • • Oct 29 '24

Zodiac - a Clojure micro web framework

85 Upvotes

https://github.com/brettatoms/zodiac

Zodiac is a small web framework for Clojure that provides a reasonable set of defaults while also being easily extensible. Zodiac stands on the shoulders of giants rather than being innovative. At its core Zodiac is mostly just a preconfigured Ring app and not more that a few hundred lines of code.

Zodiac tries to fill a similar niche as the Flask framework with defaults that make it quick to start a new Clojure based web app without being heavy-handed.

What Zodiac includes by default:

  • Routing and middleware. We use Reitit

  • Request and response handing with Ring.

  • A jetty server (though Jetty can be turned off)

  • Automatic Hiccup-based HTML rendering using Chassis.

  • Websocket support

  • File streaming

  • Flash messages

  • Cookies and secure session handler

  • Form and JSON parsing request parsing

  • Extensible. Pass a list of functions to extend Zodiac. Override the error handlers.

  • Convenience

    • Helpers to lookup routes

    • Helpers to return hiccup and JSON responses

    • A request context

    • Variables dynamically bound to the current request, router and session

What Zodiac doesn't do:

  • Dictate a file structure with generators or scaffolding.

  • No configuration over code

  • No path based routing, etc.

  • Expect a certain database

  • Asset bundling

And that's about it. Zodiac is mostly feature complete. Additional features like common database setup and asset handling will be done as Zodiac extensions.


r/Clojure • • Aug 22 '23

TMD 7.000 - The Long Beta Is Over

85 Upvotes

We have released version 7.000 of tech.ml.dataset - our in-memory column-major data processing engine!

This release contains a lot of bugfixes, performance improvements, API improvements, and the results of quite a lot of painstaking research into how the JVM works and fast reduction pathways for complex systems.

Specifically the engine was very carefully built from a perspective of making reductions as fast as possible leading to improvements in several areas. Ideally this version is a drop-in replacement with better performance than version 6 (or pandas or dplyr).

An example of one specific improvement out of many that we now to kernel combining in the math subsystem so, when using our math operators, an expression like (-> (+ a 10) (log1p)) will boil down into single collection lazy noncaching map expressions which will then combine into one map expression with a combined map-fn.

Another example is the row-mapcat operator has been painstakingly optimized so that in many cases it is as fast as breaking the operation down and doing bespoke columnwise operations - something that is much more tedious to do especially for new people coming into the system.

We have a nice community on Zulip to get you started quickly. For more in-depth help you can contract TechAscent directly so please come by and help us help you.

Enjoy :-)


r/Clojure • • Oct 27 '21

Godot Engine clojure/jvm bindings

85 Upvotes

I've recently been writing experimental bindings for Clojure/JVM against the Godot engine GDNative API, reaching a point that demonstrates both:

- Clojure/JVM/NREPL working

- And GraalVM native-image builds

This appears to work both for games and inside of the editor, so writing plugins should be possible.

I've implemented the tutorial game "dodge the creeps" and put it here:

https://github.com/tristanstraub/thecreeps-godotclj

The GDNative bindings are implemented in: https://github.com/tristanstraub/godotclj

It is currently building against fedora 32 (64-bit), but I suppose other platforms should be possible. It is still in primordial soup stage, but is almost fun to work with.

Hope someone finds this interesting!

P.S. special mention to the dtype-next library, which helps greatly with FFI


r/Clojure • • Aug 13 '21

Develop native mobile apps with JVM Clojure, GraalVM, SCI and Skia: Apropos

85 Upvotes

Watch this episode of Apropos where Adrian Smith and I show a novel approach to developing native mobile apps with JVM Clojure, GraalVM, SCI and Skia:

Video: https://vimeo.com/585335551

Code: https://github.com/phronmophobic/mobiletest


r/Clojure • • Jun 06 '20

[BLOGPOST] Idiomatic Clojure: Code Smells

Thumbnail bsless.github.io
85 Upvotes

r/Clojure • • May 16 '20

Announcing ClojureFam, an initiative to pair Clojure Learners and Mentors together (through Athens Research AKA Open-Source Roam Research)

Thumbnail
github.com
85 Upvotes

r/Clojure • • Apr 19 '19

juxt/crux: Open Time Store

Thumbnail
github.com
85 Upvotes

r/Clojure • • Oct 24 '18

paren.party

Thumbnail
paren.party
85 Upvotes

r/Clojure • • Nov 07 '17

Clojure 1.9.0-RC1 is now available.

Thumbnail groups.google.com
85 Upvotes

r/Clojure • • Jun 27 '26

Jolt: A Clojure implementation on Chez Scheme

Thumbnail
github.com
84 Upvotes

r/Clojure • • Oct 22 '21

Fast and Elegant Clojure

Thumbnail bsless.github.io
84 Upvotes

r/Clojure • • Jul 31 '21

6 years of professional clojure

84 Upvotes

I've been working with clojure professionally for the last 6 years and I've written a blog post concluding my thoughts of clojure as a programming language and the challenges of building an engineering team based on clojure as its main tool

would be more than happy to receive feedback and alternate opinions

https://engineering.nanit.com/6-years-of-professional-clojure-2b61cb6c1983


r/Clojure • • Mar 04 '21

Clojure 1.10.3 release

Thumbnail
clojure.org
84 Upvotes

r/Clojure • • Feb 12 '21

Java language architect Brian Goetz's favorite non-Java JVM language is Clojure

Thumbnail
youtube.com
84 Upvotes

r/Clojure • • Jan 15 '21

ClojureDart

Thumbnail
twitter.com
84 Upvotes

r/Clojure • • Sep 18 '17

[ANN] Clojure 1.9.0-beta1 is now available

Thumbnail groups.google.com
84 Upvotes

r/Clojure • • Jun 06 '17

[book] Programming Clojure, 3rd Edition

Thumbnail
pragprog.com
84 Upvotes

r/Clojure • • Dec 02 '16

Spec-ulation - Rich Hickey keynote at Conj [video]

Thumbnail
youtube.com
84 Upvotes

r/Clojure • • 27d ago

Would you believe it's jank? - Jeaye Wilkerson (Clojure/Conj 2026)

Thumbnail
youtube.com
83 Upvotes

r/Clojure • • Jun 18 '26

ClojureWasm: A JVM-free Clojure runtime in Zig, with a WebAssembly FFI.

Thumbnail
github.com
83 Upvotes

r/Clojure • • Jun 14 '26

Clojure is almost as fast as C (with some help)

Thumbnail ertu.dev
83 Upvotes

r/Clojure • • May 18 '26

Functional programming books bundle includes clojure

83 Upvotes

https://www.humblebundle.com/books/ultimate-functional-programming-pragmatic-programmers-books

  • Clojure Brain Teasers

  • Programming Clojure 4th edition!

  • Web development with Clojure

  • Getting Clojure

  • Clojure applied

  • Mastering Clojure Macros


r/Clojure • • Nov 05 '25

CIDER 1.20 ("Lanzarote")

Thumbnail
github.com
83 Upvotes

Remember, remember the 5th of November...

On that hard to forget date CIDER returns with a brand new release - namely 1.20 ("Lanzarote")!

CIDER has been on a steady release cadence lately (as promised!) - we've had a major release every 2-3 months. This means the releases are smaller, but we deliver the latest updates to our stable version users faster. CIDER 1.20 contains several notable quality-of-life features and bugfixes:

  • Tidy namespaced keywords in the inspector (orchard#354)

  • Preserve filename in functions compiled during regular eval (nrepl#385) (one of the most requested features of all time)

  • Debugger tags like #dbg are correctly processed when the whole buffer is compiled with C-c C-k (cider-nrepl#951)

  • Fix cider-ns-refresh behavior when connected to multiple REPL types (#3834)

  • Update the default injected nREPL version to 1.5.1.

Some of the improvements in this release were made possible by the recently released nREPL 1.5, which CIDER naturally embraced immediately. I hope other nREPL clients will default to nREPL 1.5 soon to make use of those improvements as well.

You can find more details about the changes in our release notes https://github.com/clojure-emacs/cider/releases/tag/v1.20.0

Thanks to everyone for their support of CIDER (and nREPL)! Keep hacking!


r/Clojure • • Mar 21 '25

I open-sourced my multiplayer shooter game

Thumbnail
github.com
83 Upvotes