TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Linear Algebra of Types (2019)

115 pointsby g0xA52A2Aabout 1 year ago

3 comments

Tweyabout 1 year ago
You can take this idea further by trying to find computational analogues of more complex algebra structures and operations. For example, the derivative of a type function gives the type of ‘one-hole contexts’ of that type[0], which gives rise to the work on zippers for context-preserving transformation in functional data structures, things like Rust&#x27;s `Entry` API for maps.<p>Amr Sabry has been doing work on extending this kind of ‘type algebra’ to negatives and fractions, with applications to reversible programming à la Kanren and quantum programming languages where breaking reversibility is an important effect, and I&#x27;m always kind of captivated by it when I see it. His original paper on it[1] is from 2012; he&#x27;s produced a new paper[2] more recently that is more sophisticated but perhaps a bit harder to follow without a category-theory background.<p>[0]: <a href="https:&#x2F;&#x2F;pavpanchekha.com&#x2F;blog&#x2F;zippers&#x2F;derivative.html" rel="nofollow">https:&#x2F;&#x2F;pavpanchekha.com&#x2F;blog&#x2F;zippers&#x2F;derivative.html</a> [1]: <a href="https:&#x2F;&#x2F;citeseerx.ist.psu.edu&#x2F;document?repid=rep1&amp;type=pdf&amp;doi=389fd378c9fe9b17af2756eb484bb562fa7d638a" rel="nofollow">https:&#x2F;&#x2F;citeseerx.ist.psu.edu&#x2F;document?repid=rep1&amp;type=pdf&amp;d...</a> [2]: <a href="https:&#x2F;&#x2F;dl.acm.org&#x2F;doi&#x2F;abs&#x2F;10.1145&#x2F;3434290" rel="nofollow">https:&#x2F;&#x2F;dl.acm.org&#x2F;doi&#x2F;abs&#x2F;10.1145&#x2F;3434290</a>
评论 #39966463 未加载
dataflowabout 1 year ago
I&#x27;m not sure if they were unaware of it or just failed to mention it by this name, but &quot;max-plus algebra&quot; is a common term in the literature of systems here.
评论 #39886350 未加载
评论 #39886060 未加载
yu3zhou4about 1 year ago
A quite interesting read. It gave me Prolog vibes.