Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Writing a Programming Language in Perl

by Fieldrunner (Initiate)
on Oct 25, 2011 at 20:55 UTC ( [id://933703]=note: print w/replies, xml ) Need Help??


in reply to Writing a Programming Language in Perl

progammer99,

Your question reminded me of the time my brother offered the solution "just rewrite command.com".

The code script or snippet we create is compiled with our perl program (typically /usr/bin/perl)

As a humble monk I just wish to point out, it is not a function of Perl to create a New language as it is one itself.

I wish you the best on this truly amazing task and one day look forward to seeing it used globally.

  • Comment on Re: Writing a Programming Language in Perl

Replies are listed 'Best First'.
Re^2: Writing a Programming Language in Perl
by anneli (Pilgrim) on Oct 25, 2011 at 22:03 UTC

    As a humble monk I just wish to point out, it is not a function of Perl to create a New language as it is one itself.

    If this was true, then what would you make a new language in?

    We have only the languages we currently possess in which to make new ones.

      Don't you know? Languages were created fully-formed by the divine! ;)

      anneli,

      I am sure others are more sage, I believe that if you write in a language you create an application or program. So not matter what you wrote in Perl it would still be Perl.

      I believe you would need to create a new compiler with or without a scripting interface to pass instructions directly to the processor.

      Perl Programming is so more rewarding than SUDOKU, its $var is only (1..9)

        The argument quickly becomes: if you wrote it in Perl it would still be C. A language is just a set of grammar, instructions, and symbols. At what level it reaches the processor is something of an implementation detail really. Witness the various flavors of Perl 6 so far. A language with a specification is a language whether or not it's entirely translated from the written page to something executable outside a developer's brain.

        Hi Fieldrunner;

        I believe that if you write in a language you create an application or program. So not matter what you wrote in Perl it would still be Perl.

        Your program is in Perl, yes. But not the code written in the language your Perl program is interpreting or compiling. Everything is written in something else.

        I believe you would need to create a new compiler with or without a scripting interface to pass instructions directly to the processor.

        This isn't how Perl is done, so how can you call it a language? :D Nothing passes instructions to the processor these days; even C goes through several transformations before it becomes assembly, and then even assembly is transformed (not trivially!) to opcodes.

        The truth is, these are all just implementation details. It doesn't matter how the language interpretation takes place; only how it is interpreted semantically—i.e. what meaning you give to it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://933703]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-24 06:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found