Compiling to Parrot

2003-01-21 Thread K Stol
Hi there, A few weeks ago I posted something about a Tcl->parrot compiler, but Will Coleda already was working on such a project. It would be a as a final project for my bachelor's. But because such already exists, I'm looking for something else. I think parrot is a cool target for compiling, a

Re: Compiling to Parrot

2003-01-21 Thread Simon Wistow
On Tue, Jan 21, 2003 at 09:17:56AM +0100, K Stol said: > A few weeks ago I posted something about a Tcl->parrot compiler, but Will Coleda >already was working on such a project. It would be a as a final project for my >bachelor's. But because such already exists, I'm looking for something else.

Re: Compiling to Parrot

2003-01-21 Thread Leon Brocard
K Stol sent the following bits through the ether: > A few weeks ago I posted something about a Tcl->parrot compiler, but > Will Coleda already was working on such a project. It would be a as a > final project for my bachelor's. But because such already exists, I'm > looking for something else. An

Re: [perl #20400] [PATCH] ook.pasm eval

2003-01-21 Thread Leopold Toetsch
Leon Brocard wrote: Index: config/gen/makefiles/ook.in Applied, leo

Re: [perl #18056] [PATCH] Extending the Packfile (Part 1.)

2003-01-21 Thread Leopold Toetsch
Jürgen Bömmels (via RT) wrote: # New Ticket Created by Jürgen Bömmels # Please include the string: [perl #18056] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=18056 > Applied with some modifications and extension. Thanks

[CVS ci] packfile

2003-01-21 Thread Leopold Toetsch
Thanks to Juergen Boemmels patch #18056, we now have multiple code segments. Changes: - multiple code segments in memory, created by compile opcode - changed packfile constants to a union - create debug (file/line) info for gdb/stabs, including evaled code - small JIT changes for eval - changed im

Re: Compiling to Parrot

2003-01-21 Thread K Stol
PHP is especially used in web pages. Would there be any advantage to have a PHP->Parrot compiler? LUA seems to be a very nice language, but how is this language to be used? Is it in combination with a C program one would write? Or could it be used as a stand alone application? In that case, it see

Re: L2R/R2L syntax

2003-01-21 Thread Graham Barr
On Mon, Jan 20, 2003 at 07:27:56PM -0700, Luke Palmer wrote: > > What benefit does C<< <~ >> bring to the language? > > Again, it provides not just a "null operator" between to calls, but > rather a rewrite of method call syntax. So: > > map {...} <~ grep {...} <~ @boing; > > is not: > > m

Re: A proposal on if and else

2003-01-21 Thread Dave Whipp
"Joseph F. Ryan" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Rafael Garcia-Suarez wrote: > > > >The tokeniser could send two tokens "else" and "if" whenever it > >recognizes the keyword "elsif" -- so this isn't a problem. > > > > I think the point of having

Re: The parrot crashes...

2003-01-21 Thread blair christensen
On Mon, Jan 20, 2003 at 02:09:10PM -0500, Dan Sugalski wrote: > Rather badly, actually. All the tests that involve parrot currently > segfault in the NCI mark routine. At least on OS X, I'm not sure > about other platforms. 5.8.0/Sparc64/OpenBSD is also rather unhappy. I'm getting the following

Re: Compiling to Parrot

2003-01-21 Thread Simon Wistow
On Tue, Jan 21, 2003 at 12:14:29PM +0100, K Stol said: > PHP is especially used in web pages. Would there be any advantage to have a > PHP->Parrot compiler? Depends what you mean by 'advantage'. Currently, as far as I know, PHP runs on a virtual machine, just like Perl so it's a good candidate f

Re: The parrot crashes...

2003-01-21 Thread Leopold Toetsch
blair christensen wrote: On Mon, Jan 20, 2003 at 02:09:10PM -0500, Dan Sugalski wrote: Rather badly, actually. All the tests that involve parrot currently segfault in the NCI mark routine. At least on OS X, I'm not sure about other platforms. (gdb) bt #0 0x1a8638 in pobject_lives () #1 0x

Re: Compiling to Parrot

2003-01-21 Thread Dan Sugalski
At 9:17 AM +0100 1/21/03, K Stol wrote: Hi there, A few weeks ago I posted something about a Tcl->parrot compiler, but Will Coleda already was working on such a project. It would be a as a final project for my bachelor's. But because such already exists, I'm looking for something else. If you

tinderbox glastig

2003-01-21 Thread Leopold Toetsch
Seems to be some missing dependency. 'make realclean' should do it. jit_cpu.c:603: structure has no member named `number' This file is generated by jit2h.pl which uses OpTrans::C and there is u.number for 'nc'. leo

Re: Compiling to Parrot

2003-01-21 Thread K Stol
Well, I'd do it as a project for my Bachelor's, so I won't get permission to do such a project, if it already exists. Klaas-Jan - Original Message - From: "Dan Sugalski" <[EMAIL PROTECTED]> To: "K Stol" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, January 21, 2003 4:40 PM Subjec

Re: Compiling to Parrot

2003-01-21 Thread Gopal V
If memory serves me right, Leon Brocard wrote: > An interesting project to do would be to do a Java->Parrot compiler. Hmm... I think with the current Parrot setup that might be a bit difficult. We need object instructions for that , also I need to be able to define classes,interfaces and all the J

Re: Compiling to Parrot

2003-01-21 Thread Dan Sugalski
At 4:46 PM +0100 1/21/03, K Stol wrote: Well, I'd do it as a project for my Bachelor's, so I won't get permission to do such a project, if it already exists. Ah, that could be a problem. Will it be a problem if you start a project that someone else later also starts? From: "Dan Sugalski" <[EMA

Re: Compiling to Parrot

2003-01-21 Thread K Stol
well, I think not, then I can't help it. What do you think about compiling Lua to parrot (IMCC)? Klaas-Jan - Original Message - From: "Dan Sugalski" <[EMAIL PROTECTED]> To: "K Stol" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, January 21, 2003 4:58 PM Subject: Re: Compiling to P

Re: tinderbox glastig

2003-01-21 Thread Dan Sugalski
At 4:40 PM +0100 1/21/03, Leopold Toetsch wrote: Seems to be some missing dependency. 'make realclean' should do it. jit_cpu.c:603: structure has no member named `number' That's mine--I'll go get it cleaned up. I'm not sure it'll help that much, as I'm seeing multiply-defined symbol issues at

Re: Compiling to Parrot

2003-01-21 Thread Dan Sugalski
At 5:01 PM +0100 1/21/03, K Stol wrote: well, I think not, then I can't help it. What do you think about compiling Lua to parrot (IMCC)? I like the idea, and I don't think you'll see anyone else tackle it for a while. (And if that falls through, there's always LISP... :) From: "Dan Sugalski" <

Re: Compiling to Parrot

2003-01-21 Thread K Stol
Only thing I need to know before I can start is: what would the purpose be of a Lua to Parrot compiler? Lua is originally an embedded language for easy-scripting, as far as I understand. How could it be used when targeted to parrot? Would it be possible to call functions written in Lua (and which a

Re: Compiling to Parrot

2003-01-21 Thread Dan Sugalski
At 5:13 PM +0100 1/21/03, K Stol wrote: Only thing I need to know before I can start is: what would the purpose be of a Lua to Parrot compiler? Lua is originally an embedded language for easy-scripting, as far as I understand. How could it be used when targeted to parrot? Would it be possible to c

Flex & IMCC

2003-01-21 Thread Dan Sugalski
Okay, I can be a bit slow, but I finally figured out what's going on with IMCC and OS X. imclexer.c is autogenerated (duh!) and flex, or whatever's being used to do it, spits out bad code. Could the IMCC folks upgrade to the latest version of flex to see if that fixes things and, if not, I'll h

Re: Flex & IMCC

2003-01-21 Thread Dan Sugalski
At 11:29 AM -0500 1/21/03, Dan Sugalski wrote: Okay, I can be a bit slow, but I finally figured out what's going on with IMCC and OS X. imclexer.c is autogenerated (duh!) and flex, or whatever's being used to do it, spits out bad code. Could the IMCC folks upgrade to the latest version of flex

Re: Compiling to Parrot

2003-01-21 Thread K Stol
Is it possible for parrot-code to call functions in other parrot files? (which implies there is some program which consists of multiple files) Klaas-Jan - Original Message - From: "Dan Sugalski" <[EMAIL PROTECTED]> To: "K Stol" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, Janua

Re: Flex & IMCC

2003-01-21 Thread Leopold Toetsch
Dan Sugalski wrote: Okay, I can be a bit slow, but I finally figured out what's going on with IMCC and OS X. imclexer.c is autogenerated (duh!) and flex, or whatever's being used to do it, spits out bad code. Could the IMCC folks upgrade to the latest version of flex to see if that fixes thing

Re: [perl #20315] [PATCH] eval - inter code segment branches

2003-01-21 Thread Jason Gloudon
On Tue, Jan 21, 2003 at 12:08:29AM +0100, Leopold Toetsch wrote: > Here is a proposal for inter code segment jumps: > > The assembler (imcc) can recognize when a branch ins goes to a different > code segment. > > For such a branch, imcc generates this opcode seqence: > >inter_cs >if i,

Re: Compiling to Parrot

2003-01-21 Thread Jerome Quelin
Dan Sugalski wrote: > If you follow the calling conventions, then yes you'll be able to > call python/ruby/perl/befunge routines from Lua code, and vice versa. No, you won't be able to call befunge routines from Lua, because: - befunge does not know how to define subroutines (at least befunge-93

Re: L2R/R2L syntax

2003-01-21 Thread Luke Palmer
> Date: Tue, 21 Jan 2003 10:04:58 + > From: Graham Barr <[EMAIL PROTECTED]> > > If the function form of map/grep were to be removed, which has been > suggested, and the <~ form maps to methods. How would you go about > defining a utility module similar to List::Util that uses the same > syntax

Re: L2R/R2L syntax

2003-01-21 Thread arcadi shehter
Damian Conway writes: > Buddha Buck wrote: > > > > Perl 5 allows you to do: > > > > $object->meth1->meth2->meth3; # Perl5 chained method, L2R > > > > Perl 6 will also allow you to do: > > > > $data ~> sub1 ~> sub2 ~> sub3;# Perl6 chained subs, L2R > > > > Perl 5 allows

Re: L2R/R2L syntax

2003-01-21 Thread Michael Lazzaro
On Tuesday, January 21, 2003, at 02:04 AM, Graham Barr wrote: If the function form of map/grep were to be removed, which has been suggested, and the <~ form maps to methods. How would you go about defining a utility module similar to List::Util that uses the same syntax as map/grep but without

Re: Why C needs work (was Re: L2R/R2L syntax)

2003-01-21 Thread Michael Lazzaro
On Monday, January 20, 2003, at 04:33 PM, Michael Lazzaro wrote: But both the OO and pipeline syntaxes do more to point out the noun, verb, and adjective of the operation. Adverb. The {...} part is an adverb, not an adjective. Sorry there. MikeL

Re: L2R/R2L syntax

2003-01-21 Thread Graham Barr
On Tue, Jan 21, 2003 at 09:20:04AM -0800, Michael Lazzaro wrote: > > On Tuesday, January 21, 2003, at 02:04 AM, Graham Barr wrote: > > If the function form of map/grep were to be removed, which has been > > suggested, > > and the <~ form maps to methods. How would you go about defining a > > ut

Perltalk

2003-01-21 Thread Thom Boyer
Smylers [mailto:[EMAIL PROTECTED]] wrote: > And an alternative > spelling for the assignment operator[*0] doesn't strike me as something > Perl is really missing: > > $msg <~ 'Hello there'; > $msg = 'Hello there'; I still remember the first time I saw a computer program, before I had learne

RE: A proposal on if and else

2003-01-21 Thread Thom Boyer
Rafael Garcia-Suarez [mailto:[EMAIL PROTECTED]] wrote: > The tokeniser could send two tokens "else" and "if" whenever it > recognizes the keyword "elsif" -- so this isn't a problem. The primary advantage, to my mind, in using C, is that it eliminates the dangling-else ambiguity -- so splitting it

Re: Perltalk

2003-01-21 Thread Mark J. Reed
On 2003-01-21 at 11:09:21, Thom Boyer wrote: > One of the most... er, *interesting*, dodges I've seen in this area is the > one used by Squeak (a Smalltalk variant). Squeak spells assignment with an > underscore ("_"), but the Squeak system *draws* it as a left-pointing arrow. There's a history beh

Re: Compiling to Parrot

2003-01-21 Thread Christopher Armstrong
On Tue, Jan 21, 2003 at 08:41:47AM +, Simon Wistow wrote: > Speaking of games, it would be interesting to see Parrot be used in that > direction. A lot of games currently are pretty much developed along the > lines of 'custom scripting language interfaced to custom game engine' One of the reas

Re: [perl #20315] [PATCH] eval - inter code segment branches

2003-01-21 Thread Leopold Toetsch
Jason Gloudon wrote: On Tue, Jan 21, 2003 at 12:08:29AM +0100, Leopold Toetsch wrote: Here is a proposal for inter code segment jumps: The assembler (imcc) can recognize when a branch ins goes to a different code segment. For such a branch, imcc generates this opcode seqence: inter_cs i

Re: The parrot crashes...

2003-01-21 Thread blair christensen
On Tue, Jan 21, 2003 at 01:53:26PM +0100, Leopold Toetsch wrote: > blair christensen wrote: > > >On Mon, Jan 20, 2003 at 02:09:10PM -0500, Dan Sugalski wrote: > > > >>Rather badly, actually. All the tests that involve parrot currently > >>segfault in the NCI mark routine. At least on OS X, I'm no

Re: The parrot crashes...

2003-01-21 Thread Simon Glover
Here's another data-point, for Linux/x86: with a fresh check-out, parrot is passing all of its tests, but most of the imcc tests are failing. Specifically, I get: Failed Test Stat Wstat Total Fail Failed List of Failed -

Re: Objects, finally (try 1)

2003-01-21 Thread Piers Cawley
Dan Sugalski <[EMAIL PROTECTED]> writes: > At 3:06 PM -0500 1/15/03, Christopher Armstrong wrote: >>On Wed, Jan 15, 2003 at 01:57:28AM -0500, Dan Sugalski wrote: >>> At 9:37 PM -0500 1/14/03, Christopher Armstrong wrote: >>> >But who knows, maybe it could be made modular enough (i.e., more >>>

Re: Perltalk

2003-01-21 Thread Smylers
Thom Boyer wrote: > Smylers [mailto:[EMAIL PROTECTED]] wrote: > > > And an alternative spelling for the assignment operator[*0] doesn't > > strike me as something Perl is really missing: > > > > $msg <~ 'Hello there'; > > $msg = 'Hello there'; > > I still remember the first time I saw a com

TPF donations (was Re: L2R/R2L syntax [x-adr][x-bayes])

2003-01-21 Thread David Storrs
On Fri, Jan 17, 2003 at 04:21:08PM -0800, Damian Conway wrote: > Paul Johnson wrote: > > > Well, I'll be pretty interested to discover what cause is deemed more > > deserving than Larry, Perl 6 or Parrot. The P still stands for Perl, > > right? > > True. But I suspect that TPF's position is that

Re: L2R/R2L syntax

2003-01-21 Thread Piers Cawley
Graham Barr <[EMAIL PROTECTED]> writes: > On Mon, Jan 20, 2003 at 07:27:56PM -0700, Luke Palmer wrote: >> > What benefit does C<< <~ >> bring to the language? >> >> Again, it provides not just a "null operator" between to calls, but >> rather a rewrite of method call syntax. So: >> >> map {..

Re: TPF donations

2003-01-21 Thread Piers Cawley
David Storrs <[EMAIL PROTECTED]> writes: > On Fri, Jan 17, 2003 at 04:21:08PM -0800, Damian Conway wrote: >> Paul Johnson wrote: >> >> > Well, I'll be pretty interested to discover what cause is deemed more >> > deserving than Larry, Perl 6 or Parrot. The P still stands for Perl, >> > right? >>

Re: Compiling to Parrot

2003-01-21 Thread Andrew Rodland
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 21 January 2003 07:16 am, Simon Wistow wrote: > On Tue, Jan 21, 2003 at 12:14:29PM +0100, K Stol said: > > LUA seems to be a very nice language, but how is this language to be > > used? Is it in combination with a C program one would write?

Re: L2R/R2L syntax

2003-01-21 Thread Michael Lazzaro
On Tuesday, January 21, 2003, at 12:26 PM, Piers Cawley wrote: Though I'm sure Damian will be long eventually to correct my syntax. I'm getting this weird feeling of deja vu though... When I come home from work each day, I can see my dog eagerly waiting at the window, just black snout and fren

"Arc: An Unfinished Dialect of Lisp"

2003-01-21 Thread Rich Morin
I just finished skimming this write-up, located at http://paulgraham.com/arcll1.html I'm not a Lisp enthusiast, by and large, but I think he makes some interesting observations on language design. Take a look if you're feeling adventurous... -r -- email: [EMAIL PROTECTED]; phone: +1 650-873-7

Re: L2R/R2L syntax

2003-01-21 Thread Piers Cawley
Michael Lazzaro <[EMAIL PROTECTED]> writes: > On Tuesday, January 21, 2003, at 12:26 PM, Piers Cawley wrote: >> Though I'm sure Damian will be long eventually to correct my >> syntax. I'm getting this weird feeling of deja vu though... > > When I come home from work each day, I can see my dog eag

Re: Why C needs work (was Re: L2R/R2L syntax)

2003-01-21 Thread Smylers
Michael Lazzaro wrote: > On Monday, January 20, 2003, at 12:30 PM, Smylers wrote: > > > It was only on reading that (and discovering that you hadn't > > previously known about the 'optional comma with closure argument' > > rule) that I understood why you had previously been so in favour of > >

Re: A proposal on if and else

2003-01-21 Thread Smylers
Thom Boyer wrote: > The primary advantage, to my mind, in using C, is that it > eliminates the dangling-else ambiguity -- so splitting it in half > removes almost ALL the value of even having an C keyword. Surely it's the compulsory braces, even with a single statement, which eliminates that prob

Re: Re: TPF donations

2003-01-21 Thread John Adams
This is a valuable discussion, and I hope people will take this up on [EMAIL PROTECTED] as well. Thanks, John A see me fulminate at http://www.jzip.org/

Re: Perltalk

2003-01-21 Thread Austin Hastings
--- Thom Boyer <[EMAIL PROTECTED]> wrote: > Smylers [mailto:[EMAIL PROTECTED]] wrote: > > > And an alternative > > spelling for the assignment operator[*0] doesn't strike me as > something > > Perl is really missing: > > > > $msg <~ 'Hello there'; > > $msg = 'Hello there'; > > > I still re

Re: TPF donations (was Re: L2R/R2L syntax [x-adr][x-bayes])

2003-01-21 Thread Austin Hastings
--- David Storrs <[EMAIL PROTECTED]> wrote: > On Fri, Jan 17, 2003 at 04:21:08PM -0800, Damian Conway wrote: > > Paul Johnson wrote: > > > > > Well, I'll be pretty interested to discover what cause is deemed > more > > > deserving than Larry, Perl 6 or Parrot. The P still stands for > Perl, > >

Re: Why C needs work (was Re: L2R/R2L syntax)

2003-01-21 Thread Michael Lazzaro
On Tuesday, January 21, 2003, at 01:31 PM, Smylers wrote: Michael Lazzaro wrote: it's that I _dislike_ the perl5 rule, ... Oh. That's "dislike" rather than "disliked"? My question was predicated on your declaration "I emphatically withdraw my objection", which I took to mean that your knowl

Re: Why C needs work (was Re: L2R/R2L syntax)

2003-01-21 Thread Buddha Buck
Smylers wrote: Michael Lazzaro wrote: And it provides a very visual way to define any pipe-like algorithm, in either direction: $in -> lex -> parse -> codify -> optimize -> $out; # L2R $out <- optimize <- codify <- parse <- lex <- $in; # R2L It's clear, from looking at either of

Re: Why C needs work (was Re: L2R/R2L syntax)

2003-01-21 Thread Michael Lazzaro
On Tuesday, January 21, 2003, at 02:38 PM, Buddha Buck wrote: Michael Lazzaro wrote: And it provides a very visual way to define any pipe-like algorithm, in either direction: $in -> lex -> parse -> codify -> optimize -> $out; # L2R $out <- optimize <- codify <- parse <- lex <- $in;

Re: The parrot crashes...

2003-01-21 Thread Leopold Toetsch
blair christensen wrote: and Simon Glover reported: #0 0x1a8638 in pobject_lives () #1 0x1bcc78 in Parrot_NCI_mark () I dunno yet, why mark is called with an uninitialized struct_val. The mark function should only be called, if the corresponding flag is set. For a first check, what's going

Re: Perltalk

2003-01-21 Thread Uri Guttman
> "MJR" == Mark J Reed <[EMAIL PROTECTED]> writes: MJR> On 2003-01-21 at 11:09:21, Thom Boyer wrote: >> One of the most... er, *interesting*, dodges I've seen in this area >> is the one used by Squeak (a Smalltalk variant). Squeak spells >> assignment with an underscore ("_"), but the

Re: TPF donations (was Re: L2R/R2L syntax [x-adr][x-bayes])

2003-01-21 Thread Nicholas Clark
On Tue, Jan 21, 2003 at 02:21:58PM -0800, Austin Hastings wrote: > > --- David Storrs <[EMAIL PROTECTED]> wrote: > > This is something along the lines of the applied research vs basic > > research question. What Larry is doing pretty much amounts to basic > > research that will help all of these

Re: [perl #20315] [PATCH] eval - inter code segment branches

2003-01-21 Thread Jason Gloudon
On Tue, Jan 21, 2003 at 08:21:42PM +0100, Leopold Toetsch wrote: > >>For such a branch, imcc generates this opcode seqence: > >> > >> inter_cs > >> if i, ic # or whatever > > >Why do we need branches to go to different code segments ? > > > Because of this nasty piece of little code: > t/sy

Re: The parrot crashes...

2003-01-21 Thread Leopold Toetsch
blair christensen wrote: (gdb) bt #0 0x1a8638 in pobject_lives () #1 0x1bcc78 in Parrot_NCI_mark () Just one thought: before my eval patch PerlHash's enum was 12, what now NCI has. From PMC.pm (now): NCI => 12, PerlArray => 13, PerlHash => 14, PerlInt => 15,

RE: Compiling to Parrot

2003-01-21 Thread Paul Du Bois
The advantage of Lua (at least for my project, which is a game) is that it is quite easy to embed, and quite easy to customize. The C API is small and easily understandable (at the expense of being a little bit of a pain to use), and the internals are simple and quite malleable. The language itse