VOOZH about

URL: https://thenewstack.io/elixir-an-alternative-to-javascript-based-web-development/

⇱ Elixir: An Alternative to JavaScript-Based Web Development - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2025-06-13 11:00:16
Elixir: An Alternative to JavaScript-Based Web Development
Frontend Development / Programming Languages

Elixir: An Alternative to JavaScript-Based Web Development

Some frustrated JavaScript developers have turned to Elixir and its Phoenix framework. They claim it has faster development and lower costs.
Jun 13th, 2025 11:00am by Loraine Lawson
👁 Featued image for: Elixir: An Alternative to JavaScript-Based Web Development
Photo by Jan Ranft via Unsplash.

It may sound like heresy, but some developers regret their commitment to JavaScript. Brian Cardarella, the founder of web and mobile development firm DockYard, is one such developer.

“I’ve been in software development for over 30 years [and] I’ve seen this multiple times, where your technology decision will impact your productivity at the end of the day, especially as the application’s complexity grows in scale,” Cardarella told The New Stack. “In JavaScript, just the nature of it is such that it is very difficult to scale properly.”

That’s despite the community’s efforts, he added.

“The JavaScript community has done heroic work to try to work around JavaScript limitations, and it’s really impressive how that ecosystem has evolved and grown over the past 10 years,” he said. “But the underlying problem is really that the way that JavaScript manages memory and what it’s doing in terms of how you build applications — [it] is really going to scale out of control.”

Cardarella has seen businesses complain about development taking weeks or months to implement features that used to take a day or two, due to scaling issues. Meanwhile, he added, delivery goes down while the costs go up.

Cardarella solved his own JavaScript problems by switching to Elixir and the Elixir-based web development framework Phoenix, which is open source.

DockYard is the largest Elixir consultancy, according to Cardarella. Its client list includes Netflix, the NASDAQ and Adobe. Phoenix was created by Chris McCord right before he started working for DockYard. He spent six years with DockYard’s support developing the framework and a frontend framework called Phoenix LiveView.

Elixir: A Functional Language

JavaScript is a multi-paradigm programming model, meaning it supports multiple programming styles — including object-oriented, functional, and event-driven programming.

Elixir, by contrast, is a functional programming language. It changes functions, instead of data. Rather than altering the data, a functional program just adds more data. That was more of a challenge when compute was more expensive.

“Historically, functional programming has been less performant,” Cardarella said. That’s because it does memory copying or memory allocation, where new memory is created in functional programming.

“It says any values being passed in have to be copied, and then you’re working on a copy of that original value,” he said. “So there’s a cost for copying and in slower computing days, this cost was very, very obvious because the programs will run slower, require more memory, because you have duplication of certain values.”

“Elixir has so much data out there showing that it requires less people, has less costs, makes the really, really hard things in computer science easy to accomplish, but it doesn’t have the backing of a big company.”
– Brian Cardarella, founder of DockYard

It also handles garbage collection differently than JavaScript. Instead of a single, global garbage collector that might pause the entire application, each Elixir process has its own isolated heap and garbage collector. This means a long-running process doesn’t hog memory indefinitely without collection.

The result is a cleaner program with fewer side effects, he said. That means the developers can move faster and fix problems significantly faster, at a lower cost.

“Elixir has so much data out there showing that it requires less people, has less costs, makes the really, really hard things in computer science easy to accomplish, but it doesn’t have the backing of a big company,” he said. He pointed to a case study of the Bleacher Report.

The Bleacher Report, a division of Turner Sports, is the second-largest sports website in the world. It consulted with Erlang Solution to move off Rails and onto Phoenix.

“They were able to basically cut their team down to 10% of what it previously was, because they didn’t need that many people anymore,” Cardarello said.

They also went from 150 production servers down to only eight, according to the case study, and saw the following gains:

  • The ability to handle eight times the traffic without autoscaling;
  • 95th percentile latency hovered around 100ms and was not noticeably affected by traffic spikes due to breaking news or other events;
  • The time to add content to all streams went from 30-40 seconds to 3-4 seconds;
  • Resource-intensive features, previously requiring aggressive horizontal scaling, ran on about 1/10th of the servers with low CPU utilisation.

Warner Media later moved Bleacher Report off Elixir, which Cardarella (and this Reddit commenter) attributed to corporate politics.

Still, Elixir can be frustrating for those accustomed to JavaScript, Cardella said. For one, the syntax is significantly different. By contrast, Rust has been able to pull in many from the JavaScript community because there are facets of its syntax that feel familiar to JavaScript developers, he added.

Elixir Development Tools

In addition to the Phoenix framework for web development, McCord created Phoenix LiveView, which was released in version 1.0 in December. Phoenix LiveView leverages server-rendered HTML and Phoenix’s native WebSocket tooling to build real-time features.

Cardarella admitted in a blog post that, at first, he had a hard time seeing the value of LiveView.

“Around that time I had, internally, announced DockYard’s intention to distance ourselves from the Ember.js project,” he wrote. At the time, they were using Phoenix on the backend, but his announcement caused some concern within the company about it’s frontend specialization.”

“I saw the order of magnitude in developer productivity benefit that came from writing Elixir compared to any other language I’ve used in my career,” he said. “So I was looking for that replacement when Chris was building it right before my very eyes. Unfortunately, it was too close to my face and I’m too old to read something so close, so I spent a ton of money trying to compile Elixir to WebAssembly.”

What sold him on LiveView was how easy it made several key issues compared to JavaScript-based frontend development, he continued, including:

  • Managing application state;
  • Complexity with server-side rendering and application start time;
  • No complex compilation pipeline; and
  • Ecosystem stability. (“Admittedly, the JS ecosystem is somewhat less volatile than it was back in 2018,” he added.)

There’s also LiveView Native, a cross-platform open source framework for building native applications using the same code base as Phoenix LiveView. It allows developers to create native UIs with a single set of Elixir code, streamlining the development process and enabling faster release cycles.

If you’re interested, Elixirland has published a list of tools in the Elixir ecosystem.

The Politics of Web Development

Elixir is one of the great untold stories in technology, claims Cardarello. He says it’s overlooked because of political reasons, marketing reasons, financial backing or simply because people want to copy large companies.

“Generally, you think that software developers make the best technology decisions in what they’re doing, and that’s rarely the case,” he said. “Instead, what we tend to see is that the languages and the frameworks that end up being popular are popular for reasons that have nothing to do with their capabilities, … whereas something like Elixir is solving all these problems and allowing for orders of magnitude of productivity increase, but it hasn’t seen mass adoption yet.”

TRENDING STORIES
Loraine Lawson is a veteran technology reporter who has covered technology issues from data integration to security for 25 years. Before joining The New Stack, she served as the editor of the banking technology site Bank Automation News. She has...
Read more from Loraine Lawson
SHARE THIS STORY
TRENDING STORIES
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.