4 ms·
Ok show me another language which has near native performance, gradual typing (thinking TypeScript here), and lets me do lightweight functional and lightweight
by glutamate 3y ago
Ok show me another language which has near native performance, gradual typing (thinking TypeScript here), and lets me do lightweight functional and lightweight OO programming.
- quaintdev 3y agoHow about Dart/Flutter?
- glutamate 3y agoI forgot to add "not controlled by a single corporation" to my list of requirements. Also not gradually typed, I think? But I would consider it if it weren't all tied into Google and had a larger ecosystem.
- planede 3y agoIsn't Typescript "controlled" by Microsoft?
- glutamate 3y agoThis is a good point, yes you are right about that.
- WorldMaker 3y agoTypescript is completely open source (Apache 2.0 licensed) and all of its roadmap, planning, issue tracking, peer reviewing, is also out in the open (in GitHub Issues). It's about as "controlled" by Microsoft as Linux is "controlled" by Red Hat at this point.
- planede 3y agoOK, but the point of comparison was Dart/Flutter, which I suppose is similarly open. Open source does not mean that it's not controlled by a single person or organization. It's not meant as a critique though, as the alternative I guess is a language designed by committee, which has its own problems.
- crubier 3y agoMoving the Web to Dart/Flutter would cost billions. How would it help in ANY way solving any challenge that currently exists? What even are these challenges? The OP is pretty blurry on that.
- the_duke 3y agoLast time I looked into it Flutter performance wasn't great.
- baq 3y agoTypescript is very nice, just need to get rid of the javascript underneath.
- archerx 3y agoI'm sure microsoft would absolutely love that! and that's why it should never happen.
- andix 3y agoDeno?
- hajile 3y agoIf we ever replace JS, it should be with some kind of StandardML that looks more like JS. TS is unsound, unperformant, and overly-complicated in comparison.
- igouy 3y agohttps://dart.dev/language/type-system https://dart.dev/language/type-system
- chadcmulligan 3y agolua
- fredrikholm 3y agoLuajit definitely. Lua not so much.
- chadcmulligan 3y agoJavascript is jit? so it would be fair to compare the jit versions.
- fredrikholm 3y agoSorry, I missed your reply. In terms of performance and memory use, LuaJIT beats every other JIT out there. Lua is a much smaller language, and Mike Pall is a cyborg, so it's an unfair comparison when compared with such a huge language like JS.
- datadeft 3y ago> has near native performance what do you mean by this? https://github.com/niklas-heer/speed-comparison https://github.com/niklas-heer/speed-comparison https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/node-gcc.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
- glutamate 3y agoMuch faster than Python or almost any non-native-compiled language (except Java)
- threeseed 3y agoPython is a notoriously slow language so that's not saying much. And there are a number of languages on the JVM e.g. Java, Scala, Kotlin, Clojure as well as countless compiled ones which are near-native.
- glutamate 3y agoJVM languages do look interesting and with Graal there seems to be an evolutionary upgrade path from JavaScript code.
- arp242 3y ago"Faster than Python" is a very different thing than "near native performance".
- hajile 3y agoThe second you remove threading and SIMD from those examples, they get rather close to JS. At most, you are making the argument that killing JS-SIMD for WASM and not adding native threading support was a mistake.
- datadeft 3y ago> The second you remove threading and SIMD Anything else?
- threeseed 3y agoI wouldn't class NodeJS as being near native based on benchmarks. And its poor concurrency story compared to other languages e.g. Scala means that it's hard to push the runtime in real-world situations.