Rune - server-less function runner
- 11 Devlogs
- 43 Total hours
tried to build a serverless function runner with go (first learning this language) And adapt js by quickjs, python by starlark (Python-like)
tried to build a serverless function runner with go (first learning this language) And adapt js by quickjs, python by starlark (Python-like)
Finally I finish it
weeee
Ahhh…
The frontend is almost finished,with some examples and API documentation (all in the same docs).
Built using Nuxt UI and Vue.
The next devlog should be the last one before the first release.
I’ll make it able to detect the hostname to handle function calls (similar to Cloudflare Workers).
Screenshot is part of the website
The basic functionality I think is needed has been completed.
Next step: build the frontend (admin panel and documentation).
(image is ai generated test code)
TODO:
It might take some time to work on next step.
Not only because it have lots things to do, also due to I am trying to create something by 3D Printing.
Spending too much time on it…
If I can share those model. It will be nice.
Add full starlark request like fetch.
also batch sync
Still didn’t know why it will be blockout when using async…
So I make JS only can run sync
and add fetchbatch to let mulitple fetch able to happen
and maybe I will give up on settimeout (though I didn’t try.) maybe after finish main function.
also I will make js function first.
still didn’t know how to let starlark have async ability.
Seems like js code didn’t work properly…
fix it nextday!
modernc.org/quickjs to github.com/fastschema/qjs for better controlNext might be add fetch in starlark
and try to make it have async
and maybe make a settimeout?
also needed to extend fetch function (currently only have basic function)
Complete sandbox Exec(both js and starlark)
(currently scan dir and execut file inside)
Implement sleep and print / console.log
(warp as fmt.Printf)
Plan to add http server and request related thing later