|
| ▲ | conartist6 a day ago | parent | next [-] |
| First, yes, the demand to be able to code natively in a browser is, I have reason to suspect, very large. It's just difficult to measure demand when nobody has ever offered a really compelling product. In engineering terms it's like getting a full-scale reading. The real level could be 1% above a full-scale reading, or the real level could be 100x higher than the full-scale reading. Secondly, WASM isn't the right target for the browser anyway, JS and the DOM have to be what you consider "native", for the most rigorous UI projects at least (which building an IDE is). If you want to build a cross-platform UI product that doesn't require installation and has Emacs-like levels of extensibility, JS is the end of the line in terms of language selection. There are no other candidates. |
| |
| ▲ | skydhash a day ago | parent [-] | | > If you want to build a cross-platform UI product that doesn't require installation and has Emacs-like levels of extensibility, JS is the end of the line in terms of language selection. There are no other candidates. calibre (with python+Qt) begs to differ. And I believe VLC runs on every current platforms. There's also Code::Blocks and Blender. Cross-platform UI is not rocket-science. | | |
| ▲ | conartist6 a day ago | parent [-] | | All great examples, but ones that do require installation. Their website is just where you download the product, I'm talking about making the website the product. |
|
|
|
| ▲ | zarzavat a day ago | parent | prev | next [-] |
| Yes, in the Monaco editor (https://microsoft.github.io/monaco-editor/). It's not just typechecking, the typescript library is also the reference parser for TypeScript and reference emit. Emitting JS from TypeScript is non-trivial and non-local. It's not just in browsers, you might want to run the typescript library on the edge or in some restricted environment where JS/WASM is OK but native code is not. You may want to use the typescript library as a dependency in your own package. TypeScript becoming non-pure JS means that your library also becomes non-pure JS. |
| |
| ▲ | anon7000 a day ago | parent [-] | | NodeJS can strip types internally without a straight TS dependency. I don’t think this matters, TS was a huge bottleneck for many build pipelines because it never parallelized well | | |
| ▲ | zarzavat 10 hours ago | parent [-] | | Type stripping is not the same as emit, it only gets you a subset of TypeScript. Fine if you're running your own code, not fine if you want to run arbitrary TypeScript. |
|
|
|
| ▲ | egeozcan 13 hours ago | parent | prev | next [-] |
| I think running a typechecker on its target platforms has huge benefits. |
|
| ▲ | shepherdjerred a day ago | parent | prev [-] |
| It is incredibly useful |