« first day (592 days earlier)
← previous day
next day →
last day (686 days later) »
user
12:45 PM
Great news! No longer do you have to have separate folders for your Java and Scala code. The newest release of Scala 3 now supports writing Java
within
your Scala code, providing much smoother integration than before.
Here's an example
lyxal
1:32 PM
that took me a quick second to realise that yes, that is indeed java in scala
I was thinking "surely that's not Java"
despite the fact it's what I've been working with basically all day
user
The only caveat is that you need to write
Foo<Bar, Baz> java
to help out the parser
@lyxal Even better, it's Scala in Java in Scala
lyxal
can't wait to pollute the scala I eventually write with Java
what's the JS support for this new functionality?
user
ngl, I was mildly worried about Scala's popularity falling off but this will attract a lot of the Java crowd
@lyxal Let me write up an example
lyxal
because if it's decent, then that might make some projects much easier to develop for those who might main Java but not scala
+ ANTLR + symja + more
user
Well, as we know, JavaScript is just a dialect of Java, so since Java support is so good, JS support will be even better
@lyxal I can't tell if you're deadpanning right now or if you actually believe this
You're probably deadpanning but it's hard to tell through text
lyxal
1:36 PM
wait
it's not real?
well dang
user
Scroll to the bottom
lyxal
dang
user
That whole thing was hella sus, you've failed as a crewmate
lyxal
welp looks like we're sticking with that random symbolic algebra scala library I found plus custom parsers
user
Wish I'd thought of this on April 1
@lyxal lmao yeah
I'm working on making my own though
lyxal
1:37 PM
Your own symbolic algebra library?
user
Ye
A very limited one, of course
lyxal
let me give you the same advice I gave Seggan: don't.
user
Okay but a counterpoint: no
lyxal
you really want to implement all the different differentiation, integration, algebra simplification rules, etc?
user
The best way to learn how to do something is to try to implement it yourself, fail, cry, and run away
lyxal
1:39 PM
save yourself time - leave the library writing to people who have done higher level calculus (read: not me)
user
Yeahhhh
lyxal
see now you're understanding it
user
I understand it before too
And I still want to try it
lyxal
well knock yourself out
user
It'd be fun even if I wouldn't succeed
→
27 messages
moved to
Off-Topic TNB
« first day (592 days earlier)
← previous day
next day →
last day (686 days later) »
all rooms
Transcript for
May
30
May '22
31
Jun
7
Scala
Sharing code golf in Scala:
scala-lang.org
functional-programming
scala
join this room
about this room
00:00
06:00
12:00
18:00
all times are UTC
site design / logo © 2024 Stack Exchange Inc;
legal
mobile