Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread Sven Barth via fpc-pascal
Am 14.05.2017 23:18 schrieb : > > On 2017-05-11 18:57, Jon Foster wrote: >> >> On 05/11/2017 02:48 PM, Graeme Geldenhuys wrote: >>> >>> On 2017-05-11 19:43, James Richters wrote: Any Suggestions? >>> >>> >>> Speed: >>> In recent graphics work I've done, I've noticed

Re: [fpc-pascal] Size of program vs library ?

2017-05-15 Thread Michael Van Canneyt
On Mon, 15 May 2017, fredvs wrote: fredvs wrote Hello. Sorry to come back with this story but there are (good) news. Using * --gc-sections * makes the library smartlinked. So the question is: Why FPC does not provide * --gc-sections * to the linker with the -XX paramer for

Re: [fpc-pascal] Size of program vs library ?

2017-05-15 Thread fredvs
fredvs wrote > Hello. > > Sorry to come back with this story but there are (good) news. > > Using * > --gc-sections * > makes the library smartlinked. > > So the question is: > > Why FPC does not provide * > --gc-sections * > to the linker with the -XX paramer for libraries ? (Bug ?) > >

Re: [fpc-pascal] Size of program vs library ?

2017-05-15 Thread Michael Van Canneyt
On Mon, 15 May 2017, fredvs wrote: http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal Ha, news, finally. Huh, did you read my post ? I did. I responded to the statement that fpc libraries are big and "unusable". It talk about smartlinking of libraries that does not work.

Re: [fpc-pascal] Size of program vs library ?

2017-05-15 Thread fredvs
Michael Van Canneyt wrote > On Mon, 15 May 2017, fredvs wrote: > >> fredvs wrote >>> Hello. >>> >>> Sorry to come back with this story but there are (good) news. >>> >>> Using >> * >>> --gc-sections >> * >>> makes the library smartlinked. >>> >>> So the question is: >>> >>> Why FPC does not

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread James Richters
Thanks for the help and advice with this. I've been trying to figure out how a lot of this works. Here's where I'm at >You could try the units ptcgraph or sdlgraph as alternatives (both are part of >FPC). These seemed like the easiest things to start with. ptcgraph: I'm having 2 issues

[fpc-pascal] FPC 64bit for windows

2017-05-15 Thread James Richters
I am wondering if it's possible to compile my windows console app specifically for 64bit machines running windows? I am currently compiling it as a win32 console application because I cannot figure out how to compile it as a 64bit program. I normally run bin\i386-win32\FP.EXE and use the text

Re: [fpc-pascal] Partial text search in a dictionary

2017-05-15 Thread Jürgen Hestermann
Am 2017-05-15 um 13:14 schrieb Torsten Bonde Christiansen: > however I was hoping someone might know of an implementation that works more or less out of the box. To me it was very seldom that an existing solution severed all my needs. Either not all requirements were complied from the

[fpc-pascal] Partial text search in a dictionary

2017-05-15 Thread Torsten Bonde Christiansen
Hi list. I am looking for a class/list/map... that allows me to store string data paired with an object. However i would like to be able to do a partial text search on the strings, prefeably with a result as a list of matching string/object pairs but getting an index to the first matching

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread Graeme Geldenhuys
On 2017-05-15 11:51, James Richters wrote: ication to be a 64bit application. I have installed 'fpc-3.0.2.i386-win32.cross.x86_64-win64.exe' but I don't see any fp.exe to run so I'm a bit lost with it. Yes, I don't know why the Free Pascal team doesn't make official 64-bit versions of FPC.

Re: [fpc-pascal] FPC 64bit for windows

2017-05-15 Thread Graeme Geldenhuys
On 2017-05-15 11:59, James Richters wrote: When I try to install 64 bit windows version, I don't have this anymore The Free Pascal project, for some weird reason, only ships a 64-bit Windows cross-compiler. So you need both the 32-bit and 64-bit installs. I don't know why they do this.

