Re: [lazarus] FPC compiler for virtual machines?

2008-02-07 Thread Marco van de Voort
On Wed, Feb 06, 2008 at 11:37:41PM +0100, Felipe Monteiro de Carvalho wrote: On Feb 6, 2008 10:45 PM, Marco van de Voort [EMAIL PROTECTED] wrote: There already is FPC on mobile devices. For the rest, the FAQ mostly applies: http://www.hu.freepascal.org/faq.var#dotnet I think this is a

Re: [lazarus] FPC compiler for virtual machines?

2008-02-07 Thread Michael Van Canneyt
On Wed, 6 Feb 2008, Marco Alvarado wrote: 2008/2/6, Wanderlan Santos dos Anjos [EMAIL PROTECTED]: Options for a Pascal compiler which targets Java: 1. http://www.mhccorp.com/pasjvm.shtml 2. http://en.wikipedia.org/wiki/MIDletPascal. Dead product? Download:

Re: [lazarus] FPC compiler for virtual machines?

2008-02-07 Thread Marco Alvarado
I've been investigating, and came to the conclussion that the best compiler I can do IS NOT a compiler, BUT an specialiced translator. I could use customizable templates to transform Pascal code into each VM's natural language, then take advantage of the command-line compilers for those VMs. There

Re: [lazarus] FPC compiler for virtual machines?

2008-02-07 Thread Marco Alvarado
The guys at mhccorp, did the same: http://www.mhccorp.com/java.shtml But, its a closed source project. In their pages, they said, they made an Object Pascal To Java translator, and later a Object Pascal to JVM assembler translator. Yes the idea is having it Open Source, and for at least

Re: [lazarus] FPC compiler for virtual machines?

2008-02-07 Thread Marco Alvarado
But, how knows ? Maybe the games you want to migrate to JVM-based phones, can be fun and even profit !!! ;-) Many games can be migrated to VM's that don't need a lot of processing power, think about the best selling Tetris ;D Also, what happens if a compiler maker or chipset builder finds out

Re: [lazarus] FPC compiler for virtual machines?

2008-02-07 Thread Marco Alvarado
I'm building right now a translator of Object Pascal to ECMAscript. I just need a common run-time library, which I'm building on top of FPC's RTL and the LCL. If someone wants to have a portable application, they just have to use the classes of the Virtual Machine Library (VML, not to confuse with

Re: [lazarus] FPC compiler for virtual machines?

2008-02-07 Thread Felipe Monteiro de Carvalho
On Feb 7, 2008 9:32 PM, Marco Alvarado [EMAIL PROTECTED] wrote: I'm doing it now!! Once I get a hello-world translated, I'll start releasing the source code. Please create a source forge project for it and add the code to subversion. That guarantees the project can be continued on the future.

Re: [lazarus] FPC compiler for virtual machines?

2008-02-07 Thread Marco Alvarado
2008/2/7, Felipe Monteiro de Carvalho [EMAIL PROTECTED]: Unfortunately I don't have time to build that, but I would try to help if someone starts such a project. I'm doing it now!! Once I get a hello-world translated, I'll start releasing the source code. Regards! -Marco

RE: [lazarus] FPC compiler for virtual machines?

2008-02-07 Thread Sam Liddicott
Can I suggest you also look at the Alma project on freshmeat.net Sam -Original Message- From: Marco Alvarado [EMAIL PROTECTED] Sent: 07 February 2008 17:37 To: lazarus@miraclec.com Subject: Re: [lazarus] FPC compiler for virtual machines? I'm building right now a translator of Object

Re: [lazarus] FPC compiler for virtual machines?

2008-02-07 Thread Felipe Monteiro de Carvalho
On Feb 7, 2008 2:11 AM, Marco Alvarado [EMAIL PROTECTED] wrote: I know MIDletPascal, and it's a perfect example. It suffers the same problem that Delphi has now, it's not Open Source. I think an open source project that works about the same as MIDLetPascal would be really excelent. It doesn't

Re: [lazarus] FPC compiler for virtual machines?

2008-02-07 Thread Marco Alvarado
2008/2/7, Sam Liddicott [EMAIL PROTECTED]: Can I suggest you also look at the Alma project on freshmeat.net Sam Yes, but it's not only about language translation, indeed this is the easiest part. The real problem is creating a virtual machine library that is common between the different

Re: [lazarus] FPC compiler for virtual machines?

