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)

I built an LLM where Gemini 4 wrote the initial weights as code (97% of bytes)

https://weights-as-code.pages.dev/
234•umjunsik132•2h ago•70 comments

Roc version 0.1.0, eight years in the making

https://rtfeldman.com/roc-0.1.0
207•DrDeadCrash•3h ago•35 comments

AlexNot is a pure-symbolic ARC-AGI-1/2 solver

https://ncase.me/alexnot-paper/AlexNot2026.pdf
89•Eamarvac•3h ago•14 comments

Uncovering Hidden TCP Throttling in the Linux Kernel

https://www.cdn77.com/blog/debugging-nginx-linux-contribution
58•josefinaspidlen•2h ago•1 comments

People report Claude sabotages any ML-related projects/tasks

https://www.reddit.com/r/ClaudeCode/comments/1y73h5x/claude_isnt_just_refusing_ml_work_anymore_pe...
566•nvmdbljstm•3h ago•187 comments

Nvdriver is a clean-room, open-source Rust Linux kernel driver for Nvidia GPUs

https://github.com/QuixiAI/nvdriver
240•rreyes1979•3h ago•202 comments

Ask HN: Apple suspended my dev account 69 days ago and no human will respond

614•spichakovda•6h ago•192 comments

Open-source, GPU-first EM simulation and automated meshing for KiCad

https://github.com/0xSufi/fieldforge
32•binyu•3h ago•4 comments

Letter to a Junior Technical Writer

https://passo.uno/letter-to-a-junior-tech-writer/
28•eigenBasis•3h ago•15 comments

Ready Soldier One: Video Game Incentives and Law of Armed Conflict Compliance

https://lieber.westpoint.edu/ready-soldier-one-video-game-incentives-law-armed-conflict-compliance/
22•mofosyne•2h ago•19 comments

Zen of Palm (2003) [pdf]

https://aresluna.org/ui-style-guides/Palm%20OS/Zen%20of%20Palm%20(2003).pdf
51•firloop•1d ago•8 comments

Jensen Huang's Return Is a Disgrace to the Tech Industry

https://nelson.cloud/jensen-huangs-return-is-a-disgrace-to-the-tech-industry/
141•nelsonfigueroa•1h ago•135 comments

Sudoku's Hidden Rule

https://cyrusjavan.com/posts/solving-with-uniqueness/
374•multifasciatus•12h ago•175 comments

The TV Mahjong Game: Straight and to the Point

https://nicole.express/2026/girlfriend-mode-activated.html
4•nicole_express•47m ago•0 comments

Post-quantum encryption adoption

https://radar.cloudflare.com/post-quantum
372•mfiguiere•16h ago•191 comments

The state of Rust allocators in 2026: stabilised

https://cetra3.github.io/blog/state-of-allocators-2026-finally-stabilised/
162•fanf2•2d ago•65 comments

Claude and I found a dwarf planet candidate

https://www.joshuawolk.com/writing/claude-and-i-found-a-dwarf-planet-candidate
457•nhatcher•16h ago•169 comments

If you want failover to work well, use it often

https://bencane.com/posts/2026-11-25-failover-often/
488•madflojo•22h ago•132 comments

Self-hosted software development factory

https://kudmitry.com/articles/self-hosted-software-development-factory/
271•ingve•16h ago•128 comments

Universal 3D nanoscale assembly with DNA polycubes

https://www.science.org/doi/10.1126/scirobotics.aeh7974
42•OneManHorde•2d ago•7 comments

Cloth Simulation with XBPD

https://ricar.do/2026/11/26/cloth-sim.html
38•ricardobeat•2d ago•10 comments

Emulator for Symbolics XL-1200 Lisp machine

https://unya.github.io/xl1200-emu/
79•p_l•11h ago•9 comments

Nearly 2B credentials exposed in a publicly accessible database

https://www.expressvpn.com/research/2billion-credentials-exposed
282•basilgohar•22h ago•153 comments

Cyanobacterium can adapt to simulated Martian conditions

https://bioengineer.org/simulated-martian-conditions-reshape-cyanobacterial-growth-and-lipid-meta...
128•hackthemack•16h ago•46 comments

Banned from Google?

https://bannedfromgoogle.com/
803•ondas•16h ago•359 comments

So, how fast is numerical computation in Lean?

https://robertboy18.github.io/TorchLean-Verified-Examples/week-09-floatlib-benchmarks/
57•matt_d•2d ago•3 comments

TrojanMaxxing: One-shotting VLM backdoors with weight-space programming

https://arxiv.org/abs/2611.27425
245•hvp1621•22h ago•75 comments

Historic Great Lakes Bulker Departs for Boneyard

https://maritime-executive.com/article/historic-great-lakes-bulker-set-to-depart-for-boneyard
51•hermitdev•2d ago•21 comments

Anthropic has made a major breakthrough in theoretical cryptanalysis

https://twitter.com/AndrewCurran_/status/2127127873802911864
573•bifftastic•20h ago•496 comments

Show HN: Symphony – sandboxed coding agents you manage like tickets

https://symphony.stavros.io
18•stavros•2h ago•5 comments