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.

Show HN: Rhine – A typed Elixir-inspired language on LLVM

81 pointsby artagnonabout 9 years ago

5 comments

davidwabout 9 years ago
Building any language is hard, so congrats!<p>That said... the big thing about Elixir is that it&#x27;s got Erlang and OTP behind it.
评论 #11321571 未加载
pmontraabout 9 years ago
I gave quick look at the example. First reactions coming from OO languages and Elixir:<p>I can imagine that this<p><pre><code> def addCandidate(A ~Int, B ~Int) do </code></pre> means that addCandidate has two arguments of type Int, but what does the ~ mean? I&#x27;ll have to read the docs.<p>However I have really no idea of the meaning of<p><pre><code> def bar(arithFn ~Function(Int -&gt; Int -&gt; Int)) do </code></pre> It&#x27;s a function bar taking arithFn as argument, which is a function with... what arguments?<p>From the demo program it looks like a function with two int arguments returning an int, but why the -&gt; signs and why isn&#x27;t addCandidate defined as (Int -&gt; Int -&gt; Int) too? Where is it&#x27;s return type. Maybe inferred?<p>It&#x27;s quite puzzling and there are no explanations about that in the README.<p>Is the ~ necessary? Could it be removed and save one character that&#x27;s not even on some keyboards around the world?<p>Apart from that lack of explanations, it could a perfectly nice language and it&#x27;s a great project for sure.
评论 #11322852 未加载
评论 #11322945 未加载
评论 #11323079 未加载
AsyncAwaitabout 9 years ago
Nice project.<p>As was already mentioned, the main benefit of Elixir seems to come from BEAM, (Erlang VM) and its associated cockroach-like properties. There&#x27;s also Crystal (<a href="https:&#x2F;&#x2F;github.com&#x2F;crystal-lang&#x2F;crystal" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;crystal-lang&#x2F;crystal</a>), if what you want is a Ruby-inspired language with static typing and compilation to native code.
评论 #11323120 未加载
poriabout 9 years ago
&gt; Effort put into rhine-ml: 2 months<p>&gt; Effort put into rhine: 1 year, 1 month<p>Props for the effort put into this! I came across rhine-ml a while ago and thought it would have been a nice, native alternative to Clojure. Both of these projects look very well thought out.<p>Curious, is this a learning project? It seems that way considering you go into detail about the inner workings.
评论 #11323154 未加载
jupp0rabout 9 years ago
Does it have tail call elimination?
评论 #11323160 未加载