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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T18:18:30+00:00 2026-06-18T18:18:30+00:00

Why does Erlang have a C NIF drop-in replacement for malloc , enif_alloc ,

  • 0

Why does Erlang have a C NIF drop-in replacement for malloc, enif_alloc, but not calloc? Thereby forcing one to use memset() after enif_alloc for array access.

  • 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-18T18:18:31+00:00Added an answer on June 18, 2026 at 6:18 pm

    Well, I assume this has to do with the fact (from documentation):

    “NIFs where introduced in R13B03 as an experimental feature.”

    On a side note, the Erlang review board is also quite conservative, probably due to the history of being born from a telelcom company, and that is understandable for fault tolerant languages.

    I guess I don’t see the problem you have since you are always welcome to write a proper port using calloc() and use the old marshaling methods.
    http://www.erlang.org/doc/tutorial/erl_interface.html

    Happy C coding!

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

Sidebar

Related Questions

Why would one use void *enif_alloc(size_t size) as opposed to void *malloc(size_t size); when
Does the erlang TCP/IP library have some limitations? I've done some searching but can't
Erlang seems to be very low level and performant on networks, but does not
I have a basic client server in erlang which uses tcp. How does one
Does anybody know good and production ready serialization library for Erlang? I have tried
I have this Erlang code: not lists:any(fun(Condition) ->Condition(Message) end, Conditions). Can anyone please explain
Does anyone have a good way to escape html tags in erlang (as for
Does Erlang R15B02 have support for hybrid heap? I run configure --enable-hybrid-heap blabla... and
I have read one of erlang's biggest adopters is the telecom industry. I'm assuming
If I use erlang as say a spawner process, it does major functions things

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.