Re: [fpc-pascal] how to convert JNByteBuffer variable type to type usable by fw.write

2019-08-26 Thread Jonas Maebe
On 2019-08-26 15:13, Mgr. Janusz Chmiel wrote: Please, does somebody of us know how to write file by using binary mode and writing data from The variable which have JNByteBuffer variable type? Here is a Java example on how to do it. You need to use java.io.FileOutputStream (JIFileOutputStream

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread Sven Barth via fpc-pascal
schrieb am Di., 27. Aug. 2019, 01:38: > If anybody would like a near silent POWER9 system at home, > I can really recommend the new Blackbird mainboard with CPU bundles > from Raptor CS. The lower cost 4-core CPU uses so little power you > hardly even need a fan for it. > If only it wouldn't st

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread tobiasgiesen
Hi Pierre, wow that was fast and it works now! Lazarus (trunk) now compiles and runs without any changes on a POWER9 machine in little endian mode :=) Very beautiful! I couldn't be happier. Good work everyone! I'm running it on Ubuntu but I have also installed a few other Linux distributions, al

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread Pierre Muller
Le 26/08/2019 à 22:46, tobiasgie...@gmail.com a écrit : > Hi Jonas, > > fantastic, that looks great. I think now I can just wait until Pierre > Muller's snapshot is updated :=) As I followed the thread, I made a special issue for you, you should find the new snapshot of ftp site: $ cat ft

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread tobiasgiesen
Hi Jonas, fantastic, that looks great. I think now I can just wait until Pierre Muller's snapshot is updated :=) Cheers, Tobias On Mon, 26 Aug 2019 21:42:37 +0200 Jonas Maebe wrote: > On 26/08/2019 20:56, Jonas Maebe wrote: > > On 26/08/2019 20:54, Florian Klaempfl wrote: > >> Am 26.08.2

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread Jonas Maebe
On 26/08/2019 20:56, Jonas Maebe wrote: > On 26/08/2019 20:54, Florian Klaempfl wrote: >> Am 26.08.2019 um 20:52 schrieb Jonas Maebe: >>> On 26/08/2019 14:22, Florian Klämpfl wrote: Am 26. August 2019 14:08:39 schrieb Sven Barth via fpc-pascal : > Florian Klämpfl schrieb am Mo.

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread Jonas Maebe
On 26/08/2019 20:54, Florian Klaempfl wrote: > Am 26.08.2019 um 20:52 schrieb Jonas Maebe: >> On 26/08/2019 14:22, Florian Klämpfl wrote: >>> Am 26. August 2019 14:08:39 schrieb Sven Barth via fpc-pascal >>> : >>> Florian Klämpfl schrieb am Mo., 26. Aug. 2019, 14:01: > Try to c

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread Florian Klaempfl
Am 26.08.2019 um 20:52 schrieb Jonas Maebe: > On 26/08/2019 14:22, Florian Klämpfl wrote: >> Am 26. August 2019 14:08:39 schrieb Sven Barth via fpc-pascal >> : >> >>> Florian Klämpfl schrieb am Mo., 26. Aug. 2019, >>> 14:01: >>> Try to change the 48 in fpc/compiler/powerpc64/cpupara.pas line

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread Jonas Maebe
On 26/08/2019 14:22, Florian Klämpfl wrote: > Am 26. August 2019 14:08:39 schrieb Sven Barth via fpc-pascal > : > >> Florian Klämpfl schrieb am Mo., 26. Aug. 2019, >> 14:01: >> >>> Try to change the 48 in fpc/compiler/powerpc64/cpupara.pas line to 32 as a >>> temporary test. >> >> Line 302 in ca

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread Sven Barth via fpc-pascal
schrieb am Mo., 26. Aug. 2019, 19:53: > Hello, > > trying to recompile now ... since ppc64le support is not in 3.0.4, I > suppose I need to use a more recent version to compile it. So there is > no advantage in cross-compiling and I might as well try it with the > latest native fpc compiler? > >

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread tobiasgiesen
Hello, trying to recompile now ... since ppc64le support is not in 3.0.4, I suppose I need to use a more recent version to compile it. So there is no advantage in cross-compiling and I might as well try it with the latest native fpc compiler? So I need to fix compiler errors myself, is that corre

Re: [fpc-pascal] A new design for a JSON Parser

2019-08-26 Thread Anthony Walter
Adding a global redefinable separator character is a good idea which I might add. With regards to using the forward slash, I am just reusing the XPath way of doing things and was considering adding a few more XPath like queries. For example: N.Find('/inventory/999/sku'); // search from root if the

[fpc-pascal] how to convert JNByteBuffer variable type to type usable by fw.write

2019-08-26 Thread Mgr. Janusz Chmiel
Please, does somebody of us know how to write file by using binary mode and writing data from The variable which have JNByteBuffer variable type? What do I had to do so I would be able to write data to The output file in binary mode from The variable which have JNByteBuffer variable type? Thank

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread tobiasgiesen
Hello, many thanks, I will try it! I haven't compiled FPC for ppc64le myself so it can take a few days but I will let you know about the result. Cheers, Tobias On Mon, 26 Aug 2019 14:22:01 +0200 Florian Klämpfl wrote: > Am 26. August 2019 14:08:39 schrieb Sven Barth via fpc-pascal > : >

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread Florian Klämpfl
Am 26. August 2019 14:08:39 schrieb Sven Barth via fpc-pascal : > Florian Klämpfl schrieb am Mo., 26. Aug. 2019, > 14:01: > >> Am 26. August 2019 00:59:16 schrieb tobiasgie...@gmail.com: >> >>> Hello, >>> >>> >>> >>> >>> while examining a crash when running Lazarus on ppc64le, I found the >>> fo

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread Sven Barth via fpc-pascal
Florian Klämpfl schrieb am Mo., 26. Aug. 2019, 14:01: > Am 26. August 2019 00:59:16 schrieb tobiasgie...@gmail.com: > > > Hello, > > > > > > while examining a crash when running Lazarus on ppc64le, I found the > > following issue in function calls. > > > > > > Calls to functions with more than ei

Re: [fpc-pascal] ppc64le ABI problem

2019-08-26 Thread Florian Klämpfl
Am 26. August 2019 00:59:16 schrieb tobiasgie...@gmail.com: > Hello, > > > while examining a crash when running Lazarus on ppc64le, I found the > following issue in function calls. > > > Calls to functions with more than eight parameters seem to be > implemented differently from how gcc does it in

Re: [fpc-pascal] A new design for a JSON Parser

2019-08-26 Thread Zamrony P. Juhara via fpc-pascal
Very cool library. It would be nice if separator character can be change For example, for me personally aval := n.find('billTo.name'). value; more intuitive instead of aval := n.find('billTo/name'). value; Also AFAIK, GPL v3 license will require application using this library must use GPL too. Z

[fpc-pascal] A new design for a JSON Parser

2019-08-26 Thread Anthony Walter
I know the FCL already has a capable JSON parser, but I am writing some Amazon web service interfacing projects and wanted a smaller easier to use JSON parser to assist. I've create a new design for a JSON parser that is pretty small, yet powerful. If your interested, I've posted the code under GP