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.

The Peaceful Transfer of Power in Open Source Projects

https://shkspr.mobi/blog/2025/11/the-peaceful-transfer-of-power-in-open-source-projects/
84•edent•2h ago•45 comments

Your Smartphone, Their Rules: App Stores Enable Corporate-Government Censorship

https://www.aclu.org/news/free-speech/app-store-oligopoly
198•pabs3•2h ago•103 comments

Gymkhana's 1978 Subaru Brat with 9,500-RPM Redline, Active Aero Is One Super Ute

https://www.thedrive.com/news/gymkhanas-1978-subaru-brat-with-9500-rpm-redline-and-active-aero-is...
27•PaulHoule•1w ago•23 comments

The $1k AWS Mistake

https://www.geocod.io/code-and-coordinates/2025-11-18-the-1000-aws-mistake/
131•thecodemonkey•5h ago•134 comments

Multimodal Diffusion Language Models for Thinking-Aware Editing and Generation

https://github.com/tyfeld/MMaDA-Parallel
87•lnyan•6h ago•6 comments

Gemini 3

https://blog.google/products/gemini/gemini-3/
1561•preek•1d ago•979 comments

I made a down detector for down detector

https://downdetectorsdowndetector.com
376•gusowen•15h ago•120 comments

Programming the Commodore 64 with .NET

https://retroc64.github.io/
16•mariuz•5d ago•1 comments

The Future of Programming (2013) [video]

https://www.youtube.com/watch?v=8pTEmbeENF4
81•jackdoe•6d ago•48 comments

Proxmox Virtual Environment 9.1 available

https://www.proxmox.com/en/about/company-details/press-releases/proxmox-virtual-environment-9-1
39•speckx•1h ago•24 comments

Google Antigravity

https://antigravity.google/
978•Fysi•1d ago•957 comments

I just want working RCS messaging

https://wt.gd/i-just-want-my-rcs-messaging-to-work
192•joecool1029•14h ago•186 comments

How to Stay Sane in a World That Rewards Insanity

https://www.joanwestenberg.com/p/how-to-stay-sane-in-a-world-that-rewards-insanity
40•enbywithunix•1h ago•16 comments

Pimped Amiga 500

https://www.pimyretro.org/pimped-amiga-500/
67•onename•3h ago•27 comments

I made a downdetector for downdetector's downdetector's downdetector

https://downdetectorsdowndetectorsdowndetectorsdowndetector.com
48•halgir•6h ago•8 comments

Pebble, Rebble, and a path forward

https://ericmigi.com/blog/pebble-rebble-and-a-path-forward/
439•phoronixrly•22h ago•224 comments

Show HN: Browser-based interactive 3D Three-Body problem simulator

https://trisolarchaos.com/?pr=O_8(0.6)&n=3&s=5.0&so=0.00&im=rk4&dt=1.00e-4&rt=1.0e-6&at=1.0e-8&bs...
186•jgchaos•1d ago•71 comments

Ultima VII Revisited

https://github.com/ViridianGames/U7Revisited
167•erickhill•1w ago•48 comments

Europe is scaling back its landmark privacy and AI laws

https://www.theverge.com/news/823750/european-union-ai-act-gdpr-changes
15•ksec•1h ago•5 comments

Itiner-e: A high-resolution dataset of roads of the Roman Empire

https://www.nature.com/articles/s41597-025-06140-z
18•benbreen•1w ago•4 comments

I wrote a Pong game in a 512-byte boot sector

https://akshatjoshi.com/i-wrote-a-pong-game-in-a-512-byte-boot-sector/
75•akshat666•4d ago•13 comments

Blender 5.0

https://www.blender.org/download/releases/5-0/
905•FrostKiwi•18h ago•291 comments

Learning to Boot from PXE

https://blog.imraniqbal.org/learning-to-boot-from-pxe/
15•speckx•4h ago•6 comments

Cloudflare outage on November 18, 2025 post mortem

https://blog.cloudflare.com/18-november-2025-outage/
1317•eastdakota•16h ago•775 comments

Gemini 3 Pro Model Card [pdf]

https://storage.googleapis.com/deepmind-media/Model-Cards/Gemini-3-Pro-Model-Card.pdf
251•virgildotcodes•1d ago•324 comments

Mojo-V: Secret Computation for RISC-V

https://github.com/toddmaustin/mojo-v
48•fork-bomber•1w ago•15 comments

The code and open-source tools I used to produce a science fiction anthology

https://compellingsciencefiction.com/posts/the-code-and-open-source-tools-i-used-to-produce-a-sci...
178•mojoe•23h ago•28 comments

Cloudflare Global Network experiencing issues

https://www.cloudflarestatus.com/incidents/8gmgl950y3h7
2395•imdsm•1d ago•1620 comments

Strace-macOS: A clone of the strace command for macOS

https://github.com/Mic92/strace-macos
85•signa11•14h ago•20 comments

Bluetooth Channel Sounding: The Next Leap in Bluetooth Innovation

https://www.embedded.com/bluetooth-channel-sounding-the-next-leap-in-bluetooth-innovation?_gl=1*8...
63•JoachimS•6d ago•32 comments