Microscheme: scheme for the Arduino
microscheme.org
Microscheme: scheme for the Arduino
1–10 of 11 posts
Re: Microscheme: scheme for the Arduino
#2Arduino is c++, and c++ FFI's are really hard. So how does this FFI work ?
Re: Microscheme: scheme for the Arduino
#3So far i don't like the fact it can't handle interrupts (unless by C code), and that it seem to ignore the C++ FFI completely.
That, and the fact that a garbage-collected language is to be run on a microcontroller - a device that is mostly used for realtime tasks. It won't be good for a quadcopter to go into a garbage collect subroutine during the control loop calculations.
Not a problem if you are aware of the issue, but how many people are?
Re: Microscheme: scheme for the Arduino
#4Re: Microscheme: scheme for the Arduino
#5Fun fact - "microscheme" means "integrated circuit" in Russian. Oddly fitting. So far i don't like the fact it can't handle interrupts (unless by C code), and that it seem to ignore the C++ FFI completely. That, and the fact that a garbage-collected language is to be run on a microcontroller - a device that is mostly used for realtime tasks. It won't be good for a quadcopter to go into a garbage collect subroutine du…
Re: Microscheme: scheme for the Arduino
#6Is there python for Arduino? :)
Re: Microscheme: scheme for the Arduino
#7Is there python for Arduino? :)
Re: Microscheme: scheme for the Arduino
#8>> "Microscheme has a robust FFI (Foreign Function Interface) meaning that C code may be invoked directly from (ms) programs. Therefore, the power of the existing wealth of Arduino libraries is available within Microscheme. " Arduino is c++, and c++ FFI's are really hard. So how does this FFI work ?
You are right, no mention of C++. It's not clear how much of a problem that would be. IIRC wrapping C++ in "extern C" more or less enables C++ functions to be called from C. Don't know about compatibility of Arduino libraries, but possibly this is how Microscheme FFI works.
Re: Microscheme: scheme for the Arduino
#9Is there python for Arduino? :)
Re: Microscheme: scheme for the Arduino
#10Fun fact - "microscheme" means "integrated circuit" in Russian. Oddly fitting. So far i don't like the fact it can't handle interrupts (unless by C code), and that it seem to ignore the C++ FFI completely. That, and the fact that a garbage-collected language is to be run on a microcontroller - a device that is mostly used for realtime tasks. It won't be good for a quadcopter to go into a garbage collect subroutine du…
Microscheme is not garbage collected, at least according to the documentation.
This would be awful for general-purpose programming, but on a device with only 2.5kb of RAM to begin with you can usually pre-allocate anything that needs to survive that reset. I use this in my keyboard firmware's outer loop: http://atreus.technomancy.us/firmware2