Re: [fpc-pascal] SysLocale.PriLangID vs Mac OS X localization

2008-06-24 Thread Adriaan van Os
other problems to worry about than platform consistency and interface design, that's again a disqualification of the software you offer. Platform consistency and interface design is where you start when writing software, it's not a gadget hacked into it afterwards. Regards, Adriaan van

Re: [fpc-pascal] Standardization of Modern Pascal

2008-07-07 Thread Adriaan van Os
ery much). I don't see your point. As you write, the Pascal standards are already there. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] License question; unit to view floating-point details

2008-09-06 Thread Adriaan van Os
gle; n: Integer ): Single; { returns x * 2 ^ n } procedure FlipBitSingle ( var x: Single; i: BitIndexSingle ); { flips bit i of x } function SuccSingle ( const x: Single): Single; { returns successor of x } function PredSingle ( const x: Single): Single; { returns predecessor of x } Look

Re: [fpc-pascal] Binary compatibility between Intel CPU and PowerPC CPU

2008-09-16 Thread Adriaan van Os
r a network This is best built-into a streaming toolbox, so that it happens automatically. Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Binary compatibility between Intel CPU and PowerPC CPU

2008-09-16 Thread Adriaan van Os
Adriaan van Os wrote: Roland Turcan wrote: Hello FPC-Pascal users discussions! What is the best way to keep the binary compatibility among different CPU architectures. I need to make our own database engine compatible and other binary files, that user still can use our data from i386 or

Re: [fpc-pascal] Boehm GC

2009-03-18 Thread Adriaan van Os
ce the standard with boehm. Wondered if anyone's done it and how they got on, and if there are issues with the idea. The main issue is that garbage collection is the worst programming idea ever. It lets you get away with bad program design at the cost of slow execution.

Re: [fpc-pascal] Re:[FPC 0013023]: COM Write Access to Properties crashes

2009-03-21 Thread Adriaan van Os
for one, didn't know the reporter can - and is supposed to - close a bug report. So, closing the bug report means I agree with (and thanks for) the fix ? Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http:

[fpc-pascal] -Twin32 linker woes

2010-03-11 Thread Adriaan van Os
nklib}) and got ld warning: option -b is obsolete and being ignored ld: file not found: pe-i386 Well, one solution is to link at runtime, but I am grateful for hints at what can be wrong (the same dll links fine with another compiler). Regards, Adriaan v

Re: [fpc-pascal] -Twin32 linker woes

2010-03-11 Thread Adriaan van Os
Marco van de Voort wrote: In our previous episode, Adriaan van Os said: I am cross compiling with fpc svn trunk and -Twin32 on i386 Mac OS X to Win32. This works fine, except that {$linklib xxx.dll} says dlls are usually not $linklib'ed in FPC. What happens if you simply omit the li

Re: [fpc-pascal] -Twin32 linker woes

2010-03-11 Thread Adriaan van Os
Jonas Maebe wrote: On 11 Mar 2010, at 12:28, Adriaan van Os wrote: Marco van de Voort wrote: In our previous episode, Adriaan van Os said: I am cross compiling with fpc svn trunk and -Twin32 on i386 Mac OS X to Win32. This works fine, except that {$linklib xxx.dll} says dlls are usually not

Re: [fpc-pascal] modulo of negative dividend

2010-03-13 Thread Adriaan van Os
ués This is the mathematical definition of modulus, but all programming languages implement the same behavior as the one of FPC. Not really <http://www2.gnu-pascal.de/crystal/gpc/en/mail7597.html>. Regards, Adriaan van Os ___ fpc-pascal maillis

Re: [fpc-pascal] FPC Object Pascal parser?

2010-04-15 Thread Adriaan van Os
ok at fpc/packages/passrc. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] nested procedure as parameter question

2010-04-16 Thread Adriaan van Os
ne by address to another procedure; I get errors like the following: See <http://bugs.freepascal.org/view.php?id=15925> Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Local procedures as actual procedure parameter in macpas mode

