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.

Bazzite: The next generation of Linux gaming

https://bazzite.gg/
236•doener•5h ago•140 comments

The HTTP Query Method

https://www.ietf.org/archive/id/draft-ietf-httpbis-safe-method-w-body-14.html
60•Ivoah•3d ago•28 comments

All it takes is for one to work out

https://alearningaday.blog/2025/11/28/all-it-takes-is-for-one-to-work-out-2/
366•herbertl•7h ago•182 comments

Landlock-Ing Linux

https://blog.prizrak.me/post/landlock/
132•razighter777•6h ago•45 comments

Meshtastic

https://meshtastic.org/
40•debo_•2h ago•4 comments

Be Like Clippy

https://be-clippy.com/
230•Aloha•7h ago•151 comments

Learning Feynman's Trick for Integrals

https://zackyzz.github.io/feynman.html
132•Zen1th•7h ago•17 comments

Scala

https://www.huygens-fokker.org/scala/
30•onestay42•3h ago•6 comments

Blender facial animation tool. What else should it do?

https://github.com/shun126/livelinkface_arkit_receiver/wiki
38•happy-game-dev•2d ago•11 comments

Show HN: Nano PDF – A CLI Tool to Edit PDFs with Gemini's Nano Banana

https://github.com/gavrielc/Nano-PDF
105•GavCo•6h ago•19 comments

A new Little Prince museum has opened its doors in Switzerland

https://www.lepetitprince.com/en/events-around-the-world/a-new-little-prince-museum-has-opened-it...
14•gnabgib•2h ago•2 comments

The Origins of Scala (2009)

https://www.artima.com/articles/the-origins-of-scala
58•todsacerdoti•7h ago•32 comments

Datacenters in space aren't going to work

https://taranis.ie/datacenters-in-space-are-a-terrible-horrible-no-good-idea/
161•mindracer•13h ago•149 comments

Americans no longer see four-year college degrees as worth the cost

https://www.nbcnews.com/politics/politics-news/poll-dramatic-shift-americans-no-longer-see-four-y...
73•jnord•4h ago•97 comments

Rare X-ray images of a 4.5-ton satellite that returned intact from space

https://www.empa.ch/web/s604/eureca-satellit-mit-roentgenmethoden-untersucht
64•giuliomagnifico•3d ago•9 comments

An update on the Farphone's battery

https://far.computer/battery-update/
63•louismerlin•1d ago•46 comments

Testing shows automotive glassbreakers can't break modern automotive glass

https://www.core77.com/posts/138925/Testing-Shows-Automotive-Glassbreakers-Cant-Break-Modern-Auto...
94•surprisetalk•11h ago•89 comments

Let go of StackOverflow; communities must take ownership

https://ahelwer.ca/post/2025-11-25-stackoverflow/
42•tensegrist•4d ago•56 comments

The Druridge Bay Ruin [video]

https://www.youtube.com/watch?v=mCceufLwJxU
3•DoreenMichele•4d ago•0 comments

A new myth appeared during the presidential campaign of Andrew Jackson

https://www.historynewsnetwork.org/article/self-made
24•Petiver•4d ago•53 comments

Leak confirms OpenAI is preparing ads on ChatGPT for public roll out

https://www.bleepingcomputer.com/news/artificial-intelligence/leak-confirms-openai-is-preparing-a...
537•fleahunter•16h ago•516 comments

Stopping bad guys from using my open source project (feedback wanted)

https://evanhahn.com/stopping-bad-guys-from-using-my-open-source-project/
33•emschwartz•2h ago•52 comments

Show HN: Network Monitor – a GUI to spot anomalous connections on your Linux

101•grigio•5d ago•36 comments

Dilution vs. Risk taking: Capital gains taxes and entrepreneurs

https://www.nber.org/papers/w34512
33•hhs•3h ago•47 comments

Zero knowlege proof of compositeness

https://www.johndcook.com/blog/2025/11/29/zkp-composite/
90•ColinWright•9h ago•27 comments

Hardening the C++ Standard Library at scale

https://queue.acm.org/detail.cfm?id=3773097
124•ndesaulniers•6d ago•56 comments

AccessOwl (YC S22) Is Hiring a Technical Account Manager (IAM)

https://www.ycombinator.com/companies/accessowl/jobs/dGC3pcO-technical-account-manager-identity-a...
1•philipeller•10h ago

1964 Recompiling Engine Documentation (2001) [pdf]

https://emudev.org/docs/1964-recompiling-engine-documentation.pdf
10•davikr•4d ago•0 comments

The CRDT Dictionary: A Field Guide to Conflict-Free Replicated Data Types

https://www.iankduncan.com/engineering/2025-11-27-crdt-dictionary/
164•birdculture•15h ago•19 comments

Student perceptions of AI coding assistants in learning

https://arxiv.org/abs/2507.22900
63•victorbuilds•9h ago•87 comments