Live data from Hacker News

Scala Native v0.1

scala-lang.org

191–200 of 254 posts

Re: Scala Native v0.1

#192

Earlier quoted context omitted.

that's hardly 'wildly successful'

Don't crap in Sid's Cheerios. For a project mostly made by one dude, Scala.js is amazing.

It's hardly "one dude", though. Don't give me too much credit. There were two others (@gzm0 and @nicolasstucki) who helped a lot on the core. But even more than that, the reason it's so popular and adopted is mostly due to the amazing community who wrote great, relevant libraries, and communicated to the world.

It's at least a dozen people who should be credited, even if I'm currently the only one paid for this work.

Re: Scala Native v0.1

#193
post #33

Earlier quoted context omitted.

Well, this is just targeting a different VM, LLVM instead of the JVM. You get easy interop with all LLVM languages with this, including C.

You should really check your facts before posting a statement like this. While the VM in LLVM historically was short for Virtual Machine, it really has nothing to do with that. It's a compiler backend used by Clang (C++ compiler) and Rust.

LLVM IR apparently is not restricted to C/C++/Objc/Swift etc, it is a generally purposed IR; and LLVM itself is an infrastructure that contains many facilities to deal with compilation backends (mostly, analyses and transformations).

Re: Scala Native v0.1

#194
post #33

Earlier quoted context omitted.

Well, this is just targeting a different VM, LLVM instead of the JVM. You get easy interop with all LLVM languages with this, including C.

You should really check your facts before posting a statement like this. While the VM in LLVM historically was short for Virtual Machine, it really has nothing to do with that. It's a compiler backend used by Clang (C++ compiler) and Rust.

[deleted]

Re: Scala Native v0.1

#196

I would love for there to be a similarly thorough project with Clojure. It really bothers me there's no good native compiler. Apart from anything else, it means that Clojure lives and dies by the languages it compiles to, and while Java is used everywhere still, it probably isn't the thing the kids are learning these days. Besides, without going into any further rational arguments for why using the JVM (or another VM…

Forgive my ignorance, but wouldn't one of the existing Schemes be a better or as good option? I thought the benefit/raison d'etre to Clojure is the JVM ecosystem.

JVM is the benefit, but great immutable collections data structures and respective functions are also very very nice.

Re: Scala Native v0.1

#197

I would love for there to be a similarly thorough project with Clojure. It really bothers me there's no good native compiler. Apart from anything else, it means that Clojure lives and dies by the languages it compiles to, and while Java is used everywhere still, it probably isn't the thing the kids are learning these days. Besides, without going into any further rational arguments for why using the JVM (or another VM…

The kids are learning javascript, as it runs everywhere. Plus there's a clojurescript, so you should be safe. Furthermore, I wouldn't be scared on Java dying.

Re: Scala Native v0.1

#198
post #124
post #29

It seems to me like Scala's biggest benefit and biggest downside are two sides of the same coin: easy interop with the JVM and Java code. Scala Native just seems like you're paying all the price of that for none of the benefit.

Even if you're not using Java code, it's still the best language going IMO. What are the alternatives? I couldn't live without HKT these days (once you're used to thinking in them it's painful to work without them), which rules out most languages even in the ML space, and Scala has better IDE support than anything that's left (indeed an excellent tool ecosystem in general in terms of e.g. profilers, instrumentation)…

PureScript may soon be a serious contender in the HKT language category. It is more or less a strict Haskell for JavaScript runtimes with some new type system features like row types and more fine-grained control over I/O (see http://www.purescript.org/learn/eff/ and https://github.com/purescript/purescript/wiki/Differences-fr...). It has an experimental native (via C++11) backend.

Re: Scala Native v0.1

#199

Earlier quoted context omitted.

Or they tend to just Go. Interestingly, I've read a lot of Go users come from the Ruby and Python communities.

Im one of those. Anytime Python / Django doesnt cut it I use Go. Works very well.

Have you got a few examples where you had to replace the former for the latter? Really interesting.

Re: Scala Native v0.1

#200
post #139

Earlier quoted context omitted.

> isn't the thing the kids are learning these days Yep, they learn Ruby and then they need to go JRuby when performance becomes relevant. :)

Or they tend to just Go. Interestingly, I've read a lot of Go users come from the Ruby and Python communities.

What is interesting is leaving the expressiveness behind of a language like Ruby or Python, for a bit of AOT compilation to native code.

I bet if something like RubyMotion wasn't a commercial product, the reality would be quite different.

Post reply on HN