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

hello can we run gravity on microcontroller ? #421

Open
hpwit opened this issue Jan 29, 2024 · 4 comments
Open

hello can we run gravity on microcontroller ? #421

hpwit opened this issue Jan 29, 2024 · 4 comments

Comments

@hpwit
Copy link

hpwit commented Jan 29, 2024

I would like to run gravity on esp32 has it is compiled, which is better than Lua which is good bu way to slow on the esp32

@marcobambini
Copy link
Owner

@hpwit you just need a C99 C compiler and then Gravity can run everywhere.

@hpwit
Copy link
Author

hpwit commented Jan 29, 2024

Indeed I was able to make it run simple example on esp32.
I will try to go further and see the difference in performance with lua. Thank you

@hpwit
Copy link
Author

hpwit commented Jan 30, 2024

Hello me again
I have two questions:

1)I see that you can do operator override. Do you have an example? I would like to override the = operator of an array.

  1. how do you retrieve the content of a class. I would like to bind a C++ function where the parameter is a class.
    I did not find examples.
    Thank you

@marcobambini
Copy link
Owner

  1. The = operator is a special one and cannot be overridden
  2. What do you mean by the content of a class? What exactly you need to retrieve?

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

2 participants