frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

The Lisp in the Cellar: Dependent types that live upstairs [pdf]

https://zenodo.org/records/15424968
88•todsacerdoti•8mo ago
Downloadable: https://zenodo.org/records/15424968/files/deputy-els.pdf

Comments

droideqa•8mo ago
Sadly "deputy clojure" on Google brings no results...

The only hint is this repo[0] referenced in the paper.

[0]: https://gitlab.com/fredokun/deputy

agumonkey•8mo ago
Pretty readable code
reuben364•8mo ago
Thinking out aloud here.

One pattern that I have frequently used in EMACS elisp is that redefining a top-level value overwrites that value rather than shadowing it. Basically hot reloading. This doesn't work in a dependently typed context as the type of subsequent definitions can depend on values of earlier definitions.

    def t := string
    def x: t := "asdf"
    redef t := int
redefining t here would cause x to fail to type check. So the only options are to either shadow the variable t, or have redefinitions type-check all terms whose types depend on the value being redefined.

Excluding the type-level debugging they mention, I think a lean style language-server is a better approach. Otherwise you are basically using an append-only ed to edit your environment rather than a vi.

extrabajs•8mo ago
I don’t see the connection to dependent types. But anyway, is ‘redef’ part of your language? What type would you give it?
reuben364•8mo ago
I just wrote redef to emphasize that I'm not shadowing the original definition.

    def a := 1
    def f x := a * x
    -- at this point f 1 evaluates to 1
    redef a := 2
    -- at this point f 1 evaluates to 2
But with dependent types, types can depend on prior values (in the previous example the type of x depends on the value t in the most direct way possible, as the type of x is t). If you redefine values, the subsequent definitions may not type-check anymore.
extrabajs•8mo ago
I see what you mean. But would you not experience the same sort of issue simply from redefining types in the same way? It seems this kind of destructive operation (whether on types or terms) is the issue. As someone who's used to ML, it seems strange to allow this kind of thing (instead of simply shadowing), but maybe it's a Lisp thing?
resize2996•8mo ago
> EMACS elisp

I used this to write the front end for an ATM machine.

wk_end•8mo ago
I've fantasized about some kind of a dependently-typed Smalltalk-like thing before, and in those fantasies the solution would be that changes would be submitted in the form of transactions - they wouldn't be live until you bundled them all together into one big change that would be fully type-checked, as you describe.
kscarlet•8mo ago
The only option that you described is called "hyperstatic global environment".

And it is called that for a reason, it is not very dynamic :) and probably too static to the taste of many Lisp and all Smalltalk fans.

dang•8mo ago
Any URL for this that we can open in a browser (as opposed to the dreaded "Content-Disposition: attachment")?
Jtsummers•8mo ago
https://zenodo.org/records/15424968 - This at least takes you to a webpage where you can view the paper. If you select to download it, it still downloads of course instead of just opening in the browser.
dang•8mo ago
Thanks! I've switched to that above, and put the downloadable link in the top text.
reikonomusha•8mo ago
Related context: The 2025 European Lisp Symposium [1] was just wrapped a few hours ago in Zurich. There was content on:

- Static typing a la Haskell with Coalton in Common Lisp

- Dependent typing with Deputy in Clojure (this post)

- The Common Lisp compiler SBCL ported to the Nintendo Switch

- Common Lisp and AI/deep learning

- A special retrospective on Modula and Oberon

- Many lightning talks.

[1] https://european-lisp-symposium.org/2025/index.html

no_wizard•8mo ago
I feel like Lisp would be an ideal language for AI development. Its exceedingly good for DSL development and pattern matching. Its already structurally like math notation as well, which I would think would lend itself to thinking how models would consume information and learn
rscho•8mo ago
Well... believe it or not, some have thought of using lisp for AI for quite some time. ;-)
froh•8mo ago
indeed.

Peter Norvig, 1992

Paradigms of AI Programming: Case Studies in Common Lisp

https://g.co/kgs/hck8wsE

https://en.m.wikipedia.org/wiki/Peter_Norvig

it's no coincidence Google is actively maintaining sbcl, either.

Zambyte•8mo ago
Why not go all the way to the source? John McCarthy coined the term "artificial intelligence", and then invented / discovered LISP in pursuit of it in the 1950s :D
ayrtondesozzla•8mo ago
https://quantumzeitgeist.com/lisp-and-the-dawn-of-artificial...

