Serverless-Function-Runner
- 6 Devlogs
- 19 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)
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