2010-08-30 Thread Adriaan van Os
contains: ( http://www2.gnu-pascal.de/crystal/gpc/en/mail14684.html ) all I'll say WRT my participation in any project with FPC is: Not interested. So I guess nobody bothered. I will note that this is the private opinion of Frank Heckenbach (only). Regards, Adriaan v

[fpc-pascal] Obtain Class hierarchy (in MacPas mode)

2010-09-21 Thread Adriaan van Os
I am looking for a way to obtain the class hierarchy of a program in MacPas mode (where there are no published properties). TObject has ClassParent, so a list of Class types would be sufficient, I think. I can't find however a routine in the RTL to obtain such a list. Regards, Adriaan v

Re: [fpc-pascal] Obtain Class hierarchy (in MacPas mode)

2010-09-21 Thread Adriaan van Os
Michael Van Canneyt wrote: On Tue, 21 Sep 2010, Adriaan van Os wrote: I am looking for a way to obtain the class hierarchy of a program in MacPas mode (where there are no published properties). TObject has ClassParent, so a list of Class types would be sufficient, I think. I can't

Re: [fpc-pascal] Obtain Class hierarchy (in MacPas mode)

2010-09-21 Thread Adriaan van Os
Michael Van Canneyt wrote: On Tue, 21 Sep 2010, Florian Klaempfl wrote: Am 21.09.2010 13:42, schrieb Adriaan van Os: Michael Van Canneyt wrote: On Tue, 21 Sep 2010, Adriaan van Os wrote: I am looking for a way to obtain the class hierarchy of a program in MacPas mode (where there are no

Re: [fpc-pascal] Obtain Class hierarchy (in MacPas mode)

2010-09-21 Thread Adriaan van Os
Sven Barth wrote: If I understood it right he wants the complete hierachy (or the complete class tree) which is used in a program. So the opposite of "ClassParent". Right. Regards, Adriaan van Os ___ fpc-pascal maillist -

Re: [fpc-pascal] Obtain Class hierarchy (in MacPas mode)

2010-09-27 Thread Adriaan van Os
Michael Van Canneyt wrote: On Tue, 21 Sep 2010, Adriaan van Os wrote: Michael Van Canneyt wrote: On Tue, 21 Sep 2010, Florian Klaempfl wrote: Am 21.09.2010 13:42, schrieb Adriaan van Os: Michael Van Canneyt wrote: On Tue, 21 Sep 2010, Adriaan van Os wrote: I am looking for a way to

Re: [fpc-pascal] Using LLVM with FPC

2010-10-05 Thread Adriaan van Os
ing about a moving target. It will require maintainance (and probably a lot) with every release of LLVM. Also, as far as I know, the C interface is incomplete. I believe that producing LLVM assembly is the best solution in the long run. Regards, Adriaan van Os

Re: [fpc-pascal] Optimized matrix multiplication functions for pascal?

2010-10-09 Thread Adriaan van Os
php>. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Optimized matrix multiplication functions for pascal?

2010-10-09 Thread Adriaan van Os
ows.html>. It should be possible to call into those libs from FPC. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Re: TPLY

2010-10-29 Thread Adriaan van Os
Paul Nicholls wrote: I would start with this site to learn how to create recursive descent parsers using Pascal :) http://compilers.iecc.com/crenshaw/ I recommend <http://www-old.oberon.ethz.ch/WirthPubl/CBEAll.pdf> Regards, Adriaan

Re: [fpc-pascal] ZLIB

2010-11-09 Thread Adriaan van Os
Libs/mingw/libgcc.a} On the Mac, zlib is part of the system software. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Mac OS X Pascal Interfaces version 2.0 (G)

2005-12-12 Thread Adriaan van Os
with Mach-O Intel. Special thanks to Peter N. Lewis for all the work involved. The Pascal Interfaces team: Peter N. Lewis <[EMAIL PROTECTED]> Gale Paeper <[EMAIL PROTECTED]> Adriaan van Os <http://www.microbizz.nl/gpc.html> with help from: Jonas Maebe <[EMAIL PROTEC

Re: [fpc-pascal] OOT: Pascal (especially FPC) on Linux community

2006-01-25 Thread Adriaan van Os
stating that Pascal 20 years ago was primitive. (sigh) Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] opendelphi.org

