Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8915887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:05:39+00:00 2026-06-15T05:05:39+00:00

While considering alternatives for Java for a distributed/concurrent/failover/scalable backend environment I discovered Erlang. I’ve

  • 0

While considering alternatives for Java for a distributed/concurrent/failover/scalable backend environment I discovered Erlang. I’ve spent some time on books and articles where nearly all of them (even Java addicted guys) says that Erlang is a better choice in such environments, as many useful things are out of the box in a less error prone way.

I was sure that Erlang is faster in most cases mainly because of a different garbage collection strategy (per process), absence of shared state (b/w threads and processes) and more compact data types. But I was very surprised when I found comparisons of Erlang vs Java math samples where Erlang is slower by several orders, e.g. from x10 to x100.

Even on concurrent tasks, both on several cores and a single one.

What’s the reasons for that? These answers came to mind:

  • Usage of Java primitives (=> no heap/gc) on most of the tasks
  • Same number of threads in Java code and Erlang processes so the actor model has no advantage here
  • Or just that Java is statically typed, while Erlang is not
  • Something else?

If that’s because these are very specific math algorithms, can anybody show more real/practice performance tests?

UPDATE: I’ve got the answers so far summarizing that Erlang is not the right tool for such specific “fast Java case”, but the thing that is unclear to me – what’s the main reason for such Erlang inefficiency here: dynamic typing, GC or poor native compiling?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T05:05:40+00:00Added an answer on June 15, 2026 at 5:05 am

    Erlang was not built for math. It was built with communication, parallel processing and scalability in mind, so testing it for math tasks is a bit like testing if your jackhammer gives you refreshing massage experience.

    That said, let’s offtop a little:
    If you want Erlang-style programming in JVM, take a look at Scala Actors or Akka framework or Vert.x.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I developed a flashcard program a while back for learning Japanese. I've been considering
I started learning JavaScript a while ago. It's a fairly easy programming language considering
while looking at some code I stumbled onto: throw /*-->*/new std::exception (//... and I
While considering another problem one question appeared. I do not know how to write
I'm considering doing some Linux kernel and device driver development under a vmware VM
I'm considering starting iOS development as a hobby and would like to save some
We have some systems in Micro Focus Cobol.Net which we are considering converting to
I would like to determine whether a list contains any duplicate elements, while considering
Background I am considering various architecture options. While I have used SQL over the
I am considering building a Java EE based set of services and licensing these

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.