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

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-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] 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] 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/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] 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-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

[fpc-pascal] List pre-defined defines

2017-05-16 Thread Jon Foster
t's more than 2. :-) TIA - Jon -- Sent from my Debian Linux workstation -- 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 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

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-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-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-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] 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] 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
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] 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] 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-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-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-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-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-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] 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] 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] 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] 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] 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

[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-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

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-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

[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-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'

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-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

[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

[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] 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! _

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] 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