TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Programming languages to watch: LiveScript, Julia, Elixir

235 点作者 philippelh将近 12 年前

24 条评论

enobrev将近 12 年前
This may possibly be intentional, but seems a bit confusing. The original name of Javascript was LiveScript when initially released with Netscape in the 90s.<p><a href="http://en.wikipedia.org/wiki/JavaScript#Birth_at_Netscape" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;JavaScript#Birth_at_Netscape</a><p>Edit: It seems it is intentional:<p>&quot;LiveScript was one of the original names for JavaScript, so it seemed fitting. It&#x27;s an inside joke for those who know JavaScript well.&quot;<p><a href="http://livescript.net/#name" rel="nofollow">http:&#x2F;&#x2F;livescript.net&#x2F;#name</a>
评论 #6174051 未加载
评论 #6172865 未加载
gordonguthrie将近 12 年前
If you are into functional programming and new functional languages we have a good little conference called Mostly Functional going on @ Turing<p><a href="http://mostlyfunctional.com" rel="nofollow">http:&#x2F;&#x2F;mostlyfunctional.com</a><p>We have two presentations on languages targeting the Erlang VM, Elixir and Joxa, as well as other goodness...<p>(Disclaimer, I am the organiser)
评论 #6173169 未加载
评论 #6173445 未加载
评论 #6175901 未加载
lubomir将近 12 年前
What this article calls currying is actually partial application.<p>Partial application is a technique where you take a function that requires n arguments, pass in the first one and get a function that needs n-1 arguments.<p>Currying is a technique where you take a function that takes n arguments and turn it into a function that can be partially applied. E.g. in Haskell it works with tuples as arguments. There is function &#x27;curry :: ((a, b) -&gt; c) -&gt; (a -&gt; b -&gt; c)&#x27; and its counterpart &#x27;uncurry :: (a -&gt; b -&gt; c) -&gt; ((a, b) -&gt; c)&#x27;.
评论 #6173217 未加载
why-el将近 12 年前
Just for the record, Elixir was favourably reviewed by the creator of Erlang itself.[1]<p>[1]<a href="http://joearms.github.io/2013/05/31/a-week-with-elixir.html" rel="nofollow">http:&#x2F;&#x2F;joearms.github.io&#x2F;2013&#x2F;05&#x2F;31&#x2F;a-week-with-elixir.html</a>
gnosis将近 12 年前
To me, much more interesting than <i>&quot;a language targeting the Erlang VM.. [that] mostly imports Erlang&#x27;s syntax&quot;</i> is:<p>Lisp Flavoured Erlang:<p><a href="http://www.trapexit.org/forum/viewtopic.php?p=40268" rel="nofollow">http:&#x2F;&#x2F;www.trapexit.org&#x2F;forum&#x2F;viewtopic.php?p=40268</a>
评论 #6173224 未加载
laureny将近 12 年前
Of all the &quot;Javascript.next&quot; languages I hear on a regular basis, it seems to me Microsoft&#x27;s Typescript is the one most likely to become successful, if only because every time I read an article about it, most of the comments are extremely positive about it and it looks like there are already some fairly large projects written in it.<p>In comparison, I don&#x27;t see a bright future for Dart nor Livescript (although I secretly root for Dart because I have more confidence in Google to take this language somewhere interesting).
terhechte将近 12 年前
I really like Julia. I&#x27;m currently playing around with it whenever I find some spare time. I don&#x27;t see it as a competitor to R, I think it could well be something along the lines of Python or Go.<p>It is LLVM based, and already really fast even though it is still a 0.2 and the JIT seems to have a lot of room for optimisation.<p>Whats more, it seems to offer just the right blend of language features: - Easily include C libraries via a simple ffi [1] - It is homoiconic like Lisp and thus allows for fantastic macro facilities [2]<p>- It has solid parallel programming support via a Coroutines implementation (Tasks) (similar to Goroutines as far as I can tell)<p>- It is a non-pure functional language<p>- In contrast to Go it has generics, so functional constructs like map, apply, drop, reduce, fold, partition &amp; friends are already in there (or can easily be implemented) [3]<p>- It has optional types, so that you <i>can</i> assign types and the compiler will check for it and mark errors and will be able to create optimised code, but you don&#x27;t have to [4]<p>- Running external programs is a joy [5] (Example: a=readall(`echo hello`))<p>The community seems to be very alive. There&#x27;s a simple web framework called &quot;Morsel&quot; and I&#x27;ve recently set it up against a couple of contenders from the web framework benchmark (cpoll-cppsp, phreeze, and some others), and even though it is still a version 0.2, the performance for the json serialization benchmark would be pretty close to Scalatra (I yet have to publish these numbers, will do so soon).<p>I really hope that Julia will grow, as I love the choices that went into the design of the language, and it would be a shame if it would be only a replacement for R instead of something much bigger, as it is such a nice language.<p>[1] <a href="http://docs.julialang.org/en/latest/manual/calling-c-and-fortran-code/" rel="nofollow">http:&#x2F;&#x2F;docs.julialang.org&#x2F;en&#x2F;latest&#x2F;manual&#x2F;calling-c-and-for...</a><p>[2] <a href="http://docs.julialang.org/en/latest/manual/metaprogramming/" rel="nofollow">http:&#x2F;&#x2F;docs.julialang.org&#x2F;en&#x2F;latest&#x2F;manual&#x2F;metaprogramming&#x2F;</a><p>[3] <a href="http://docs.julialang.org/en/latest/stdlib/base/#general-collections" rel="nofollow">http:&#x2F;&#x2F;docs.julialang.org&#x2F;en&#x2F;latest&#x2F;stdlib&#x2F;base&#x2F;#general-col...</a><p>[4] <a href="http://docs.julialang.org/en/latest/manual/types/" rel="nofollow">http:&#x2F;&#x2F;docs.julialang.org&#x2F;en&#x2F;latest&#x2F;manual&#x2F;types&#x2F;</a><p>[5] <a href="http://docs.julialang.org/en/latest/manual/running-external-programs/" rel="nofollow">http:&#x2F;&#x2F;docs.julialang.org&#x2F;en&#x2F;latest&#x2F;manual&#x2F;running-external-...</a>
评论 #6173458 未加载
评论 #6172975 未加载
评论 #6173469 未加载
评论 #6173412 未加载
评论 #6175741 未加载
评论 #6177850 未加载
评论 #6172838 未加载
noelwelsh将近 12 年前
Nice selection.<p>Livescript looks like it fixes some of the warts of Coffeescript while also raising the level of abstraction.<p>Julia is something I&#x27;ve already been looking at. I&#x27;m a bit torn on it -- it has vastly fewer libraries than Scipy and R so I don&#x27;t know if I&#x27;m ready to &quot;wear the hair shirt&quot;. At this point in life I&#x27;m more concerned with doing stuff with existing libraries than building the libraries myself.<p>Elixir I&#x27;m less excited about, because I&#x27;m not so excited about Erlang. I feel that Scala provides all of what I&#x27;d want from Erlang, along with better sequential performance.
评论 #6173329 未加载
AndyKelley将近 12 年前
Shameless plug: My 2d canvas-based game engine supports LiveScript out of the box: <a href="https://github.com/superjoe30/chem/" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;superjoe30&#x2F;chem&#x2F;</a>
评论 #6173864 未加载
sinkasapa将近 12 年前
I hope that some Elixir features make it in to Erlang but I guess I&#x27;m one of those rare people that likes the Erlang syntax a lot better. I don&#x27;t really understand the hate for it, it seems so clear and specific. Anyway, if people want choices for an Erlang like experience, without the Prolog syntax, check out LFE:<p><a href="https://github.com/rvirding/lfe" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rvirding&#x2F;lfe</a>
评论 #6177897 未加载
oinksoft将近 12 年前
<p><pre><code> Some other cool features of Elixir: ... * List comprehensions </code></pre> I&#x27;d just like to point out that Erlang has list comprehensions as well.
评论 #6173017 未加载
评论 #6173109 未加载
_sh将近 12 年前
The language I&#x27;m most interested in currently is kernel: mathematically underpinned by the vau calculus, with a smart creator and steward, and a better abstract model for macros than even Racket&#x27;s stellar syntax-parse. Implementations abound.<p><a href="http://en.wikipedia.org/wiki/Kernel_(programming_language)" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Kernel_(programming_language)</a>
评论 #6182454 未加载
ambirex将近 12 年前
When looking at languages like LiveScript (or CoffeeScript) I say to myself: &quot;Javascript has been around for 18 years, how long will this be around for?&quot;<p>Not saying not to use it, but my use case has to overcome that question.
评论 #6172934 未加载
评论 #6172791 未加载
评论 #6172930 未加载
评论 #6173137 未加载
bayesianhorse将近 12 年前
Julia is in a weird place. It improves in speed over R and Python, but the head start of both of these languages is strong. Also it will be some time until julia can provide equivalent support for GUI and Web programming.
评论 #6173311 未加载
acjohnson55将近 12 年前
How is currying better than partial function application (particularly with keyword arguments)? If your function isn&#x27;t commutative, then it seems to give greater importance&#x2F;flexibility to the first arguments.
评论 #6173626 未加载
评论 #6173272 未加载
kenjackson将近 12 年前
I&#x27;ve been playing with TypeScript a fair bit lately. Really like it: <a href="http://www.typescriptlang.org/" rel="nofollow">http:&#x2F;&#x2F;www.typescriptlang.org&#x2F;</a><p>Haven&#x27;t used LiveScript yet.
评论 #6173979 未加载
pc86将近 12 年前
As someone who has just this week started serious study of Erlang, I&#x27;ll have to look at Elixir as well. Ending statements with periods does take some getting used to!
lsdr将近 12 年前
Have yet to take a look in Julia, but I&#x27;ve been playing around with Elixir for a while and looks great. Elixir macros particularly got my attention:<p><a href="http://elixir-lang.org/getting_started/5.html" rel="nofollow">http:&#x2F;&#x2F;elixir-lang.org&#x2F;getting_started&#x2F;5.html</a><p>There is a book on Elixir coming out from Pragmatic Programmers sometime and will be written by Dave Thomas, which might generate a certain buzz too. This may be a good time to dive into it a bit more.
santialbo将近 12 年前
LiveScript looks amazing. I love how much F#-y looks. I&#x27;m definitely going to start using it for personal projects.
gpsarakis将近 12 年前
Julia and Elixir definitely seem worth checking. I especially like the interchangeability between Erlang &amp; Elixir.
stewbrew将近 12 年前
What features do these languages offer that make it worth watching them? Neither of them seems to offer anything novel.
nnq将近 12 年前
I really hope people would promote Livescript or GorillaScript more, as better compile-to-js languages.<p>...Coffeescript stole the spotlight and nobody wants to hear about anything else, but it&#x27;s mediocre and boring language-wise!
评论 #6174523 未加载
ilaksh将近 12 年前
Also check out ToffeeScript.
评论 #6177005 未加载
kldavenport将近 12 年前
What about R?
评论 #6177246 未加载