Re: [fpc-pascal] Small OSX GUI apps

2008-09-16 Thread Jon
is best? > > Depends on who you ask. But Apple has made it clear that they want to > move forward primarily with Cocoa. How good is the FPC for each? Is there a separate install for both? Best regards, Jon ___ fpc-pascal mai

Re: [fpc-pascal] Can I make this with Free Pascal?

2008-09-23 Thread Jon
> Michael, you are time travelling a bit. Current time here is > 8:32 AM. I sometimes receive replies you posted before I get > the original message. Weird. I guess the mailing list caches the > messages somewhat before they are passed to everybody else, and > then does it ordered by time. > >

Re: [fpc-pascal] UDF+FREEBSD+FIREBIRD

2008-11-12 Thread Jon
Should there be a 'uses' line somewhere? > > library tkes2; > > {$mode objfpc} > {$PACKRECORDS C} > > > function somefn: integer; cdecl; export; > begin > somefn:= 3; > end; > > exports > //I do not do as: > // somefn name 'somefn'; // because of this cause > error tkes2(17,1) Error: Asm:

[fpc-pascal] FPC for ARMv4

2014-03-05 Thread Jon
Hi I have a board running Linux - it reports itself as armv4tl: root@phidgetsbc:~# uname -a Linux phidgetsbc 3.1.6 #3 PREEMPT Fri Jan 6 13:05:50 MST 2012 armv4tl GNU/Linux root@phidgetsbc:~# cat /etc/issue Debian GNU/Linux 6.0 \n \l After trying and failing to install a cross-compiler on my Li

Re: [fpc-pascal] FPC for ARMv4

2014-03-10 Thread Jon
> On Friday, 7 March 2014, 11:04, Jonas Maebe wrote: > > > On 05 Mar 2014, at 19:41, Jon wrote: > >>  I have a board running Linux - it reports itself as armv4tl: >> >>  root@phidgetsbc:~# uname -a >>  Linux phidgetsbc 3.1.6 #3 PREEMPT Fri Jan 6 13

[fpc-pascal] How do you build FPC?

2015-02-20 Thread Jon Foster
ssing it somewhere? FPC seems incredibly flexible and I'd like to take advantage of it on some other platforms but so far it looks like that is reserved for a wizard elite somewhere and nobody is saying how to get there. TIA - Jon -- Sent from my Debian Linux workstatio

Re: [fpc-pascal] How do you build FPC?

2015-02-20 Thread Jon Foster
Mark Morgan Lloyd wrote: > Jon Foster wrote: >> [...] >> There seems to be a massive lack of documentation about the FPC build >> process and many things I try get me know where. I'll do something like >> "make deb" and I get "/bin/cp: cannot stat `l

[fpc-pascal] GCC -PIE equivalent?

2015-11-12 Thread Jon Foster
libraries? I haven't been able to find anything on the iNet regarding PIE and FPC. THX - Jon -- Sent from my Debian Linux laptop -- http://www.debian.org/intro/about Jon Foster JF Possibilities, Inc. j...@jfpossibilities.com 541-410-2760 Making computers work for you! _

[fpc-pascal] FPC 3.0 deb packages?

2016-09-05 Thread Jon Foster
Pascal compiler (not Lazarus). My system stats: Debian 7 i386. FPC 3.0.0 as the currently installed compiler, first from the binary tarball package and then from my package build attempts, which are mostly functional. TIA - Jon -- Sent from my Debian Linux workstation -- http://www.debian.org/intro/

[fpc-pascal] ppcjvm issues

2017-01-07 Thread Jon Foster
27;m missing something here. "float" is the native Java name for their base floating point type and its a valid type for FPC. If I use "single" instead it will compile. Seems odd. THX - Jon -- Sent from my Debian Linux workst

Re: [fpc-pascal] ppcjvm issues

2017-01-07 Thread Jon Foster
On 01/07/2017 03:06 AM, Tomas Hajny wrote: On Sat, January 7, 2017 03:12, Jon Foster wrote: Hello, You didn't mention that you weren't subscribed to the list, but since this seemed to be the case, I included your address in Cc:. Thanks for this. I get a lot of mail from the FPC lis

Re: [fpc-pascal] ppcjvm issues

2017-01-09 Thread Jon Foster
available in FPC JVM, use Pascal's type after mapping from Java. The class version (which should automatically (un)box) is available, though. So if you insist, simply use JLFloat. Yes, thank you. Tomas set me straight on this. -- Jon Foster JF Possibilities, Inc. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] ppcjvm issues

