frontpage.
newsnewestaskshowjobs

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

Comments

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

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

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

•
1y 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•1y 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)

Jensen Huang resigns

https://apnews.com/article/nvidia-megaspeed-china-singapore-huang-5403f152a601cf82ce939f1d24fffa0f
2194•lldb•6h ago•2190 comments

Rust 1.100.0

https://github.com/rust-lang/rust/releases/tag/1.100.0
295•thesuperbigfrog•1h ago•62 comments

Dwarf planet candidate appears which takes roughly 280 years to orbit our sun

https://www.smithsonianmag.com/smart-news/astronomers-found-a-mysterious-object-orbiting-far-beyo...
57•cybermango•1h ago•15 comments

Gemini 4 Hydrogen and Orchestrator

https://antigravity.google/blog/gemini-4-hydrogen-in-google-antigravity/
71•jonbaer•1h ago•10 comments

Show HN: My $300 embroidery machine needed a subscription, so I built my own app

https://github.com/simpsoka/zigzag
107•simpsoka•3h ago•34 comments

Outlook is down, and so is Microsoft's status page

https://gvwire.com/2026/11/12/microsoft-outlook-down-for-thousands-of-users-downdetector-shows/
216•dkpk•2h ago•70 comments

Abandoned Quake 4 expansion finished by modders and now playable

https://www.moddb.com/mods/openq4/downloads/openq4-0141-windows-x64
198•klaussilveira•6h ago•67 comments

I'm making LLMs work on small and old devices

https://github.com/hyperionaidev/smolmaxxing/
178•mrashad74•4h ago•66 comments

Gemini 4 Hydrogen

https://blog.google/innovation-and-ai/models-and-research/gemini-models/introducing-gemini-4-hydr...
313•dvaplima•2h ago•219 comments

22-Year-Old PostgreSQL Bug Turned into Remote Code Execution

https://mehmetince.net/part-3-6-how-i-ended-up-turning-a-22-year-old-postgresql-type-confusion-pr...
36•ozirus•1h ago•1 comments

Ask HN: Microsoft/Azure Outage?

266•nazgulsenpai•2h ago•140 comments

Talking Zen 6 with Mike Clark at AMD In-Depth

https://chipsandcheese.com/p/talking-zen-6-with-mike-clark-at
145•dverlaeckt80•6h ago•2 comments

Show HN: Kapso – Iterative learning from enterprise data

18•alireza_msh•2h ago•4 comments

Relax: JIT compiler for Rust to reduce build times

https://makepad.github.io/relax/
43•adamnemecek•23h ago•16 comments

Show HN: AgentRun – open-source, Self-improving Managed Agents

https://github.com/Parcha-ai/agentrun/blob/main/README.md
39•miguelrios•2h ago•3 comments

Words of warning about radiocarbon dating medieval human bones

https://www.nature.com/articles/s40494-026-02958-x
20•gumby•22h ago•3 comments

ExcalidrawZ: Local Native Excalidraw on macOS/iOS

https://github.com/chocoford/ExcalidrawZ
78•Qision•4h ago•20 comments

Data centers need power – lower income, rural residents pay the price

https://news.cornell.edu/stories/2026/11/data-centers-need-power-lower-income-rural-residents-pay...
13•PaulHoule•27m ago•13 comments

Why Writing Correct Software Is Hard

https://pron.github.io/posts/correctness-and-complexity
316•AriFordsham•9h ago•141 comments

Nintendo Takes Down Emulators and Firmware in Massive GitHub DMCA Sweep

https://www.ign.com/articles/nintendo-takes-down-switch-emulators-and-mod-chip-firmware-in-massiv...
182•CharlesW•3h ago•120 comments

Libreagi – Save OSS Models

https://libreagi.com/
92•satuke•6h ago•21 comments

Anthropic IPO

https://ipo.anthropic.com/us/
707•josephljohnston•8h ago•712 comments

AWS Lambda Web Functions keep billing memory ~7 minutes after the last request

https://www.easel.sh/blog/lambda-web-functions-idle-memory
52•seanw265•3h ago•20 comments

Socratic Tutor

https://github.com/janestreet/agent_skills/blob/master/socratic-tutor/SKILL.md
609•tosh•2d ago•136 comments

Our software engineering interviews are changing a little

https://blog.janestreet.com/software-engineering-interviews-are-changing-a-little/
120•maitland•6h ago•105 comments

Former Nvidia CEO Huang had a relationship with a second employee, sources say

https://www.reuters.com/technology/former-nvidia-ceo-huang-had-relationship-with-second-employee-...
27•jbredeche•29m ago•20 comments

Singapore Says U.S. Not Helpful on Investigation into Suspected Spy's Company

https://www.nytimes.com/2026/11/12/business/nvidia-megaspeed-alice-huang.html
72•tedd4u•2h ago•16 comments

A live tree of systemd jobs on the boot console

https://codeberg.org/wvhulle/bootvine
323•orhunp_•3d ago•120 comments

Fitting Four 32 GB Resizable Bars Behind a PCIe Switch on Linux

https://doug.sh/posts/gpu-bars-behind-a-pcie-switch/
62•dougcalobrisi•5h ago•23 comments

Electric ship batteries promise compact, cooler power

https://spectrum.ieee.org/electric-ship-batteries
52•rbanffy•6h ago•58 comments