chakracore-delphi icon indicating copy to clipboard operation
chakracore-delphi copied to clipboard

FYI: ccws - the first large open source project that make massive use of chakracore-delphi

Open edwinyzh opened this issue 5 years ago • 4 comments

ccws - Linux Web(Socket) server powered by ChakraCore by @reddor

I just discovered it, I think it's a very useful example to demonstrate the integration with ChakraCore-Delphi from your code.

I guess (just guessing) it's easy to back-port to Delphi :)

edwinyzh avatar Jun 30 '19 08:06 edwinyzh

I'm watching it already. Very interesting. Thank you :-)

tondrej avatar Jun 30 '19 09:06 tondrej

Oh hai :) The primary reason why the project is linux-only is the dependency on epoll, upon which the server logic is builting upon. Individual parts of it should be fairly reusable.
At some point I'd actually like to contribute ChakraRTTIObject back to this project, which automatically maps published properties & methods to the JS object. There's a similar feature in BESEN, and IMHO it makes writing new objects very comfortable. While we're at it, thanks for enabling to make this project in the first place!

reddor avatar Jun 30 '19 18:06 reddor

Hi :-)

Congrats on a very interesting project! It's also nice to see your RTTI extension. I had started something similar in a private branch already as I thought too it could be useful in simplifying the code on the Pascal side.

Looking forward to your contribution. :-) Cheers!

tondrej avatar Jul 01 '19 07:07 tondrej

Hey, I'm very glad that this post got attention from the authors of both chakracore-delphi itself and ccws :)

Speaking of RTTI I assume you talk about the lastly introduced Extended RTTI as opposed to the good-old fast RTTI (System.Typinfo.pas).

It's worth to note that the old RTTI is much faster, although it supports only published methods and property, but IMHO the limit is worth due to the speed gain. the mORMot author had some tests and mORMot uses the good-old RTTI only for the sake of much better performance.

edwinyzh avatar Jul 02 '19 11:07 edwinyzh