Re: Best language for implementing compilers?

Bart <bc@freeuk.com>
Sat, 9 Mar 2019 12:34:22 +0000

          From comp.compilers

Related articles
[9 earlier articles]
Re: Best language for implementing compilers? 157-073-9834@kylheku.com (Kaz Kylheku) (2019-02-12)
Re: Best language for implementing compilers? drb@ihatespam.msu.edu (2019-02-19)
Re: Best language for implementing compilers? martin@gkc.org.uk (Martin Ward) (2019-02-19)
Re: Best language for implementing compilers? arnold@skeeve.com (2019-02-20)
Re: Best language for implementing compilers? mertesthomas@gmail.com (2019-03-09)
Re: Best language for implementing compilers? DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2019-03-09)
Re: Best language for implementing compilers? bc@freeuk.com (Bart) (2019-03-09)
Re: Best language for implementing compilers? gneuner2@comcast.net (George Neuner) (2019-03-09)
Re: Best language for implementing compilers? gneuner2@comcast.net (George Neuner) (2019-03-09)
Re: Best language for implementing compilers? 157-073-9834@kylheku.com (Kaz Kylheku) (2019-03-10)
Re: Best language for implementing compilers? 157-073-9834@kylheku.com (Kaz Kylheku) (2019-03-10)
Re: Best language for implementing compilers? christopher.f.clark@compiler-resources.com (Christopher F Clark) (2019-03-10)
Re: Best language for implementing compilers? bc@freeuk.com (Bart) (2019-03-10)
[8 later articles]
| List of all articles for this month |

From: Bart <bc@freeuk.com>
Newsgroups: comp.compilers
Date: Sat, 9 Mar 2019 12:34:22 +0000
Organization: virginmedia.com
References: 19-02-002 19-02-004 19-02-006 19-03-002
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="90944"; mail-complaints-to="abuse@iecc.com"
Keywords: lex, python, comment
Posted-Date: 09 Mar 2019 20:29:06 EST
In-Reply-To: 19-03-002
Content-Language: en-GB

On 09/03/2019 06:47, mertesthomas@gmail.com wrote:
> On 2019-02-12 15:43:46 UTC+1 Bart wrote:
>> On 08/02/2019 23:36, George Neuner wrote:
>>> On Fri, 8 Feb 2019 12:20:18 +0000, "Costello, Roger L."
>>> <cost...@mitre.org> wrote:
>>>
>>>> What is it about ML that makes it such a good language for implementing
>>>> compilers?
>>>
>>> Compiling involves a lot of pattern matching, and pattern matching is
>>> a native feature of ML.
>>
>> You mean for tokenising and parsing? That would be a small part of
>> compilation (the easy bit, in my view), although it seems to be a
>> preoccupation of this group.
>
> Agree. Pattern matching might help a little during tokenising,
> but I have doubts that it leads to a fast tokenizing function.


In one exchange on comp.lang.python a few years ago, I posted a highly
un-Pythonic and generally derided tokeniser program.


However it turned out to be faster than someone else's more elegant
tokeniser based on regular expressions.


And that was despite the regular expression library being implemented (I
would presume) in compiled native code. Mine would have been mostly
byte-code.
[Python's REs are not particularly fast. Perl's seem about twice as fast. -John]


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.