Re: [fpc-pascal] FPC 64bit for windows

2017-05-15 Thread Michael Van Canneyt
On Mon, 15 May 2017, wkitt...@windstream.net wrote: On 05/15/2017 07:41 AM, Graeme Geldenhuys wrote: But again, I don't know why the FPC team doesn't make an official full 64-bit Windows release?? IIRC, they say it is because 32bit winwhatever stuff will run on 64bit winwhatever stuff

Re: [fpc-pascal] Partial text search in a dictionary

2017-05-15 Thread duilio foschi
a pointer is - after all - just an integer. See http://delphi.cjcsoft.net/viewthread.php?tid=44049 Instead of TStringLIst use a SQLite (open source) in-memory table to store your data. The table can be indexed and searched using function Locate with option loPartialKey. Just my 2c Peppe

Re: [fpc-pascal] FPC 64bit for windows

2017-05-15 Thread wkitty42
On 05/15/2017 07:41 AM, Graeme Geldenhuys wrote: But again, I don't know why the FPC team doesn't make an official full 64-bit Windows release?? IIRC, they say it is because 32bit winwhatever stuff will run on 64bit winwhatever stuff and because of that there's no real reason to build 64bit

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread James Richters
Thank you for the console example. I really don't have anything too complicated, just basic 1 pixel wide lines, arcs and simple text the most complex shapes are outlines of ellipses. I don't have any surfaces or textures or anything really complicated. I did appreciate how much better 1 pixel

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread Graeme Geldenhuys
On 2017-05-15 15:45, James Richters wrote: I did appreciate how much better 1 pixel wide lines and curves appear with the anti-aliasing and sub-pixel accuracy provides. Indeed, AGG (and AggPas) does a fantastic job and high quality line and text rendering with sub-pixel accuracy. Here is

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

Re: [fpc-pascal] FPC 64bit for windows

2017-05-15 Thread Graeme Geldenhuys
On 2017-05-15 16:57, James Richters wrote: I'm not quite following your batch file. I have no 'src' directory, where is that supposed to be? If you want the FPC 3.0.2 version, then download the official source archive for the 3.0.2 release from FPC's SourceForge page. Here is where I am

Re: [fpc-pascal] FPC 64bit for windows

2017-05-15 Thread Graeme Geldenhuys
On 2017-05-15 18:19, James Richters wrote: Could you please give me a link to download 3.0.2 source archive? I'm on the FPC sourceforge page but I'm very confused as to what is what. All downloads can be found from here: https://sourceforge.net/projects/freepascal/files/ From there you

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread James Richters
I put freetype.dll in with the sample program and I was able to successfully compile it, and I can even run it without any errors, but I never get any graphics display.. am I missing some obvious step?I am compiling and running it with the Free Pascal text mode IDE, I added the paths to

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread noreply
On 2017-05-15 01:02, Sven Barth via fpc-pascal wrote: Wow, Graeme! That's harsh. One of the last set of benchmarks I did that focused on integer math and procedure call speed came out as follows: I think he specifically meant graphics apps, not general apps While a raytracer is indeed a

Re: [fpc-pascal] Size of program vs library ?

2017-05-15 Thread noreply
On 2017-05-15 04:19, Michael Van Canneyt wrote: If you want to compare today, you need to add the sizes of all the C libraries that are loaded during execution of a C program with the size of an FPC program. I think you'll find that the sizes of FPC programs are not so different then. Just

Re: [fpc-pascal] Size of program vs library ?

2017-05-15 Thread Michael Van Canneyt
On Mon, 15 May 2017, nore...@z505.com wrote: On 2017-05-15 04:19, Michael Van Canneyt wrote: If you want to compare today, you need to add the sizes of all the C libraries that are loaded during execution of a C program with the size of an FPC program. I think you'll find that the sizes of

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread Nikolay Nikolov
On 05/15/2017 11:25 PM, Nikolay Nikolov wrote: On 05/15/2017 01:51 PM, James Richters wrote: Thanks for the help and advice with this. I've been trying to figure out how a lot of this works. Here's where I'm at You could try the units ptcgraph or sdlgraph as alternatives (both are part

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread James Richters
Thank you, I will try that version and also change to ptcgraph. -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Nikolay Nikolov Sent: Monday, May 15, 2017 4:32 PM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] FPC Graphics

