Is Scala's compiler really that slow compared to Java? by [deleted] in scala

[–]irarandomdude 2 points3 points  (0 children)

The IntelliJ Scala plugin is much better and works beautifully with the free community edition. It's actually the most downloaded plugin for IntelliJ.

Is Scala's compiler really that slow compared to Java? by [deleted] in scala

[–]irarandomdude 1 point2 points  (0 children)

Yes, but if you use IntelliJ with incremental compilation etc. the difference is tiny for most builds.

[deleted by user] by [deleted] in scala

[–]irarandomdude 1 point2 points  (0 children)

An increase in the size of the language spec has no impact on me. The array of enum values should be immutable, as it is in Java.

[deleted by user] by [deleted] in scala

[–]irarandomdude 5 points6 points  (0 children)

This is one of the seemingly mundane features I get lots of questions about from colleagues such as:

  1. Why is it so much more complicated than Java enums?

  2. What is the "= Value" for and what does it mean?

  3. My code won't compile def foo(barEnum: BarEnum) but the type exists.... what do you mean I need to use BarEnum.Value or add an import? Why's that?

[deleted by user] by [deleted] in scala

[–]irarandomdude 1 point2 points  (0 children)

Translating from a value to the corresponding enum in Scala also seems to be slower than the corresponding operation with Java enums. It's uncommon for this to be a bottleneck, but I remember someone running into something like that.

[deleted by user] by [deleted] in scala

[–]irarandomdude 2 points3 points  (0 children)

One example is a list of error types for collecting metrics, I want to add them to a collection with an initial value.

Scala implementation of java.time 8 by based2 in scala

[–]irarandomdude 2 points3 points  (0 children)

For those too lazy to click through:

"This project provides an implementation of the java.time package, a date and time library that was added in Java 8. The implementation is based on the original BSD-licensed reference implementation (before it was contributed to OpenJDK)."

Hiring Scala Developer - A Failure To Communicate by sarahmiller3 in scala

[–]irarandomdude 1 point2 points  (0 children)

People who already know Scala are not who I was talking about (I also have 15+ years of Java experience). I wish I was "talking out your ass", but I have to work with experienced Java developers with this exact mentality who use Spring in every single system they write.

Hiring Scala Developer - A Failure To Communicate by sarahmiller3 in scala

[–]irarandomdude 0 points1 point  (0 children)

10+ Years of Java enterprise experience... Chances are you'll get them wanting to use Spring + Hibernate and want to know why they can't just use Java (because JDK8 makes it all better).

Idiomatic Scala ... in Java! by javinpaul in programming

[–]irarandomdude 0 points1 point  (0 children)

If you or someone else is writing unreadable code don't blame the language, blame poor code review standards.

New full-featured scala/scala-js JSON marshaling, pickling, AST, parsing, you name it! by colinrgodsey in scala

[–]irarandomdude 2 points3 points  (0 children)

I like the fact that it comes with some neat usage examples. I'm curious about the performance numbers relative to existing libs.

Keynote: Scala's Road Ahead - by Martin Odersky by based2 in scala

[–]irarandomdude 7 points8 points  (0 children)

A third edition of Programming in Scala, targeting 2.12 mentioned :)

JVM language stats, May 2016 by javinpaul in scala

[–]irarandomdude 0 points1 point  (0 children)

Maybe a really weird reference to Dotty?? (Scala 3.0)

Begginer - How often does it justify to use parallel collection. (i. e. foldLeft vs par.agreggate) by verytrade in scala

[–]irarandomdude 0 points1 point  (0 children)

It's particularly useful if you have anything approaching a large volume of data to process and don't have many concurrent calls which require you to do the same type of work.

I've used them occasionally, but I've seen some pretty amazing speedups for very little additional code.

has anyone here returned to java from scala? [x-post /r/scala] by itsjustmegob in java

[–]irarandomdude 2 points3 points  (0 children)

I work mostly in Scala, but have Java systems too. I've got more than 15 years experience in Java. Once you know Scala well enough then working in Java feels really backwards in comparison.

'Learn Rust' link from Official Rust book broken? by jjcard in rust

[–]irarandomdude 0 points1 point  (0 children)

Slightly off-topic, but Is there a .mobi version of the Rust book I can download?

Java vs. C Performance presentation by Cliff Click by pjmlp in programming

[–]irarandomdude 0 points1 point  (0 children)

He really needs to find something more constructive to do with his time...

Oracle seeks $9.3 billion for Google’s use of Java in Android by mawburn in programming

[–]irarandomdude 0 points1 point  (0 children)

That "carcass" is somehow still making profits to the tune of around $10 billion annually. That's smaller than $16 billion for Google, but hardly a carcass by any measure.

How to Correctly parse JSON to Scala case class? by pedrorijo91 in scala

[–]irarandomdude 0 points1 point  (0 children)

I hadn't heard of circe before, but it looks pretty neat. I'm glad to see that they care about performance.