Lisp was the de facto language of artificial intelligence in the U.S. for many years. Apparently Prolog was popular in Europe (according to Norvig's PAIP)

fithisux•8mo ago
Impressive.

Just the Browser

https://justthebrowser.com/
205•cl3misch•2h ago•83 comments

Michelangelo's First Painting, Created When He Was Only 12 or 13 Years Old

https://www.openculture.com/2026/01/discover-michelangelos-first-painting.html
23•bookofjoe•50m ago•20 comments

Show HN: I built a text-based business simulator to replace video courses

https://www.core-mba.pro/
41•Core_Dev•12h ago•19 comments

Show HN: The Analog I – Inducing Recursive Self-Modeling in LLMs [pdf]

https://github.com/philMarcus/Birth-of-a-Mind
11•Phil_BoaM•54m ago•5 comments

OpenBSD-current now runs as guest under Apple Hypervisor

https://www.undeadly.org/cgi?action=article;sid=20260115203619
320•gpi•11h ago•34 comments

Training my smartwatch to track intelligence

https://dmvaldman.github.io/rooklift/
34•dmvaldman•1d ago•18 comments

Dev-Owned Testing: Why It Fails in Practice and Succeeds in Theory

https://dl.acm.org/doi/10.1145/3780063.3780066
6•rbanffy•55m ago•5 comments

List of individual trees

https://en.wikipedia.org/wiki/List_of_individual_trees
223•wilson090•14h ago•84 comments

Interactive eBPF

https://ebpf.party/
96•samuel246•6h ago•5 comments

The spectrum of isolation: From bare metal to WebAssembly

https://buildsoftwaresystems.com/post/guide-to-execution-environments/
59•ThierryBuilds•5h ago•19 comments

Apple is fighting for TSMC capacity as Nvidia takes center stage

https://www.culpium.com/p/exclusiveapple-is-fighting-for-tsmc
723•speckx•23h ago•439 comments

Pocket TTS: A high quality TTS that gives your CPU a voice

https://kyutai.org/blog/2026-01-13-pocket-tts
516•pain_perdu•1d ago•120 comments

psc: The ps utility, with an eBPF twist and container context

https://github.com/loresuso/psc
6•tanelpoder•1h ago•1 comments

Cue Does It All, but Can It Literate?

https://xlii.space/cue/cue-does-it-all-but-can-it-literate/
41•xlii•4d ago•11 comments

Briar keeps Iran connected via Bluetooth and Wi-Fi when the internet goes dark

https://briarproject.org/manual/fa/
445•us321•18h ago•261 comments

Show HN: pgwire-replication - pure rust client for Postgres CDC

https://github.com/vnvo/pgwire-replication
17•sacs0ni•5d ago•6 comments

Inside The Internet Archive's Infrastructure

https://hackernoon.com/the-long-now-of-the-web-inside-the-internet-archives-fight-against-forgetting
385•dvrp•2d ago•94 comments

Song banned from Swedish charts for being AI creation

https://www.bbc.com/news/articles/cp829jey9z7o
16•breve•1h ago•11 comments

Bringing the Predators to Life in MAME

https://lysiwyg.mataroa.blog/blog/bringing-the-predators-to-life-in-mame/
41•msephton•2d ago•7 comments

Lock-Picking Robot

https://github.com/etinaude/Lock-Picking-Robot
3•p44v9n•4d ago•0 comments

pf: Make af-to less magical

https://undeadly.org/cgi?action=article;sid=20260116085115
32•defrost•5h ago•2 comments

Linux boxes via SSH: suspended when disconected

https://shellbox.dev/
247•messh•18h ago•136 comments

Ask HN: How can we solve the loneliness epidemic?

646•publicdebates•21h ago•1021 comments

Altaid 8800 (2024)

https://sunrise-ev.com/8080.htm
14•exvi•4d ago•2 comments

Claude is good at assembling blocks, but still falls apart at creating them

https://www.approachwithalacrity.com/claude-ne/
278•bblcla•1d ago•202 comments

Show HN: Hc: an agentless, multi-tenant shell history sink

https://github.com/alessandrocarminati/hc
12•acarminati•6h ago•2 comments

My Gripes with Prolog

https://buttondown.com/hillelwayne/archive/my-gripes-with-prolog/
122•azhenley•14h ago•68 comments

Prime chains

https://www.johndcook.com/blog/2026/01/10/prime-chains/
29•ibobev•4d ago•8 comments

Data is the only moat

https://frontierai.substack.com/p/data-is-your-only-moat
180•cgwu•19h ago•40 comments

Show HN: OpenWork – An open-source alternative to Claude Cowork

https://github.com/different-ai/openwork
204•ben_talent•2d ago•44 comments