2017-01-09 Thread Jon Foster
On 01/08/2017 02:57 AM, Sven Barth wrote: On 07.01.2017 03:12, Jon Foster wrote: I've been working on building an app for Android using the FPC's JVM target. I'm using fpc 3.0.0. I've run into a couple of things that I'm not sure if they're bugs or I just don'

[fpc-pascal] javapp

2017-01-10 Thread Jon Foster
xing classes under com/jfpossibilities/test... Printing classes... Done! It produced a "resources.pas" file with the correct skeleton of a unit, including "resources.inc". It made an empty "resources.inc" (0 bytes). So I'm obviously missing something. THX -

Re: [fpc-pascal] ppcjvm issues

2017-01-11 Thread Jon Foster
On 01/11/2017 02:25 AM, Sven Barth wrote: Am 11.01.2017 08:54 schrieb "Michael Schnell" <mailto:mschn...@lumino.de>>: > > On 10.01.2017 05:13, Jon Foster wrote: >> >> On 01/07/2017 10:39 AM, leledumbo wrote: >> >> So that leaves me with the qu

Re: [fpc-pascal] ppcjvm issues

2017-01-26 Thread Jon Foster
27;cause I've had many years of training to free what I create. I started my Pascal journey with Delphi 1/2 in '96. THX - Jon -- Sent from my Debian Linux workstation -- http://www.debian.org/intro/about Jon Foster JF Possibilities, Inc. j.

Re: [fpc-pascal] ppcjvm issues

2017-01-26 Thread Jon Foster
On 01/26/2017 01:30 PM, Jon Foster wrote: On 01/18/2017 01:16 AM, Michael Schnell wrote: On 17.01.2017 19:07, Lars wrote: If you have a jvm project with lots of code and now want to start using this code in another regular mode objfpc unix/win32 application... Exactly this as the point I

[fpc-pascal] Any use notes for javapp

2017-01-26 Thread Jon Foster
So does anyone have any hints, tips, use notes, instructions, ... for how to use the "javapp" tool? - Jon -- Jon Foster JF Possibilities, Inc. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-b

Re: [fpc-pascal] ppcjvm issues

2017-01-27 Thread Jon Foster
;" so I can test for "nil" later. Although I think FPC added a procedure to do that some time back. Yup, I see it "SysUtils.FreeAndNil". I'm not sure of the specific semantics of the JVM calls but from what I read in the various FPC JVM related page

Re: [fpc-pascal] ppcjvm issues

2017-01-27 Thread Jon Foster
On 01/27/2017 08:48 AM, Jonas Maebe wrote: On 27/01/17 02:31, Jon Foster wrote: But any classes defined in Pascal provide those methods, if they descend from the default TObject. I think I read somewhere that classes can be defined that descend from the base Java class but I haven't do

Re: [fpc-pascal] Any use notes for javapp

2017-02-06 Thread Jon Foster
On 01/28/2017 05:17 AM, Jonas Maebe wrote: On 27/01/17 02:34, Jon Foster wrote: So does anyone have any hints, tips, use notes, instructions, ... for how to use the "javapp" tool? I had accidentally disabled my subscription when you sent your previous question about this. At f

Re: [fpc-pascal] MSEide+MSEgui 4.4 for Free Pascal 3.0.2

