Live data from Hacker News

CoffeeScript 1.3.0 is out

coffeescript.org

41–50 of 55 posts

Re: CoffeeScript 1.3.0 is out

#41

For folks that are curious, we wanted to get these changes out the door -- strict mode syntax errors being a big one -- so that source maps can be the focus of the next release (probably 1.4.0).

For folks that had no idea "source maps" was a meaningful term, http://css.dzone.com/articles/source-maps-coffeescript

Re: CoffeeScript 1.3.0 is out

#42

For folks that are curious, we wanted to get these changes out the door -- strict mode syntax errors being a big one -- so that source maps can be the focus of the next release (probably 1.4.0).

>Why is this cool? Because I can debug CoffeeScript in the browser!

>But why is this REALLY COOL? Because I can potentially debug any language in the browser as long as it has a source map.

Re: CoffeeScript 1.3.0 is out

#43
post #27

Earlier quoted context omitted.

I already know JavaScript, and prefer CoffeeScript. But thanks for sharing your irrelevant opinion, and enjoy your false sense of superiority.

I can see that the parent comment was being a bit of a jerk, but why are all the comments in response (such as this one) being even worse? You could actually say something constructive in response instead of just resorting to personal attacks...

I say constructive things in response to constructive things, and am summarily dismissive of comments lacking substance.

Every time CoffeeScript is mentioned, there's always at least one comment like this. It's either trolling or people being closed-minded, but either way there's no sense in trying to have an actual discussion with someone who opens the conversation in this way.

If anyone would like to have a real debate on the merits of CoffeeScript, I'd love to participate, but the reality is it's largely a matter of taste.

Re: CoffeeScript 1.3.0 is out

#44

Earlier quoted context omitted.

Regarding source maps... it feels like the solution to the wrong problem. Why are we still pushing minified/obfuscated Javascript to the browser anyway? What's wrong with standardizing on a bytecode format instead (e.g. JVM)?

I'll never understand the bytecode zealots and their insistence that browser makers scrap the years of JavaScript optimization they've done and start from scratch on some new format that will likely take another 10 or 15 years to get right. You have what you want. You don't have to right in JavaScript any more. There are dozens of alternatives, and there are only going to be more. Source maps means you'll never even…

Why should that "scrap years of JavaScript optimization"? That doesn't make sense. (Completely ignoring the fact, that JavaScript is not fast and will never be.)

Source-to-source-translation _always_ sucked and that's known for a few decades already.

Re: CoffeeScript 1.3.0 is out

#45
post #24

Earlier quoted context omitted.

Regarding source maps... it feels like the solution to the wrong problem. Why are we still pushing minified/obfuscated Javascript to the browser anyway? What's wrong with standardizing on a bytecode format instead (e.g. JVM)?

That's a bit like asking why I work out instead of snapping my fingers and turning into a Greek demigod. One is clearly preferable on its own merits — but it's just not going to happen any time soon. Source maps are relatively easy: There's a public standard, a couple of browser makers have agreed to it, and it doesn't need universal acceptance since it's only for development. Basically, it doesn't require a lot of c…

With a common bytecode there would probably be a chance for languages to be fast and not stuck with translations to JavaScript for the next decade.

Re: CoffeeScript 1.3.0 is out

#46
post #44

Earlier quoted context omitted.

I'll never understand the bytecode zealots and their insistence that browser makers scrap the years of JavaScript optimization they've done and start from scratch on some new format that will likely take another 10 or 15 years to get right. You have what you want. You don't have to right in JavaScript any more. There are dozens of alternatives, and there are only going to be more. Source maps means you'll never even…

Why should that "scrap years of JavaScript optimization"? That doesn't make sense. (Completely ignoring the fact, that JavaScript is not fast and will never be.) Source-to-source-translation _always_ sucked and that's known for a few decades already.

> Why should that "scrap years of JavaScript optimization"? That doesn't make sense.

The bytecode that browsers compile JavaScript to are incompatible with each other. They would either have to pick one (wouldn't happen) or design one together (wouldn't happen).

A designed by committee bytecode would also effectively eliminate browser vendors' ability to compete on speed.

> Source-to-source-translation _always_ sucked and that's known for a few decades already.

In what way? From what I read Gambit Scheme compiles to C that is as fast as hand-crafted C. I would assume that CoffeeScript is no slower than regular old JavaScript. So if not speed, how are these things sucking?

Re: CoffeeScript 1.3.0 is out

#47
post #44

Earlier quoted context omitted.

Why should that "scrap years of JavaScript optimization"? That doesn't make sense. (Completely ignoring the fact, that JavaScript is not fast and will never be.) Source-to-source-translation _always_ sucked and that's known for a few decades already.

> Why should that "scrap years of JavaScript optimization"? That doesn't make sense. The bytecode that browsers compile JavaScript to are incompatible with each other. They would either have to pick one (wouldn't happen) or design one together (wouldn't happen). A designed by committee bytecode would also effectively eliminate browser vendors' ability to compete on speed. > Source-to-source-translation _always_ sucke…

Furthermore, some engines don't even have bytecode or even an interpreter and directly generate machine code (V8).

Re: CoffeeScript 1.3.0 is out

#48

For folks that are curious, we wanted to get these changes out the door -- strict mode syntax errors being a big one -- so that source maps can be the focus of the next release (probably 1.4.0).

I might actually get some fellow devs to start accepting CoffeeScript after my 6 months of hounding them.

Re: CoffeeScript 1.3.0 is out

#49
post #45
post #24

Earlier quoted context omitted.

That's a bit like asking why I work out instead of snapping my fingers and turning into a Greek demigod. One is clearly preferable on its own merits — but it's just not going to happen any time soon. Source maps are relatively easy: There's a public standard, a couple of browser makers have agreed to it, and it doesn't need universal acceptance since it's only for development. Basically, it doesn't require a lot of c…

With a common bytecode there would probably be a chance for languages to be fast and not stuck with translations to JavaScript for the next decade.

Citation extremely needed here. Bytecode isn't a magic speed potion — the implementation is what will determine how fast it runs. For example, V8 ROFLstomps over the JVM-based Rhino JavaScript implementation.

At any rate, any bytecode the JavaScript VM people agreed to would almost certainly correspond very closely to JavaScript, so it's not clear that a standard bytecode would make alternative languages much faster. On top of that, the optimizers in current JavaScript implementations are highly tuned for JavaScript, so a bytecode-compiled program running on V8 might actually be slower than the JavaScript we have today.

Basically, without an implementation, this all sounds like pie-in-the-sky talk to me.

Re: CoffeeScript 1.3.0 is out

#50
post #38

Earlier quoted context omitted.

Regarding source maps... it feels like the solution to the wrong problem. Why are we still pushing minified/obfuscated Javascript to the browser anyway? What's wrong with standardizing on a bytecode format instead (e.g. JVM)?

This is in the works already with Google's PNaCl. I believe the bytecode format is based on LLVM IR.

AFAIK, PNaCl is heavily deemphasized in favor of vanilla NaCl.
Post reply on HN