arximboldi / immer

Postmodern immutable and persistent data structures for C++ — value semantics at scale
https://sinusoid.es/immer
Boost Software License 1.0
2.51k stars 185 forks source link

Implementation into a hosted language #242

Closed ShalokShalom closed 1 year ago

ShalokShalom commented 1 year ago

Hi there :)

Let me ask a probably out-of-place question: Can I use this library, to implement immutable data structures to a language, that is implemented in C++?

I am specifically thinking about GDScript https://github.com/godotengine/godot/blob/master/modules/gdscript/ As you can see, it is integrated as VM and as a module. Thanks a lot

arximboldi commented 1 year ago

Making it easy or at least feasible to integrate in language implementations is one of the goals of the library. The codebase contains examples of Scheme and Python bindings. @jeaye has also integrating it in jank. Lemme know if you have any issues with it :smile:

arximboldi commented 1 year ago

Also: exciting to see support into Godot, which is an amazing product! Are you aiming for it to be provided in the langauge by default, or as an external library?

ShalokShalom commented 1 year ago

Ok, I am new to C++ and programming in general. I will do my best.

I doubt it would be accepted in GDScript So I aim to make it part of a fork, together with some other changes.

The new language will be called Godette ;)

arximboldi commented 1 year ago

Great. Good luck!

ShalokShalom commented 1 year ago

I feel like, this is WAY over my head 😅