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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:13:53+00:00 2026-06-18T02:13:53+00:00

I have to create a new language and a compiler for that language for

  • 0

I have to create a new language and a compiler for that language for a class I’m taking this semester – this means the deadline is in about 3.5 months. I have read that OCaml is one of the better languages to write a compiler in, but I have no previous experience with it. My question is thus as follows: would it be a better idea for me to try to create the compiler with languages I already know well (Java, C, C++), or devote some time to learning OCaml and use it instead?

  • 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-18T02:13:54+00:00Added an answer on June 18, 2026 at 2:13 am

    It depends of how you evaluate the interest of each choice.

    If your aim is to finish your course project as quickly as possible, sticking to a tool you already know well is probably the best choice. The language is important and I do believe that ML languages are most adapted to write compilers, but on a short scale being comfortable with the language, tools, error messages, and common idioms will probably trumps language-related productivity benefits. Or at least among garbage-collected languages; you can be efficient with C but you have to know the language very well (and in that case probably wouldn’t lump it among C++ and Java).

    If you are interested in building compilers, and more generally language tools, or study programming languages after the end of your course, learning a statically typed functional language is certainly a worthwhile investment, and a compiler course is an excellent excuse to do that.

    Edit: some pointers

    rgrinberg’s helpful comment reminds me to point you to MinCaml as one possible source of inspiration.

    My first thought was the “Compiler Implementation in {C,Java,ML}” books by Andrew Appel but, as the Amazon comments put it, this book is too advanced to be used as an introduction either to compilers or to ML.

    Andrej’s Bauer Programming Language Zoo is also a great resource, but it is more oriented towards discovery of a wide variety of programming languages by interpreter implementation than compilation per se (though some of the zoo animals are compiled to abstract machines).

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

Sidebar

Related Questions

This post is incorrectly tagged 'send' since I cannot create new tags. I have
I am new to this fancy language called Scala. I have enough (I guess)
When I create a new project in Aptana/Eclipse I have to specify that my
I have a Create new account page. The form is in page named Register.php
I have to create new Report from existing report in SQL Server Reporting service,
I wanted to know if I have to create a new ViewController for each
I am new to iphone.I have a small doubt (i.e),I have create a table
I have tableview, where create new rows and set them layout manually. In every
i have written insert query for my application to create new user with password,
I have a Excel sheet with two columns and I need to create new

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.