Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
edwinyzh opened this issue Jun 30, 2019 · 4 comments

Comments

@edwinyzh
Copy link

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

@tondrej
Copy link
Owner

tondrej commented Jun 30, 2019

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

@reddor
Copy link

reddor commented Jun 30, 2019

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!

@tondrej
Copy link
Owner

tondrej commented Jul 1, 2019

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!

@edwinyzh
Copy link
Author

edwinyzh commented Jul 2, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants