19 points nateb2022 18 hours ago 6 comments

catlifeonmars 1 hour ago | parent

I’ve always liked coffeescript style syntax.

Just to nitpick, there is a whole list of reasons under “Changes from ES6” that invalidate the claim that this is a superset of typescript. In order to be a superset, you have to accept any valid typescript.

phil-martin 57 minutes ago | parent

Maybe it should be called a super-duper-set

I really do like the piping though. I dearly wish that was in js/ts already.

winrid 39 minutes ago | parent

You might like Nim, then, which compiles to JS and has a nice type system, and is more concise so less output tokens by LLMs.

red_hare 6 minutes ago | parent

I couldn't believe it when I saw the "Comparison to CoffeeScript section". What a fun little language from the simpler times of front-end dev. I'm just happy to see someone carrying on the legacy.

proc0 28 minutes ago | parent

If strong types are needed it's probably better to remove layers from the abstraction layer and go back down to a systems language and then build for Web (with WASM). Web APIs have matured substantially so more can be built with less code removing need for so much type checking, which agian if needed it's probably better to remove the abstraction layers instead of adding more of them.

I'm just saying JS isn't the best of foundations for types to begin with so building an abstraction layer on top of types, on top of JS, is wild.

motoroco 9 minutes ago | parent

wasm is just too hamstrung by its sandbox to be really useful everywhere I once imagined. years ago, I wanted to put my redux-like state machine in it so I could run the same version on mobile clients as well as web. but because there isn't a good solution for sharing memory between JS and WASM, and there's no way to let the WASM talk directly to IndexedDb, browser storage and the like, it was dead in the water

it was too inefficient (and overly complicated) to duplicate application state that the DOM needed between both sources and required so much glue code to reach the services I needed that it totally killed my interest in using wasm for web apps. LLMs don't even really change the picture for me; it doesn't have the performance characteristics I was seeking, so just getting it to work with tons of code in spite of the poor interfaces would have subverted half my reasoning to use it