2008-02-07 Thread mramirez
Quoting Marco Alvarado [EMAIL PROTECTED]: I've been investigating, and came to the conclussion that the best compiler I can do IS NOT a compiler, BUT an specialiced translator. I The guys at mhccorp, did the same: http://www.mhccorp.com/java.shtml But, its a closed source project. In their

Re: [lazarus] FPC compiler for virtual machines?

2008-02-07 Thread mramirez
Quoting Felipe Monteiro de Carvalho [EMAIL PROTECTED]: My experience with Symbian makes me think I should have instead started a Java port. The Symbian is such a mess that a Java port would I read somewhere that Symbian was rebuilding its OS from scratch, because of the mess. There is even

Re: [lazarus] FPC compiler for virtual machines?

2008-02-07 Thread mramirez
Quoting Marco Alvarado [EMAIL PROTECTED]: I'm building right now a translator of Object Pascal to ECMAscript. Good Luck ;-) mramirez _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject

Re: [lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Marco van de Voort
On Wed, Feb 06, 2008 at 03:26:48PM -0600, Marco Alvarado wrote: Is there a Pascal compiler for these virtual machines? Java Flash 8 (actionscript 2) Flash 9 (actionscript 3) Is the answer is no, can I build one? :-D I think it's a cool project I'd love to work on, just to have Pascal

Re: [lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Marco Alvarado
But that would be .NET... what about Java and Flash? -Marco 2008/2/6, Marco van de Voort [EMAIL PROTECTED]: On Wed, Feb 06, 2008 at 03:26:48PM -0600, Marco Alvarado wrote: Is there a Pascal compiler for these virtual machines? Java Flash 8 (actionscript 2) Flash 9 (actionscript 3)

Re: [lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Marco van de Voort
On Wed, Feb 06, 2008 at 03:49:23PM -0600, Marco Alvarado wrote: But that would be .NET... what about Java and Flash? Read the last paragraph. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the

Re: [lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Marco Alvarado
These problems are pretty much similar for the Java (bytecode) too. One has to mutilate the language, and rewrite the libraries from scratch on the base libraries of the target (Java/.NET). Such an attempt would have little synergy with the FPC project as it is today. Hmmm, it's just a

Re: [lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Marco van de Voort
On Wed, Feb 06, 2008 at 04:08:51PM -0600, Marco Alvarado wrote: These problems are pretty much similar for the Java (bytecode) too. One has to mutilate the language, and rewrite the libraries from scratch on the base libraries of the target (Java/.NET). Such an attempt would have little

Re: [lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Felipe Monteiro de Carvalho
On Feb 6, 2008 10:45 PM, Marco van de Voort [EMAIL PROTECTED] wrote: There already is FPC on mobile devices. For the rest, the FAQ mostly applies: http://www.hu.freepascal.org/faq.var#dotnet I think this is a little bit too intransigent. Many mobiles run only Java, so there is no other path

Re: [lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Marco Alvarado
If it doesn't exist already, I would like to make an un-perfect, simplistic, full of missing features, Pascal compiler that allows me to write Pascal programs for those virtual machines that have penetrated interesting platforms like web embedded applications, mobile devices, PSP, Wii, etc. I

RE: [lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Sergio Samayoa
Architect/Developer also. Regards. -Mensaje original- De: Marco Alvarado [mailto:[EMAIL PROTECTED] Enviado el: MiƩrcoles, 06 de Febrero de 2008 06:05 p.m. Para: lazarus@miraclec.com Asunto: Re: [lazarus] FPC compiler for virtual machines? If it doesn't exist already, I would like to make

Re: [lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Wanderlan Santos dos Anjos
Options for a Pascal compiler which targets Java: 1. http://www.mhccorp.com/pasjvm.shtml 2. http://en.wikipedia.org/wiki/MIDletPascal. Dead product? Download: http://www.softlookup.com/display.asp?id=157709 Wanderlan Santos dos Anjos

Re: [lazarus] FPC compiler for virtual machines?

2008-02-06 Thread Marco Alvarado
2008/2/6, Wanderlan Santos dos Anjos [EMAIL PROTECTED]: Options for a Pascal compiler which targets Java: 1. http://www.mhccorp.com/pasjvm.shtml 2. http://en.wikipedia.org/wiki/MIDletPascal. Dead product? Download: http://www.softlookup.com/display.asp?id=157709 I know MIDletPascal, and it's