reflaxe.CPP icon indicating copy to clipboard operation
reflaxe.CPP copied to clipboard

Cppia support & roadmap?

Open alienself opened this issue 2 years ago • 4 comments

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?

alienself avatar Apr 30 '23 21:04 alienself

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:

  • Sys (mostly complete)
  • NativeInput/NativeOutput
  • Reflection related stuff: (Dynamic, Type, Reflect)
  • Patch remaining APIs that have yet to be found

SomeRanDev avatar May 01 '23 06:05 SomeRanDev

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?

alienself avatar May 01 '23 16:05 alienself

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.

SomeRanDev avatar May 01 '23 20:05 SomeRanDev

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?

alienself avatar May 02 '23 17:05 alienself