Re: [fpc-pascal] Size of program vs library ?

2017-05-15 Thread noreply
On 2017-05-15 04:26, fredvs wrote: After lot of fight, there is a solution: using -*-gc-sections*. And the question was : /Why FPC does not provide --gc-sections to the linker with the -XX paramer for libraries ? (Bug ?) / Hopefully that's all there is to it, but how do you know that this

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread Nikolay Nikolov
On 05/15/2017 01:51 PM, James Richters wrote: Thanks for the help and advice with this. I've been trying to figure out how a lot of this works. Here's where I'm at You could try the units ptcgraph or sdlgraph as alternatives (both are part of FPC). These seemed like the easiest things

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread Graeme Geldenhuys
On 2017-05-15 20:50, James Richters wrote: see it is going into aggpas units, but I do not get any graphical window, I don't get any errors either, it just runs and exits. The example is a pure console application with no output to any display. Instead it generates a "test.png" file as its

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread Nikolay Nikolov
On 05/16/2017 01:37 AM, James Richters wrote: I have managed to get ptcgraph and ptccrt to work with my program and I can report that there is an AMAZING increase in graphics performance! It is pretty much a drop in replacement and I did not change any compiler settings. I did have to

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread James Richters
Thank you for the explanation. For now I can live without the windows API calls, It does work to manually switch back and forth to the text console window, and I'm really the only one who does that as I sometimes perform some diagnostic functions in there. The performance gains are worth it.

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread James Richters
Yes, I did get the test.png file.. I understand the concept now. Aggpas figures out what the status of the pixels should be then you update the screen with those pixels. -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Graeme

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread Graeme Geldenhuys
On 2017-05-15 16:28, James Richters wrote: Agg2dconsole.exe - System Error The Program can't start because freetype.dll is missing from your computer. Try reinstalling the program to fix the problem Any ideas? Sorry about that. AggPas uses the FreeType library (preferred - more features that

Re: [fpc-pascal] FPC 64bit for windows

2017-05-15 Thread James Richters
I'm not quite following your batch file. I have no 'src' directory, where is that supposed to be? Here is where I am at: I have just downloaded your repo at https://github.com/graemeg/freepascal and I have it saved at 'J:\Programming\FreePascal' Is there a better place to download the x86

Re: [fpc-pascal] Best way to check SimpleIPC for messages

2017-05-15 Thread noreply
On 2017-05-12 09:37, Michael Van Canneyt wrote: Obviously "avoid threads where possible" but only if there is a simpler mechanism not reinventing a thread. So it seems to me onidle in fpgui is a simpler way than creating a new separate thread yourself, but how to do it in a program that has no

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread James Richters
I have managed to get ptcgraph and ptccrt to work with my program and I can report that there is an AMAZING increase in graphics performance! It is pretty much a drop in replacement and I did not change any compiler settings. I did have to make a few minor changes to get it to work, not

Re: [fpc-pascal] Best way to check SimpleIPC for messages

2017-05-15 Thread Michael Van Canneyt
On Mon, 15 May 2017, nore...@z505.com wrote: On 2017-05-12 09:37, Michael Van Canneyt wrote: Obviously "avoid threads where possible" but only if there is a simpler mechanism not reinventing a thread. So it seems to me onidle in fpgui is a simpler way than creating a new separate thread

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread James Richters
I am trying to run your sample program. I am able to compile it, but when I try to run it I get: Agg2dconsole.exe - System Error The Program can't start because freetype.dll is missing from your computer. Try reinstalling the program to fix the problem Any ideas? -Original Message-