News for hackers. Stuff that matters.
Re:Scala at scale at Databricks by ackfoobar on Friday December 10, 2021 @01:34AM (#29507038)
> Some of the prior employees enjoyed playing with advanced language features and writing libraries for the most general possible case

Scala the language is quite fine, but it attracts this kind of programmers. The damage they do to a codebase has to be undone by someone who both understands those advanced concepts and is not a FP fanatic.

Re:Scala at scale at Databricks by abernard1 on Friday December 10, 2021 @03:25AM (#29507689)
> Scala the language is quite fine, but it attracts this kind of programmers.

It does. I call them "code scientists": engineers want to learn a language to build things, scientists want to build things to learn the language. I've interviewed >100 Scala engineers and if the panel thought they were the kind of person that just wanted to understand FP instead of solve problems, they were rejected.

I am now retired, but Scala is still my goto choice for engineering software. It checks all the boxes on concurrency, bulk I/O, ecosystem. In the hands of a sane and pragmatic practitioner, it's hugely productive.

Re:Scala at scale at Databricks by vasco on Friday December 10, 2021 @10:44AM (#29511194)
I read this and I get so tempted but then I load up the homepage and see "JVM" and regain my senses. You almost got me.
Re:Scala at scale at Databricks by jvican on Friday December 10, 2021 @11:02AM (#29511431)
Well, Scala compiles to JavaScript and native through Scala.js and Scala Native. Plus you can also compile to native with GraalVM Native which works very well.
Re:Scala at scale at Databricks by AzzieElbab on Friday December 10, 2021 @11:15AM (#29511607)
Scala compilation + graalvm compilation = very long breaks :)
Re:Scala at scale at Databricks by scalaIsKindaMeh on Friday December 10, 2021 @06:22PM (#29516703)
Interesting, in my experience long compile times in Scala equates with a bad code base. And invariably involves an uber object with a whole lot of implicit conversations and is imported on every other source file.
Re:Scala at scale at Databricks by jroper on Tuesday December 14, 2021 @12:01AM (#29548424)
I think the pertinent part of the comment you're replying to was graalvm, not so much Scala. I was compiling a small Scala codebase that took 15 minutes to compile - most of that was not my code, it analyses the reachability of the entire classpath and compiles it to native machine code.
Re:Scala at scale at Databricks by AzzieElbab on Saturday December 11, 2021 @01:52PM (#29523259)
I don’t know about bad code but a lot of derivations that send compiler into proof loops usually is what is causing slowdowns. You can write the same code by hand, pick your poison. Honestly, scalac is probably still faster than typescript compiler and somehow no one complaining about ts
Re:Scala at scale at Databricks by scalaIsKindaMeh on Friday December 10, 2021 @06:20PM (#29516680)
> I call them "code scientists": engineers want to learn a language to build things, scientists want to build things to learn the language.

I think this is a bit contradictory as it is phrased. Learning the language is essential to use it effectively. Otherwise one is better off with a language already known. And it is very possible to build things to learn the language and still keep it sane.

If we went back to let's say 2014 "when the cake pattern was the solution of all problems in world" I think I'd agree with your statement, even back then when I was a bit of a Scala fanatic.

Re:Scala at scale at Databricks by wiseowise on Friday December 10, 2021 @02:58AM (#29507533)
> who both understands those advanced concepts and is not a FP fanatic.

Oxymoron.

Re:Scala at scale at Databricks by AzzieElbab on Friday December 10, 2021 @08:21AM (#29509497)
I speak monads. I am a 50 yrs old high school dropout. Cool thing is - just because you are not seeing FP structures in non FP focused languages doesn't mean they aren't there.
Re:Scala at scale at Databricks by gregkerzhner on Friday December 10, 2021 @09:45AM (#29510421)
Oxymonad?