Re: [fpc-pascal] Is FPC implementing part or most of Delphi 2010's new RTTI?
On 10 Dec 2010, at 08:09, Thierry Coq wrote: What are the FPC team's plans about improving the RTTI? Any similar or as easy to use/powerful? Anyone needing this is welcome to submit patches. I don't think anyone is working on it right now, or planning to in the near future. For example, are there any attributes? Not at this time. Jonas PS: please do not reply to existing messages when starting a new topic, it messes up threading both in the online archive and in many mail clients. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Re: Data alignment of records
I don't know what you mean by registration data. Sorry. Can someone explain to me, about the Data alignment of records and other variables. thanks. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Re: Data alignment of records
On 10 Dec 2010, at 13:08, Luis Fernando Del Aguila Mejía wrote: Can someone explain to me, about the Data alignment of records and other variables. The alignment of records (and TP-style objects) is the same as alignment of its fields with the highest alignment requirement. For base types (integers, floating point types, pointers), the alignment depends on the target operating system. For Mac OS X and non-i386 systems, we follow the official ABI (application binary interface) of every system. For i386-platforms other than Mac OS X, I guess we follow Delphi. I'm not sure whether these rules are documented anywhere, and they were probably implemented based on writing test programs. Maybe a better question is: why do you want to know the alignment of different data types? Since it can change depending on which platform you are compiling for, writing your code assuming a particular alignment is generally a very bad idea. Jonas___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Problem with OpenGL drawing on Linux
On Fri, 10 Dec 2010 00:47:41 +0100 Jeppe Johansen jepj...@es.aau.dk wrote: A quick search seems to indicate that that one has a persisting problem with glLineStipple Works as expected with the NVIDIA driver here, so the driver may really be the problem. R. -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Pascal Scripting Engines
Hi there, I'm considering pascal scripting engines in stead of hot-swaped compiled stored objects/dlls for server back-end development for clients (namely WebSocket/JS). I came across a few relatively recent solutions and wanted to know if there are any obscure light weight scripting engines but yet leverage byte code. My largest problem would be security though. I would want to limit script engine access to OS level calls. I need to be able to sandbox these back-end apps so they don't interfere with the server process. Any thoughts/recommendations? Thanks. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Pascal Scripting Engines
I once wrote a script engine that generated bytecodes. At the time it was harder due to defective variants support (something like that). Now it would be easier. 2010/12/10 Andrew Brunner andrew.t.brun...@gmail.com: Hi there, I'm considering pascal scripting engines in stead of hot-swaped compiled stored objects/dlls for server back-end development for clients (namely WebSocket/JS). I came across a few relatively recent solutions and wanted to know if there are any obscure light weight scripting engines but yet leverage byte code. My largest problem would be security though. I would want to limit script engine access to OS level calls. I need to be able to sandbox these back-end apps so they don't interfere with the server process. Any thoughts/recommendations? Thanks. ___ fpc-pascal maillist - fpc-pas...@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Pascal Scripting Engines
I think FPC in general could benefit from a native FPC script. They have a link to a port of REM objects but the website said it was with flaws and tests were needed under linux. A light-weight scripting engine would need to be restricted to methods and object code. And perhaps some level of access to the networking engine each script would be called from. IMO, the scripting engine would either be completely thread safe or would have to have multiple instances one per thread. Do you still have your code? I wonder if the FPC memory manager could handle such an engine running over and over again without losing memory. On Fri, Dec 10, 2010 at 1:27 PM, Jorge Aldo G. de F. Junior jagf...@gmail.com wrote: I once wrote a script engine that generated bytecodes. At the time it was harder due to defective variants support (something like that). Now it would be easier. 2010/12/10 Andrew Brunner andrew.t.brun...@gmail.com: Hi there, I'm considering pascal scripting engines in stead of hot-swaped compiled stored objects/dlls for server back-end development for clients (namely WebSocket/JS). I came across a few relatively recent solutions and wanted to know if there are any obscure light weight scripting engines but yet leverage byte code. My largest problem would be security though. I would want to limit script engine access to OS level calls. I need to be able to sandbox these back-end apps so they don't interfere with the server process. Any thoughts/recommendations? Thanks. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Pascal Scripting Engines
On 12/10/2010 2:18 PM, Andrew Brunner wrote: Hi there, I'm considering pascal scripting engines in stead of hot-swaped compiled stored objects/dlls for server back-end development for clients (namely WebSocket/JS). I came across a few relatively recent solutions and wanted to know if there are any obscure light weight scripting engines but yet leverage byte code. My largest problem would be security though. I would want to limit script engine access to OS level calls. I need to be able to sandbox these back-end apps so they don't interfere with the server process. Any thoughts/recommendations? Thanks. RemObject's PascalScript and FastScript both work with FPC. RemObject's is free to use IRRC. -- Warm Regards, Lee ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Pascal Scripting Engines
A while back I wrote a scripting language based on Pascal that features byte code generation. I haven't worked on it in many years though. http://www.eternallines.com/blaise/ http://www.eternallines.com/blaise/ On 10 December 2010 21:18, Andrew Brunner andrew.t.brun...@gmail.comwrote: Hi there, I'm considering pascal scripting engines in stead of hot-swaped compiled stored objects/dlls for server back-end development for clients (namely WebSocket/JS). I came across a few relatively recent solutions and wanted to know if there are any obscure light weight scripting engines but yet leverage byte code. My largest problem would be security though. I would want to limit script engine access to OS level calls. I need to be able to sandbox these back-end apps so they don't interfere with the server process. Any thoughts/recommendations? Thanks. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Pascal Scripting Engines
On Fri, Dec 10, 2010 at 5:23 PM, Lee Jenkins l...@datatrakpos.com wrote: On 12/10/2010 2:18 PM, Andrew Brunner wrote: Hi there, I'm considering pascal scripting engines in stead of hot-swaped compiled stored objects/dlls for server back-end development for clients (namely WebSocket/JS). I came across a few relatively recent solutions and wanted to know if there are any obscure light weight scripting engines but yet leverage byte code. My largest problem would be security though. I would want to limit script engine access to OS level calls. I need to be able to sandbox these back-end apps so they don't interfere with the server process. Any thoughts/recommendations? Thanks. RemObject's PascalScript and FastScript both work with FPC. RemObject's is free to use IRRC. There is also the lysee language. See http://code.google.com/p/lysee/ Lysee is a small, fast, reliable and cross platform script language. It can be embedded into Pascal programs as a critical mission controler, or to be embedded into HTML to develop active WEB sites. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Re: Data alignment of records
Maybe a better question is: why do you want to know the alignment of different data types? Since it can change depending on which platform you are compiling for, writing your code assuming a particular alignment is generally a very bad idea. Not only want to know the alignment of different data types, there are also other things, the reasons are: 1. Because I want to learn and understand how the compiler works. 2. If I find a mistake, I would like to know how to fix it thanks. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Re: Data alignment of records
Maybe a better question is: why do you want to know the alignment of different data types? Since it can change depending on which platform you are compiling for, writing your code assuming a particular alignment is generally a very bad idea. Not only want to know the alignment of different data types, there are also other things, the reasons are: 1. Because I want to learn and understand how the compiler works. 2. If I find a mistake, I would like to know how to fix it thanks. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Numerics and graphics in Free Pascal
Hello list, I am new to the list and read it for nearly a week now. So it may be the topic is already answered. In this case, I say sorry. I want to start programming in Free Pascal using Lazarus (installed from the Debian Squeeze) because I want to do programming on my Debian system but I also want use the programs on Windows too. My interests are related to numerics and scientific calculations. There are two things I haven't found in the documentation up to now: 1. is there a library to easy handle matrices or do other numerical calculations like the numpy package does for python? (multiply, solve Ax=b, numerical integration) 2. display graphic representations of data (ploting functions or points in coordinate system, contour plots, 3D plots, etc; example here again my be python multiplot package)? I know there is something like drawing graphic primitives (lines, points, arcs ) which of course can be used to code something. But I don't what to invent the wheel again ;) Thank you for your answers Karsten -- Karsten Rothemund pho...@photor.de PGP-Key: 0x8D210F3E /\ Fingerprint: EA42 2654 612F C35B 4030 \ / 4A81 95F0 9FBB 8D21 0F3E \ ASCII Ribbon Campaign wget http://www.photor.de/PHOTOR.ASC / \ Against HTML Mail and News signature.asc Description: Digital signature ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Numerics and graphics in Free Pascal
On Fri, 2010-12-10 at 22:33 +0100, Karsten Rothemund wrote: Hello list, I am new to the list and read it for nearly a week now. So it may be the topic is already answered. In this case, I say sorry. I want to start programming in Free Pascal using Lazarus (installed from the Debian Squeeze) because I want to do programming on my Debian system but I also want use the programs on Windows too. My interests are related to numerics and scientific calculations. There are two things I haven't found in the documentation up to now: 1. is there a library to easy handle matrices or do other numerical calculations like the numpy package does for python? (multiply, solve Ax=b, numerical integration) To handle matrices I use DynMatrix http://paginas.fe.up.pt/~paco/pmwiki/index.php?n=DynMatrix.DynMatrix 2. display graphic representations of data (ploting functions or points in coordinate system, contour plots, 3D plots, etc; example here again my be python multiplot package)? I know there is something like drawing graphic primitives (lines, points, arcs ) which of course can be used to code something. Lazarus has TAChart component for 2D graphs http://wiki.lazarus.freepascal.org/TAChart I've used GLScene for some 3D plotting http://wiki.lazarus.freepascal.org/GLScene You should try the Lazarus mailing list for extra help. Paulo M. But I don't what to invent the wheel again ;) Thank you for your answers Karsten ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Numerics and graphics in Free Pascal
On Fri, 2010-12-10 at 21:49 +, Paulo Malheiros wrote: On Fri, 2010-12-10 at 22:33 +0100, Karsten Rothemund wrote: Hello list, I am new to the list and read it for nearly a week now. So it may be the topic is already answered. In this case, I say sorry. I want to start programming in Free Pascal using Lazarus (installed from the Debian Squeeze) because I want to do programming on my Debian system but I also want use the programs on Windows too. My interests are related to numerics and scientific calculations. There are two things I haven't found in the documentation up to now: 1. is there a library to easy handle matrices or do other numerical calculations like the numpy package does for python? (multiply, solve Ax=b, numerical integration) To handle matrices I use DynMatrix http://paginas.fe.up.pt/~paco/pmwiki/index.php?n=DynMatrix.DynMatrix ALGLIB is a cross-platform numerical analysis and data processing library. http://www.alglib.net/ 2. display graphic representations of data (ploting functions or points in coordinate system, contour plots, 3D plots, etc; example here again my be python multiplot package)? I know there is something like drawing graphic primitives (lines, points, arcs ) which of course can be used to code something. Lazarus has TAChart component for 2D graphs http://wiki.lazarus.freepascal.org/TAChart I've used GLScene for some 3D plotting http://wiki.lazarus.freepascal.org/GLScene You should try the Lazarus mailing list for extra help. Paulo M. But I don't what to invent the wheel again ;) Thank you for your answers Karsten ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] The new Delphi 2010 RTTI
Hello, Delphi 2010 has changed the RTTI mechanism, and it is said to be much more usable than the previous one. (see here for example: http://www.malcolmgroves.com/blog/?p=476) Some interesting tools are using this new approach, like DelphiOnRails: http://code.google.com/p/delphionrails/ Currently, the FPC doesn't implement this new mechanism (See Jonas' answer to my previous post, badly sent :-( ). But it might be possible to add this mechanism, by making patches to FPC. Would it interest somebody to have this new functionality? Best regards, Thierry ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] The new Delphi 2010 RTTI
11.12.2010 13:13, Thierry Coq wrote: Delphi 2010 has changed the RTTI mechanism, and it is said to be much more usable than the previous one. (see here for example: http://www.malcolmgroves.com/blog/?p=476) I would said extended what they had before. Currently, the FPC doesn't implement this new mechanism (See Jonas' answer to my previous post, badly sent :-( ). But it might be possible to add this mechanism, by making patches to FPC. Yes. Would it interest somebody to have this new functionality? Yes. Best regards, Paul Ishenin ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal