Live data from Hacker News

Scala 3.0

github.com

161–170 of 292 posts

Re: Scala 3.0

#161

It is so bad, that in julia functions are not first class. Instead, I would love to use scala 3 for machine learning since this is the perfect type system for such a task, but linear algebra support is not good enough.

What do you mean by "not first class"? https://docs.julialang.org/en/v1/manual/functions/#man-anony...

It means I cannot fully specify the type of function my interface expects as an argument.

A function is of type ‘Function’. There is no way to define it with the type of its argument or the type of what it returns.

Re: Scala 3.0

#163
What is the best way to get ramped up with Scala 3 for a dev without Scala experience, but strong FP experience.

Re: Scala 3.0

#164

Not to denegrate or barf on anyone's birthday cake but IIRC there were some complaints of unfriendly community support interaction styles. Is this still the case?

[deleted]

Re: Scala 3.0

#165

Always wanted to look into Scala but it seemed very intimidating. Is there a good intermediate 'How to' for Scala 3 anyone can recommend?

I have the same issue, but that all the tutorials assume familiarity with Java.

I think it's less true nowadays. You have beginner's books (Scala from Scratch, Hands-on Scala) that assume nothing, and more advanced libraries (in the Typelevel or ZIO ecosystems) that provide high-level abstractions for real world projects. You can't entirely avoid being exposed at some point to the JVM inner workings and/or Java libraries that don't necessarily play well, but this doesn't have to happen right away.

Re: Scala 3.0

#166

Not to denegrate or barf on anyone's birthday cake but IIRC there were some complaints of unfriendly community support interaction styles. Is this still the case?

[deleted]

Re: Scala 3.0

#167
Cool I guess. I just notice that say, unlike PHP, I don't know if there's a single thing in the scala 3.0 release I care about (as somebody who's preferred language as scala) [Edit: Except for fixing implicits, big win]. A lot of times it feels like it's a language with so much potential which then misses some basic real-world use-cases for the 99% who couldn't care less about covariant blah blah, and just want a clear, fast, reliable, reusable programming language as a means to an ends of delighting millions of users.

Maybe I'll write a blog-post about it, but as I practice leet-codes in scala, I miss relatively basic things like c-style for loop (so I can use a for loop on linked lists rather than a while), or things like a list that can have more than Int.MaxValue numbers.

Re: Scala 3.0

#168

I'm so psyched about this. I've followed the development of Scala 3 for pretty much the whole voyage, and I think they've done an incredible job bringing the community along through some pretty radical changes to the language. It has definitely not been an easy process herding a community with very big, informed, divergent opinions on the language. In the end, I think they did an awesome job. Many, many sacred cows o…

What's an example of something they made more approachable?

One of my first impressions of Scala, which I have barely seen, and do not know, is that there is a lot of syntax. Has anything been done to help with that? I don't think syntax matters much, but it's one of the only impressions I have of the language and wanted to ask about it.

Re: Scala 3.0

#169
post #154

Earlier quoted context omitted.

You do realize there are plenty of languages out there, and most novel features appeared first in some minor research languages? Like, there is hardly anything original to kotlin on your list, sealed classes have been in scala forever, and are basically just algebraic data types. Data classes are.. data classes, multiline strings is a cool but very basic syntactic sugar available in millions of languages, coroutines…

Of course none of this is new, but the lead time from Kotlin adoption to Java adoption of all of them is near identical.

That’s irrelevant. It’s not like the language team didn’t know about these features. The change to the shorter release cycle and increased funding is much more behind the speed up of updates regarding Java.

Re: Scala 3.0

#170

I'm so psyched about this. I've followed the development of Scala 3 for pretty much the whole voyage, and I think they've done an incredible job bringing the community along through some pretty radical changes to the language. It has definitely not been an easy process herding a community with very big, informed, divergent opinions on the language. In the end, I think they did an awesome job. Many, many sacred cows o…

What's an example of something they made more approachable? One of my first impressions of Scala, which I have barely seen, and do not know, is that there is a lot of syntax. Has anything been done to help with that? I don't think syntax matters much, but it's one of the only impressions I have of the language and wanted to ask about it.

That's an interesting take, as someone that's used Scala for a while I feel like there actually isn't that much syntax.

I guess my perception is warped :-)

Post reply on HN