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 8861933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:36:20+00:00 2026-06-14T15:36:20+00:00

I like a lot the thread architecture of Erlang (small cheap threads and the

  • 0

I like a lot the thread architecture of Erlang (small cheap threads and the “share nothing” arhitecture), but it seems that Erlang is not perfectly suited for my application (these things would be more performant in C/C++, while Erlang is not best at that).

Well, as I already said, I REALLY like the thread architecture of Erlang (which isn’t using OS threads). So, my question is – is there any similar library which implements this architecture for usage in C/C++ code? As far as I’ve googles, couldn’t find anything better than “green threads” of Java (deprecated a long time ago and removed from current versions) and “fibers” of D (limited to one “real” thread, while Erlang threads are executed by Erlang on the most suitable “real” thread), which are somewhat similar, but not as powerful as Erlang threads.

If there is no such library, I am considering using the erl_nif interface for writing the needed chunks of code in C/C++. But I couldn’t find anywhere any performance analysis – is erl_nif is fast, or the overhead of “transforming” the Erlang terms/datatypes into C/C++ types is really big?

Thanks!

  • 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-14T15:36:22+00:00Added an answer on June 14, 2026 at 3:36 pm

    Akka offers Erlang style actors but for Java/Scala, not C/C++.

    From what I’ve read (e.g. http://www.scribd.com/doc/87376094/Erlang-and-OTP-in-Action#outer_page_324), NIFs are fast but potentially dangerous in that they can crash your whole Erlang program. You could try using Erlang ports (http://www.erlang.org/doc/reference_manual/ports.html) to communicate with C/C++, which is safer as the port keeps the non-Erlang code separate from the Erlang supervision tree.

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

Sidebar

Related Questions

It seems like there is a lot of questions like this, but cant find
Now this might look like a duplicate thread, but my question is that I
From lot of threads, like this one, I have found that C# int/float are
It seems like a lot of people here and on many programmer wikis/blogs/ect. elsewhere
So it seems like a lot of people are playing the blame game around
I like vectors a lot. They're nifty and fast. But I know this thing
I stumbled over node.js sometime ago and like it a lot. But soon I
I have an erlang project that makes a lot of concurrent SOAP requests to
I have a thread that is doing some processing. I would like to be
In spring, I have a lot of code that uses session beans defined like

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.