smoredahl

joined 2 weeks ago
[–] smoredahl@programming.dev 1 points 6 days ago (2 children)

I see what you're saying, but isn't familiarity worth something? After all, Brainfuck is incredibly simple and consistent :)

[–] smoredahl@programming.dev 1 points 6 days ago (4 children)

I understand your perspective, but I argue that there is a difference between adding a new feature that is unique to your language (I think we would both agree that Scala does not need any more of these), and adding a feature that makes the language more consistent with the syntax that most people coming from other languages expect to be there.

I teach Scala at a university level, so I very much do care about learners and beginners. In my opinion, having a syntax for collection literals would make the language a little more approachable, as my students are coming from languages that do provide this syntax (e.g., Python).

[–] smoredahl@programming.dev 1 points 1 week ago (7 children)

Ha, I won't pretend this is not a challenge in Scala. But then I would ask, why be precious about this one thing?

[–] smoredahl@programming.dev 2 points 2 weeks ago (1 children)

Fair enough! For what it's worth, parallel provides a lot of really nice control mechanisms to fine tune how your jobs are scheduled (e.g., only start a new job when there's X amount of memory available), saving stdout and stderr to log files, running jobs on remote hosts, even saving results to a SQL database.

[–] smoredahl@programming.dev 2 points 2 weeks ago (3 children)

Well I'm a researcher, so I'm commonly running experiments on lots of inputs. I make scripts to run the experiments that take command line parameters, and then use parallel to run all of my experiments on all of my inputs under all configurations. It's very nice when you need to try all combos of a bunch of parameters, since by default it'll run with every combination of parameters you give it.

[–] smoredahl@programming.dev 2 points 2 weeks ago (5 children)

screen and parallel are my two workhorses.

[–] smoredahl@programming.dev 1 points 2 weeks ago

Tried out that new metals best effort compilation flag and it stopped evaluating my worksheets :( But still, excited for this feature to get improved!

[–] smoredahl@programming.dev 2 points 2 weeks ago

The "we shouldn't put data in code stuff" is silly. Why do we have Scala worksheets, then? The reason I like and teach Scala is that it's so flexible and meets you where you are.

[–] smoredahl@programming.dev 1 points 2 weeks ago (1 children)

Reddit refugee here, excited to be a part of this community and hopefully help grow it :)

[–] smoredahl@programming.dev 1 points 2 weeks ago (1 children)

Curious about anyone's experience with IntelliJ's Scala 3 support these days. I was trying to use it a couple of years ago but I was really struggling with spurious compiler errors. Specifically, I think that IntelliJ didn't have correct support for derives clauses.

[–] smoredahl@programming.dev 1 points 2 weeks ago

Okay! I teach Scala and right now we're using SBT, but it could be nice to offer students an alternative.

 

There is an ongoing discussion about whether to make the next LTS release of Scala target JDK 11 or 17. On the one hand, I think it would be nice to target a newer LTS. However, JDK 11 actually has extended support until January 2032, and JDK 17 only has extended support until September 2029 (JDK 11 has longer extended support planned than even JDK 21, whose extended support is ending in September 2031).

 

I think this is awesome. One of the only pain points I have with Scala is collection literals.

[–] smoredahl@programming.dev 1 points 2 weeks ago (2 children)

Do you use Metals? I tried mill a few months ago and liked the tool itself but couldn't get it to cooperate well with Metals.

view more: next ›