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

Comments

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

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

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

Proton Meet Isn't What They Told You It Was

https://www.sambent.com/proton-meet-isnt-what-they-told-you/
10•bundie•33m ago•0 comments

Google releases Gemma 4 open models

https://deepmind.google/models/gemma/gemma-4/
1464•jeffmcjunkin•17h ago•407 comments

ESP32-S31: 320MHz 2C RV32IMAFCP+CLIC, 512KB SRAM, GbE, 802.11ax, 61 GPIO

https://www.espressif.com/en/news/ESP32_S31_Release
37•topspin•4d ago•13 comments

Decisions that eroded trust in Azure – by a former Azure Core engineer

https://isolveproblems.substack.com/p/how-microsoft-vaporized-a-trillion
763•axelriet•17h ago•303 comments

The True Shape of Io's Steeple Mountain

https://www.weareinquisitive.com/news/hidden-in-the-shadow
44•carlosjobim•4d ago•1 comments

Tailscale's new macOS home

https://tailscale.com/blog/macos-notch-escape
455•tosh•15h ago•229 comments

Cursor 3

https://cursor.com/blog/cursor-3
409•adamfeldman•15h ago•325 comments

Artemis II's toilet is a moon mission milestone

https://www.scientificamerican.com/article/artemis-iis-toilet-is-a-moon-mission-milestone/
247•1659447091•1d ago•104 comments

C89cc.sh – standalone C89/ELF64 compiler in pure portable shell

https://gist.github.com/alganet/2b89c4368f8d23d033961d8a3deb5c19
122•gaigalas•2d ago•33 comments

Qwen3.6-Plus: Towards real world agents

https://qwen.ai/blog?id=qwen3.6
521•pretext•19h ago•185 comments

Working on Products People Hate

https://www.seangoedecke.com/working-on-products-people-hate/
26•herbertl•5d ago•24 comments

Good ideas do not need lots of lies in order to gain public acceptance (2008)

https://blog.danieldavies.com/2004/05/d-squared-digest-one-minute-mba.html
252•sedev•16h ago•105 comments

Vector Meson Dominance

https://johncarlosbaez.wordpress.com/2026/03/29/vector-meson-dominance/
31•chmaynard•4d ago•2 comments

Show HN: Home Maker: Declare Your Dev Tools in a Makefile

https://thottingal.in/blog/2026/03/29/home-maker/
55•sthottingal•5d ago•32 comments

LinkedIn is searching your browser extensions

https://browsergate.eu/
1732•digitalWestie•20h ago•707 comments

Significant progress made on Xbox 360 recompilation

https://readonlymemo.com/rexglue-xbox-360-recompilation-interview/
114•tetrisgm•4d ago•24 comments

George Goble has died

https://www.legacy.com/us/obituaries/wlfi/name/george-goble-obituary?id=61144779
148•finaard•15h ago•31 comments

New Rowhammer attacks give complete control of machines running Nvidia GPUs

https://arstechnica.com/security/2026/04/new-rowhammer-attacks-give-complete-control-of-machines-...
11•01-_-•1h ago•0 comments

The Joy of Numbered Streets

https://humantransit.org/2026/03/the-joy-of-numbered-streets-or-call-it-39th-avenue.html
44•dmit•6d ago•30 comments

Maze Algorithms (1997)

https://www.astrolog.org/labyrnth/algrithm.htm
52•marukodo•2d ago•16 comments

Show HN: Made a little Artemis II tracker

https://artemis-ii-tracker.com/
107•codingmoh•10h ago•36 comments

A Rave Review of Superpowers (For Claude Code)

https://emschwartz.me/a-rave-review-of-superpowers-for-claude-code/
16•emschwartz•5h ago•1 comments

Researchers uncover 2k-year-old bullet inscribed with ominous message

https://www.gbnews.com/science/archaeology-breakthrough-researchers-uncover-2000-year-old-bullet-...
4•bookofjoe•4d ago•0 comments

A Few Good Magazines From the 70s and 80s

https://www.bi6.us/CO/MG.HTML
61•OhMeadhbh•10h ago•18 comments

ParadeDB (YC S23) Is Hiring Database Internal Engineers (Rust)

https://paradedb.notion.site/
1•philippemnoel•11h ago

OpenAI Acquires TBPN

https://openai.com/index/openai-acquires-tbpn/
209•surprisetalk•16h ago•164 comments

Inside Nepal's Fake Rescue Racket

https://kathmandupost.com/money/2026/03/27/inside-nepal-s-fake-rescue-racket
287•lode•21h ago•125 comments

JSON Canvas Spec (2024)

https://jsoncanvas.org/spec/1.0/
109•tobr•3d ago•32 comments

Memo: A language that remembers only the last 12 lines of code

https://danieltemkin.com/Esolangs/Memo/
51•notem•11h ago•24 comments

Artemis computer running two instances of MS outlook; they can't figure out why

https://bsky.app/profile/nikigrayson.com/post/3miik2wzosk25
423•mooreds•18h ago•312 comments