r/Clojure • • Jun 11 '26

A columnar database for analytics

https://github.com/yogthos/flatiron
39 Upvotes

8 comments sorted by

View all comments

Show parent comment

2

u/yogthos Jun 11 '26

speaking of Janet, I started building a Clojure compiler on top of it here https://github.com/jolt-lang/jolt

and I'm at the point where I have nrepl working, I can use deps, and I even got Selmer to compile and run with it https://github.com/jolt-lang/examples/tree/main/greeter

The runtime is tiny and starts up instantly, I'm thinking you could easily shim popular JVM interop via either Janet standard library of C libs, so you could get a lot of popular Clojure libraries ported to it, and then have access to the whole C/C++/Rust ecosystem too. My idea is that you could declare native dependencies in libraries, then you do a step where you build a dev runtime which includes all the native libraries and lets you spin up your nREPL, develop the app, and then build a single executable to distribute it.

Like here's what the little Selmer app looks like right now in terms of startup/runtime:

			gtime -v build/greeter
			Hello JOLT!
			motd: deps.edn libraries running on Janet
			- Selmer templates
			- yogthos/config
			- an nREPL you can connect an editor to
			- a native executable build

				Command being timed: "build/greeter"
				User time (seconds): 0.11
				System time (seconds): 0.00
				Percent of CPU this job got: 84%
				Elapsed (wall clock) time (h:mm:ss or m:ss): 0:00.13
				Average shared text size (kbytes): 0
				Average unshared data size (kbytes): 0
				Average stack size (kbytes): 0
				Average total size (kbytes): 0
				Maximum resident set size (kbytes): 18240
				Average resident set size (kbytes): 0
				Major (requiring I/O) page faults: 105
				Minor (reclaiming a frame) page faults: 1190
				Voluntary context switches: 4
				Involuntary context switches: 76
				Swaps: 0
				File system inputs: 0
				File system outputs: 0
				Socket messages sent: 0
				Socket messages received: 0
				Signals delivered: 0
				Page size (bytes): 16384
				Exit status: 0