Re: [fpc-devel] Pascal to Java compiler
You make a mistake : I am talking about JAVA VM bytecode. Thanks for pointing that out. I did not ever hear about this, but I did learn about Pascal byte code ages ago, so I was mistaken :(. The Java byte code thingy looks really interesting, though, It would be great if it really could happen. -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Pascal to Java compiler
- One should not attempt to implement Java or C# language constructs in Pascal. Oxygene / Delphi Prism seems to do this very successfully. But of course the compatibility to the existing code base is limited. -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Pascal to Java compiler
Michael Schnell wrote: You make a mistake : I am talking about JAVA VM bytecode. Thanks for pointing that out. I did not ever hear about this, but I did learn about Pascal byte code ages ago, so I was mistaken :(. I have send out the emails as promised. Let's hope you can toy around a little too. Pascal byte code as in UCSD Pascal? (I used that at university on apple IIe's back in the '80's ;) smime.p7s Description: S/MIME Cryptographic Signature ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Pascal to Java compiler
Michael Schnell wrote: - One should not attempt to implement Java or C# language constructs in Pascal. Oxygene / Delphi Prism seems to do this very successfully. But of course the compatibility to the existing code base is limited. Well, the first remark is indeed questionable. As you remark: Prism is rather successful doing just that. The problem is the confusion between frameworks (essentially libraries), a language and a compiler. There's no reason at all that current objectpascal implementations like Delphi or FPC cannot implement Java or C# constructs. Although it might need a different memorymanager and a separate framework for native code: f.e. the Boehm memory manager, which does a good job, and/or extensive use of interfaces. For IL code this is covered by the VM (both Java VM and .Net) by the way, so there's no problem there too. The main problem lies in the frameworks. That's what makes it difficult. Another problem lies in multipass versus single pass compilation. As some here explained, there's more to it. But not impossible and it probably needs branching. The Delphi Java bytecode compiler comes without any framework by the way,although classes are supported. You rely on the Java framework. No virus found in this outgoing message. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.9.11/1816 - Release Date: 27-11-2008 19:53 ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Pascal Applets
Why I hope to find a Pascal Applet? because I preffer to write Object Pascal code instead of anything different. AdobeAir + ExtJS + ExtPascal ? It's not truly an applet by the way. But it should able to do what you want to achieve. ;) -Bee- ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Pascal Applets
Op Fri, 28 Nov 2008, schreef Leonardo M. Ramé: Hi, does anyone knows if somebody is working on something like Pascal Applets, similar to Java Applets or Flash, but made in Object Pascal. I need this to be able to record microphone sound through the browser, and I know the only way to do this is by either creating a Java Applet, Flash or ActiveX, but also I need it to be cross platform and ActiveX isn't an alternative in this case. Why I hope to find a Pascal Applet? because I preffer to write Object Pascal code instead of anything different. How about writing a browser plugin? You should be able to do that in Pascal. You may have to do some pioneering work, making the Netscape plugin API available in Pascal, otherwise it should work and be cross-platform. Daniël___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Pascal Applets
How about writing a browser plugin? You should be able to do that in Pascal. You may have to do some pioneering work, making the Netscape plugin API available in Pascal, otherwise it should work and be cross-platform. is that the API? http://devedge-temp.mozilla.org/library/manuals/2002/plugin/1.0/ ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Pascal Applets
Op Fri, 28 Nov 2008, schreef dmitry boyarintsev: How about writing a browser plugin? You should be able to do that in Pascal. You may have to do some pioneering work, making the Netscape plugin API available in Pascal, otherwise it should work and be cross-platform. is that the API? http://devedge-temp.mozilla.org/library/manuals/2002/plugin/1.0/ Correct. Daniël___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
[fpc-devel] Pascal Applets
Hi, does anyone knows if somebody is working on something like Pascal Applets, similar to Java Applets or Flash, but made in Object Pascal. I need this to be able to record microphone sound through the browser, and I know the only way to do this is by either creating a Java Applet, Flash or ActiveX, but also I need it to be cross platform and ActiveX isn't an alternative in this case. Why I hope to find a Pascal Applet? because I preffer to write Object Pascal code instead of anything different. Leonardo M. Ramé http://leonardorame.blogspot.com ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Att: Joost. About bug report 12667
Joost van der Sluis escreveu: Op zondag 23-11-2008 om 18:31 uur [tijdzone -0300], schreef Luiz Americo Pereira Camara: AFAIK is not possible to have a method argument and a property with the same name in mode objfpc. Let me know if this changed recently. So the is necessary to rename Options to LocateOptions. You are right, I didn't even thought about that. Sorry. Just to know how proceed: by the way everybody is able to review and one change at time approach do you mean: http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revrevision=12173 or http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revrevision=12155 ? I knew I should have added an disclaimer that this would be ideal, and that I'm not bug-less. ;) It's OK. Let's forget that. Luiz ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Pascal Applets
I've found a Netscape Plugin implementation written in Delphi: http://www.torry.net/vcl/vcltools/plugins/nplugin.zip It works perfectly!, now I'll try to compile it with FPC for Windows and later for Linux. Leonardo M. Ramé http://leonardorame.blogspot.com --- On Fri, 11/28/08, Daniël Mantione [EMAIL PROTECTED] wrote: From: Daniël Mantione [EMAIL PROTECTED] Subject: Re: [fpc-devel] Pascal Applets To: FPC developers' list fpc-devel@lists.freepascal.org Date: Friday, November 28, 2008, 10:32 AM Op Fri, 28 Nov 2008, schreef dmitry boyarintsev: How about writing a browser plugin? You should be able to do that in Pascal. You may have to do some pioneering work, making the Netscape plugin API available in Pascal, otherwise it should work and be cross-platform. is that the API? http://devedge-temp.mozilla.org/library/manuals/2002/plugin/1.0/ Correct. Daniël___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Pascal to Java compiler
Well, I think that the compiler could be shared between a native code and bytecode machine. I think the frontend (parsing the language into a tree structure) can certainly be shared, i'm not sure about the further back stages. Bytecode environments are certainly very different from native code in the sense that you can't just treat variables as variable sized lumps of bytes. - One should not attempt to implement Java or C# language constructs in Pascal. I think to produce a viable compiler you have to. Bytecode environments don't let you access memory directly so you don't have much choice but to use the class/interface structure provided by the bytecode environment. Furthermore all the standard libraries for the language rely on them as an interface so not being interoperable with them would be a huge pain. Lukilly other than the garbage collection issue delphi style object pascal and java/.net actually have pretty similar object models so it shouldn't be too hard to map them. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
[fpc-devel] SSE in FPC
Hi Are in FPC some instruction set contains streaming SIMD (SSE) like in GCC: http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/X86-Built_002din-Functions.html or in Microsoft Visual http://msdn.microsoft.com/en-us/library/kcwz153a(VS.80).aspx -- Darek ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] SSE in FPC
On Fri, 28 Nov 2008 21:25:16 +0100 darekm [EMAIL PROTECTED] wrote: Hi Are in FPC some instruction set contains streaming SIMD (SSE) like in GCC: http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/X86-Built_002din-Functions.html or in Microsoft Visual http://msdn.microsoft.com/en-us/library/kcwz153a(VS.80).aspx Use the mmx unit to discover what mmx/sse instruction set is supported by your cpu. You can use mmx/sse commands directly in the asm blocks and FPC automatically uses MMX/SSE instructions for your pascal code if you allow it (specify CPU type). In my experiments FPC often created faster code itself. So don't expect much speed gain when using SSE instructions directly. Mattias ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel