-
the Inline C / Compilation use up a bunch of server time.
Haven't tried hosting the compiler, so no idea if it's reasonable at all - but maybe you could "exploit" the free tier of serverless offering from AWS / Azure / GCP Cloud run or Cloud Run / whatnot.
And / or Oracle cloud's free tier - they give away a nice amount of ARM cpus for free:Arm-based Ampere A1 cores and 24 GB of memory usable as 1 VM or up to
4 VMs 3,000 OCPU hours and 18,000 GB hours per monthOr would it be worth your time to do the porting?
And betting on these will stay really free is a danger...Or "just" expand like crazy, more boards, sensors and other peripherals like Adafruit or Sparkfun does. And I guess income from sold HW supports development on software. But that would most certainly require expanding to more employees...
There are a few different options in Espruino. The easiest is 'pretokenised code' which works right now on ESP32 - it speeds up the parsing a lot.
There's also the ability to write JS or C and have it compiled with an optimising compiler https://www.espruino.com/InlineC or https://www.espruino.com/Compilation - but that's only for boards I sell
There's also a proper JIT compiler which is only used in ARM-based board that I sell
Those could all be extended to RISC-V - but the JIT is a lot of work, and the Inline C / Compilation use up a bunch of server time. I provide that for free for boards that I sell, but I can't do that for people that are using it for free.
The dual licensing is an option, yes... But that would require hundreds of companies to be willing to pay a license fee, and I think it's a while before we'd get there.
But the thing is, whenever anyone has ideas for ways to make money on ESP32, they're almost always talking about finding ways to make money off someone else.
And I feel like that's a big problem - maybe I'm wrong but I think the reality is that you and most other ESP32 users probably would never really consider paying any money for use of the software. And even if you did (lets say you'd stretch to $5 which is probably unlikely) you'd expect that to include a certain level of support - and $5 doesn't pay for much of anyone's time!