3 ms·
Does C/C++'s STB or Lua's 3rd party libs cover cross-browser quirks and http methods like JQuery does? It sounds like Lua/C and JavaScript are used for totally
by chrisco255 8y ago
Does C/C++'s STB or Lua's 3rd party libs cover cross-browser quirks and http methods like JQuery does? It sounds like Lua/C and JavaScript are used for totally different things. And Node isn't an "extra tool" it's a server. No doubt JS projects sometimes come loaded with excessive dependencies but Node/JQuery are bad examples and not equivalent by any stretch to STB.
- nikki93 8y agoLua doesn’t really run in browsers (except with emscripten or WASM? and also fengari (Lua interpreter written in JS with interop and GC sharing)) but for http luasocket / cqueues / openresty libs are good, and for servering also openresty seems good. The equivalent for stb libs would be crossplatformness and in my experience they’ve worked for their advertised purpose on mac, windows, linux, android, ios.
- leggomylibro 8y agoNope; Lua is not a good choice for a website's frontend. But people use Javascript for a lot more than just websites, and I've lost count of how many times I've been frustrated that a JS library is distributed exclusively through package managers like NPM even when the library is not specific to a browser.
- paulddraper 8y agoNPM isn't specific to a browser.
- shawnz 8y agoIs NPM even usable from the browser in any capacity? I would argue that it's specific to everything except browsers!
- s_ngularity 8y agoNPM is definitely usable as a package manager for frontend Javascript applications, just needs a little more complicated webpack or similar setup than a node.js app.