Comments

You must log in or register to comment.

Zealousideal_Crazy46 OP t1_jb8fc2l wrote

Hello! am the owner of sushi - a library to help you migrate from one language to another and wanted to announce 0.1! When I first posted about sushi, it had lots of bugs and was in a really early stage. After releasing 0.1 all bugs were fixed and suggestions from my last post were applied.

So what really is sushi? As the title says it's a library to help you migrate from one language to another. It can also be used if you can't find any library for your language. In future, I want to have it compatible with any language.

If it sounds interesting, you can help me continue growing this project by giving it a star and contributing to it. Thanks for all the support!

I will also listen to all your suggestions and opinions about it, so if you have any - comment it!

Examples: https://github.com/dev-sushi/sushi/tree/main/examples. I will add more when auto indexing will be ready (alternative to regex based indexing)

1

iceytomatoes t1_jbaa2po wrote

i still don't understand this since the last time you posted it

is the readme in examples supposed to be empty

8

lurgi t1_jbarw1b wrote

It looks like it takes the file containing the function, slaps an int main() in there which calls the function with the appropriate arguments, and then compiles and runs the code. No values can be returned from the function and my guess is it will only work with a few data types (int, float, char, maybe string) so good luck using anything remotely interesting.

4

lurgi t1_jbbp5gi wrote

Then you'd need to modify the C/C++ code so that it doesn't return a Widget type or whatever and instead serializes the data in such a way that it can be deserialized by the caller.

At this point it's just FFI with me doing all the work. Plus, every time a function is called with different arguments, the C compiler is invoked (this also means whoever is running the code will need a C compiler installed, which seems like a big ask).

2