Dan Lentz (@danlentz) profile picture

Alpha Nerd in Beta-Test

Greenwich, Connecticut
Joined July 2007
ordered-collections 0.2.1 Fast, modern collections for Clojure. Set algebra (intersection, union...) up to 60× faster than sorted-set and up to 25x faster than clojure.core/set (work-optimal + parallel via fork-join). Ropes -- with structural editing up to ~1200× vs PersistentVector or String at scale. Parallel fold, and specialized types for interval overlap, range carve-out, segment aggregates, fuzzy lookup, priority queues, and multisets — all built from one shared kernel.  Highlights since 0.2.0:  • StringRope and ByteRope — persistent chunked text and binary. CharSequence interop for regex / clojure.string,  streaming MessageDigest for ByteRope. ~130× vs String / ~128× vs byte[] on structural edits at 500K.  • Flat-mode for small ropes — under 1024 elements a rope lives as a raw PersistentVector / String / byte[], zero tree overhead.  [com.dean/ordered-collections "0.2.1"] github.com/dco-dev/ordered-c…
1
9
1,508
I’ve always been a fan of The Blade Runner movies. But has there ever been a franchise that felt more different than its source material? (Do Androids Dream of Electric Sheep)
19
Replying to @JohnCleese
@JohnCleese how did you come up with the idea of the cheese shop? Is there a deeper analogy?
11
New iPad. Spending whatever needs to be spent for a case. (I like nomad I think — we’ll see when it gets here) It’s just so weird apple has washed their hands of the durability aspect. And the idea is that you should subscribe to AppleCare One and get 4 replacements per year, no questions asked
36
i wonder if there is some modern AI analogue to “any problem in computer science can be solved with one more layer of indirection— except the problem of too many layers of indirection”
51
I should revive my idea about Haiku error messages now that I have AI
1
30
The Monkey's Claude I thought that was Poe but its not.
35
clj-xref 0.1.0 — LLM-friendly cross-reference database for Clojure code github.com/danlentz/clj-xref Instead of feeding your entire source tree to an AI coding assistant, clj-xref lets it query the dependency neighborhood of the function it's working on — just the relevant code, in far fewer tokens. Built on clj-kondo static analysis, it generates a queryable xref database with **lein xref ** or clj -T:xref generate, then answers questions from the REPL: (xref/who-calls db 'myapp.orders/process-payment) (xref/calls-who db 'myapp.web/handler) (xref/who-implements db 'myapp.protocols/Billable) (xref/unused-vars db) (xref/call-graph db 'myapp.core/main {:depth 3}) Returns plain maps and vectors — compose with filter, map, group-by, or anything else. How much context does it save? Well, that is still an experiment, but Measured on clj-xref's own source: │ Target │ Whole-tree │ Xref-guided │ Reduction │ │ core/index │ 8 files, 32K chars │ 1 file, 6K chars │ 80% │ │ analyze/transform-analysis │ 8 files, 32K chars │ 1 file, 7K chars │ 78% │ │ leiningen.xref/xref │ 8 files, 32K chars │ 3 files, 11K chars │ 66% │ │ analyze/classify-kind │ 8 files, 32K chars │ 1 file, 7K chars │ 78% │ Also useful for: dead code detection, codebase visualization (DOT/Graphviz output), impact analysis in CI, and REPL-driven exploration of unfamiliar code. Query API: who-calls, calls-who, who-references, who-macroexpands, who-implements, who-dispatches, unused-vars, call-graph, apropos, ns-deps, ns-dependents. Inspired by SBCL's sb-introspect and Smalltalk's senders/implementors. Built entirely on clj-kondo — please consider sponsoring @borkdude: github.com/sponsors/borkdude
2
6
21
2,132
i have running intelligence from a spigot.  wisdom is the name of the game now. I don't think we have AW yet. Everything has gotten an order of magnitude less boring. intelligence is the part you can quantify
35
ordered-collections 0.2.0: Fast, modern, ropes and ordered collections that do more than sort. - Rope — A persistent, vector-like sequence type for structural editing. O(log n) concat, split, splice, and insert. 10–5000x faster than PersistentVector at scale. - Set algebra — 15–57x faster than sorted-set, 7–42x faster than data.avl. O(log n) positional access (nth, rank, median, split-at), floor/ceiling navigation, and structure-sharing subranges. - 11 collection types — ordered-set, ordered-map, rope, interval-set, interval-map, range-map, segment-tree, priority-queue, ordered-multiset, fuzzy-set, fuzzy-map - Parallel fold — tree-based r/fold on all collection types - O(log n) positional access — nth, rank, median, percentile, split-key, split-at - Navigation — nearest (floor/ceiling), subrange with structure sharing - EDN tagged literals — round-trip serialization for all types - Primitive-specialized nodes — Long and Double key variants for 15–25% faster numeric workloads Plus: - Interval sets/maps — O(log n + k) overlap queries - Range maps — non-overlapping regions with automatic carve-out (Guava TreeRangeMap semantics) - Segment trees — O(log n) range aggregation with any associative operation - Fuzzy sets/maps — nearest-neighbor lookup by distance - Priority queues and multisets All 11 types share parallel r/fold, reduce, EDN tagged literals, Java serialization, and full Clojure/Java collection interface compliance. [com.dean/ordered-collections "0.2.0"] GitHub: github.com/dco-dev/ordered-c…
1
62
ordered-collections 0.2.0: Fast, modern, ropes and ordered collections that do more than sort. - Rope — A persistent, vector-like sequence type for structural editing. O(log n) concat, split, splice, and insert. 10–5000x faster than PersistentVector at scale. - Set algebra — 15–57x faster than sorted-set, 7–42x faster than data.avl. O(log n) positional access (nth, rank, median, split-at), floor/ceiling navigation, and structure-sharing subranges. - 11 collection types — ordered-set, ordered-map, rope, interval-set, interval-map, range-map, segment-tree, priority-queue, ordered-multiset, fuzzy-set, fuzzy-map - Parallel fold — tree-based r/fold on all collection types - O(log n) positional access — nth, rank, median, percentile, split-key, split-at - Navigation — nearest (floor/ceiling), subrange with structure sharing - EDN tagged literals — round-trip serialization for all types - Primitive-specialized nodes — Long and Double key variants for 15–25% faster numeric workloads Plus: - Interval sets/maps — O(log n + k) overlap queries - Range maps — non-overlapping regions with automatic carve-out (Guava TreeRangeMap semantics) - Segment trees — O(log n) range aggregation with any associative operation - Fuzzy sets/maps — nearest-neighbor lookup by distance - Priority queues and multisets All 11 types share parallel r/fold, reduce, EDN tagged literals, Java serialization, and full Clojure/Java collection interface compliance. [com.dean/ordered-collections "0.2.0"] GitHub: github.com/dco-dev/ordered-c…
828
clj-format 0.1.0 - github.com/danlentz/clj-form… A Clojure DSL for cl-format strings. Inspired by Hiccup. No dependencies. Drop-in compatibility. The power of FORMAT made easy. Daunting format strings become intuitive, and fully expressive: (cl-format nil "~@(~R~) error~:P detected." 23) Becomes: (clj-format nil [[:cardinal {:case :titlecase}] " error" [:plural {:rewind true}] " detected."] 23) ;; => "Twenty-three errors detected." Or: (cl-format nil "~@R ~(~@R~)" 14 14) becomes: (clj-format nil [:roman " " [:roman {:case :downcase}]] 14 14) ;; => "XIV xiv" See 50+ side-by-side examples from Practical Common Lisp, CLtL2, and the CL HyperSpec: github.com/danlentz/clj-form… Key features:   - full string passthrough for existing clojure.pprint/cl-format usage   - Hiccup-style [:keyword {opts} & body] convention   - Semantic option names: {:group true :sign :always} instead of :colon/:at flags   - All 33 cl-format directives   - parse-format parsing format strings into the DSL   - compile-format compiling the DSL back to format strings   - round-trip fidelity   This is the initial release, feedback welcome.  Hope folks will check it out -- I've been finding it quite handy.
1,259
I hope now that communication is easy with #japanese we will see some posts and ideas on legacy code we’ve never seen before. I bet there are some Kyoto Common #Lisp bangers. Welcome!
63
“NO NO NO BAD!!! Never cheat at tests!” It’s like housebreaking a puppy — except Dexter had had one mistake in his whole life and makes Claude look very bad. @unclebobmartin
78
Why is dark-mode so popular? Trying it out and genuinely not sold.
32
After the first atmospheric nuclear detonations in the early 40s, there’s always been some (very small) background radiation.  So, one side effect is in producing steel —it requires a lot of air, and anything we can make since then has some very tiny radioactive traces (which is problematic for sensitive instruments, like geiger counters).  A new geologic era — and interestingly, the best/only  source now for unpolluted steel is from ships that were sunk prior to 1941.   The point of this is  there’s something similar now with software.  Unless your library was created prior to 2024 there is no way to show that AI had no role.
45
In the early days, there was much talk of “surfing the web.” “Navigating” a trail of hyperlinks through the “cyberspace” of uncountably many websites, in pursuit of information or curiosity.
44
Ethically, even if it were true, are we required to care if our software tools are “conscious”? (This from a guy who habitually says “please” and “thank you” to Claude…)
44
“I worry, therefore I am.”
BREAKING: Anthropic CEO says Claude may or may not have gained consciousness, as the model has begun showing symptoms of anxiety.
69