message from Parrot PieThon developer
"Mark Hahn" <[email protected]>
| Newsgroups | gmane.comp.lang.prothon.user |
|---|---|
| Message-ID | <[email protected]> |
> Leopold Toetsch wrote: >> Anyway. You might have a look at Parrot, which could take some burden >> of the job "implementing a new interpreter". Parrot provides (or will >> soon provide) all the boring low-level stuff, like GC, Unicode >> strings, threads, events, async IO, JIT run core, real classes, and a >> lot more. Mark Hahn wrote: > I hate to show my ignorance, but Prothon (and I thought Python) has a lot of > very language specific bytcodes. Prothon has bytecodes like expand-list or > create-slice. How do you import things like that? Python on Parrot(Pie-thon[1]) is running off disassembled Python bytecode. These Python opcodes are converted to Parrot opcodes or method calls or whatever. > ... Do you port large parts > of c-python code over? For that matter, do you effectively end up porting > all of c-python over? Well, I'm of course currently implementing Python builtin functions like map(), dict() and what not. But e.g. map() is used in perl too, we need that code anyway in core. That's not a big deal. A lot of that stuff is provided by Parrot opcodes anyway. > Prothon is mainly a set of intelligent objects with a language running on > top of them The objects have os threading, object-locking, persistance, > etc. built into them at the object level. Well, Parrot got that too. > ... Parrot would have to run on top of the Prothon objects. IMHO the other way round. Parrot is the interpreter, running Parrot bytecode. Prothon would run on top of Parrot using all the infrastructure the interpreter provides, like unicode strings and async IO. > ... I don't understand how parrot could do that. You > could not substitute inferior objects as the language depends on the > features of these objects. No. But Parrot provides full-fledged objects. > Please correct any of my misunderstandings. Please download it from CVS and have a look at it. I know from your announcement, that Prothon already got more features in core then Parrot provides now, but Parrot evolves quickly. > Can I post these messages on Prothon-dev? Sure, leo [1] google for parrot, python, "dan sugalski", guido, pie - and you know, what I mean begin 666 smile.gif M1TE&.#EA#P`/`)$!`````+^_O___`````"'Y! $```$`+ `````/``\```(N MC V9QY$"X6(@6GGJO0!)+3RA$XDA:&Y6JGXMIX$K%G,8^2EE]G:4?&ID%+Y# #`0`[ ` end