SomeRanDev / reflaxe.CPP

An alternative C++ target for Haxe that generates dependent-less, GC-less C++17 code.
MIT License
72 stars 5 forks source link

Cppia support & roadmap? #8

Open alienself opened 1 year ago

alienself commented 1 year ago

Hi,

This project looks really promising, really exciting to see an alternative to hxpp!

I would like to know if it would be possible to add cppia support for instant compilation / hot-reload, would this be possible?

Overall, how complete is this project currently? What is left to do / missing?

SomeRanDev commented 1 year ago

There will probably never be support for cppia as it requires hxcpp's C++ lib to function afaik. Though, alternative scripting solutions are not off the table.

The project is mostly complete what's left to be done is API implementations of:

alienself commented 1 year ago

Thank you for the fast reply.

Perhaps something similar to cppia but not exactly cppia that would be compatible with reflaxe.cpp? I would like to use this project for a scripting language on top of my existing c++ codebase. Having a fast way to test a script while in development would be game changing.

I also highly dislike hxcpp and all the binding / gc mess, this project is definitely solving a massive issue. However being able to compile the haxe code instantly and run it in interpreted mode would be great. Cppia has a Jit mode which can be completely disabled (and is completely useless anyway), which should make a port possible.

What other alternative scripting solutions do you have in mind?

SomeRanDev commented 1 year ago

HScript. I hope to enable a system that allows for extern classes to be wrapped and usable automatically (not possible with either cppia or hscript atm). Performance is slower, but scripting is a development only feature that should not exist in release builds.

alienself commented 1 year ago

HScript. I hope to enable a system that allows for extern classes to be wrapped and usable automatically (not possible with either cppia or hscript atm). Performance is slower, but scripting is a development only feature that should not exist in release builds.

Oh I haven't heard of HScript! But: It is dynamically typed but allows all Haxe expressions apart from type (class,enum,typedef) declarations. do you think that you can go around the class/enum declaration limitation? or can you only call functions / instantiate classes using this?