How can I make a http request
js.global.fetch(...)11–20 of 145 posts
How can I make a http request
js.global.fetch(...)After I found fennel-lang I thought "all I need now is a browser that runs Lua" and now here we are, I hope they work together well. Thanks for this OP
I found this today after following back to Fennel (for probably the 10th time hehe) from the recent Fullmoon post (https://news.ycombinator.com/item?id=30385759) by thinking "what if I use Fennel instead of Lua-proper there?".
I then checked out the Fennel Wiki (https://github.com/bakpakin/Fennel/wiki) where you'll spy a link to Fengari. Maybe that trail of breadcrumbs helps you find more things you might be interested in.
I’d love a “how’s it work” section. From what I gather, it’s not wasm or anything; rather, it’s transpiling lua to JS at runtime. Is that right?
It is "the Lua VM written in JavaScript" and "largely a port of the PUC-Rio C implementation of Lua". It runs the Lua code on that VM, so there's no transpilation.
[0] https://hackernoon.com/why-we-rewrote-lua-in-js-a66529a8278d
And then we can have Ferengi - COBOL for the Browser
The idea is cool, but why wasn't it implemented w/ wasm?
For those looking for powerful async coroutines in the browser: The combination of typescript+redux+redux-saga is also quite powerful. Redux-saga uses generator coroutines to handle all sorts of asynchronous tasks.
And then we can have Ferengi - COBOL for the Browser