2006-03-16 Thread Adriaan van Os
han to use the .NET framework." Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] lax and Yacc

2006-03-26 Thread Adriaan van Os
production compilers. Even gcc C++ and C have moved to a handwritten parser recently. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Documentation for sqldb

2007-06-21 Thread Adriaan van Os
here work_hours > 80 i've never used it in a program myself, but I've noted that there's an api function for this in mysql and there's the sql function ROW_COUNT() (in 5.0.1). i suspect there are similar functions for different flavours... MySQL has mysql_affected_rows, Po

[fpc-pascal] PowerPC crosscompiler on i386 Mac OS X looks for, wrong assembler and linker

2007-07-03 Thread Adriaan van Os
A NOTE has been added to this issue. == http://www.freepascal.org/mantis/view.php?id=9201 == Reported By:Adriaan van Os Assigned To

[fpc-pascal] Building a i686-pc-mingw32 crosscompiler from i686-darwin

2007-07-16 Thread Adriaan van Os
-Fux86 pp.pas Fatal: Can't find unit System used by pp Fatal: Compilation aborted make[3]: *** [ppc386.exe] Error 1 make[2]: *** [cycle] Error 2 make[1]: *** [compiler_cycle] Error 2 make: *** [build-stamp.i386-win32] Error 2 Regards, Adriaan van Os __

Re: [fpc-pascal] Building a i686-pc-mingw32 crosscompiler from i686-darwin

2007-07-16 Thread Adriaan van Os
Daniël Mantione wrote: Op Mon, 16 Jul 2007, schreef Adriaan van Os: Has anyone tried to build a Free Pascal Windows crosscompiler on an Intel Mac ? Is this supported ? Yes, you don't need a cross-compiler to cross-compile to different operating systems. With FPC 2.1.4+ you don&#

Re: [fpc-pascal] Building a i686-pc-mingw32 crosscompiler from i686-darwin

2007-07-16 Thread Adriaan van Os
Daniël Mantione wrote: Op Mon, 16 Jul 2007, schreef Adriaan van Os: /usr/local/lib/fpc/2.3.1/units/i386-win32/rtl install: ../../rtl/units/i386-win32/rtlconsts.ppu: No such file or directory make: *** [fpc_install] Error 71 Most of the win32 rtl is built by a build unit called buildrtl.pp

Re: [fpc-pascal] Building a i686-pc-mingw32 crosscompiler from i686-darwin

2007-07-16 Thread Adriaan van Os
s seams to actually work better and faster then in my PC Notebook =) Really Yes, I am running Parallels Desktop for Mac for that purpose also. I tried CrossOver some time ago and weren't impressed. Maybe things have improved since. Regards,

Re: [fpc-pascal] Building a i686-pc-mingw32 crosscompiler from i686-darwin

2007-07-17 Thread Adriaan van Os
lazarus.exe] Error 1 make[1]: *** [ide] Error 2 make: *** [ide] Error 2 But maybe this is something to ask on the Lazarus mailing list. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Building a i686-pc-mingw32 crosscompiler from i686-darwin

2007-07-17 Thread Adriaan van Os
Daniël Mantione wrote: Op Tue, 17 Jul 2007, schreef Adriaan van Os: lazarus.pp(118,1) Error: resource compiler not found, switching to external mode Can you try -vt to see if and in what directories the compiler tries to search windres? It could very well be that the compiler searches

Re: [fpc-pascal] Building a i686-pc-mingw32 crosscompiler from i686-darwin

