Re: [fpc-pascal] Improved FPC JSON-RPC support

2021-12-29 Thread Michael Van Canneyt via fpc-pascal
On Wed, 29 Dec 2021, Graeme Geldenhuys via fpc-pascal wrote: On 2021-12-29 09:54, Michael Van Canneyt via fpc-pascal wrote: They showed clearly that the used protocol (http & xml) is the largest factor. in 2013 I did many tests in a JSON REST framework: the times for streaming were dwarfed

Re: [fpc-pascal] Improved FPC JSON-RPC support

2021-12-29 Thread Graeme Geldenhuys via fpc-pascal
On 2021-12-29 13:56, Graeme Geldenhuys via fpc-pascal wrote: I did the load test multiple times, and the results were consistent. It should go without saying, my testing methodology could be flawed. ;-) G. ___ fpc-pascal maillist -

Re: [fpc-pascal] Improved FPC JSON-RPC support

2021-12-29 Thread Graeme Geldenhuys via fpc-pascal
On 2021-12-29 09:54, Michael Van Canneyt via fpc-pascal wrote: They showed clearly that the used protocol (http & xml) is the largest factor. in 2013 I did many tests in a JSON REST framework: the times for streaming were dwarfed by the time spent on network & database access. Have you, or

Re: [fpc-pascal] Improved FPC JSON-RPC support

2021-12-29 Thread wkitty42--- via fpc-pascal
On 12/29/21 6:29 AM, Graeme Geldenhuys via fpc-pascal wrote: On 2021-12-29 11:22, wkitty42--- via fpc-pascal wrote: i'm sorry... what is WST? googling https://wiki.lazarus.freepascal.org/Web_Service_Toolkit thank you! :) -- NOTE: No off-list assistance is given without prior approval.

Re: [fpc-pascal] Improved FPC JSON-RPC support

2021-12-29 Thread Graeme Geldenhuys via fpc-pascal
On 2021-12-29 11:22, wkitty42--- via fpc-pascal wrote: i'm sorry... what is WST? googling https://wiki.lazarus.freepascal.org/Web_Service_Toolkit G. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Improved FPC JSON-RPC support

2021-12-29 Thread Howard Page-Clark via fpc-pascal
On 29/12/2021 11:22, wkitty42--- via fpc-pascal wrote: On 12/29/21 4:54 AM, Michael Van Canneyt via fpc-pascal wrote: Translated to RPC: if you want speed, don't use HTTP or JSON. WST offers a binary protocol and plain TCP channel, it's bound to be much faster. i'm sorry... what is WST?

Re: [fpc-pascal] Improved FPC JSON-RPC support

2021-12-29 Thread Michael Van Canneyt via fpc-pascal
On Wed, 29 Dec 2021, wkitty42--- via fpc-pascal wrote: On 12/29/21 4:54 AM, Michael Van Canneyt via fpc-pascal wrote: Translated to RPC: if you want speed, don't use HTTP or JSON. WST offers a binary protocol and plain TCP channel, it's bound to be much faster. i'm sorry... what is WST?

Re: [fpc-pascal] Improved FPC JSON-RPC support

2021-12-29 Thread Sven Barth via fpc-pascal
Am 29.12.2021 um 12:22 schrieb wkitty42--- via fpc-pascal: On 12/29/21 4:54 AM, Michael Van Canneyt via fpc-pascal wrote: Translated to RPC: if you want speed, don't use HTTP or JSON. WST offers a binary protocol and plain TCP channel, it's bound to be much faster. i'm sorry... what is WST?

Re: [fpc-pascal] Improved FPC JSON-RPC support

2021-12-29 Thread wkitty42--- via fpc-pascal
On 12/29/21 4:54 AM, Michael Van Canneyt via fpc-pascal wrote: Translated to RPC: if you want speed, don't use HTTP or JSON. WST offers a binary protocol and plain TCP channel, it's bound to be much faster. i'm sorry... what is WST? googling for "wst binary protocol tcp ip channel" doesn't

Re: [fpc-pascal] Improved FPC JSON-RPC support

2021-12-29 Thread Michael Van Canneyt via fpc-pascal
On Tue, 28 Dec 2021, Don Duvall via fpc-pascal wrote: Has any performance tests been ran, to see what the runtime impact of utilizing RTTI is? Hopefully negligent in the grand scheme... No tests have been run. I also don't know what exactly you would compare it with ? Using some plain

Re: [fpc-pascal] Improved FPC JSON-RPC support

2021-12-29 Thread Don Duvall via fpc-pascal
Has any performance tests been ran, to see what the runtime impact of utilizing RTTI is? Hopefully negligent in the grand scheme... Thanks, Don On 12/28/2021 2:11 PM, Michael Van Canneyt via fpc-pascal wrote: On Tue, 28 Dec 2021, Graeme Geldenhuys via fpc-pascal wrote: On 2021-12-28

Re: [fpc-pascal] Improved FPC JSON-RPC support

2021-12-28 Thread Mattias Gaertner via fpc-pascal
On Tue, 28 Dec 2021 23:11:42 +0100 (CET) Michael Van Canneyt via fpc-pascal wrote: >[...] > > Slightly off topic, and my Object Pascal is getting a bit rusty as > > the years go by. ;-) In your factory above, is the "as > > IInterface" part needed. No. > Can't the FPC compiler automatically

Re: [fpc-pascal] Improved FPC JSON-RPC support

2021-12-28 Thread Michael Van Canneyt via fpc-pascal
On Tue, 28 Dec 2021, Graeme Geldenhuys via fpc-pascal wrote: On 2021-12-28 15:25, Michael Van Canneyt via fpc-pascal wrote: Thanks to the magic of RTTI and Invoke(), creating a JSON-RPC server has just become significantly easier ! That's pretty neat - nicely done Michael. We do our

Re: [fpc-pascal] Improved FPC JSON-RPC support

2021-12-28 Thread Graeme Geldenhuys via fpc-pascal
On 2021-12-28 15:25, Michael Van Canneyt via fpc-pascal wrote: Thanks to the magic of RTTI and Invoke(), creating a JSON-RPC server has just become significantly easier ! That's pretty neat - nicely done Michael. // Create a class that implements the interface Type   TIntf2Impl =

[fpc-pascal] Improved FPC JSON-RPC support

2021-12-28 Thread Michael Van Canneyt via fpc-pascal
Hello, Thanks to the magic of RTTI and Invoke(), creating a JSON-RPC server has just become significantly easier ! Given an interface definition: IMyOtherInterface = interface ['{4D52BEE3-F709-44AC-BD31-870CBFF44632}'] Function SayHello : string; function Echo(args : TStringArray) :