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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:14:49+00:00 2026-05-16T23:14:49+00:00

Is it possible to design something like Ruby or Clojure without the significant performance

  • 0

Is it possible to design something like Ruby or Clojure without the significant performance loss in many situations compared with C/Java? Does hardware design play a role?

Edit: With significant I mean in an order of magnitudes, not just ten procent

Edit: I suspect that delnan is correct with me meaning dynamic languages so I changed the title

  • 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-16T23:14:49+00:00Added an answer on May 16, 2026 at 11:14 pm

    Performance depends on many things. Of course the semantics of the language have to be preserved even if we are compiling it – you can’t remove dynamic dispatch from Ruby, it would speed things up drmatically but it would totally break 95% of the all Ruby code in the world. But still, much of the performance depends on how smart the implementation is.

    I assume, by “high-level”, you mean “dynamic”? Haskell and OCaml are extremely high-level, yet are is compiled natively and can outperform C# or Java, even C and C++ in some corner cases – especially if parallelism comes into play. And they certainly weren’t designed with performance as #1 goal. But compiler writers, especially those focused onfunctional languages, are a very clever folk. If you or I started a high-level language, even if we used e.g. LLVM as backend for native compilation, we wouldn’t get anywhere near this performance.

    Making dynamic languages run fast is harder – they delay many decisions (types, members of a class/an object, …) to runtime instead of compiletime, and while static code analysis can sometimes prove it’s not possible in lines n and m, you still have to carry an advanced runtime around and do quite a few things a static language’s compiler can do at compiletime. Even dynamic dispatch can be optimized with a smarter VM (Inline Cache anyone?), but it’s a lot of work. More than a small new-fangeled language could do, that is.

    Also see Steve Yegge’s Dynamic Languages Strike Back.

    And of course, what is a significant peformance loss? 100 times slower than C reads like a lot, but as we all know, 80% of execution time is spent in 20% of the code = 80% of the code won’t have notable impact on the percieved performance of the whole program. For the remaining 20%, you can always rewrite it in C or C++ and call it from the dynamic language. For many applications, this suffices (for some, you don’t even need to optimize). For the rest… well, if performance is that critical, you should propably write it in a language designed for performance.

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

Sidebar

Related Questions

Is it possible to design something like this using Grid in WPF? Design columns
Possible Duplicate: What is so bad about Singletons? It's understandable that many design patterns
I know something like this is possible, I'm pretty sure I'm just wording it
I have in mind a design problem that does not look like complex, but
Suppose I want to design an Ecore metamodel that looks something like this, designed
I need to create a enum value something like this' DESIGN & BUILD'. I
For my design i have in the xml file something like: The design is
I am having trouble deciding between two possible design choices. I have a web
Is it possible to design a metro styled winform in visual studio 10 or
I am developing a javascript application in which it is possible to design your

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.