sashaafm

sashaafm

ElixirScript - Elixir to Javascript transpiler

Isn’t there an Elixirscript project or something similar? I think I read something about that some time ago.

Most Liked

AstonJ

AstonJ

Yep there is ElixirScript - here’s the Getting Started guide.

NobbZ

NobbZ

There was something (don’t remember exact name) what was supposed to transpile Elixir into JavaScript, but it had some problems I did not came around.

  • The necessary “runtime” was not created when compiling modules, one had to copy it manually from the source folder of that project
  • There was a missive boilerplate code involved to actually transfer the most simple datatypes (as in atoms, lists, and tuples) between Elixir on the server side and the Elixir-To-JavaScript in the Browser.
  • There was a massive performance overhead for even simplest loops that just throw a message into the log. (A simple loop throwing 1k lines of text into the console ran about only 20% of the speed of native JS)
uranther

uranther

I agree with you here. I would much rather write Elixir through-and-through. However, it will need some JavaScript library support, namely React.js and Bootstrap. Clojure(Script) is able to do this with much success: Om, an implementation of React in ClojureScript, actually benchmarks twice as fast as React.js itself! Until ElixirScript gains some momentum, I agree in that Elm is the next best thing.

I wasn’t aware of these specific problems with ElixirScript, but I figured as much, as it’s a relatively new project. I heard from a fella at ElixirDaze that his company in New Orleans is trying to hire the ElixirScript guy, so maybe he will have more time to work on it in the future.

Perhaps we can fork this thread to an ElixirScript discussion thread. :slight_smile:

Last Post!

AstonJ

AstonJ

Now available via Homebrew (Mac)

https://twitter.com/ktec/status/709405860662026241

Where Next?

Popular in Discussions Top

PragTob
Hey everyone, this has been on my mind for some time and I’d love your input on it! TLDR: I feel like maps are superioer for storing and...
New
Crowdhailer
I’ve been hearing much about the new formatter and it’s something I have been keen to try. I find examples buy far the most illuminating...
248 19740 150
New
acrolink
How does the two languages compare when it comes to server side application development? Any experiences or ideas? Thank you.
New
pdgonzalez872
If this has been asked here before, please point me to where it was asked as I didn’t find it when I searched the forum. Maybe a mailing ...
New
AstonJ
If so I (and hopefully others!) might have some tips for you :slight_smile: But first, please say which area you’re finding most challen...
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New
klo
Got a question about when to concat vs. prepending items to list then reversing to achieve appending. So i know lists boil down to [1 | ...
New

Other popular topics Top

Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3271 130286 1222
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New
AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New

We're in Beta

About us Mission Statement