# λλ: A Programming Language That Makes Silicon Photonics Compile

Original title: λλ: A Programming Language for Silicon Photonics

> Hacker News story 49357501 · language: en · submitted 2026-08-19
> Web version: https://zeli.app/story/49357501
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 91 · by [matt_d](<https://news.ycombinator.com/user?id=matt_d>) · 💬 17
[original](<https://dl.acm.org/doi/10.1145/3789240.3829151>) · [HN discussion](<https://news.ycombinator.com/item?id=49357501>)

## Summary

Researchers from Cornell University and Nysernet present λλ, a programming language for silicon photonics that uses a linear type system to enforce the physical constraints of optics, rejecting unrealizable programs at compile time. The compiler maps well-typed programs onto arbitrary photonic switches while minimizing signal loss, scaling to switches with over 100,000 elements. It handles circuit switching, rotor switching, and analog in-network computation, and includes a synthesizer for automatic program generation.

## Key quote

> λλ uses a linear type system to encode the physical constraints of optics, rejecting unrealizable programs at compile time.

## HN discussion (17 comments)

### [tromp](<https://news.ycombinator.com/item?id=49358645>)

> The second λ is subscripted. As footnote 1 in the paper says:
>
> \> Pronounced “lambda lambda”. One λ refers to the λ-calculus and the other refers to an optical wavelength.

### [deepsun](<https://news.ycombinator.com/item?id=49358682>)

> Full syntax of λλ (from the paper):
>
> e ::= v | x | input(p) 
>
> | let x = e1 in e2
>
> | (e1, e2)
>
> | unpack e1 as (x1, x2) in e2
>
> | phase(θ, e)
>
> | split(r, e)
>
> | unitary(U, (e1, e2))
>
> | output(p) <- e1; e2
>
> v ::= r ↓ ℝ | p ↓ Port | U ↓ Unitary | ()
>
> τ ::= ℝ | Port | Opt | Unitary | Unit |(τ1 * τ2)

### [ktallett](<https://news.ycombinator.com/item?id=49359269>)

> I am curious why develop a new language instead of building a library for an existing language. What are the benefits as I didn't see this in the paper? Can it interact with other languages?

---

## Cite

- Page: https://zeli.app/story/49357501
- Date: 2026-08-19
- Source: dl.acm.org (https://dl.acm.org/doi/10.1145/3789240.3829151)
- Hacker News: https://news.ycombinator.com/item?id=49357501

## Other languages

- zh: https://zeli.app/zh/story/49357501 · markdown: https://zeli.app/zh/story/49357501.md
- ja: https://zeli.app/ja/story/49357501 · markdown: https://zeli.app/ja/story/49357501.md
- ko: https://zeli.app/ko/story/49357501 · markdown: https://zeli.app/ko/story/49357501.md
- de: https://zeli.app/de/story/49357501 · markdown: https://zeli.app/de/story/49357501.md
- es: https://zeli.app/es/story/49357501 · markdown: https://zeli.app/es/story/49357501.md