2017-02-15 Thread Jon Foster
ing the math-co). PowerPC isn't a contender anymore but ARM/Linux is and it appears you have that covered. I'm using CHIPs (http://getchip.com). And I still want to use it on all current desktop platforms (*nix/X, OS X, 'doze). Thanks for the work I'll have to take another look!

Re: [fpc-pascal] Threading vs Parallelism ?

2017-03-30 Thread Jon Foster
eeds to be broken up. I'm still looking for a good easy to use job queue myself... -Jon -- Jon Foster JF Possibilities, Inc. j...@jfpossibilities.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpc code for Java class and Android.

2017-04-15 Thread Jon Foster
needs/wants you may be able to work out something that you can use. Right now I'm looking over fpGUI with an eye to porting it to Android to make a more sane environment. -- Sent from my Debian Linux laptop -- http://www.debian.org/intro/about Jon Foster JF Possibilities, Inc. j...@jfpossibilities.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpc code for Java class and Android.

2017-04-17 Thread Jon Foster
On 04/15/2017 12:14 PM, fredvs wrote: Jon Foster wrote The only thing that console apps need is a terminal emulator. Huh, yes, when I re-read my mail, I see directly that this will be the problem. The "One only library-method used by the Java Class" needs of course a terminal t

Re: [fpc-pascal] fpc code for Java class and Android.

2017-04-18 Thread Jon Foster
On 04/18/2017 04:38 AM, Paul Breneman wrote: On 04/17/2017 08:42 PM, Jon Foster wrote: ... You have to copy the app to "/data/tmp" as that is usually the only place on Android with a Linux file system that all users have access to. You can't look in there so you kind of ha

Re: [fpc-pascal] fpc code for Java class and Android.

2017-04-18 Thread Jon Foster
On 04/18/2017 10:13 AM, Jon Foster wrote: On 04/18/2017 04:38 AM, Paul Breneman wrote: On 04/17/2017 08:42 PM, Jon Foster wrote: ... You have to copy the app to "/data/tmp" as that is usually the only place on Android with a Linux file system that all users have access to. You can

Re: [fpc-pascal] fpc code for Java class and Android.

2017-04-19 Thread Jon Foster
On 04/19/2017 06:01 AM, Paul Breneman wrote: On 04/18/2017 07:38 AM, Paul Breneman wrote: On 04/17/2017 08:42 PM, Jon Foster wrote: ... You have to copy the app to "/data/tmp" as that is usually the only place on Android with a Linux file system that all users have access to. You can

Re: [fpc-pascal] fpc code for Java class and Android.

2017-04-19 Thread Jon Foster
On 04/19/2017 06:48 PM, Jon Foster wrote: On 04/19/2017 06:01 AM, Paul Breneman wrote: On 04/18/2017 07:38 AM, Paul Breneman wrote: On 04/17/2017 08:42 PM, Jon Foster wrote: ... You have to copy the app to "/data/tmp" as that is usually the only place on Android with a Linux file s

Re: [fpc-pascal] fpc code for Java class and Android.

2017-04-20 Thread Jon Foster
as compiling nodes. Too many cool projects and so little time! :-( -- Jon Foster JF Possibilities, Inc. j...@jfpossibilities.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Vehicle management

2017-05-11 Thread Jon Foster
vices and that is my go-to lib for anything serial. Really all it does is provide an interface to ioctl() to set line disciplines. Other than that the serial device is just another file. My only concern with 800 baud is if the clock divider in the serial chip can go that low. Its also an odd

Re: [fpc-pascal] Vehicle management

2017-05-11 Thread Jon Foster
On 05/11/2017 01:29 AM, Felipe Monteiro de Carvalho wrote: On Thu, May 11, 2017 at 1:19 AM, Jon Foster wrote: Yeah. The wiki is cluttered with inaccurate and abandoned information for Android development. It needs a serious scrubbing. And access to needed sources is somewhat hidden. I&#x

Re: [fpc-pascal] Vehicle management

2017-05-11 Thread Jon Foster
On 05/11/2017 09:37 AM, Sven Barth via fpc-pascal wrote: Am 11.05.2017 18:14 schrieb "Jon Foster" <mailto:jon-li...@jfpossibilities.com>>: > Anyhow tips on the FPC->C++ front would be appreciated. I will probably search the list archives as I know this topic come

Re: [fpc-pascal] FPC Graphics options?

2017-05-12 Thread Jon Foster
the strings in the list, since I'm not actually changing the use count. The performance gain was staggering! -- Sent from my Debian Linux workstation -- http://www.debian.org/intro/about Jon Foster JF Possibilities, Inc. j...@jfpossibilities.com

Re: [fpc-pascal] FPC Graphics options?

2017-05-12 Thread Jon Foster
On 05/12/2017 03:11 AM, Graeme Geldenhuys wrote: On 2017-05-12 00:57, Jon Foster wrote: One of the last set of benchmarks I did that Please note, I did not set out to implement a benchmark. I think all purpose written benchmarks are bias and unrealistic. I implemented a legit software

Re: [fpc-pascal] FPC Graphics options?

2017-05-13 Thread Jon Foster
On 05/12/2017 03:43 AM, Michael Schnell wrote: On 12.05.2017 01:57, Jon Foster wrote: One of the last set of benchmarks I did that focused on integer math and procedure call speed came out as follows: Thanks for sharing ! You're welcome. pascal:2:09s - 2:12 js (JIT):

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread Jon Foster
On 05/13/2017 12:24 PM, Graeme Geldenhuys wrote: On 2017-05-13 18:02, Jon Foster wrote: Speaking of Java ... that's a hard comparison to make. There are so many Java implementations. Doesn't IBM, Linux, FreeBSD etc use OpenJDK? I was also under the impression that Oracle now

Re: [fpc-pascal] FPC Graphics options?

2017-05-16 Thread Jon Foster
l probably be a while before I can give it proper treatment. -- Sent from my Debian Linux laptop Jon Foster JF Possibilities, Inc. j...@jfpossibilities.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] List pre-defined defines

2017-05-16 Thread Jon Foster
adapt to a given target, like when I wrote something for i386 and then discover I need to do something different for x64 or arm. 2. I have tools to extract code sections from Pascal sources. but I don't always know which ifdefs to follow. 3. Just 'cause I'm curios... I guess tha

Re: [fpc-pascal] List pre-defined defines

2017-05-16 Thread Jon Foster
On 05/16/2017 02:53 PM, Mattias Gaertner wrote: On Tue, 16 May 2017 14:45:42 -0700 Jon Foster wrote: I've looked several times over the years for a way to get fpc to dump all of the predefined "defines" for the target selected. Things like "fpc", "linu

Re: [fpc-pascal] FPC Graphics options?

2017-05-18 Thread Jon Foster
obably be heading back to C/C++. Ugg. I can still churn through millions of web log lines in pretty quick order. :-D -- -- Sent from my Debian Linux workstation -- http://www.debian.org/intro/about Jon Foster JF Possibilities, Inc. j...@jfpossibilities.com 541-410-2760 Making computers work for yo

Re: [fpc-pascal] List pre-defined defines

2017-05-18 Thread Jon Foster
On 05/17/2017 04:52 AM, Graeme Geldenhuys wrote: On 2017-05-16 23:25, Jon Foster wrote: Works good, even without source. With a source file it gives a few more options. Thanks Graeme! -- Sent from my Debian Linux workstation -- http://www.debian.org/intro/about Jon Foster JF

Re: [fpc-pascal] List pre-defined defines

2017-05-18 Thread Jon Foster
://www.debian.org/intro/about Jon Foster JF Possibilities, Inc. j...@jfpossibilities.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] List pre-defined defines

2017-05-18 Thread Jon Foster
On 05/18/2017 08:46 AM, Jon Foster wrote: On 05/17/2017 05:40 AM, Ewald wrote: On 16/05/17 23:53, Mattias Gaertner wrote: touch mytest fpc -vc mytest Perhaps a one-liner: fpc -vc /dev/null ? Saves one the need to create a dummy file and remove it afterward ;-) I like it! Although

