10 ms·
just use NodeJS or Go
by el_cid 9y ago
just use NodeJS or Go
- slifin 9y agoJavaScript is a worse language than PHP in some ways, for example no native type hinting, no native filter map reduce on hash tables, no explicit variable import into scope I'm not saying PHP is a better asynchronous language than NodeJS but I'd definitely be wary of JavaScript unless you're interested in compiling If you're interested in compiling then there are some very good languages in that space that are not JavaScript, Go, #F, etc
- nawitus 9y ago>no native type hinting True, but you can use TypeScript, which I expect is more advanced than PHP's typing. >no native filter map reduce on hash table What do you mean by that? There is Object.keys/Object.values/Object.entries. >no explicit variable import into scope What do you mean by this? You can import a variable from a module.
- tiuPapa 9y agoUse typescript or flow if you want types.
- JupiterMoon 9y agoNow we are compiling (sorry transpiling). If we are going to do that why not use e.g. Go?
- jrs95 9y agoTechnically transpiling is just a more specific kind of compiling, so you’re not wrong in saying compiling.
- Franciscouzo 9y agoWhat's your point? All interpreted languages have to be compiled anyway, you have to create an AST, convert it to bytecode, and then interpret it or JIT it.
- Can_Not 9y agoIt takes 5 minutes to set that up. No reasonable person is going to switch languages for that reason.
- tiuPapa 9y agoBecause I want to use JS with types and compiler rather than runtime error? If you are using Go, why not use Rust?
- cdelsolar 9y agoYou joke but this is exactly what should be done. Python also has an async story that leaves a bit to be desired. Async/await etc is getting more and more use, but with async coroutine mocks and everything it seems easier to start over sometimes.