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

Comments

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

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

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

Myocardial infarction may be an infectious disease

https://www.tuni.fi/en/news/myocardial-infarction-may-be-infectious-disease
337•DaveZale•7h ago•118 comments

Pass: Unix Password Manager

https://www.passwordstore.org/
105•Bogdanp•5h ago•52 comments

Two Slice, a font that's only 2px tall

https://joefatula.com/twoslice.html
110•JdeBP•5h ago•31 comments

Show HN: A store that generates products from anything you type in search

https://anycrap.shop/
811•kafked•17h ago•258 comments

Why you’d issue a branded stablecoin

https://text-incubation.com/Why+you%27d+issue+a+branded+stablecoin+like+McDonaldsCoin
10•krrishd•2h ago•3 comments

AMD’s RDNA4 GPU architecture

https://chipsandcheese.com/p/amds-rdna4-gpu-architecture-at-hot
84•rbanffy•8h ago•2 comments

Will AI be the basis of many future industrial fortunes, or a net loser?

https://joincolossus.com/article/ai-will-not-make-you-rich/
75•saucymew•7h ago•77 comments

High Altitude Living – 8,000 ft and above (2021)

https://studioq.com/blog/2021/5/30/high-altitude-living-8000-ft-and-above-2450-meters
15•walterbell•1h ago•8 comments

The Socratic Journal Method: A Simple Journaling Method That Works

https://mindthenerd.com/the-socratic-journal-method-a-simple-journaling-method-that-actually-works/
35•surprisetalk•3d ago•5 comments

Recreating the US/* time zone situation

https://rachelbythebay.com/w/2025/09/12/tz/
50•move-on-by•12h ago•26 comments

Lexy: A parser combinator library for C++17

https://github.com/foonathan/lexy
30•klaussilveira•3d ago•1 comments

RIP pthread_cancel

https://eissing.org/icing/posts/rip_pthread_cancel/
167•robin_reala•11h ago•79 comments

Adding OR logic forced us to confront why users preferred raw SQL

https://signoz.io/blog/query-builder-v5/
44•ak_builds•3d ago•38 comments

How the restoration of ancient Babylon is drawing tourists back to Iraq

https://www.theartnewspaper.com/2025/09/12/how-the-restoration-of-ancient-babylon-is-helping-to-d...
26•leoh•4h ago•8 comments

486Tang – 486 on a credit-card-sized FPGA board

https://nand2mario.github.io/posts/2025/486tang_486_on_a_credit_card_size_fpga_board/
161•bitbrewer•14h ago•47 comments

Safe C++ proposal is not being continued

https://sibellavia.lol/posts/2025/09/safe-c-proposal-is-not-being-continued/
132•charles_irl•10h ago•92 comments

Visual programming is stuck on the form

https://interjectedfuture.com/visual-programming-is-stuck-on-the-form/
9•iamwil•3h ago•0 comments

How Ruby executes JIT code

https://railsatscale.com/2025-09-08-how-ruby-executes-jit-code-the-hidden-mechanics-behind-the-ma...
113•ciconia•4d ago•17 comments

RFC9460: SVCB and HTTPS DNS Records

https://datatracker.ietf.org/doc/html/rfc9460
29•codewiz•4h ago•3 comments

If my kids excel, will they move away?

https://jeffreybigham.com/blog/2025/where-will-my-kids-go.html
151•azhenley•4h ago•66 comments

The case against social media is stronger than you think

https://arachnemag.substack.com/p/the-case-against-social-media-is
183•ingve•10h ago•152 comments

Presence in VR should show tiny people, not user avatars (2022)

https://interconnected.org/home/2022/05/03/landscape
8•andsoitis•3d ago•2 comments

Four-year wedding crasher mystery solved

https://www.theguardian.com/uk-news/2025/sep/12/wedding-crasher-mystery-solved-four-years-bride-s...
275•wallflower•14h ago•81 comments

My first impressions of Gleam

https://mtlynch.io/notes/gleam-first-impressions/
173•AlexeyBrin•15h ago•62 comments

Orange rivers signal toxic shift in Arctic wilderness

https://news.ucr.edu/articles/2025/09/08/orange-rivers-signal-toxic-shift-arctic-wilderness
67•hbcondo714•2d ago•1 comments

SkiftOS: A hobby OS built from scratch using C/C++ for ARM, x86, and RISC-V

https://skiftos.org
440•ksec•1d ago•88 comments

George Bernard Shaw by G. K. Chesterton (1909)

https://www.gutenberg.org/ebooks/19535
4•lordleft•3d ago•0 comments

EFF to court: The Supreme Court must rein in secondary copyright liability

https://www.eff.org/deeplinks/2025/09/eff-court-supreme-court-must-rein-expansive-secondary-copyr...
78•walterbell•5h ago•25 comments

Open Source SDR Ham Transceiver Prototype

https://m17project.org/2025/08/18/first-linht-tests/
94•crcastle•4d ago•8 comments

Show HN: CLAVIER-36 – A programming environment for generative music

https://clavier36.com/p/LtZDdcRP3haTWHErgvdM
111•river_dillon•14h ago•22 comments