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

Comments

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

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

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

How bad can a $2.97 ADC be?

https://excamera.substack.com/p/how-bad-can-a-297-adc-be
78•jamesbowman•1h ago•43 comments

New lab-grown human embryo model produces blood cells

https://www.cam.ac.uk/research/news/new-lab-grown-human-embryo-model-produces-blood-cells
24•gmays•36m ago•5 comments

Prefix sum: 20 GB/s (2.6x baseline)

https://github.com/ashtonsix/perf-portfolio/tree/main/delta
34•ashtonsix•2h ago•9 comments

Why is everything so scalable?

https://www.stavros.io/posts/why-is-everything-so-scalable/
270•kunley•5d ago•266 comments

ADS-B Exposed

https://adsb.exposed/
205•keepamovin•8h ago•50 comments

Astronomers 'image' a mysterious dark object in the distant Universe

https://www.mpg.de/25518363/1007-asph-astronomers-image-a-mysterious-dark-object-in-the-distant-u...
121•b2ccb2•4h ago•68 comments

Ultrasound is ushering a new era of surgery-free cancer treatment

https://www.bbc.com/future/article/20251007-how-ultrasound-is-ushering-a-new-era-of-surgery-free-...
267•1659447091•6d ago•82 comments

Automatic K8s pod placement to match external service zones

https://github.com/toredash/automatic-zone-placement
46•toredash•6d ago•17 comments

Zoo of Array Languages

https://ktye.github.io/
114•mpweiher•7h ago•26 comments

Show HN: Metorial (YC F25) – Vercel for MCP

https://github.com/metorial/metorial
29•tobihrbr•4h ago•8 comments

A 12,000-year-old obelisk with a human face was found in Karahan Tepe

https://www.trthaber.com/foto-galeri/karahantepede-12-bin-yil-oncesine-ait-insan-yuzlu-dikili-tas...
77•fatihpense•1w ago•24 comments

The phaseout of the mmap() file operation

https://lwn.net/Articles/1038715/
35•pykello•5d ago•3 comments

Don’t Look Up: Sensitive internal links in the clear on GEO satellites [pdf]

https://satcom.sysnet.ucsd.edu/docs/dontlookup_ccs25_fullpaper.pdf
480•dweekly•17h ago•119 comments

Pyrefly: Python type checker and language server in Rust

https://pyrefly.org/?featured_on=talkpython
152•brianzelip•6h ago•113 comments

Dutch government takes control of Chinese-owned chipmaker Nexperia

https://www.cnbc.com/2025/10/13/dutch-government-takes-control-of-chinese-owned-chipmaker-nexperi...
672•piskov•1d ago•576 comments

Hold Off on Litestream 0.5.0

https://mtlynch.io/notes/hold-off-on-litestream-0.5.0/
59•mtlynch•2h ago•10 comments

Palisades Fire suspect's ChatGPT history to be used as evidence

https://www.rollingstone.com/culture/culture-news/chatgpt-palisades-fire-suspect-1235443216/
224•quuxplusone•5d ago•208 comments

Wireshark 4.6.0 Supports macOS Pktap Metadata (PID, Process Name, etc.)

https://nuxx.net/blog/2025/10/14/wireshark-4-6-0-supports-macos-pktap-metadata-pid-process-name-etc/
89•c0nsumer•4h ago•15 comments

Kyber (YC W23) Is Hiring an Enterprise AE

https://www.ycombinator.com/companies/kyber/jobs/BQRRSrZ-enterprise-account-executive-ae
1•asontha•6h ago

Beyond the SQLite Single-Writer Limitation with Concurrent Writes

https://turso.tech/blog/beyond-the-single-writer-limitation-with-tursos-concurrent-writes
7•syrusakbary•6d ago•0 comments

CRISPR-like tools that finally can edit mitochondria DNA

https://www.nature.com/articles/d41586-025-03307-x
107•ck2•5h ago•23 comments

America is getting an AI gold rush instead of a factory boom

https://www.washingtonpost.com/business/2025/10/13/manufacturing-artificial-intelligence/
406•voxleone•1d ago•560 comments

KDE celebrates the 29th birthday and kicks off the yearly fundraiser

https://kde.org/fundraisers/yearend2025/
249•jrepinc•9h ago•144 comments

Nexperia – Update on Company Developments

https://www.nexperia.com/about/news-events/press-releases/update-on-company-developments
30•weetniet•8h ago•2 comments

DDoS Botnet Aisuru Blankets US ISPs in Record DDoS

https://krebsonsecurity.com/2025/10/ddos-botnet-aisuru-blankets-us-isps-in-record-ddos/
167•JumpCrisscross•19h ago•119 comments

Copy-and-Patch: A Copy-and-Patch Tutorial

https://transactional.blog/copy-and-patch/tutorial
94•todsacerdoti•13h ago•16 comments

Subverting Telegram's end-to-end encryption (2023)

https://tosc.iacr.org/index.php/ToSC/article/view/10302
68•pona-a•3h ago•48 comments

GPT-5o-mini hallucinates medical residency applicant grades

https://www.thalamusgme.com/blogs/cortex-core-clerkship-grades-and-transcript-normalization
159•medicalthrow•3h ago•102 comments

Smartphones and being present

https://herman.bearblog.dev/being-present/
390•articsputnik•1d ago•236 comments

Show HN: SQLite Online – 11 years of solo development, 11K daily users

https://sqliteonline.com/
439•sqliteonline•1d ago•136 comments