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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:19:48+00:00 2026-05-15T09:19:48+00:00

I’m developing a new language. My initial target was to compile to native x86

  • 0

I’m developing a new language. My initial target was to compile to native x86 for the Windows platform, but now I am in doubt.

I’ve seen some new languages target the JVM (most notable Scala and Clojure). Ofcourse it’s not possible to port every language easily to the JVM; to do so may lead to small changes to the language and it’s design.

After posing this question, I even doubted more about this decision. I now know some “pro” JVM arguments. The original question was: is targetting the JVM a good idea, when creating a compiler for a new language?

Updated the question: What are the disadvantages of targeting the JVM instead of x86 on Windows?

  • 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-15T09:19:48+00:00Added an answer on May 15, 2026 at 9:19 am

    Targeting the JVM is a pretty tried and tested approach. The fact that Clojure, Scala, JRuby and many other languages have done so successfully should give you some reassurance.

    My view overall is that the JVM is probably the best target at the moment for new/experimental languages, particularly if you hope to achieve cross platform capability while taking advantage of a truly fantastic JIT compiler and a wealth of very powerful libraries.

    Having said that, the main disadvantages you may encounter targeting the JVM are in my opinion as follows:

    • Lack of tail recursion support at the bytecode level. There are ways around this (e.g. see Clojure’s “recur” special form) but it is annoying for some language implementations, particularly functional languages. Will probably eventually be fixed in future versions of Java.

    • Slightly obvious, but you need a JVM installed on your client. Usually not a problem nowadays, but there are still cases where this can be tricky.

    • Primitives (int, long, float etc.) in Java behave differently from the rest of the object system. Again you can work around this but it is some extra hassle for language implementers.

    Some potentially useful/interesting links:

    • ASM bytecode analysis and manipulation framework. This is a great tool,
      I believe it is what what Clojure uses under the hood.

    • Clojure source code

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but
Seemingly simple, but I cannot find anything relevant on the web. What is the

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.