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

Comments

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

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

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

L2M: Claude Code but for legacy code modernization

https://github.com/astrio-ai/l2m
1•NolanLwin•14s ago•0 comments

Musk's xAI in advanced talks to raise $15B at $230B valuation

https://www.reuters.com/business/musks-xai-advanced-talks-raise-15-billion-lifting-valuation-230-...
1•iamtech•7m ago•0 comments

Traveling with the iPad Pro, 10 Years On

https://sixcolors.com/post/2025/11/traveling-with-the-ipad-pro-10-years-on/
2•tosh•10m ago•0 comments

Memory chips could be the next bottleneck for AI (2024)

https://economist.com/business/2024/10/24/memory-chips-could-be-the-next-bottleneck-for-ai
2•runeks•17m ago•1 comments

Project Sapphire (1995)

https://www.airandspaceforces.com/article/0895sapphire/
2•thunderbong•31m ago•0 comments

Mind-altering 'brain weapons' no longer only science fiction, say researchers

https://www.theguardian.com/world/2025/nov/22/mind-altering-brain-weapons-no-longer-only-science-...
3•ifh-hn•37m ago•0 comments

A minimal and self-contained system for local preview environments

https://github.com/cesarleaz/iframe-hotreload
1•gabyword•40m ago•0 comments

Room-temperature processible ceramics enable sustainable electronics

https://www.dezeen.com/2025/11/17/geolectric-light-mit-design-intelligence-lab/
2•gsf_emergency_6•45m ago•0 comments

2025 Self-Host User Survey Results

https://selfh.st/survey/2025-results/
1•sirbread•52m ago•0 comments

Mark Cuban's plan to shake up healthcare with "Cost-Plus Drugs"

https://www.statnews.com/2025/11/20/readout-loud-podcast-mark-cuban-cost-plus-drugs-trumprx/
1•gsf_emergency_6•52m ago•0 comments

Show HN: Nano Banana Pro – AI image generation and editing platform

https://nanobananapro.design
1•niliu123•56m ago•0 comments

Building a deep-space logistics startup

https://ionmicrosys.com/
2•rainegarden•57m ago•3 comments

Google begins showing ads in AI Mode (AI answers)

https://www.bleepingcomputer.com/news/artificial-intelligence/google-begins-showing-ads-in-ai-mod...
2•nreece•1h ago•1 comments

Channel Geography Favors England Invading France, Not Vice-Versa (Drachinifel) [video]

https://www.youtube.com/watch?v=8Tsrm_mvoVk
1•bell-cot•1h ago•0 comments

A New Programming Model for Full-Stack Distributed Systems

https://www.youtube.com/watch?v=fZf-S5yfbfo
1•geetee•1h ago•0 comments

An MIT Student Awed Top Economists with His AI Study–Then It All Fell Apart

https://www.wsj.com/economy/aidan-toner-rodgers-mit-ai-research-78753243
2•seagullz•1h ago•0 comments

Small Machine Shop Owner Fights Back [video]

https://www.youtube.com/watch?v=jt5DhnoYm5w
1•ksec•1h ago•0 comments

Let me opt in, not out

https://www.aleksandrhovhannisyan.com/blog/let-me-opt-in-not-out/
1•aleksandrh•1h ago•0 comments

Google denies 'misleading' reports of Gmail using your emails to train AI

https://www.theverge.com/news/826902/gmail-ai-training-data-opt-out
6•GeorgeWoff25•1h ago•1 comments

Superman copy found in mum's attic is most valuable comic ever at $9.12M

https://www.bbc.com/news/articles/c8e9rp0knj6o
102•1659447091•1h ago•28 comments

Servo Sponsorship Tiers

https://servo.org/blog/2025/11/21/sponsorship-tiers/
3•pabs3•1h ago•0 comments

Rolls-Royce tests how to limit sand damage to jet engines

https://www.bbc.com/news/articles/cj0e3npg7e4o
5•1659447091•1h ago•0 comments

RIP Puzzles in chess.com – I miss it

2•kinj28•1h ago•0 comments

Show HN: Skedular, a Smart Booking and Workspace Management Platform

https://skedular.app
2•mortezaalizadeh•2h ago•0 comments

The digital nomad era is over

https://qz.com/digital-nomads-ai-rto-remote-work-office
5•doughnutstracks•2h ago•2 comments

Cursor Learn

https://cursor.com/learn
2•dsr12•2h ago•0 comments

AI Exponentializes Your Tech Debt

https://www.vincentschmalbach.com/ai-exponentializes-your-tech-debt/
12•vincent_s•2h ago•4 comments

Workbass: Free Invoice-Generating Software for Modern Businesses

2•tobinews•2h ago•0 comments

Boring Laser Eyes Simulator: Add laser beams to your eyes with your webcam

2•frankhsu•2h ago•0 comments

Microsoft's head of AI doesn't understand why people don't like AI

https://www.pcgamer.com/software/ai/microsofts-head-of-ai-doesnt-understand-why-people-dont-like-...
24•evo_9•2h ago•6 comments