2007-07-17 Thread Adriaan van Os
Daniël Mantione wrote: Op Mon, 16 Jul 2007, schreef Adriaan van Os: and hello.exe actually runs at the other side of the fence. Note that you can install Wine (I'm not sure though how the Darwin port hasprogressed) to do testing. With Wine you can do the full development without a Wi

[fpc-pascal] Debugging on Windows

2007-07-31 Thread Adriaan van Os
another for that purpose ? Or what other debuggers are there for debugging fpc application software on Windows ? Thanks for any hints. Another question. Can Lazarus debug applications that it did not compile itself ? Regards, Adriaan van Os ___ fpc

Re: [fpc-pascal] Underscore prefix for external C functions

2007-09-07 Thread Adriaan van Os
. Are you saying that adding IMPLEMENTATION BEGIN changes the meaning of the INTERFACE section. That is hardly a defendable compiler feature, is it ? Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Underscore prefix for external C functions

2007-09-07 Thread Adriaan van Os
reveals that the to-be-linked-in C library has an underscore before the C function names. Note that the Mac OS X Pascal (Carbon) Interfaces for fpc use the underscore, whereas the same Pascal Interfaces for gpc don't. Is this just a mess or do I miss the true logic behind it ?

[fpc-pascal] Resourcestring questions

2007-09-13 Thread Adriaan van Os
string constant. Plus a standard function that converts the number into a string. This facilitates converting current applications (that still use resource IDs) also. Any comments ? Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.fre

Re: [fpc-pascal] Why this evaluates on "if" wrong ?

2007-10-28 Thread Adriaan van Os
Daniël Mantione wrote: N - Natural numbers Z - Integer numbers Q - Rational numbers R - Real numbers C - Complex numbers Subranges of N, Z and Q can be represented exactly in a computer. > R and C can not, we use the floating point system as approximation. This is big nonsense. The issue i

[fpc-pascal] Local compiler options

2007-12-05 Thread Adriaan van Os
ifdef local_RangeCheck} {$R+} {$endif} end. Any comments ? Of course, longword( -1) using constants is just one example of the use of local compiler directives. The issue at hand is broader than that. Regards, Adriaan van Os ___ fpc-pascal mai

Re: [fpc-pascal] USB or RS-232 capability?

2005-01-13 Thread Adriaan van Os
pple.com/documentation/DeviceDrivers/Conceptual/ WorkingWSerial/WWSerial_SerialDevs/chapter_1_section_1.html> is useful (converted from C to Pascal). Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.

Re: [fpc-pascal] Version 1.9.6[??] on the Mac.

2005-01-16 Thread Adriaan van Os
. There is also the issue of optimizing 32-bit code for the G5 (powerpc 970) processor. Interesting to read is <http://developer.apple.com/hardware/ve/g5.html>. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.fre

Re: [fpc-pascal] development with mac os / cross platform

2005-01-27 Thread Adriaan van Os
net/> in beta stage <http://gtk-quartz.sourceforge.net/> under development <http://developer.apple.com/documentation/Porting/Conceptual/ PortingUnix/unix_environments/chapter_7_section_6.html> overview And what about Lazarus ? Regards, Adriaan van Os ___

Re: [fpc-pascal] darwin -> linux

2005-05-25 Thread Adriaan van Os
ttp://www.opendarwin.org/pipermail/odcctools/2004-November/>. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] exit ?

2005-05-25 Thread Adriaan van Os
l and Delphi. Delphi has the built-in "Result" variable and GNU Pascal (also) has "Return". Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Mac OS X Pascal Interfaces

2005-07-21 Thread Adriaan van Os
terfaces for FPC have been added. I have to thank Peter N. Lewis and Gale Paeper for the effort they put in this new release and Olle Raab for his help in creating the FPC interfaces. Regards, Adriaan van Os ___ fpc-pascal maillist -

Re: [fpc-pascal] About reset(aFile, FileNameString)

2005-09-13 Thread Adriaan van Os
onsidered it a "Mac" extension. Yet, I can find no possibility of this in FPC, in spite of its various compatibility modes. ... but indeed many Pascal compilers support it. Regards, Adriaan van Os ___ fpc-pascal maillist

Re: [fpc-pascal] Packed record

2005-10-20 Thread Adriaan van Os
t emulating the memory access - or fix the compiler to ignore "packed" for ARM. This could be a compiler switch, on by default for ARM (gpc has --ignore-packed). Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@

Re: [fpc-pascal] Records

2005-10-25 Thread Adriaan van Os
efore, implementation is non-trivial. For the same reason, the above typecast is incorrect. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Records

2005-10-26 Thread Adriaan van Os
il12604.html>) that automatically creates comparison operators for record types. I haven't checked if it works with fpc. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] question on pointers

