Starlight-JS / starlight

JS engine in Rust
https://teletype.in/@starlight-js
Mozilla Public License 2.0
511 stars 9 forks source link

Better public API #43

Open playXE opened 3 years ago

playXE commented 3 years ago

Right now Starlight has quite terrible public API. Some work is needed to make it more user-friendly. I'll work on this next week.

andrieshiemstra commented 3 years ago

FYI, i'm working on a generic set of traits for JavaScript engines here

I want to see if i can create an API with which you can use different JS engines with exactly the same code, this way you can switch between quickjs/starlight/others in case you realy need a different engine. i'm hoping this will help to let people try out experimental engines while having a fallback option without having to change code (and using your terrible API ;) ).

The starlight impl is here (very much WIP!) and i'm also working on a quickjs version..