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

Comments

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

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

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

Interactive Dashboard to Analyze Express Entry CRS Draws

https://dailistats.netlify.app/?
1•kaypee90•4m ago•0 comments

Before publicly turning on San Francisco, Marc Benioff had privately left

https://sfstandard.com/2025/10/13/publicly-turning-san-francisco-marc-benioff-had-privately-left/
2•donohoe•9m ago•0 comments

RSS – Is It Needed

1•jmspring•10m ago•0 comments

VibeCraft – Starcraft for AI Agents

https://vibecraft.build/
1•rayzhueth•12m ago•1 comments

Apple's streaming service gets harder to tell apart from its streaming app, box

https://arstechnica.com/apple/2025/10/apple-tv-streaming-service-is-renamed-to-just-apple-tv/
3•rurp•14m ago•0 comments

RustPython: A Python Interpreter Written in Rust

https://rustpython.github.io/
1•pykello•20m ago•0 comments

I Is for Intent (2024)

https://acko.net/blog/i-is-for-intent/
1•thunderbong•23m ago•0 comments

New York Times, AP, Newsmax and others say they won't sign new Pentagon rules

https://apnews.com/article/pentagon-press-access-defense-department-rules-95878bce05096912887701e...
7•baobun•30m ago•0 comments

Modifying a Casio F-Series Digital Watch (2020)

https://shellzine.net/casio-f-series-mods/
3•camtarn•33m ago•0 comments

Kasparov: "Putin is testing EU: before year-end, he'll launch a ground invasion"

https://www.mundoamerica.com/news/2025/10/06/68e3ae8be9cf4a1c738b45a5.html
3•andsoitis•37m ago•0 comments

Show HN: Picture to Drawing – AI-powered photo to drawing converter

https://picturetodrawing.io
1•GuiShou•41m ago•0 comments

Boot for Windows

https://josebrabo.gumroad.com/l/nizmw
1•xerecs•44m ago•0 comments

Canada Express Entry Statistics

https://dailistats.netlify.app
3•kaypee901•45m ago•1 comments

Vite+ – Voidzero

https://voidzero.dev/posts/announcing-vite-plus
1•rk06•47m ago•1 comments

Show HN: A client-side tool to render Gemini chat HTML into a clean image/PDF

https://www.aichat2pic.com/
1•toyhank•49m ago•1 comments

Setting Up a Home ISP with GPON

https://www.apalrd.net/posts/2025/isp_gpon/
2•crcastle•50m ago•0 comments

Show HN: What the Font: Discover and Identify Fonts from Images

https://whatthefont.app
2•sudofoo•52m ago•1 comments

China can't afford to invade Taiwan

https://www.youtube.com/watch?v=6c57q9bIBPQ
2•tomcam•52m ago•1 comments

Superwall uses WarpStream and ClickHouse to scale subscription monetization

https://www.warpstream.com/blog/how-superwall-uses-warpstream-and-clickhouse-cloud-to-scale-subsc...
1•saisrirampur•56m ago•0 comments

Calm traffic needs more than calm driving [video]

https://www.youtube.com/watch?v=m74zazYPwkY
2•jez•57m ago•0 comments

Disposable Underwear for Postpartum Mums

https://www.partumpanties.com.au/
2•sgloss•1h ago•0 comments

University of California sets world record with five Nobel Prizes in one week

https://www.sfchronicle.com/california/article/uc-nobel-prizes-record-21094964.php
9•pulisse•1h ago•0 comments

New injectable gel shows promise as voice loss treatment

https://www.mcgill.ca/newsroom/channels/news/new-injectable-gel-shows-promise-voice-loss-treatmen...
1•gmays•1h ago•0 comments

A Rapid Tour of the Solveit Platform

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

Fun with FGF21

https://www.alexkesin.com/p/fun-with-fgf21
1•quadrin•1h ago•0 comments

Imagined Unrealities

https://zuhayeer.com/writing/imagined-unrealities.html
2•zuhayeer•1h ago•0 comments

Infrasound: What You Can't Hear Can Hurt You [video]

https://www.youtube.com/watch?v=UTvr8L5v8u8
2•tartoran•1h ago•0 comments

Beads: A coding agent memory system by Steve Yegge

https://steve-yegge.medium.com/introducing-beads-a-coding-agent-memory-system-637d7d92514a
2•BIackSwan•1h ago•0 comments

There are sensitive internal links in the clear on GEO satellites [pdf]

https://satcom.sysnet.ucsd.edu/docs/dontlookup_ccs25_fullpaper.pdf
37•dweekly•1h ago•5 comments

Minnesota towns were clean energy skeptics: Now they're installing solar

https://techxplore.com/news/2025-09-rural-minnesota-towns-energy-skeptics.html
3•PaulHoule•1h ago•0 comments