2005-11-06 Thread Adriaan van Os
t2[0]; test[0]:[EMAIL PROTECTED]; I suggest you read a tutorial on pointers. They can be very dangerous, so you should know what you are doing. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepas

Re: [fpc-pascal] CASE

2005-11-09 Thread Adriaan van Os
y debugged, but there is an cs_optimize in aktmodeswitches somewhere near where this code is called. Paul: do you enable some -O parameter? Play with it etc. I think -O1r is the best optimization available for ppc-darwin, isn't it ? Regards, Adriaan van Os ___

[fpc-pascal] Windows type library files

2014-10-01 Thread Adriaan van Os
ported .tbl files with success using ws_helper, in order to auto-create Pascal units ? I did manage to build that tool from source <http://wiki.lazarus.freepascal.org/Web_Service_Toolkit>. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc

Re: [fpc-pascal] Windows type library files

2014-10-01 Thread Adriaan van Os
.tbl from .idl does not. For what component do you need a typelibrary? Anything related to Media Foundation. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinf

Re: [fpc-pascal] Windows type library files

2014-10-03 Thread Adriaan van Os
In case someone is interested, I put the .zip archives below for download at my website <http://adriaan.biz/windows-com/pas-from-sdk.zip> <http://adriaan.biz/windows-com/pas-from-system32.zip> Regards, Adriaan van Os <http://adriaan.biz/windows-com/pas-from-sdk.zip> auto-g

Re: [fpc-pascal] Windows type library files

2014-10-04 Thread Adriaan van Os
Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Instances of interfaces ?

2014-10-10 Thread Adriaan van Os
interfaces) are (unlike C++ classes) not binary compatible (on Win32) with interfaces ? In other words, when I need to pass an instance of an interface to Win32 COM, I have to call CoCreateInstance ? Regards, Adriaan van Os ___ fpc-pascal maillist -

Re: [fpc-pascal] Instances of interfaces ?

2014-10-10 Thread Adriaan van Os
Michael Van Canneyt wrote: No, you can pass the interface pointer directly: MyIntf : IMyInterface; begin MyIntf := MyClassInstance as IMyInterface; end; Then pass on MyIntf. Thanks for the reply. That simplifies things. Regards, Adriaan van Os

Re: [fpc-pascal] Effective memory allocation

2014-11-03 Thread Adriaan van Os
Xiangrong Fang wrote: Hi All, I am programming a Bloom Filter and need a high-performance way to On what platform are you doing this ? Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

[fpc-pascal] FPC embedded ?

2015-03-05 Thread Adriaan van Os
Curious to know hands-on experience of list-members with FreePascal embedded. Arduino <http://arduino.cc/> looks quite attractive to me, but it's not Pascal. Any recommendations ? Regards, Adriaan van Os ___ fpc-pascal maillist -

Re: [fpc-pascal] FPC embedded ?

2015-03-05 Thread Adriaan van Os
t but I do need to drive one or two stepper motors. What I learnt is that that the board does the controlling and that there is a separate chip for driving the motor, e.g. for stepping and microstepping ? Regards, Adriaan van Os ___ fpc-pascal mai

Re: [fpc-pascal] FPC embedded ?

2015-03-06 Thread Adriaan van Os
Michael Schnell wrote: On 03/05/2015 07:57 PM, Adriaan van Os wrote: It's a very smal project but ... 40 years of development teach you that "small Project" usually needs to be read as "underestimated project". ;-) What aspect do you hint at ? Hardware s

Re: [fpc-pascal] FPC embedded ?

2015-03-07 Thread Adriaan van Os
, an fpc compiler already is in place. Also for low-power battery-powered devices ? Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FreePascal and MySQL

2015-05-01 Thread Adriaan van Os
/docs/9.2/static/libpq.html>. And I have experienced Postgres performning (much) better under heavy loads than MySQL. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/

Re: [fpc-pascal] For .. in .. loops with sets and valued enums

2015-06-20 Thread Adriaan van Os
Jonas Maebe wrote: Again: set *variables* or set *types*? Indeed. Think of var i: integer; for i in integer do which would be amusing. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] TDBF licensing

