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

AlexMcConnell
The reason that Rails is as popular as it is is because it’s very easy for relatively inexperienced developers to get a lot of work done....
588 20046 166
New
pillaiindu
In django there is a cache framework backed by memcached. Rails also puts a lot of emphasis on caching, and even the idea of russian-doll...
New
rms.mrcs
A couple of days ago I was discussing with a friend about different approaches to write microservices. He said that if he was going to w...
New
Nvim
Elixir appears to be a superior language to Python. I don’t see any advantage of Python over Elixir. Are there any?
New
Fl4m3Ph03n1x
Background This question comes mainly from my ignorance. Today is Black Friday, one of my favorite days of the year to buy books. One boo...
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
Rustixir
Hi everyone, im working on find best language/framework/system for high concurrency, high performance and stable performance after wor...
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
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 54006 488
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
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