News for hackers. Stuff that matters.
Re:Show HN: Imba – I have spent 7 years creating a programmi... by turtlebits on Tuesday August 17, 2021 @12:31PM (#28211732)
Considering Javascript is the only language supported on the frontend, claiming to be more productive is definitely valid.

Coffeescript was a breath of fresh air compared to writing ES5.

Re:Show HN: Imba – I have spent 7 years creating a programmi... by cflewis on Tuesday August 17, 2021 @12:52PM (#28212027)
I sure am tired of Javascript being the lingua franca of the web. Imagine if we decided C was good enough and now all programming languages from that point on should just be something that cross-compiles to it.
Re:Show HN: Imba – I have spent 7 years creating a programmi... by mprovost on Tuesday August 17, 2021 @01:34PM (#28212555)
Isn't that what WebAssembly is for? It's kind of the web version of C pretending that everything is a PDP-11.
Re:Show HN: Imba – I have spent 7 years creating a programmi... by void_mint on Tuesday August 17, 2021 @01:41PM (#28212630)
Support WASM then?
Re:Show HN: Imba – I have spent 7 years creating a programmi... by arcanon on Tuesday August 17, 2021 @12:45PM (#28211930)
We need a Coffeescript Renaissance!
Re:Show HN: Imba – I have spent 7 years creating a programmi... by scotty79 on Tuesday August 17, 2021 @05:33PM (#28215126)
World needs a version of coffeescript that compiles to typescript.
Re:Show HN: Imba – I have spent 7 years creating a programmi... by phil294 on Wednesday August 18, 2021 @07:54AM (#28219967)
Re:Show HN: Imba – I have spent 7 years creating a programmi... by phil294 on Tuesday August 17, 2021 @01:32PM (#28212534)
Nothing is holding you back from using it!
Re:Show HN: Imba – I have spent 7 years creating a programmi... by nsonha on Tuesday August 17, 2021 @05:18PM (#28214977)
lack of types and it used to be ignorant of perf in the generated code (creating IIFE unnecessarily)
Re:Show HN: Imba – I have spent 7 years creating a programmi... by phil294 on Tuesday August 17, 2021 @06:19PM (#28215478)
Regarding types, you're right, though JSDoc can get you very far

Regarding perf (performance, I guess?) - are you speaking of the single, global one? As CS takes care of variable scoping automatically, I think it makes a lot of sense (and is deactivatable anyway)

Re:Show HN: Imba – I have spent 7 years creating a programmi... by nsonha on Wednesday August 18, 2021 @02:39AM (#28218263)
> JSDoc can get you very far

in the sense that you write them and parse them in your brain manually. JSDoc is useful to me because IDE supports it for javascript. Without IDE support it's just a bunch of fancy comments

Re:Show HN: Imba – I have spent 7 years creating a programmi... by phil294 on Wednesday August 18, 2021 @05:01AM (#28219018)
You could try using the https://github.com/phil294/coffeesense/ VSCode extension for that, released 7 days ago (disclaimer: I made it).
Re:Show HN: Imba – I have spent 7 years creating a programmi... by nsonha on Wednesday August 18, 2021 @09:14AM (#28220545)
Thanks, this looks really useful
Re:Show HN: Imba – I have spent 7 years creating a programmi... by nsonha on Tuesday August 17, 2021 @08:48PM (#28216533)
no coffeescript desugars into functions things like switch statements, do statements and some other things (that have nothing to do with functions)
Re:Show HN: Imba – I have spent 7 years creating a programmi... by arcanon on Wednesday August 18, 2021 @12:17AM (#28217732)
Just tried a switch statement, didnt desugar into functions. Maybe you haven’t been keeping up with the latest.