2015-07-01 Thread Adriaan van Os
y linked library is allowed if either source code or linkable object files are provided.[2] The most common solution is to compile LGPL code into a shared/dynamic library. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-p

[fpc-pascal] Duplicate RTLs

2015-07-01 Thread Adriaan van Os
sharing-the-RTL-state an issue ? I compiled several plugins with FPC for the same application and never ran into a problem with duplicate RTLs. But I don't use much of the RTL. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-p

Re: [fpc-pascal] Duplicate RTLs

2015-07-01 Thread Adriaan van Os
, reference counted types, exception catching or global variables. Which explains that I never got in trouble there. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo

Re: [fpc-pascal] quality of FPC random

2015-08-17 Thread Adriaan van Os
-us/library/aa379942(v=vs.85).aspx> on Windows ? Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] for loop variable value reliable after loop?

2015-10-05 Thread Adriaan van Os
O/IEC 7185 :1990(E) says in section 6.8 .3.9 For-statements After a for-statement is executed, other than being left by a goto-statement, the control-variable shall be undefined . Regards, Adriaan van Os ___ fpc-pascal maillist -

Re: [fpc-pascal] GCC -PIE equivalent?

2015-11-13 Thread Adriaan van Os
Jon Foster wrote: If I build a standard "program" (not library) with -Cg do I get a PIE... or does that only affect linking for libraries? I haven't been able to find anything on the iNet regarding PIE and FPC. Wouldn't that just be a linker option, passed-on to ld ? Adriaan __

Re: [fpc-pascal] Please someone explain this to me

2016-02-11 Thread Adriaan van Os
s (but I am not complaining about it). The RTL is organized for the benefit of its maintainers, not the users. It's a proven design since 20 years as explained by Marco and Sven. The maintainers can choose whatever they like best. Regards, Adriaan van Os ___

Re: [fpc-pascal] Class vs Object type

2016-04-07 Thread Adriaan van Os
reliable than a program where things are handled "automagically". Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Pascal interfaces for IPP

2016-09-08 Thread Adriaan van Os
I have created and uploaded FreePascal interfaces for Intel® Integrated Performance Primitives version 9 here <http://adriaan.biz/intel/ipp.pas.zip>. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.or

[fpc-pascal] Readln a password

2016-11-27 Thread Adriaan van Os
/read -s -p Password:' but couldn't get it working from FPC. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Readln a password

2016-11-27 Thread Adriaan van Os
see note 2. of my original message. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Readln a password

2016-11-27 Thread Adriaan van Os
as stty (see stty.c in GNU coreutils) calls tcsetattr and stty fails reporting 'stty: stdin isn't a terminal' . Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Readln a password

2016-11-27 Thread Adriaan van Os
uses CRT", the problem doesn't occur in Terminal.app. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Readln a password

2016-11-27 Thread Adriaan van Os
hen stty does work, so I expect tcsetattr to work too. So, we can now use Readln without echoing in Terminal.app. There is still echoing to the Xcode Console window, but let's assume that is a bug or limitation of Xcode. Maybe something to add t

Re: [fpc-pascal] avx2 32-byte alignment

2016-11-29 Thread Adriaan van Os
the data alignment <http://www.freepascal.org/docs-html/3.0.0/prog/progsu1.html> ? Also note that it is the OS that specifies the alignment on the stack, so you probably won't get 32-byte alignment for arrays on the stack. Regards, Adriaan van Os _

Re: [fpc-pascal] avx2 32-byte alignment

2016-11-29 Thread Adriaan van Os
Marco van de Voort wrote: In our previous episode, Adriaan van Os said: 'm preparing a DLL with AVX2 routines in FPC, since Delphi doesn't seem to have AVX2 support. Very interesting. I will be pleased to compare it (on OS X) with Apple's Accelerate framework and with Intel&

Re: [fpc-pascal] performance when resizing a dynamic array

2016-12-04 Thread Adriaan van Os
l of the 80's and 90's. :) There is nothing 80's or 90's about intelligent and advanced data structures. Every data structure has its built-in limitations when it comes to speed and one should choose the right one based on its characteristics <http://microbizz.

