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

Comments

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

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

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

My friends and I accidentally faked the Ryzen 7 9700X3D leaks

https://old.reddit.com/r/pcmasterrace/comments/1orc6jl/my_friends_and_i_accidentally_faked_the_ry...
94•djrockstar1•1h ago•7 comments

Why is Zig so cool?

https://nilostolte.github.io/tech/articles/ZigCool.html
376•vitalnodo•14h ago•282 comments

Valdi – A cross-platform UI framework that delivers native performance

https://github.com/Snapchat/Valdi
329•yehiaabdelm•12h ago•125 comments

Making Democracy Work: Fixing and Simplifying Egalitarian Paxos

https://arxiv.org/abs/2511.02743
62•otrack•5h ago•14 comments

Friendly attributes pattern in Ruby

https://brunosutic.com/blog/ruby-friendly-attributes-pattern
39•brunosutic•5d ago•20 comments

Becoming a compiler engineer

https://rona.substack.com/p/becoming-a-compiler-engineer
247•lalitkale•15h ago•118 comments

Reverse engineering a neural network's clever solution to binary addition (2023)

https://cprimozic.net/blog/reverse-engineering-a-small-neural-network/
16•Ameo•4d ago•1 comments

Cekura (YC F24) Is Hiring

1•atarus•1h ago

Myna: Monospace typeface designed for symbol-heavy programming languages

https://github.com/sayyadirfanali/Myna
293•birdculture•18h ago•138 comments

Apple is crossing a Steve Jobs red line

https://kensegall.com/2025/11/07/apple-is-crossing-a-steve-jobs-red-line/
329•zdw•17h ago•277 comments

Immutable Software Deploys Using ZFS Jails on FreeBSD

https://conradresearch.com/articles/immutable-software-deploy-zfs-jails
102•vermaden•12h ago•32 comments

The Initial Ideal Customer Profile Worksheet

https://www.reifyworks.com/writing/2023-01-30-iicp
59•mrbbk•4d ago•4 comments

How did I get here?

https://how-did-i-get-here.net/
243•zachlatta•17h ago•45 comments

Why I love OCaml (2023)

https://mccd.space/posts/ocaml-the-worlds-best/
340•art-w•23h ago•247 comments

Local First Htmx

https://elijahm.com/posts/local_first_htmx/
61•srid•10h ago•32 comments

Ruby already solved my problem

https://newsletter.masilotti.com/p/ruby-already-solved-my-problem
231•joemasilotti•18h ago•96 comments

Mullvad: Shutting down our search proxy Leta

https://mullvad.net/en/blog/shutting-down-our-search-proxy-leta
126•holysoles•12h ago•82 comments

Running a 68060 CPU in Quadra 650

https://github.com/ZigZagJoe/Macintosh-Q650-68060
53•zdw•11h ago•23 comments

YouTube Removes Windows 11 Bypass Tutorials, Claims 'Risk of Physical Harm'

https://news.itsfoss.com/youtube-removes-windows-11-bypass-tutorials/
687•WaitWaitWha•16h ago•263 comments

Cerebras Code now supports GLM 4.6 at 1000 tokens/sec

https://www.cerebras.ai/code
104•nathabonfim59•13h ago•70 comments

Apple's "notarisation" – blocking software freedom of developers and users

https://fsfe.org/news/2025/news-20251105-01.en.html
144•DavideNL•7h ago•94 comments

Venn Diagram for 7 Sets

https://moebio.com/research/sevensets/
139•bramadityaw•4d ago•36 comments

A rats to riches story: Larry the Downing Street cat finds place in TV spotlight

https://www.theguardian.com/politics/2025/nov/08/a-rats-to-riches-story-larry-the-downing-street-...
21•zeristor•3h ago•5 comments

Angel Investors, a Field Guide

https://www.jeanyang.com/posts/angel-investors-a-field-guide/
151•azhenley•20h ago•38 comments

Dark mode by local sunlight (2021)

https://www.ctnicholas.dev/articles/dark-mode-by-sunlight
7•gaws•4d ago•3 comments

Can you save on LLM tokens using images instead of text?

https://pagewatch.ai/blog/post/llm-text-as-image-tokens/
30•lpellis•6d ago•10 comments

FSF40 Hackathon

https://www.fsf.org/events/fsf40-hackathon
92•salutis•5d ago•2 comments

Ribir: Non-intrusive GUI framework for Rust/WASM

https://github.com/RibirX/Ribir
67•adamnemecek•16h ago•13 comments

Copy button added to Stack Overflow

https://meta.stackexchange.com/questions/414573/results-of-the-october-2025-community-asks-sprint...
13•exploraz•1h ago•16 comments

VLC's Jean-Baptiste Kempf Receives the European SFS Award 2025

https://fsfe.org/news/2025/news-20251107-01.en.html
374•kirschner•16h ago•73 comments