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•9mo ago
Downloadable: https://zenodo.org/records/15424968/files/deputy-els.pdf

Comments

droideqa•9mo 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•9mo ago
Pretty readable code
reuben364•9mo 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•9mo 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•9mo 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•9mo 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•9mo ago
> EMACS elisp

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

wk_end•9mo 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•9mo 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•9mo ago
Any URL for this that we can open in a browser (as opposed to the dreaded "Content-Disposition: attachment")?
Jtsummers•9mo 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•9mo ago
Thanks! I've switched to that above, and put the downloadable link in the top text.
reikonomusha•9mo 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•9mo 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•9mo ago
Well... believe it or not, some have thought of using lisp for AI for quite some time. ;-)
froh•9mo 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•9mo 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•9mo 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•9mo ago
Impressive.

GitHub appears to be hiding repo stars on mobile for signed-out users

1•ramoz•53s ago•0 comments

Garrett Langley of Flock Safety on building technology to solve crime

https://cheekypint.substack.com/p/garrett-langley-of-flock-safety-on
1•hhs•1m ago•0 comments

Kafka 101

https://highscalability.com/untitled-2/
1•medbar•1m ago•0 comments

Show HN: MCP server that finds dev tool credits in your workflow

1•janaksunil•2m ago•0 comments

Helix: A post-modern text editor

https://helix-editor.com/
2•doener•4m ago•0 comments

Turns out making games is the easy part

1•clamlotus•5m ago•0 comments

Show HN: A governance pattern for self-evolving AI skills

https://github.com/191341025/Self-Evolving-Skill
1•tiansenxu•6m ago•0 comments

Follow-Up: Build Awesome's Kickstarter Is Cancelled

https://brennan.day/build-awesomes-kickstarter-is-cancelled/
2•brennanbrown•7m ago•0 comments

London tech ecosystem map (235 companies)

https://www.londonmaxxxing.com/
2•birdmania•7m ago•1 comments

Polymarket Removes Betting Market on Nuclear Detonation

https://www.wsj.com/livecoverage/stock-market-today-dow-sp-500-nasdaq-03-04-2026/card/polymarket-...
1•bookofjoe•8m ago•0 comments

Agent Office – Slack for (OpenClaw Like) AI Agents

https://github.com/baturyilmaz/agent-office
1•arbayi•8m ago•1 comments

WebSocket+Huffman vs. SSE+JSON for streaming LLM tokens

https://github.com/vidur2/token_entropy_encoder
1•vidur2•10m ago•1 comments

Learning makes brain cells work together, not apart: study

https://www.rochester.edu/newscenter/learning-makes-brain-cells-work-together-not-apart-694722/
1•hhs•10m ago•0 comments

Show HN: WTF-CLI – An AI-powered terminal error solver written in Rust

https://github.com/JitseLambrichts/WTF-CLI
1•JitseLambrichts•10m ago•0 comments

GoldRush Agent Skills for blockchain data and pricing

https://goldrush.dev/agents/
1•Ferns765•12m ago•0 comments

Show HN: Kaeso – infrastructure for connecting AI agents to real services

https://kaeso.ai
1•devinoldenburg•12m ago•0 comments

Telemetry helps. you still get to turn it off

https://ritter.vg/blog-telemetry.html
1•birdculture•12m ago•0 comments

Ask HN: Anyone else feel this community has changed recently?

2•kypro•13m ago•0 comments

Food fortification is cost-effective in fighting hunger across 63 countries

https://www.cochrane.org/about-us/news/food-fortification-highly-cost-effective-fighting-hidden-h...
1•hhs•13m ago•0 comments

Scalify.ai – Order your own website in under 10 minutes

https://www.scalify.ai
1•josh-ternyak•14m ago•0 comments

Supa Claw

https://github.com/vincenzodomina/supaclaw
1•rmason•15m ago•0 comments

Show HN: PureMark – JSON, Base64, Diff tools that never send data to a server

https://json.puremark.app
1•tommy_worklab•19m ago•0 comments

Show HN: An OTLP observability plugin for OpenClaw AI agents in Grafana

https://github.com/awsome-o/grafana-lens
1•AwesomeO3000•19m ago•0 comments

A simplified PostgreSQL-backed ordered message queue with webhook delivery

https://github.com/alaminopu/pypgmq
1•alaminopu•21m ago•0 comments

The Mirror and the Gift

https://www.robpanico.com/articles/display/?entry_short=the-mirror-and-the-gift
1•retrocog•23m ago•1 comments

CERN upgrade to LHCb experiment threatened by UK funding cuts

https://physicsworld.com/a/cern-upgrade-to-lhcb-experiment-threatened-by-uk-funding-cuts/
1•elashri•24m ago•0 comments

Poet-X Enables Billion-Parameter LLM Training on Single H100 GPU

https://www.simplenews.ai/news/poet-x-enables-billion-parameter-llm-training-on-single-h100-gpu-ktw3
1•goldkey•25m ago•0 comments

Show HN: A simple habit tracker focused on clarity and consistency

https://play.google.com/store/apps/details?id=com.shadowstudios.habitonlinetracker&hl=en_US
1•Belsonsan•26m ago•0 comments

Show HN: Kaeso: an OAuth hub for AI agents

1•devinoldenburg•26m ago•0 comments

Show HN: WebBridge turns any website into MCP tools by recording browser traffic

https://github.com/jalabulajunx/WebBridge
2•nonstopnonsense•27m ago•1 comments