mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,4 Tsd.
aktive Profile

#scala

6 Beiträge6 Beteiligte2 Beiträge heute

i'm completely lost in scala building tools. what is sbt server, and what is bloop server? can they coexist? can you compile code through `sbt compile` and see the result in your IDE connected to bloop using metals? if not, what's the way?

#scala#sbt#bloop

Now that I've spend like 2 weeks moving #scala code around, commenting, writing, entering new lines, refactoring, creating multi level ifs and matches and multiple defs inside defs and all that stuff, all using #scala3 whitebased syntax with formatter turned on to write it into that and 4 spaces for ident...

I'm getting so many weird compile errors constantly, scratching my head a lot about why comments moved place, for-comprehesions stopping to work..

I'm tired. I don't think if it's worth.

Investigating an unfamiliar codebase. Want to remove a variable.

It is not obvious if that is safe (or if the variable is used in unexpected places). This would be so much easier with a more „functional“ programming style (less quasi-global state, less „action at a distance“) and in (or any other compiled language) where the compiler can conclusively decide these things.

Basic affordances that I sorely miss as I resort to full-text search. And this is not even getting into type-safety.

Ah, yes, another "revolutionary" build tool—because #Java, #Scala, and #Kotlin #developers were desperately lacking in build systems. 🛠️ Apparently, #Mill is the ultimate solution... to a problem no one knew existed. But hey, at least you can now write more #configuration files instead of code! 📜💤
mill-build.org/mill/index.html #buildtools #HackerNews #ngated

mill-build.orgMill: A Better Build Tool for Java, Scala, & Kotlin :: The Mill Build Tool

When I mention that #scala intellij is freaking slow I mean stuff like this. This was a fast autocomplete! Hard to remember to record or even know when a super slow one is coming 😮‍💨. This is like this for everything, constantly.

And this seems a problem, all the time. I have the same experience on different scala 3 versions, using sbt or bsp and on this mac and on another linux machine.

This particular one is a scala cli proj with a 5 files and bsp. Using helix/metals barely any types show up.

Might seem like a tiny #Scala Metals features, but it really makes a difference: the status bar tells you that the code in the module you're currently in won't compile (hence - no new highlighting), because there are errors in an upstream module.

Here, `core-test` won't compile because `core` has errors, but this of course generalises to multi-module projects with long dependency chains, not only tests.

Damn, I had installed #scala from brew and trying to use scala-cli functionality through it like "scala compile ." was extremely slow to the point of being unusable. I have now removed the sbt and scala I had installed with brew, went with the annoyance of installing coursier, adding that stuff to the path, installing scala-cli explicitly and sbt and that stuff and now "scala-cli compile ." just flies 🫠😱🥹.

Yet more crazy stuff I have to deal in a stupid macos machine.

Antwortete im Thread

Alright, I am giving this a try.

Checking news (i.e. social media) only once in the morning and once in the evening.

I made it through yesterday that way, even abstained from the phone on the toilet, and I am moderately proud of myself.

It is a bit hard for a programmer, because we frequently wait on builds to complete. xkcd.com/303/ Huge potential for distraction there. I managed to look only on browser tabs with and and such.

Let's see about the weekend...

xkcdCompiling

You've heard of #scala language that works on the jvm. You also heard about scala native target to native (C) and interoping with that world side stepping the #jvm...

Now get ready for #clojure (jvm language) and it's target to Cpp.

---

#jank programming language - Clojure/LLVM/C++

"Where jank differs from Clojure JVM is that its host is C++ on top of an LLVM-based JIT*

jank-lang.org/

jank-lang.orgjank programming language - Clojure/LLVM/C++jank is a Clojure dialect on LLVM with a native runtime and C++ interop.

Today, we released Mill 1.0.0

It comes with a lot of new features and many many internal improvements. But we also changed a lot, so make sure to read the Changelog carefully.

github.com/com-lihaoyi/mill/bl

We aim to roll out more 0.12.x releases that support the transition to the newer APIs by providing more deprecation warnings.

Mill is a fast JVM build tool that supports Java, Scala, Kotlin and many other languages. 3-6x faster than Maven or Gradle for common workflows, Mill aims to make your project’s build process perfo...
GitHubmill/changelog.adoc at main · com-lihaoyi/millMill is a fast JVM build tool that supports Java, Scala, Kotlin and many other languages. 3-6x faster than Maven or Gradle for common workflows, Mill aims to make your project’s build process perfo...
#MillBuild#JVM#Java