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.

The Egison Programming Language

79 pointsby afshinmehalmost 7 years ago

9 comments

vosperalmost 7 years ago
&gt; Egison is a programming language that realizes non-linear pattern-matching against non-free data types.<p>It&#x27;s a what? Can someone ELI5 this for a lowly Python and JS dev - why would I want this?<p>----<p>I watched a talk about Scala&#x27;s future [0] recently, in which the presenter compared the taglines of a few different languages (Go, Rust, Erlang, Scala), and how they relate to business pains or non-academic problems.<p>His conclusion about Scala&#x27;s tagline - &quot;Scala combines object-oriented and functional programming in one concise, high-level language&quot; is that &quot;no engineering manager in the history of software development ever thought to themselves &#x27;hmmm, if only I had a language that fused OO and FP, I&#x27;d be able to solve my business problems&#x27;. That hasn&#x27;t happened; that will never happen. This is an academic novelty that has zero relevance to any of us as professional software developers [...] this is not a business pain, this is an academic interest.&quot;<p>I felt a little bit like that when I read Egison&#x27;s tagline: why should I care about this language?<p>[0] &quot;The Last Hope for Scala&#x27;s Infinity War&quot; <a href="https:&#x2F;&#x2F;youtu.be&#x2F;v8IQ-X2HkGE?t=15m8s" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;v8IQ-X2HkGE?t=15m8s</a>
评论 #17525974 未加载
评论 #17525807 未加载
评论 #17526139 未加载
评论 #17527244 未加载
nerdponxalmost 7 years ago
<i>Express Intuition Directly with Essentially New Syntax</i><p><i>Egison makes programming dramatically simple!</i><p><pre><code> (define $twin-primes (match-all primes (list integer) [&lt;join _ &lt;cons $p &lt;cons ,(+ p 2) _&gt;&gt;&gt; [p (+ p 2)]])) </code></pre> Uh, ok?
评论 #17525810 未加载
评论 #17525877 未加载
chengloualmost 7 years ago
I’ve been casually following Egison for a while now. Its customizable pattern matching is really cool. Unfortunately I do think the lisp syntax does turn some folks off; whether this set of folks overlaps with those who would be interested in Egison otherwise, is another question.<p>I’ve also noticed that it “pivoted” to focus more on math; is that intentional?<p>Anyway, good to see it on HN again. Anything that pushes more pattern matching research is a plus for me =). Mainstream languages barely started to adopt first-order pattern matching!
评论 #17529161 未加载
mapcarsalmost 7 years ago
Looks like a lisp dialect, why is it a separate language?
评论 #17524911 未加载
评论 #17525204 未加载
amckinlayalmost 7 years ago
This looks like an intruiging alternative to Julia. Last time I tried Julia, effecient multidimensional code generation was incomplete due to required work in the type system. I wonder how Egison&#x27;s performance matches it&#x27;s expressiveness.
评论 #17527075 未加载
bcheungalmost 7 years ago
I love how it matches so much more. It would take me some time wrap my head around the new possibilities.<p>I doubt I have time to learn this or use it but it would be cool to see a list of examples of things that are much more concise and elegant in this language so that it expands my thinking. Is there a list of examples with comparisons to traditional languages?
nikofeynalmost 7 years ago
interesting about the math integration with tensors and differential forms. gonna have to read the linked paper.
评论 #17527637 未加载
kamyargalmost 7 years ago
Your syntax is bad and you should feel bad.<p>Mandatory XKCD: <a href="https:&#x2F;&#x2F;xkcd.com&#x2F;297&#x2F;" rel="nofollow">https:&#x2F;&#x2F;xkcd.com&#x2F;297&#x2F;</a>
Pica_soOalmost 7 years ago
Is there a academic language which focuses solely on performance and optimization- by building the program and data structures around the hot-loop and optimal cache usage? Something Mike Acton would create if he wrote compilers?
评论 #17527796 未加载