Re: [fpc-pascal] FPC Graphics options?

2017-05-18 Thread Jon Foster
On 05/18/2017 08:56 AM, Reimar Grabowski wrote: On Thu, 18 May 2017 08:40:43 -0700 Jon Foster wrote: I limited run time to 10secs, and used "time" to verify actual run time. Here are the results, time output listed first and the first section of the gprof output without comments: A

Re: [fpc-pascal] FPC Graphics options?

2017-05-19 Thread Jon Foster
On 05/18/2017 07:21 PM, Ryan Joseph wrote: On May 19, 2017, at 8:01 AM, Jon Foster wrote: You can find both versions in my GitHub account: https://github.com/jafcobend/fpcflop Thanks again, I was finally able to get this complied. No idea why the inclusion of SDL 2 was crashing at that line

Re: [fpc-pascal] FPC Graphics options?

2017-05-19 Thread Jon Foster
On 05/19/2017 04:11 AM, Nikolay Nikolov wrote: On 05/19/2017 03:54 AM, Ryan Joseph wrote: On May 18, 2017, at 10:40 PM, Jon Foster wrote: 62.44 1.33 1.33 fpc_frac_real 26.76 1.90 0.57 MATH_$$_FLOOR$EXTENDED$$LONGINT 10.33 2.12 0.22 FPC_DIV_INT64 Thanks for

[fpc-pascal]Class Identification?

2003-03-22 Thread Jon David Sawyer
Heya ^_^ Is it possible to identify the class type? For example TypeOf(MyClass) = TypeOf(MyClass)? Is it possible to register diffrent types of classes at startup and then identify them later? This is probably a simple matter solvable with a few calls from the System unit that are well docume

Re: [fpc-pascal]Class Identification?

2003-03-23 Thread Jon David Sawyer
> for descendants of TObject, there's a method 'ClassType', e. g. > > *** > begin > if MyObject.ClassType = CCalculator then begin > bla bla > end else bla bla > end; > *** > > see reference manual - system unit. this only works if a descendant of > TObject has been assigned to MyObject.

Re: [fpc-pascal]Class Identification?

