Re: [Lazarus] A game developed with Lazarus.
2012/2/13 Kjow antispamm...@gmail.com: Hi all! I added to the Lazarus wiki a video game I developed with Lazarus and GLScene: http://wiki.lazarus.freepascal.org/index.php?title=Projects_using_Lazarus#Slot_Cars_-_The_Video_Game At moment there is a demo to download and two videos on youtube. I'm looking for some commercial partners to distribuite it (like Steam and similar) and the full version is coming soon. :) Just to let you know that I released a new demo with a lot better graphics, some bugfixing and better performance. There is also a new screenshot in the wiki: http://wiki.lazarus.freepascal.org/index.php?title=Projects_using_Lazarus#Slot_Cars_-_The_Video_Game Let me know what you think about my game :) Best Regards, Kjow -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fcl-stl / thashset question
On Mon, 27 Feb 2012 06:18:59 +0100 Hans-Peter Diettrich drdiettri...@aol.com wrote: John Repucci schrieb: I'm attempting to use thashset from the fcl-stl unit. It appears that fcl-stl is not compiled with the fpc that comes with Lazarus-0.9.31-35589-fpc-2.6.1-20120225-win32. 2.6.1 does not install them. 2.7.1 does. At least under Linux and OS X. I don't know why 2.6.1 does not install them. Maybe they were not stable. You could ask on the fpc list. While fcl-stl is in the source, it is not found in the units directory tree. (this is also true of fpc-2.7.1.i386-win32 that I downloaded yesterday). Please create a bug report for fpc. I have ghashset.ppu and .o in fcl-stl/units/i386-win32. That's only the precompiled version. He was asking about the installed version of the ppu file. Any suggestions how I might get a version of fpc that includes fcl-stl? IMO it's a Lazarus only problem. No. What fpc installs and what no is entirely up to the FPC team. The Lazarus *fcl package* includes only *very* few fcl units. Yes, only those that register design time items in Lazarus. Try to add the required unit(s) directly to your project, and accept adding the recommended unit search path. You probably can remove the unit reference afterwards, when the added path is sufficient (untested). It would be better to fix this in the fpc packages. A proper solution should add all FCL units to the Lazarus fcl package, though. No. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Android Target GUI
On Sun, Feb 26, 2012 at 3:57 PM, Sven Barth pascaldra...@googlemail.com wrote: On 26.02.2012 14:34, Marc Santhoff wrote: Wetting my appetite here, is that program already in some repo or publicly visible? ;) Or what magazine or book do I need to buy? Look for the XFree. The current issue has Felipe's native method as an article and maybe the next(?) one will have Michael's article. To complement: Here is the website of the FreeX magazine: http://www.cul.de/freex.html -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Android Target GUI
On Mon, Feb 27, 2012 at 10:01 AM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: Here is the website of the FreeX magazine: http://www.cul.de/freex.html Aha, noting that FreeX is in german. If you can't read german you can buy the Blaise Pascal Magazine: http://www.blaisepascal.eu/ Issue #20 has an article about Android Programming using the LCL. -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Android Target GUI
Am 27.02.2012 10:03, schrieb Felipe Monteiro de Carvalho: On Mon, Feb 27, 2012 at 10:01 AM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: Here is the website of the FreeX magazine: http://www.cul.de/freex.html Aha, noting that FreeX is in german. If you can't read german you can buy the Blaise Pascal Magazine: Did you note Marc's E-Mail address? @web.de So it's very likely that he is a German speaker which is why I didn't say anything about freeX being German. http://www.blaisepascal.eu/ Issue #20 has an article about Android Programming using the LCL. I recommend reading BlaisePascal nevertheless as well ;) Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fcl-stl / thashset question
27.02.2012 12:19, Mattias Gaertner пишет: On Mon, 27 Feb 2012 06:18:59 +0100 Hans-Peter Diettrichdrdiettri...@aol.com wrote: John Repucci schrieb: I'm attempting to use thashset from the fcl-stl unit. It appears that fcl-stl is not compiled with the fpc that comes with Lazarus-0.9.31-35589-fpc-2.6.1-20120225-win32. 2.6.1 does not install them. 2.7.1 does. At least under Linux and OS X. I don't know why 2.6.1 does not install them. Maybe they were not stable. You could ask on the fpc list. A bug, #19916, fixed in 2.7.1 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] run program in ide with sudo for debug purpose
On 26/02/12 13:29, Mark Morgan Lloyd wrote: Martin wrote: On 26/02/2012 12:38, ik wrote: Hello, I'm trying to debug a program that I'm writing with Lazarus, and it require root privileges, but I do not want Lazarus to run as root, only the program itself for debug. How can I do that ? I have not tried it, but maybe if you replace /usr/bin/gdb (in the IDE opions dialog) with sudo /usr/bin/gdb ? Of course that affects all projects. But afaik you can't use a starter app , because then gdb will attempt to debug the starter app I've had this sort of requirement in the past, specifically when using libusb (i.e. the program needed sufficient privilege to grab the device). You need udev rules that set the user/group permissions for the devices that you use. You don't need to run as root. Henry -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] run program in ide with sudo for debug purpose
Henry Vermaak wrote: On 26/02/12 13:29, Mark Morgan Lloyd wrote: I've had this sort of requirement in the past, specifically when using libusb (i.e. the program needed sufficient privilege to grab the device). You need udev rules that set the user/group permissions for the devices that you use. You don't need to run as root. I'd be happy to be proven wrong, but my understanding is that you do since there is one specific kernel call (in effect, telling the kernel to release an unrecognised device to an unprivileged program) that won't work otherwise. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] run program in ide with sudo for debug purpose
On Mon, Feb 27, 2012 at 12:07, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Henry Vermaak wrote: On 26/02/12 13:29, Mark Morgan Lloyd wrote: I've had this sort of requirement in the past, specifically when using libusb (i.e. the program needed sufficient privilege to grab the device). You need udev rules that set the user/group permissions for the devices that you use. You don't need to run as root. I'd be happy to be proven wrong, but my understanding is that you do since there is one specific kernel call (in effect, telling the kernel to release an unrecognised device to an unprivileged program) that won't work otherwise. Close, I'm using libraries that talk with kernel space, and require root access to work, and it's not a GUI application. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] run program in ide with sudo for debug purpose
Am 27.02.2012 11:07, schrieb Mark Morgan Lloyd: Henry Vermaak wrote: On 26/02/12 13:29, Mark Morgan Lloyd wrote: I've had this sort of requirement in the past, specifically when using libusb (i.e. the program needed sufficient privilege to grab the device). You need udev rules that set the user/group permissions for the devices that you use. You don't need to run as root. I'd be happy to be proven wrong, but my understanding is that you do since there is one specific kernel call (in effect, telling the kernel to release an unrecognised device to an unprivileged program) that won't work otherwise. I already managed the following some time ago for a scanner that was not supported by SANE: * setup a Windows VM in QEMU * tell QEMU to pass the scanner to the VM If I now started the VM I became a permission denied error when it tried to open the corresponding dev node. Now I simply changed (at that time without udev rules, because they somehow didn't work as I wanted them to) the group of the corresponding device file (/dev/usb/{bus}/{device}) to a group my user is part of and Tada! it worked. So no, you don't need Root access for an unrecognized device. Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
What is the most widely used Pascal on Linux and other Unix variants? Is it Free Pascal? -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] [SOLVED} fpcup: failure compiling Lazarus with FPC fixes_2.6 on OSX 10.7 x64, works with x86
On 14-2-2012 21:30, Reinier Olislagers wrote: We're trying to set up a Lazarus/FPC combo that's independent of any already installed fpc/Lazarus installs. snip The compiler is fixes_2.6, downloaded from SVN: /Users/reinier/fpc/bin/fpc.sh -i Free Pascal Compiler version 2.6.1 Compiler Date : 2012/02/14 Compiler CPU Target: x86_64 make all (and some other things): make FPC=/Users/reinier/fpc/bin/fpc.sh --directory=/Users/reinier/lazarus FPCDIR=/Users/reinier/fpc/ UPXPROG=echo COPYTREE=echo clean all fails: (full log attached) ... Compiling ./objc/lobjc.pas Assembling (pipe) ../../units/x86_64-darwin/carbon/lobjc.s ... NSValue.inc(317,13) Error: Illegal type conversion: Pobjc_object to Single NSValue.inc(327,13) Warning: Conversion between ordinals and pointers is not portable foundation.pas(31) Fatal: There were 2 errors compiling module, stopping Fatal: Compilation aborted I suspect it's an error compiling carbon which IIRC, could/is/may not be supported on 64 bit?!? (running plain make, using system wide 32 bit fpc, does run, so it could very well the 64 bit compiler that's the problem here - or the way I'm abusing make and fpc in fpcup...) FYI, on the forum, http://lazarus.freepascal.org/index.php/topic,16084.0.html Jonas Maebe indicated compiling the cocoa widgetset apparently fails on x64 and suggested I use an i386 compiler to compile Lazarus/LCL. Regards, Reinier -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] run program in ide with sudo for debug purpose
On 27/02/12 10:07, Mark Morgan Lloyd wrote: Henry Vermaak wrote: On 26/02/12 13:29, Mark Morgan Lloyd wrote: I've had this sort of requirement in the past, specifically when using libusb (i.e. the program needed sufficient privilege to grab the device). You need udev rules that set the user/group permissions for the devices that you use. You don't need to run as root. I'd be happy to be proven wrong, but my understanding is that you do since there is one specific kernel call (in effect, telling the kernel to release an unrecognised device to an unprivileged program) that won't work otherwise. You need root permissions because libusb accesses the file /dev/bus/usb/%d/%d. The default permissions to these files are restricted to root by default, so udev is used so that known devices can be used by less-privileged users. E.g. usb printers, which will set the group to lp on my system (Debian). This is what I use at work for development with a Cypress FX2 board: hcv@technical09:~$ lsusb ... Bus 001 Device 003: ID 04b4:8613 Cypress Semiconductor Corp. CY7C68013 EZ-USB FX2 USB 2.0 Development Kit ... hcv@technical09:~$ ls -l /dev/bus/usb/001/ total 0 crw-rw-r-- 1 root root189, 0 Feb 27 09:15 001 crw-rw-r-- 1 root plugdev 189, 2 Feb 27 10:26 003 hcv@technical09:~$ cat /etc/udev/rules.d/55-hcv.rules ATTRS{idVendor}==04b4, ATTRS{idProduct}==8613, MODE=0664, GROUP=plugdev I belong to the plugdev group, so I can use the device without running as root. Henry -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] run program in ide with sudo for debug purpose
Sven Barth wrote: Am 27.02.2012 11:07, schrieb Mark Morgan Lloyd: I'd be happy to be proven wrong, but my understanding is that you do since there is one specific kernel call (in effect, telling the kernel to release an unrecognised device to an unprivileged program) that won't work otherwise. I already managed the following some time ago for a scanner that was not supported by SANE: * setup a Windows VM in QEMU * tell QEMU to pass the scanner to the VM If I now started the VM I became a permission denied error when it tried to open the corresponding dev node. Now I simply changed (at that time without udev rules, because they somehow didn't work as I wanted them to) the group of the corresponding device file (/dev/usb/{bus}/{device}) to a group my user is part of and Tada! it worked. So no, you don't need Root access for an unrecognized device. The reason it didn't work as expected might have been because the insertion of otherwise-unrecognised devices in /dev/usb is a comparatively recent feature. Checking, it's not in 2.6.18 (Debian Etch) but is in 2.6.32 (Debian Lenny). Allow for a few kernel steppings for it to actually /work/ :-) But to make those changes (and were they in the host or the guest?) you needed root access. So you've moved the problem rather than fixing it permanently. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] run program in ide with sudo for debug purpose
Henry Vermaak wrote: On 27/02/12 10:07, Mark Morgan Lloyd wrote: I'd be happy to be proven wrong, but my understanding is that you do since there is one specific kernel call (in effect, telling the kernel to release an unrecognised device to an unprivileged program) that won't work otherwise. You need root permissions because libusb accesses the file /dev/bus/usb/%d/%d. The default permissions to these files are restricted to root by default, so udev is used so that known devices can be used by less-privileged users. E.g. usb printers, which will set the group to lp on my system (Debian). This is what I use at work for development with a Cypress FX2 board: hcv@technical09:~$ lsusb ... Bus 001 Device 003: ID 04b4:8613 Cypress Semiconductor Corp. CY7C68013 EZ-USB FX2 USB 2.0 Development Kit ... hcv@technical09:~$ ls -l /dev/bus/usb/001/ total 0 crw-rw-r-- 1 root root189, 0 Feb 27 09:15 001 crw-rw-r-- 1 root plugdev 189, 2 Feb 27 10:26 003 hcv@technical09:~$ cat /etc/udev/rules.d/55-hcv.rules ATTRS{idVendor}==04b4, ATTRS{idProduct}==8613, MODE=0664, GROUP=plugdev I belong to the plugdev group, so I can use the device without running as root. Thanks for the example. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can't compile trunk with fpc 2.4.5 under ubuntu
On Mon, Feb 27, 2012 at 06:50:38AM +0100, Martin Schreiber wrote: TDataset.freerecord. That Delphi compatible though in current delphi's that is probably empty, since tbookmark is tbytes there. There is no TDataset.freerecord() procedure in FPC trunk AFAIK. Sorry, freebookmark. Please add TDataset.BookmarkStr property: public property BookmarkStr: TBookmarkStr read GetBookmarkStr write SetBookmarkStr; so in user code we can have a bookmark type with automatic memory management. I'll study if the normal tbookmark can change to tbytes short term. If not, I'll add the bookmarkstr as deprecated property for time being. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] run program in ide with sudo for debug purpose
On 27/02/12 11:13, Mark Morgan Lloyd wrote: The reason it didn't work as expected might have been because the insertion of otherwise-unrecognised devices in /dev/usb is a comparatively recent feature. Checking, it's not in 2.6.18 (Debian Etch) but is in 2.6.32 (Debian Lenny). Allow for a few kernel steppings for it to actually /work/ :-) The wiki page says it will work as far back as 2.6.13. Before then, hotplug was used, but don't ask me how that worked :) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
On Mon, Feb 27, 2012 at 12:14 PM, Vincent Snijders vincent.snijd...@gmail.com wrote: Yes, in Linux FPC should have 99%+ of the Pascal market share. Lazarus itself also has at least 95%+ of the IDE/framework marketshare. Maybe it should, but what makes you think it has 'in fact' such a share? Do you know any other Pascal compiler for Linux which competes seriously against FPC? Any big or medium sized project uses that compiler? Kylix is dead. GNU Pascal is almost dead. So there is not much competition left. An indirect measure: check http://www.ohloh.net/ All top Pascal developers for non-Windows projects are using FPC, actually most of the top ones are Lazarus developers. Another indirect measure: All Pascal projects which appeared in the Linux Questions Awards were built in FPC. All but 1 FPC projects there are build using Lazarus+LCL. Another indirect measure: Put pascal compiler linux in Google. I see only mentions of FPC and GNU Pascal (which is almost dead so can hardly count). -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
On 27/02/12 11:29, Felipe Monteiro de Carvalho wrote: On Mon, Feb 27, 2012 at 12:14 PM, Vincent Snijders vincent.snijd...@gmail.com wrote: Yes, in Linux FPC should have 99%+ of the Pascal market share. Lazarus itself also has at least 95%+ of the IDE/framework marketshare. Maybe it should, but what makes you think it has 'in fact' such a share? Do you know any other Pascal compiler for Linux which competes seriously against FPC? Any big or medium sized project uses that compiler? Kylix is dead. GNU Pascal is almost dead. So there is not much competition left. An indirect measure: check http://www.ohloh.net/ All top Pascal developers for non-Windows projects are using FPC, actually most of the top ones are Lazarus developers. Another indirect measure: All Pascal projects which appeared in the Linux Questions Awards were built in FPC. All but 1 FPC projects there are build using Lazarus+LCL. Another indirect measure: Put pascal compiler linux in Google. I see only mentions of FPC and GNU Pascal (which is almost dead so can hardly count). I think Vincent is asking where you got the numbers you quoted. Or did you just make them up? I.e. citation needed. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] run program in ide with sudo for debug purpose
On 27/02/12 11:34, Mark Morgan Lloyd wrote: Henry Vermaak wrote: On 27/02/12 11:13, Mark Morgan Lloyd wrote: The reason it didn't work as expected might have been because the insertion of otherwise-unrecognised devices in /dev/usb is a comparatively recent feature. Checking, it's not in 2.6.18 (Debian Etch) but is in 2.6.32 (Debian Lenny). Allow for a few kernel steppings for it to actually /work/ :-) The wiki page says it will work as far back as 2.6.13. Before then, hotplug was used, but don't ask me how that worked :) It might be in 2.6.13, but testing on a Debian SPARC Etch with 2.6.18 didn't so it might not have been enabled as standard until later. That's probably the case. They are quite conservative with new features! Henry -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
On Mon, Feb 27, 2012 at 12:37 PM, Henry Vermaak henry.verm...@gmail.com wrote: I think Vincent is asking where you got the numbers you quoted. Or did you just make them up? I.e. citation needed. I invented the numbers. But if anyone thinks they are not realistic, just get the download numbers for FPC and Lazarus, compare with other competing projects, and prove me wrong. (actually I just took a look and based on what I see I would increase my estimate of the Lazarus share to 99%+ too) -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can't compile trunk with fpc 2.4.5 under ubuntu
On Monday 27 February 2012 12:22:58 Marco van de Voort wrote: Please add TDataset.BookmarkStr property: public property BookmarkStr: TBookmarkStr read GetBookmarkStr write SetBookmarkStr; so in user code we can have a bookmark type with automatic memory management. I'll study if the normal tbookmark can change to tbytes short term. If not, I'll add the bookmarkstr as deprecated property for time being. Using TBytes as TBookmark everywhere (especially internally in TDataset) probably introduces unnecessary overhead. Martin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Why the Java became so strong?
What is the main reason that Java / C + + is better known than Lazarus / FPC? INTERNET. For Example even Microsoft in his great years can't beat Internet! If you remember the advertising of one of the version of Windows was: The Internet looks like Windows! They understood that it is not so. The next version of the advertising was: Windows looks like Internet! What include in Internet? Web Programing. I know only one web sait written in Lazarus: www.lazarussupport.com. But when I go to the forum it is not written in Pascal! Can a programmer with Web languages make a desktop applications? Yes! Maybe not so good and quick like with Lazarus but the programmer have Internet... So why the programmer must learning another programing language? Interten applications like below was writen on C/C++/Java, php... No one of they was writen on Pascal. Browsers Forums maker - like phpBB DB Another is: Office Aplication Antivirus software - if someone can convert MoonSecure from Delphi to Lazarus will be a great demo of capabilities of Lazarus/Pascal. Another thing are the mobile phones. Lazarus can not be used directly for mobile phones. Graeme wrote: Use the right tool for the job. Unfortunately, Lazarus made alone mainly Desktop applications. But this is a very small part of the market! For the above marketing purposes it partially use other languages. Even Lazarus use qt, gtk..., which are not written on Pascal. So why the programmer learn Pascal and another language when the programmer may do what he/she want for Internet, mobile devices, desktop applications with this another language? Please do not get me wrong. I really like Lazarus / FPC very much. Lazarus / FPC teams do a great job. But while the marketing objectives are so limited, there is very little chance of Lazarus to gain greater prominence. This was a very big mistake of Borland and we know what they do with Pascal. Sorry for my bad English!-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
On 27/02/12 11:45, Felipe Monteiro de Carvalho wrote: On Mon, Feb 27, 2012 at 12:37 PM, Henry Vermaakhenry.verm...@gmail.com wrote: I think Vincent is asking where you got the numbers you quoted. Or did you just make them up? I.e. citation needed. I invented the numbers. But if anyone thinks they are not realistic, just get the download numbers for FPC and Lazarus, compare with other competing projects, and prove me wrong. No, that's not how it works. You have to prove it because you stated it. Otherwise I can say stuff like in the center of the earth lives a dragon named Fred, if you don't think that's correct, you are free to prove me wrong. NB: I'm not doubting the popularity of fpc/lazarus, but you can't just make up statistics. Henry -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] run program in ide with sudo for debug purpose
On Sun, Feb 26, 2012 at 14:38, ik ido...@gmail.com wrote: Hello, I'm trying to debug a program that I'm writing with Lazarus, and it require root privileges, but I do not want Lazarus to run as root, only the program itself for debug. How can I do that ? Working with gdbserver can solve this. I'll investigate this issue on the weekend and might send a patch to lazarus to support it Thanks, Ido -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
Op 27 februari 2012 12:45 heeft Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com het volgende geschreven: On Mon, Feb 27, 2012 at 12:37 PM, Henry Vermaak henry.verm...@gmail.com wrote: I think Vincent is asking where you got the numbers you quoted. Or did you just make them up? I.e. citation needed. I invented the numbers. But if anyone thinks they are not realistic, just get the download numbers for FPC and Lazarus, compare with other competing projects, and prove me wrong. On debian, it is not so popular compared with gpc: Look at http://qa.debian.org/popcon.php?package=fpc and http://qa.debian.org/popcon.php?package=gpc-4.1 I'd say fpc is about 3-4 (and not 20-100) times as popular based on these figures, so fpc holding maximum 80% of the market share. Vincent -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
On Mon, 27 Feb 2012, Vincent Snijders wrote: Op 27 februari 2012 12:45 heeft Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com het volgende geschreven: On Mon, Feb 27, 2012 at 12:37 PM, Henry Vermaak henry.verm...@gmail.com wrote: I think Vincent is asking where you got the numbers you quoted. Or did you just make them up? I.e. citation needed. I invented the numbers. But if anyone thinks they are not realistic, just get the download numbers for FPC and Lazarus, compare with other competing projects, and prove me wrong. On debian, it is not so popular compared with gpc: Look at http://qa.debian.org/popcon.php?package=fpc and http://qa.debian.org/popcon.php?package=gpc-4.1 Huh ? The way I read it, it's exactly opposite ? Inst number: fp-compiler has 1043, (0,85%), gpc has 353 (0,29%) ? Votes: fp-compiler has 183, gpc has 47 In each case, it's not a very clear statistic by any standards. Michael.-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
Op 27 februari 2012 13:18 heeft michael.vancann...@wisa.be het volgende geschreven: On Mon, 27 Feb 2012, Vincent Snijders wrote: Op 27 februari 2012 12:45 heeft Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com het volgende geschreven: On Mon, Feb 27, 2012 at 12:37 PM, Henry Vermaak henry.verm...@gmail.com wrote: I think Vincent is asking where you got the numbers you quoted. Or did you just make them up? I.e. citation needed. I invented the numbers. But if anyone thinks they are not realistic, just get the download numbers for FPC and Lazarus, compare with other competing projects, and prove me wrong. On debian, it is not so popular compared with gpc: With 'not *so* popular' I meant having 95 or 99% of the market share. Look at http://qa.debian.org/popcon.php?package=fpc and http://qa.debian.org/popcon.php?package=gpc-4.1 Huh ? The way I read it, it's exactly opposite ? Inst number: fp-compiler has 1043, (0,85%), gpc has 353 (0,29%) ? Votes: fp-compiler has 183, gpc has 47 In each case, it's not a very clear statistic by any standards. No, but it is better than nothing. Vincent -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
On Mon, 27 Feb 2012, Vincent Snijders wrote: Op 27 februari 2012 13:18 heeft michael.vancann...@wisa.be het volgende geschreven: On Mon, 27 Feb 2012, Vincent Snijders wrote: Op 27 februari 2012 12:45 heeft Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com het volgende geschreven: On Mon, Feb 27, 2012 at 12:37 PM, Henry Vermaak henry.verm...@gmail.com wrote: I think Vincent is asking where you got the numbers you quoted. Or did you just make them up? I.e. citation needed. I invented the numbers. But if anyone thinks they are not realistic, just get the download numbers for FPC and Lazarus, compare with other competing projects, and prove me wrong. On debian, it is not so popular compared with gpc: With 'not *so* popular' I meant having 95 or 99% of the market share. Ehm, market share of what ? Pascal compilers ? In that case, it's FPC 74 % versus gpc 26 %, which I think is not so bad ? Of course, total world domination is still far off ;-) Michael.-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Why the Java became so strong?
2012/2/27 Rigel Rigel : Web Programing. I know only one web sait written in Lazarus: www.lazarussupport.com. Here you go, here is a wiki engine and website I wrote in Object Pascal. It's a very small application, but it's a website written in Object Pascal, using the Lazarus IDE (though any IDE or editor could have been used). :-) http://opensoft.homeip.net:8080/wiki/wiki.cgi?p=Main-Page I don't like web development work, so I don't have more public things to show. I can say thought that we (our company) also have an advanced database driven web interface to one of our company applications - all written in Object Pascal, using Free Pascal as the compiler. Another thing are the mobile phones. Lazarus can not be used directly for mobile phones. I have no problems writing and running applications for my PDA (Windows Mobile). All written in Object Pascal, using fpGUI Toolkit and compiled with Free Pascal. Graeme wrote: Use the right tool for the job. Unfortunately, Lazarus made alone mainly Desktop applications. You should be more specific. I guess you mean LCL and not Lazarus. To me, Lazarus describes more the IDE, and the Lazarus IDE is implemented in LCL. Well, I have used Lazarus (IDE) to develop web, desktop and mobile apps. No problems. Even Lazarus use qt, gtk..., which are not written on Pascal. Then maybe you should take a look at fpGUI Toolkit (see my signature) or MSEgui. Both are GUI toolkits 100% implemented in Object Pascal, stable and fully capable for advanced applications. And as I said, fpGUI even works on mobile and embedded devices. -- Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Why the Java became so strong?
2012/2/27 Rigel Rigel ri...@gbg.bg: Interten applications like below was writen on C/C++ I never heard of a web page written in C/C++ Even Lazarus use qt, gtk... Not necessarely. In LCL for Android everything is done in Lazarus itself: http://wiki.lazarus.freepascal.org/Custom_Drawn_Interface -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
On 27 February 2012 13:29, Felipe Monteiro de Carvalho wrote: Kylix is dead. Some products just know know when to die, do they? ;-) I actually know of quite a few commercial applications still written with Kylix today. Beyond Compare 3 from Scooter Software would be an obvious one. The fact is (as Henry indicated), one can't just imagine a number. Statistics don't work that way. It's the same as those people that keep on saying that Linux only has 1% market share. How do they know? There are no OEM numbers for all Linux distros. I download my ISO images and share them to many many people. We don't register with some company or website to be counted. So that 1% figure is pure speculation! South Africa has many Freedom Toasters, where you bring your own CD's or DVD's and copy any free and open source software at no cost. Last I read (from a leaked report to Borland and Embarcadero - I can try and find that link again), Borland sold a couple million copies or Kylix (excluding the Open Edition which you could download for free). I'm pretty sure some of those copies are still in use today. I also host a copy of Kylix 3 Open Edition on some file share website. It was downloaded 70+ times last year, even though I put a notice to say they should try Free Pascal and Lazarus instead. -- Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
On 27 February 2012 13:53, Henry Vermaak wrote: NB: I'm not doubting the popularity of fpc/lazarus, but you can't just make up statistics. +1 on both counts. -- Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] run program in ide with sudo for debug purpose
Am 27.02.2012 12:13, schrieb Mark Morgan Lloyd: Sven Barth wrote: Am 27.02.2012 11:07, schrieb Mark Morgan Lloyd: I'd be happy to be proven wrong, but my understanding is that you do since there is one specific kernel call (in effect, telling the kernel to release an unrecognised device to an unprivileged program) that won't work otherwise. I already managed the following some time ago for a scanner that was not supported by SANE: * setup a Windows VM in QEMU * tell QEMU to pass the scanner to the VM If I now started the VM I became a permission denied error when it tried to open the corresponding dev node. Now I simply changed (at that time without udev rules, because they somehow didn't work as I wanted them to) the group of the corresponding device file (/dev/usb/{bus}/{device}) to a group my user is part of and Tada! it worked. So no, you don't need Root access for an unrecognized device. The reason it didn't work as expected might have been because the insertion of otherwise-unrecognised devices in /dev/usb is a comparatively recent feature. Checking, it's not in 2.6.18 (Debian Etch) but is in 2.6.32 (Debian Lenny). Allow for a few kernel steppings for it to actually /work/ :-) At the time I tested this I run a 2.6.40 or so kernel (ArchLinux) so this was definitely not the problem ;) Nevertheless: though the udev rules failed the manual changing of the ownership on the host computer worked. But to make those changes (and were they in the host or the guest?) you needed root access. So you've moved the problem rather than fixing it permanently. These changes were on the host and the ownership only needs to be changed once after the scanner was plugged in (udev would have done that automatically, but as I didn't need the scanner that often the manual route was sufficient) otherwise QEMU will complain that it can't open the USB device file. Note: I did never look why my udev rule didn't work. Today this is no longer important as I now have a scanner that works with SANE. Also I don't see what you want to imply with moved the problem. The solution for accessing hardware devices without root access is to change their permissions one way or the other. You can do that either by udev rules, manually or in a startup script which is always run (and is run as root - like /etc/rc.local on ArchLinux) though in the last case the device needs ot be plugged in at startup. Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fcl-stl / thashset question
Date: Mon, 27 Feb 2012 13:20:02 +0400 From: Alexander Shishkin alexv...@mail.ru Subject: Re: [Lazarus] fcl-stl / thashset question To: lazarus@lists.lazarus.freepascal.org Message-ID: 4f4b4ac2.4070...@mail.ru Content-Type: text/plain; charset=UTF-8; format=flowed 27.02.2012 12:19, Mattias Gaertner ?: On Mon, 27 Feb 2012 06:18:59 +0100 Hans-Peter Diettrichdrdiettri...@aol.com wrote: John Repucci schrieb: I'm attempting to use thashset from the fcl-stl unit. It appears that fcl-stl is not compiled with the fpc that comes with Lazarus-0.9.31-35589-fpc-2.6.1-20120225-win32. 2.6.1 does not install them. 2.7.1 does. At least under Linux and OS X. I don't know why 2.6.1 does not install them. Maybe they were not stable. You could ask on the fpc list. A bug, #19916, fixed in 2.7.1 Bug #19916 was closed ~ 6 months ago. I downloaded 2.7.1 yesterday and it did not include fcl-stl. I'll ask on the fpc list. Thanks all. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
Op 27 februari 2012 13:30 heeft michael.vancann...@wisa.be het volgende geschreven: Op 27 februari 2012 12:45 heeft Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com het volgende geschreven: With 'not *so* popular' I meant having 95 or 99% of the market share. Ehm, market share of what ? Pascal compilers ? In that case, it's FPC 74 % versus gpc 26 %, which I think is not so bad ? I agree. I disagree, or a better: I seriously doubt what Felipe wrote: in Linux FPC should have 99%+ of the Pascal market share. Lazarus itself also has at least 95%+ of the IDE/framework marketshare. Vincent -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
Take a look at any RPM package search page: http://rpmfind.net/ Found 157 RPM for fpc Found 3 RPM for gpc (all of them in very old Mandriva versions) You can't even find GPC packages in newer distributions. See also: http://pkgs.org/search/?keyword=gpc Appears in Ubuntu 10. Disappeared from Ubuntu 11 -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
Am 27.02.2012 14:47, schrieb Felipe Monteiro de Carvalho: Take a look at any RPM package search page: http://rpmfind.net/ Found 157 RPM for fpc Found 3 RPM for gpc (all of them in very old Mandriva versions) You can't even find GPC packages in newer distributions. See also: http://pkgs.org/search/?keyword=gpc Appears in Ubuntu 10. Disappeared from Ubuntu 11 Also according to the GNU Pascal site it seems to only support GCC 4 with the last release being from 2006. I can't tell how valid this observations are (I didn't find a source repository by quickly looking), so please handle with care. Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Why the Java became so strong?
On Mon, 27 Feb 2012 13:35:08 +0100 Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: I never heard of a web page written in C/C++ http://cppcms.com/wikipp/en/page/main or http://www.webtoolkit.eu/wt/ R. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fcl-stl / thashset question
Am 27.02.2012 14:15, schrieb John Repucci: Date: Mon, 27 Feb 2012 13:20:02 +0400 From: Alexander Shishkin alexv...@mail.ru mailto:alexv...@mail.ru Subject: Re: [Lazarus] fcl-stl / thashset question To: lazarus@lists.lazarus.freepascal.org mailto:lazarus@lists.lazarus.freepascal.org Message-ID: 4f4b4ac2.4070...@mail.ru mailto:4f4b4ac2.4070...@mail.ru Content-Type: text/plain; charset=UTF-8; format=flowed 27.02.2012 12:19, Mattias Gaertner ?: On Mon, 27 Feb 2012 06:18:59 +0100 Hans-Peter Diettrichdrdiettri...@aol.com mailto:drdiettri...@aol.com wrote: John Repucci schrieb: I'm attempting to use thashset from the fcl-stl unit. It appears that fcl-stl is not compiled with the fpc that comes with Lazarus-0.9.31-35589-fpc-2.6.1-20120225-win32. 2.6.1 does not install them. 2.7.1 does. At least under Linux and OS X. I don't know why 2.6.1 does not install them. Maybe they were not stable. You could ask on the fpc list. A bug, #19916, fixed in 2.7.1 Bug #19916 was closed ~ 6 months ago. I downloaded 2.7.1 yesterday and it did not include fcl-stl. I'll ask on the fpc list. Thanks all. I did a quick test by manually building and installing FPC 2.7.1 on i386-win32. There fcl-stl is included in the installation. But you are indeed right that it is not included in the snapshot download. Please file a bug report. Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] run program in ide with sudo for debug purpose
On Mon, Feb 27, 2012 at 15:56, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: ik wrote: On Sun, Feb 26, 2012 at 14:38, ik ido...@gmail.com wrote: Hello, I'm trying to debug a program that I'm writing with Lazarus, and it require root privileges, but I do not want Lazarus to run as root, only the program itself for debug. How can I do that ? Working with gdbserver can solve this. I'll investigate this issue on the weekend and might send a patch to lazarus to support it If that would work then would accessing gdb via ssh be an alternative? I don't think it's the same. But I guess it is :) -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Why the Java became so strong?
On 25/02/2012 21:51, Frank Church wrote: [...] You have Delphi to blame here, because somehow Borland's marketing of Delphi deemphasized the Pascal dimension of Delphi with the effect that most people don't identify Pascal with Delphi. The terms FPC and Lazarus don't give any indication that Pascal is the language. Somehow FPC should some how get itself identified with Pascal in the mind of people and Lazarus must be identified as the definitive Pascal IDE at the very least if not in the Windows world very much so in the Unix/Linux world. Most the languages mentioned above are strongly identified with Linux and the web and are 'cool' whereas Pascal are not. Being a language that has to be compiled language is also a downer I had my first lick of (Turbo) Pascal on an ancient 286 (!) some time between 1996-7, on an ancient 286 machine ... C looked extremely complicated then (and when you read a manual for Atari C compiler your hair would stand up and stay there...) and still a pain :) But I have heard/read opinions of people that think Pascal is a toy language, and they date to way way before Borland :( So to recap - yes Borland probably is to blame but not for the reason you wrote, rather for /not/ trying to reverse the old opinions, but trying to detour around them, badly... L. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
On 27 February 2012 10:15, Frank Church vfcli...@gmail.com wrote: What is the most widely used Pascal on Linux and other Unix variants? Is it Free Pascal? -- Frank Church What license are FPC and Lazarus, are they GPL? I think somehow a way must be found of getting Pascal identified with Free Pascal on the Linux platform if it is the most widely used. How about Lazarus Pascal. The problem with Free Pascal, actually most of the older languages is that there tend to be many variations and some what different dialects. There is more or less only one Ruby, one Python, one PHP, one Scala, you know whatever. There are a few variants of Ruby but so long as they can all run Ruby on Rails who cares? This how I see things. 1. Establish Free Pascal as THE Pascal, THE Object (based) Pascal on Linux 2. A way must be found of uncoupling the Free Pascal, the LCL, the FCL and the Lazarus IDE. 3. The Lazarus IDE (which should be the killer app) must be clearly distinguished. a) as Pascal IDE , ie dealing purely with Pascal Source code, b) an IDE that integrates well with the Non Visual aspects of the LCL e.g. fcl-web for instance c) a graphic based IDE akin to Delphi 4. Both WIKIs are need a makeover. I am sure this has been discussed before :), but the image is really important. Far lesser projects somehow project a more 'professional' image just because of their websites. Lazarus wiki is like the Foyles bookshop of the past if not the present,or like some kind of army surplus store. You can find nearly everything you want, probably everything but it is not as organized and as slick as the competition. A lot of the websites of other projects hardly contain anything, but they all look modern and up to date. 5. This requires an increase in the uptake of Pascal. I mean if a language like D can get so much attention and have libraries being created for it why can't Pascal which has been longer established. 6. I guess one major shortcoming of Pascal is it is not immediately identified with objects, like C. Can Free Pascal simply change its name to Object Pascal Honestly I think the name is probably the biggest problem if in an era of objects everything it is not associated with Pascal due to its age and past. In short how does Pascal get itself restablished? === http://devblog.brahmancreations.com -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
Am 27.02.2012 15:14, schrieb Frank Church: What license are FPC and Lazarus, are they GPL? The compiler and the IDE themselves are GPL, but their libraries (RTL, FCL, LCL) are released under a modified LGPL (to allow static linking in commercial projects) 2. A way must be found of uncoupling the Free Pascal, the LCL, the FCL and the Lazarus IDE. FPC and Lazarus are already rather decoupled. They basically only share the Wiki, bug tracker and the SVN server (and some developers ^^). 4. Both WIKIs are need a makeover. I am sure this has been discussed before :), but the image is really important. Far lesser projects somehow project a more 'professional' image just because of their websites. Lazarus wiki is like the Foyles bookshop of the past if not the present,or like some kind of army surplus store. You can find nearly everything you want, probably everything but it is not as organized and as slick as the competition. A lot of the websites of other projects hardly contain anything, but they all look modern and up to date. In that case I prefer contains everything and does not look modern ;) 5. This requires an increase in the uptake of Pascal. I mean if a language like D can get so much attention and have libraries being created for it why can't Pascal which has been longer established. Because a) Pascal is an old language. It's not stylish and cool to write in an old language except it's C b) The original Pascal was designed as a lerner language and this is still present in the minds. Thus most people (if they don't know Delphi) think of Pascal as a top language that you can't do any serious programming in 6. I guess one major shortcoming of Pascal is it is not immediately identified with objects, like C. Can Free Pascal simply change its name to Object Pascal The name Free Pascal has already been established as some kind of Trademark. Also Object Pascal is already the name of the dialect FPC supports (and it does not only support Object Pascal, but also the Turbo Pascal and MacPascal dialects). So I personally consider it a really bad idea to change its name. Honestly I think the name is probably the biggest problem if in an era of objects everything it is not associated with Pascal due to its age and past. In short how does Pascal get itself restablished? If a project can not stand out by its name (as you assume for Free Pascal) it must rely on other things (features) like stability, performance, portability, etc. To increase the perceiption of FPC in the public one needs to do advertising. I myself have printed me a FPC T-Shirt and like to run around in that very often (especially at university to oppose the omnipresent Java ;) ). Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
2012/2/27 Frank Church vfcli...@gmail.com: 1. Establish Free Pascal as THE Pascal, THE Object (based) Pascal on Linux While I disagree that any serious competition to FPC exists in Linux, you should know that FPC has never been monopolist. Competition is widely seen as something good. Having more good Object Pascal compilers would be good. 2. A way must be found of uncoupling the Free Pascal, the LCL, the FCL and the Lazarus IDE. So you are suggesting to make it harder to configure as a step towards higher popularity? 4. Both WIKIs are need a makeover. There is only 1 wiki and I think it is quite good. All necessary information is quickly accessible. A beginner can very quickly get a quick start on almost any topic. In short how does Pascal get itself restablished? I think that everything possible in the world about this topic has already been said in this thread: http://www.lazarus.freepascal.org/index.php/topic,13754.0.html -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] run program in ide with sudo for debug purpose
On 2/27/2012 05:11, Sven Barth wrote: I'd be happy to be proven wrong, but my understanding is that you do since there is one specific kernel call (in effect, telling the kernel to release an unrecognised device to an unprivileged program) that won't work otherwise. I already managed the following some time ago for a scanner that was not supported by SANE: * setup a Windows VM in QEMU * tell QEMU to pass the scanner to the VM If I now started the VM I became a permission denied error when it tried to open the corresponding dev node. Now I simply changed (at that time without udev rules, because they somehow didn't work as I wanted them to) the group of the corresponding device file (/dev/usb/{bus}/{device}) to a group my user is part of and Tada! it worked. So no, you don't need Root access for an unrecognized device. why not just add your user(s) to that group the device was in? this would/should give the same access capabilities... or am i missing something else? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] run program in ide with sudo for debug purpose
Am 27.02.2012 16:06, schrieb waldo kitty: On 2/27/2012 05:11, Sven Barth wrote: I'd be happy to be proven wrong, but my understanding is that you do since there is one specific kernel call (in effect, telling the kernel to release an unrecognised device to an unprivileged program) that won't work otherwise. I already managed the following some time ago for a scanner that was not supported by SANE: * setup a Windows VM in QEMU * tell QEMU to pass the scanner to the VM If I now started the VM I became a permission denied error when it tried to open the corresponding dev node. Now I simply changed (at that time without udev rules, because they somehow didn't work as I wanted them to) the group of the corresponding device file (/dev/usb/{bus}/{device}) to a group my user is part of and Tada! it worked. So no, you don't need Root access for an unrecognized device. why not just add your user(s) to that group the device was in? this would/should give the same access capabilities... or am i missing something else? The USB device files are by default created with root:root. I changed the one of my scanner to root:plugdev by hand (and yes, my user belongs to plugdev ;) ) Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fcl-stl / thashset question
From: Sven Barth pascaldra...@googlemail.com I did a quick test by manually building and installing FPC 2.7.1 on i386-win32. There fcl-stl is included in the installation. But you are indeed right that it is not included in the snapshot download. Please file a bug report. Regards, Sven Done: bug #: 0021384 http://bugs.freepascal.org/view.php?id=21384 Sven (or others), can you point me to a reference document on how to build fpc on a windows system? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fcl-stl / thashset question
Am 27.02.2012 16:11, schrieb John Repucci: From: Sven Barth pascaldra...@googlemail.com mailto:pascaldra...@googlemail.com I did a quick test by manually building and installing FPC 2.7.1 on i386-win32. There fcl-stl is included in the installation. But you are indeed right that it is not included in the snapshot download. Please file a bug report. Regards, Sven Done: bug #: 0021384 http://bugs.freepascal.org/view.php?id=21384 Sven (or others), can you point me to a reference document on how to build fpc on a windows system? Here for example: http://www.stack.nl/~marcov/buildfaq.pdf But basically the following should be sufficient: * I assume the source is located in %FPCSRC% and a 2.6 is installed in %FPCBIN% (it's also ok if it is in %PATH%). I further assume that you want to install 2.7.1 to %FPCDEST% * open cmd.exe and navigate to %FPCSRC% * if the 2.6 compiler is in %PATH%: make all install INSTALL_PREFIX=%FPCDEST% * if not: make all install INSTALL_PREFIX=%FPCDEST% FPC=%FPCBIN%\i386-win32\fpc.exe Then you copy %FPCBIN%\i386-win32\fpc.cfg to %FPCDEST%\i386-win32\ and adjust any paths in there so that they fit your new %FPCDEST% That should be it. You can then call the compiler using %FPCDEST%\i386-win32\fpc.exe Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] run program in ide with sudo for debug purpose
On 2/27/2012 10:09, Sven Barth wrote: Am 27.02.2012 16:06, schrieb waldo kitty: why not just add your user(s) to that group the device was in? this would/should give the same access capabilities... or am i missing something else? The USB device files are by default created with root:root. I changed the one of my scanner to root:plugdev by hand (and yes, my user belongs to plugdev ;) ) ahhh! yes, i remember similar messes i dug into a while back... i should have remembered before writing... -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
On Mon, Feb 27, 2012 at 02:14:07PM +, Frank Church wrote: dialects. There is more or less only one Ruby, And which one is that, JRuby(*), IronRuby(**), or Ruby-on-parrot(***))? (*) http://www.jruby.org Reworked On top of Java (*) http://ironruby.net/ reworekd on top of .NET (**) http://cardinal2.rubyforge.org/ reworked on top of Parrot VM ( :-) ) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
On Mon, Feb 27, 2012 at 03:59:35PM +0100, Felipe Monteiro de Carvalho wrote: 2012/2/27 Frank Church vfcli...@gmail.com: 1. Establish Free Pascal as THE Pascal, THE Object (based) Pascal on Linux While I disagree that any serious competition to FPC exists in Linux, you should know that FPC has never been monopolist. Competition is widely seen as something good. Having more good Object Pascal compilers would be good. If the rumours are correct, Embarcadero might enter the Linux market again in august-september, but again a crosscompile product. At least that was how the roadmap during the XE2 introduction sounded, next edition native ARM (iOS and maybe Android) and expansion of the i386/x86_64 compiler to Linux. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
On Mon, Feb 27, 2012 at 02:53:21PM +0100, Sven Barth wrote: http://rpmfind.net/ Found 157 RPM for fpc Found 3 RPM for gpc (all of them in very old Mandriva versions) You can't even find GPC packages in newer distributions. See also: http://pkgs.org/search/?keyword=gpc Appears in Ubuntu 10. Disappeared from Ubuntu 11 Also according to the GNU Pascal site it seems to only support GCC 4 with the last release being from 2006. I can't tell how valid this observations are (I didn't find a source repository by quickly looking), so please handle with care. While GPC is not very active atm, and a case could be made that it is dead, these kinds of statistics are not very comparable. This because GPC has a totally different release and development model (read: none since 2.1), and nearly all builds are independent build of target-maintainers, that often also keep own source trees, and mutually absorb patches. It is very difficult to compare this with FPC, that actively pushes distribution specific releases (deb, rpm, freebsd ports). -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fcl-stl / thashset question
Mattias Gaertner schrieb: I have ghashset.ppu and .o in fcl-stl/units/i386-win32. That's only the precompiled version. He was asking about the installed version of the ppu file. Sorry, I didn't understand installed, in Lazarus context. Only after reading further replies I realized that the FPC make install was meant. DoDi -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can't compile trunk with fpc 2.4.5 under ubuntu
On Monday 27 February 2012 20:32:29 Marco van de Voort wrote: On Mon, Feb 27, 2012 at 12:48:29PM +0100, Martin Schreiber wrote: I'll study if the normal tbookmark can change to tbytes short term. If not, I'll add the bookmarkstr as deprecated property for time being. Using TBytes as TBookmark everywhere (especially internally in TDataset) probably introduces unnecessary overhead. Btw, didn't know you use fcl-db as base for MSE. MSEgui uses db.pas so it is possible to use non MSE DB components in MSEgui projects. If so, please also note the other interface related change: http://wiki.freepascal.org/User_Changes_Trunk Thanks. The problem with some of the recent Delphi compatibility changes is that it breaks Delphi 7 compatibility. MSEide+MSEgui version 2.6 is compilable and runs with Delphi 7, a good benchmark for FPC. BTW, does current Delphi return pointer or tbytes in TDataset.Bookmark? Does it allow pointer arithmetic with the new TDateset buffer type pbyte? Delphi 7 can do pointer arithmetic with pchar and pwidechar only. A side mark: I don't think using the old ansistring as combined binary and character buffer is such a bad thing. TByte could replace such buffers only if Pascal string indexing would be zero based. Consequently with all these changes Delphi string indexes should be zero based too, same as dynamic array indexes. Martin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
On 27 February 2012 22:48, Marco van de Voort wrote: I'm not sure if products that hinge on the last version of a series are really relevant. My point was more about the fact that Scooter Software has applied there own fixes to CLX, and have also upgraded their Kylix 3 to use Qt3 (instead of Qt 2.3 which came with Kylix). If they shared all there Kylix enhancements, I have no idea. I also know there is a huge bunch of unofficial fixes that can be installed over Kylix 3. So at least the framework around Kylix has grown, after is was considered to be dead. Also, Kylix 3 is still perfectly fine for web development work. -- Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can't compile trunk with fpc 2.4.5 under ubuntu
On Mon, Feb 27, 2012 at 09:51:41PM +0100, Martin Schreiber wrote: If so, please also note the other interface related change: http://wiki.freepascal.org/User_Changes_Trunk Thanks. The problem with some of the recent Delphi compatibility changes is that it breaks Delphi 7 compatibility. Well, if that is a problem is a matter of taste. In reality, I think that D7 was wrong here, stuffing binary data into an ansistring. True, if D2009 didn't change to unicodestring, it would probably be the most minor issue, but still, wrong is wrong. MSEide+MSEgui version 2.6 is compilable and runs with Delphi 7, a good benchmark for FPC. BTW, does current Delphi return pointer or tbytes in TDataset.Bookmark? TBytes. Afaik it returned pointer from D2006..2007. Does it allow pointer arithmetic with the new TDateset buffer type pbyte? D2009 does not allow this in default mode, but it does allow overindexing like FPC when {$POINTERMATH ON} is added. In my work Delphi code, this is default :-) Delphi 7 can do pointer arithmetic with pchar and pwidechar only. A side mark: I don't think using the old ansistring as combined binary and character buffer is such a bad thing. I do think that is bad. If you start using ansistring in mixed encoding environments (e.g. utf16 aka widestring/unicodestring), there is a danger of mutilation. This is currently not very noticable in FPC because the default type is still ansistring[OS default 1-byte encoding], but we might not want to be stuck with that forever. TByte could replace such buffers only if Pascal string indexing would be zero based. No, since tbookmark afaik never represented a true string, character access would be meaningless, and would be a code smell indicating bad code. Consequently with all these changes Delphi string indexes should be zero based too, same as dynamic array indexes. IMHO this is not one of the differences that is significant enough to perpetuate workarounds till eternity. So I'm willing to entertain workarounds with a scope of a FPC release or two, but not beyond. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can't compile trunk with fpc 2.4.5 under ubuntu
Martin Schreiber schrieb: Thanks. The problem with some of the recent Delphi compatibility changes is that it breaks Delphi 7 compatibility. +1 :-( IMO at least a stable D7 compatible version/branch is required, which may be extended to the last Delphi AnsiString version (D2007?). This branch doesn't deserve any further features or interface changes of the newer Unicode versions. A side mark: I don't think using the old ansistring as combined binary and character buffer is such a bad thing. +1 Following the many complaints in the Embarcadero groups, much code still relies on the use of AnsiString even for binary data. Another argument for a *really* D7 compatible Lazarus version. DoDi -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can't compile trunk with fpc 2.4.5 under ubuntu
On Tue, Feb 28, 2012 at 12:00:14AM +0100, Hans-Peter Diettrich wrote: Martin Schreiber schrieb: Thanks. The problem with some of the recent Delphi compatibility changes is that it breaks Delphi 7 compatibility. +1 :-( IMO at least a stable D7 compatible version/branch is required, which may be extended to the last Delphi AnsiString version (D2007?). This branch doesn't deserve any further features or interface changes of the newer Unicode versions. Afaik all serious merge requests to the 2.4 branch were honoured:-) A side mark: I don't think using the old ansistring as combined binary and character buffer is such a bad thing. +1 Following the many complaints in the Embarcadero groups, much code still relies on the use of AnsiString even for binary data. Another argument for a *really* D7 compatible Lazarus version. Like with Delphi, the problem for FPC is the same. Who will foot the bill for such sentiments. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
On 2/27/2012 4:21 PM, Graeme Geldenhuys wrote: My point was more about the fact that Scooter Software has applied there own fixes to CLX, and have also upgraded their Kylix 3 to use Qt3 (instead of Qt 2.3 which came with Kylix). Actually, the upgrade to Qt 3 was Andreas Hausladen's doing, and he did release it, but it isn't available online anymore. It was an impressive piece of work, and I think it laid the groundwork for Lazarus' Qt support, since I remember seeing Zeljan's name associated with it too. We do have a shocking number of fixes on top of it though. If they shared all there Kylix enhancements, I have no idea. No, we haven't. Borland screwed up the Kylix community project, and Andreas stopped maintaining the unofficial patches at the same time, so there isn't anywhere for us to share them. So at least the framework around Kylix has grown, after is was considered to be dead. It was considered dead, and then the Kylix community project and Borland's poor handling of Simon Kissel's cross-compiler killed it completely. Also, Kylix 3 is still perfectly fine for web development work. I'm not aware of any Linux distro post-2006 that runs the IDE, and even then you needed a hack to debug threads. We would have given it up years ago, but I thought Delphi's cross-platform support would use Qt right up until they purchased VGScene. I'm sure there are a few other holdouts, but there's certainly no community anymore. Before they removed it, the .kylix newsgroup's last post was in 2008 or so. -- Craig Peterson Scooter Software -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] upx dont work
Dear colleagues: i have used por many years the upx for compact the executable files. Really, it have worked pretty well. today, i have tried to compact an executable but i have obtained a nom good result. previously i have used the strip to reduce the weight from more or less 30 Mb to 3 Mb. After that, the executable still works well. them i have applied the upx, it look to work well, the weight is reduced to 1 Mb, but when i tried to execute, a message appears telling the configuration is not good and maybe reinstalling the application can work. In more than 20 years using it, it is the first time this occurs. thanks very much Ing. Héctor F. Fiandor Rosario hfian...@infomed.sld.cu -- Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema Nacional de Salud. La persona que envia este correo asume el compromiso de usar el servicio a tales fines y cumplir con las regulaciones establecidas Infomed: http://www.sld.cu/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can't compile trunk with fpc 2.4.5 under ubuntu
Martin Schreiber wrote: ... A side mark: I don't think using the old ansistring as combined binary and character buffer is such a bad thing. I completely agree and was surprised to read opposite opinions here. Since 1985 I've been telling people this is my favorite feature so I can use strings as binary communication buffers and let the compiler deal with everything and it all just works... :) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Why the Java became so strong?
2012/2/25 Frank Church vfclists@ The terms FPC and Lazarus don't give any indication that Pascal is the language. I only noticed now that your statement is totally wrong. You do realise that FPC is an acronym for Free Pascal Compiler? Note the word Pascal? You can't get much clearer than that! -- Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Why the Java became so strong?
От: Felipe Monteiro de Carvalho Относно: Re: [Lazarus] Why the Java became so strong? До: Lazarus mailing list Изпратено на: Понеделник, 2012, Февруари 27 14:35:08 EET 2012/2/27 Rigel Rigel : Interten applications like below was writen on C/C++ I never heard of a web page written in C/C++ I think Java is a C/C++ dialect. So is known for programers using C/C++. My point is that for now Internet and mobile applications has focus. And the place of Lazarus/Pascal is little in them. I hope this change. Even Lazarus use qt, gtk... Not necessarely. In LCL for Android everything is done in Lazarus itself: http://wiki.lazarus.freepascal.org/Custom_Drawn_Interface -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
On Monday 27 of February 2012 23:21:31 Graeme Geldenhuys wrote: On 27 February 2012 22:48, Marco van de Voort wrote: I'm not sure if products that hinge on the last version of a series are really relevant. My point was more about the fact that Scooter Software has applied there own fixes to CLX, and have also upgraded their Kylix 3 to use Qt3 (instead of Qt 2.3 which came with Kylix). If they shared all there Kylix enhancements, I have no idea. I also know there is a huge bunch of unofficial fixes that can be installed over Kylix 3. So at least the framework around Kylix has grown, after is was considered to be dead. Also, Kylix 3 is still perfectly fine for web development work. While there are updates for K3 + Qt3 support (even I contributed and used that) there's another problem: you cannot run K3 on any distro with glibc = 2.4, and that's problem (so it must be at least 6-7 yrs old distro). zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
On Tuesday 28 of February 2012 00:58:20 Craig Peterson wrote: On 2/27/2012 4:21 PM, Graeme Geldenhuys wrote: My point was more about the fact that Scooter Software has applied there own fixes to CLX, and have also upgraded their Kylix 3 to use Qt3 (instead of Qt 2.3 which came with Kylix). Actually, the upgrade to Qt 3 was Andreas Hausladen's doing, and he did release it, but it isn't available online anymore. It was an impressive piece of work, and I think it laid the groundwork for Lazarus' Qt support, since I remember seeing Zeljan's name associated with it too. Yes, I was involved in Qt3 support for Kylix, but it have nothing to do with lazarus qtlcl , since Qt3 used different (and better approach IMO) to generate C bindings. You get all clasees (even protected methods), so overriding was piece of cake - and yes K3/Qt3 apps were snappy and stable :) We do have a shocking number of fixes on top of it though. If they shared all there Kylix enhancements, I have no idea. No, we haven't. Borland screwed up the Kylix community project, and Andreas stopped maintaining the unofficial patches at the same time, so there isn't anywhere for us to share them. So at least the framework around Kylix has grown, after is was considered to be dead. It was considered dead, and then the Kylix community project and Borland's poor handling of Simon Kissel's cross-compiler killed it completely. Afair, at that time Simon, Andreas and me asked Borland for and NDA .. I was ready to sit down and fix Kylix for free - it costs Borland exactly $0, but they answered after few months that Kylix is not their priority (and that means = dead)all happened after M$ was involved into borland ... after that .Net delphi was out etc etc So Kylix is dead because of political reasons - nothing else. zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can't compile trunk with fpc 2.4.5 under ubuntu
On 02/28/2012 12:00 AM, Hans-Peter Diettrich wrote: a stable D7 compatible version/branch is required, IMHO a compiler switch (Lazarus Project menu option) should be provided (D7 compatibility or non-Unicode or something like this) There are decent projects for which a user interface is of little or no importance. Here it should be possible to prevent including all the RTL (and LCL) code necessary for Unicode. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can't compile trunk with fpc 2.4.5 under ubuntu
On 02/27/2012 09:51 PM, Martin Schreiber wrote: A side mark: I don't think using the old ansistring as combined binary and character buffer is such a bad thing. + 1/2 It would be better to have a type that 1:1 allows for all the well known string operations, replacing Character by Byte: MyByte := MyByteString[n] MyByteString := MyByteString + MyByte; MyByteString2 := copy(MyByteString, 10, 100); p:= pos(MyByteString2, MyByteString) MyByteString := MyByteString + MyByteString2; ... In my projects I usually do something like Type ByteString = AnsiString for a future migration :) . Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
On 28 February 2012 09:02, zeljko zeljko@ wrote: While there are updates for K3 + Qt3 support (even I contributed and used that) there's another problem: you cannot run K3 on any distro with glibc = 2.4, and that's problem (so it must be at least 6-7 yrs old distro). I don't really see that as a problem at all. That issue only relates to the Kylix 3 IDE, not the applications you build with it. I can still run [and do do so] Kylix 3 built applications on my Ubuntu 10.04 64-bit system. Simply use a VM for Kylix 3 development. I currently have a Red Hat 9 VM with Kylix 3 Ent setup for exactly that reason. Hell, Embarcadero is even recommending that for Windows and Mac OS X development! I know of many Delphi developers that run Linux (or Mac OS X), but use a Windows VM to run Delphi - simply to get the stability and virus free environment of Linux when they surf the web or check emails. It also keeps your development environment in a pristine condition. I'm not saying Kylix 3 is still a booming product (it isn't), I'm just saying that some companies invested heavily in Kylix or CLX development, and simply can't move away from it. -- Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can't compile trunk with fpc 2.4.5 under ubuntu
On 02/28/2012 03:13 AM, Paul Breneman wrote: so I can use strings as binary communication buffers and let the compiler deal with everything and it all just works... :) Yep. There is no logical reason to think other, but the fear that string is a moving target regarding the unavoidable upcoming of Unicode. So a dedicated type for this with all features AnsiString offers but with no Unicode threat would be appropriate for this. We very often do need flexible easy to use code-ignorant byte buffers. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
On Tuesday 28 of February 2012 08:23:35 Graeme Geldenhuys wrote: I'm not saying Kylix 3 is still a booming product (it isn't), I'm just saying that some companies invested heavily in Kylix or CLX development, and simply can't move away from it. My company also invested a lot into kylix, but successfully moved to lazarus qtlcl :) zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the most widely used Pascal on Linux and other Unix variants?
On 02/27/2012 09:02 PM, Marco van de Voort wrote: While GPC is not very active atm, and a case could be made that it is dead, They (unfortunately) did not follow FPC on the path to Object Pascal (Delphi and Apple style). If FPC programs could be compiled using gcc, we could port Lazarus / FPC programs to any CPU architecture. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] upx dont work
Hector, Buenos dias. Yo uso en Opciones de proyecto/Enlazando marco casilla usar archivo externo de simbolos para reducir el peso del ejecutable. [I use Proyect Option/Liniking click on Use external dgb debug symbol file to reduce the executable wheight] Lo habias probado? Un saludo, On Tue, Feb 28, 2012 at 1:31 AM, Ing. Héctor F. Fiandor Rosario hfian...@infomed.sld.cu wrote: Dear colleagues: i have used por many years the upx for compact the executable files. Really, it have worked pretty well. today, i have tried to compact an executable but i have obtained a nom good result. previously i have used the strip to reduce the weight from more or less 30 Mb to 3 Mb. After that, the executable still works well. them i have applied the upx, it look to work well, the weight is reduced to 1 Mb, but when i tried to execute, a message appears telling the configuration is not good and maybe reinstalling the application can work. In more than 20 years using it, it is the first time this occurs. thanks very much Ing. Héctor F. Fiandor Rosario hfian...@infomed.sld.cu -- Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema Nacional de Salud. La persona que envia este correo asume el compromiso de usar el servicio a tales fines y cumplir con las regulaciones establecidas Infomed: http://www.sld.cu/ -- __**_ Lazarus mailing list Lazarus@lists.lazarus.**freepascal.orgLazarus@lists.lazarus.freepascal.org http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarushttp://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus