Page 1 of 1

Elixir

PostPosted: Sun Aug 17, 2014 3:19 pm
by ZenoArrow
I'm interested in running Elixir on the Parallella, which for those who don't know is a relatively new language that runs on the Erlang VM: http://elixir-lang.org/ Seems to strike a really good balance between performance and expressivity. The project is very close to it's 1.0 release, meaning the language will soon become a stable platform to work with:
http://elixir-lang.org/blog/2014/08/07/ ... -released/

Personally I'd like to develop a website using the Phoenix web framework, but I'm sure there are plenty of good uses for Elixir. Its concise enough to use as a scripting language (syntax was at least partly inspired by Ruby), and due to the way it is translated to Erlang before converted into bytecode it should be able to make use of the Epiphany-accelerated enhancements planned for Erlang (worth remembering that Ericsson, the company that started Erlang, have financially invested in Adapteva, which gives extra hope for improved Erlang on the Parallella... http://www.adapteva.com/news/carmel-ven ... -adapteva/ ): http://www.parallella.org/2013/02/04/pa ... roduction/

Reading around I think at the very least it's possible to get an older version of Elixir running on the Parallella, but I'm not sure if the latest version will run, which requires Erlang OTP 17.

Is there a build of OTP 17 that runs on the Parallella? Has anyone tried Elixir on the Parallella (or otherwise)?

Re: Elixir

PostPosted: Sun Sep 28, 2014 7:13 pm
by joekain
Hi ZenoArrow,

I'm not sure if you tried any Elixir on Parallella since your last post but I've just got this up and running today. I wasn't able to find a prebuilt binary of Erlang 17.3 for armhf so I ended up building it from source. The file HOWTO/INSTALL.md is quite helpful, but in summary I just needed to install a few packages and then run "./configure ; make -j 2 ; sudo make install".

Looking at my history I think I installed the following packages:'

* ncurses-devel
* libncurses5-dev
* libssl-dev

After Erlang 17.3 was installed I was able to install a precompiled release of Elixir 1.0.0.

I also tested Phoenix and the basic test page seems to work fine.

I don't think the Erlang implementation is taking advantage of Epiphany yet, but we have that to look forward to.

Re: Elixir

PostPosted: Mon Sep 29, 2014 2:05 am
by shr
Good to hear that you've got Elixir running on the Parallella. I'm pretty sure that taking advantage of the Epiphany currently requires writing C/C++/OpenCL code which could be invoked from Erlang/Elixir.