2003-03-23 Thread Jon David Sawyer
> btw, all classes are implicit descendants of TObject. If you don't > specify any base class, the class will be derived from TObject directly: > > type > TMyClass = class > procedure Something; > ... > end; > > TMyClass is automatically inherited from TObject > > Both postings sound

[fpc-pascal]Arrays with Undefined Ranges.

2003-03-27 Thread Jon David Sawyer
I seem to remember being able to declare something like: MyArray = Array of Byte; Useing "MyArray" as an easy way to get a pointer to a memory location. Now if I do something similar: tQPixelArray = Array of tQPixel; I get a compiler error telling me it Expected [ and got Array. Is there any way

Re: [fpc-pascal]Arrays with Undefined Ranges.

2003-03-27 Thread Jon David Sawyer
On Thu, 2003-03-27 at 03:36, Michael Van Canneyt wrote: > > > On 26 Mar 2003, Jon David Sawyer wrote: > > > I seem to remember being able to declare something like: > > MyArray = Array of Byte; > > > > Useing "MyArray" as an easy way to get a poi

[fpc-pascal]Defining Records on the fly:

2004-02-16 Thread Jon D. Sawyer
If I have this type: Type tMyRec = Record X, Y: Integer; End; and can do this: Const ARec : tMyRec = (X:12; Y:25); why can't I do this? var AnotherRec: tMyRec; begin AnotherRec := (X:12; Y:25); end. ** Feel free to smack me around. ___ fpc-pas

Re: [fpc-pascal]Defining Records on the fly:

2004-02-17 Thread Jon D. Sawyer
nifty feature.. but hey.. I was just wondering. On Mon, 2004-02-16 at 04:46, Shawn Tan Ser Ngiap wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Monday 16 February 2004 00:40, Jon D. Sawyer wrote: > > > Const ARec : tMyRec = (X:12; Y:25); > > >

Re: [fpc-pascal]My object function is overriding real function

2004-02-18 Thread Jon D. Sawyer
If the function you wish to call is apart of another unit you can call i.g.: UnitName.Close(sin); UnitName.Close(sout); ** That may work from within the same unit but I'm not certain. ** Free pascal is great about name spaces and allowing you to specify which function you wish to call. On

Re: [fpc-pascal]RE: Defining Records on the fly:

2004-02-18 Thread Jon D. Sawyer
^_^ Thats how its working at the moment and I've known that FPC doesn't do that kinda definition on the fly. My real question was why not? On Wed, 2004-02-18 at 21:34, Adam Victor Nazareth Brandizzi wrote: > You can also define a function that returns the record you need: > > function NewMyRec(

[fpc-pascal]fpcmake

2004-02-24 Thread Jon D. Sawyer
Is there a way to get FPC Make to enter its target DIRS before compiling the units in the current directory? I've got a unit that depends on another unit being compiled first that is in a sub-directory, even though I list the dirs first Make trys to compile the current dir first. Thx.. ^_^

Re: [fpc-pascal]fpcmake

2004-02-24 Thread Jon D. Sawyer
Thanks Micheal & Peter, I kinda figured that was the case. I think I'll just move it to a sub-directory like you suggested peter because I'd rather not have to re-edit the raw Makefile every time I generate it. Thanks again! This newsboard is part of what makes FPC so damn great! All of you guys

[fpc-pascal]Using UInt32 {LongWords} as Indexes for Properties.

2004-04-06 Thread Jon D. Sawyer
Ran into a problem of where I'm not sure how the code will work once I'm finished and I'd rather not write all this if its not going to work: I want to provide access to Bit-Flags that control a class of mine: ig: Property SWSurface : Boolean Index SDL_SWSurface Read GetFlags Write SetFlags; I

Re: [fpc-pascal]Using UInt32 {LongWords} as Indexes for Properties.

2004-04-06 Thread Jon D. Sawyer
I appreciate the help but I'm not sure if you understand what it is I'm trying to do. SetFlag() and GetFlag() do binary operations on the flags controling an SDL Surface. Passing the BitMask to the GetFlag() will return weither or not the bit is on in the flags variable. Passing the BitMask and

Re: [fpc-pascal]Using UInt32 {LongWords} as Indexes for Properties.

2004-04-06 Thread Jon D. Sawyer
To give a better picture of my problem: Type tQSDL_Surface = Class (SomeClass) Protected fFlags : UInt32; {LongWord} Function GetFlag(aBit: UInt32): Boolean; Function SetFlag(aBig: UInt32; aBool: Boolean); Public Constructor Create(); Des