Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
What is the "other contender" other than C?

Given it's immaturity and the learning curve it has, it wasn't a contender when Parrot was started, but I think that with the advent of a GCC backend running on Linux, Digital Mars D, shows considerable promise for future cross-platform projects.

It has everything you need from C, low-level access to the hardware including inline assembler support, fast optimising compiler etc. It also has built-in memory management & garbage collection, objects, strings, hashes, types, contracts, templates, mixins, etc. etc. and can link directly to C code without requiring "wrappers". Or, all the good bits from C++ without the anachronisms or complexity.

I was wondering ... that maybe it could be bootstrapped as the parser and emit Parrot code

From what I've seen and understood, it almost certainly could produce Parrot code directly. The only downside of that is the 40 MB download of GHC.

Then again, if it gets competent enough that it could be used to write the P6 compiler in P6, you could end up with it generating a P6 compiler that could compile itself?. Such things have been done before.


Examine what is said, not who speaks.
Silence betokens consent.
Love the truth but pardon error.

In reply to Re^4: Questions wanted for Pugs/Perl6 by BrowserUk
in thread Questions wanted for Pugs/Perl6 by audreyt

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-29 05:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found