(require '[ring.adapter.jetty :refer [run-jetty]]) (defn handler [_req] {:status 200 :body "plop"}) (run-jetty #'handler {:port 4321 :join? false}) #'handler is equivalent to (var handler) which returns the var bound to the symbol handler...
Welcome to the Clojure Deref! This is a weekly link/news roundup for the Clojure ecosystem (feed: RSS). Thanks to Anton Fonarev for link aggregation. Podcasts, videos, and media Building Tailwind CSS for Clojure Hiccup Backend (Updated...
In Clojure, a form is a piece of code that can be evaluated. Forms can be simple expressions, such as numbers or symbols, or they can be more complex structures, such as lists or maps. For example, the following are all forms in Clojure: 42 (a...
This is a summary of the open source work I spent my time on throughout November and December 2024. This was the last period of my ongoing funding from Clojurists together. It's been such a magical year in many ways and I'm so grateful to have had...
A new chapter of Runnable Specifications has passed the “valuable enough to read” threshold. This time, it’s the Time Lens, which talks about build a notion of time into your model. As always, I appreciate questions and comments of all kinds. I’m...
In this post I'll give updates about open source I worked on during November and December 2024.To see previous OSS updates, go here.SponsorsI'd like to thank all the sponsors and contributors that make this work possible. Without you, the below...
Mini Tutorial: Using Markwon to create a Markdown rendering appSource: Image by author. The symbols used in the image are taken from Markdown-Wikipedia and www.android.comRendering Markdown requires a special parser that reads the...
Introduction A fair performance comparison of implementations of different programming languages is difficult. Ideally one measures the performance for a wide range of algorithms and programming tasks. However each language will have different...
Happy holiday season to all. Blogging wise, I usually write up a bunch of posts on Advent of Code - a 25 day programming event where each day a new two part challenge is released. It's been running since 2015 with this being the tenth year. Last...
Using native code libraries from Java is both easier than its ever been and still a little bit frustrating. To understand that duality I wrote this pretty basic tutorial on how to use the newly-ish released...