Re: [fpc-pascal] performance when resizing a dynamic array

2016-12-05 Thread Adriaan van Os
. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] performance when resizing a dynamic array

2016-12-08 Thread Adriaan van Os
Pascal of the 80's and 90's. :) Note that, when using trees and linked lists, using a pooled memory manager manager may speed up things. Something like the pooledmm in the FCL. Regards, Adriaan van Os ___ fpc-pascal maillist -

Re: [fpc-pascal] Good FFT example anywhere?

2017-04-09 Thread Adriaan van Os
act the author for permission to use it. I can give the email address by private email. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Good FFT example anywhere?

2017-04-09 Thread Adriaan van Os
<https://en.wikipedia.org/wiki/Ringing_artifacts> <https://en.wikipedia.org/wiki/Window_function> Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC Graphics options?

2017-05-12 Thread Adriaan van Os
determine the cause of the delay. And then report precise facts. I never have speed-problems in Pascal. One should start by choosing the right method. There is always a smarter (e.g. faster) way to do things. Regards, Adriaan van Os ___ fpc-pascal

Re: [fpc-pascal] Network compression

2017-05-23 Thread Adriaan van Os
Dimitrios Chr. Ioannidis via fpc-pascal wrote: Hi, I need to transfer data which are relative big ( 1,2 GB )using low memory ( 512MB, 1GB RAM ) machines. The fastest compressor to do the job is LZ4 <https://github.com/lz4/lz4>. Regards, Adriaan

Re: [fpc-pascal] fpGUI on macOS

2017-06-07 Thread Adriaan van Os
collection deprecates all the crap they released the seasson before. So that we all have to buy new gadgets and rewrite all our software, Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-b

Re: [fpc-pascal] Callbacks as nested functions

2017-10-28 Thread Adriaan van Os
processor cycles 2. it breaks binary compatibilty. For a detailed discussion, see <https://bugs.freepascal.org/view.php?id=15925> Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/c

Re: [fpc-pascal] move problem

2017-11-02 Thread Adriaan van Os
. What’s going on here??? What's going on, is that you didn't read what the Unit Reference Guide says about Move. It is not like BlockMoveData on the Mac and it doesn't expect pointers as parameter. Regards, Adriaan van Os ___ fpc-

Re: [fpc-pascal] cpu_relax() in freepascal

2017-11-03 Thread Adriaan van Os
but rather inside a wait-loop where constant polling, without regular pausing, keeps the processor unnecessarily busy. The operating system has calls for that purpose (e.g. usleep, see <https://linux.die.net/man/3/usleep>). That is not up to the compi

Re: [fpc-pascal] FPC Debug line numbers

2017-11-07 Thread Adriaan van Os
rate, just not the line number, which makes it very difficult to figure out exactly what part of the function had the problem. One situation where this happens, is when line-endings are inconsistent (e.g. on Mac OS X, CR instead of LF on some lines). Regards, Adri

Re: [fpc-pascal] FORTRAN from FreePascal

2017-11-13 Thread Adriaan van Os
parameters makes sure they are passed by reference, which is what Fortram requires. Etcetera. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FORTRAN from FreePascal

2017-11-18 Thread Adriaan van Os
y hand; see below), and that they have a standard format for leading comments. The routines in TESTING, TIMING and BLAS are translated, but not cleaned up completely, and so they work but are not as easy to read. etcetera. Regards, Adriaan van Os ___

Re: [fpc-pascal] FORTRAN from FreePascal

2017-11-18 Thread Adriaan van Os
will be no problem either, apart from Windows, where there are different object formats, different debuggign formats and diffferent linkers for various languages. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] FORTRAN from FreePascal

2017-11-18 Thread Adriaan van Os
Mark Morgan Lloyd wrote: Except that when you're calling into a DLL (.so on Linux etc.) I don't think you have much chance of seeing the inside of the library code. On Mac OS X, which is actually a BSD UNIX, I debug plug-in code all the time. Not an issue at all. Regards, Adri

  1   2   3   >