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

  • Home
  • SEARCH
  • 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 6348861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:30:17+00:00 2026-05-24T21:30:17+00:00

I don’t care much about garbage collection, if present it should be optional. The

  • 0

I don’t care much about garbage collection, if present it should be optional. The language D fits the bill but I am exploring other options. Surprising to me, this seems to be a sparsely populated spot among languages. I want something with which I can run things at 80% of the speed of C, if possible.

I also would like the language to have good support for multicores. Not necessarily via threads, but anything that does not involve lots copying. For example GNU’s parallel mode for libstdc++ is a reasonably good abstraction for me, but a little weak at giving pre-baked array primitives (this is not a complaint, it is not its job to give array primitives).

I suspect what I am driving at is a OCaMl like language with:

  1. good support for multidimensional arrays,
  2. no(or optional) garbage collection,
  3. parallel programming primitives for array intensive code,
  4. convenient C FFI,
  5. and with a reasonable chance of running at 80% of C speed.

I am not sure what tags to use so suggestions are welcome. I also want to make this a wiki, but not sure how to do it. I have heard of Felix but do not know if that would be appropriate here.

  • 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-05-24T21:30:18+00:00Added an answer on May 24, 2026 at 9:30 pm

    You’re pretty much describing D, especially if you have a long time horizon and are willing to wait for some stuff that’s in the works to fully pan out.

    1. Good support for multidimensional arrays: I’m mentoring a Google Summer of Code project focused on just that. It’s not polished and ready for prime time yet, but it’s already usable if you live on the bleeding edge. It also includes bindings to BLAS and LAPACK and expression templates and evaluators to provide a nice wrapper over these libraries.

    2. D’s default approach to memory management is garbage collection, but enough low-level facilities exist that you don’t have to use it where performance or space efficiency is a high priority. You have full access to the C standard library and can use C’s malloc and free directly. The ability to work with untyped blocks of memory also allows custom allocators to be implemented. Both I and the GSoC student I’m mentoring have been using a region allocator, which will be reviewed soon for inclusion in Phobos (the D standard library).

    3. Parallel programming: See the std.parallelism module of the standard library. It’s not geared specifically to array intensive code but it’s definitely usable for that purpose.

    4. D fully supports the C ABI. All you have to do is translate the header file and link in a C object file. There’s even a tool called htod that can automate the simple cases.

    5. D is currently somewhat slower than C because it hasn’t had years of work put into optimization, as the focus has been on features and bug fixes. However, it’s not far behind and almost all of the performance difference can be explained by a somewhat naive garbage collector and lack of aggressive inlining. If you avoid using the garbage collector in the most performance-critical parts of your code and manually inline a few functions here and there, it should be as fast as C.

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

Sidebar

Related Questions

Don't really know how to formulate the title, but it should be pretty obvious
Don't know much about encryption... Say I'm preparing a SAML request to submit to
(Don't care about the version. IE or not IE.)
Don't need to do this right now but thinking about the future... What would
Don't know how to google for such, but is there a way to query
I don't understand where the extra bits are coming from in this article about
I don't want PHP errors to display /html, but I want them to display
Don't ask why but I need to add class zebra to the <li> elements
Don't know if I worded the question right, but basically what I want to
(Don't know if this is strictly on-topic, but I don't see any better Stack

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.