gravity icon indicating copy to clipboard operation
gravity copied to clipboard

hello can we run gravity on microcontroller ?

Open hpwit opened this issue 1 year ago • 4 comments

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

hpwit avatar Jan 29 '24 11:01 hpwit

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

marcobambini avatar Jan 29 '24 16:01 marcobambini

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 avatar Jan 29 '24 17:01 hpwit

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

hpwit avatar Jan 30 '24 08:01 hpwit

  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?

marcobambini avatar Feb 01 '24 09:02 marcobambini