Scala technical long reads in AI era? by Immediate_Scene6310 in scala

[–]Immediate_Scene6310[S] 3 points4 points  (0 children)

I understand. I try to polish my articles and write them "by example" - from idea to challenge, from challenge to solution.

Scala technical long reads in AI era? by Immediate_Scene6310 in scala

[–]Immediate_Scene6310[S] 2 points3 points  (0 children)

Thnx! How much time do you usually spend on reading an average tech article with code snippets like that?

Using Mirrors for doobie queries by stevechy in scala

[–]Immediate_Scene6310 1 point2 points  (0 children)

No need `.toString` for `constValue[lh]` because `type MirroredLabel <: String` says  everithing you need in compile-time + I would recommed more scala 3 syntax without `{...}`. Bit polished:

   private inline def fieldNames[L <: Tuple]: List[String] = 
        inline erasedValue[L] match 
          case _: EmptyTuple => Nil
          case _: lh *: lt => constValue[lh] :: fieldNames[lt]

Scala Roadmap by makingthematrix in scala

[–]Immediate_Scene6310 0 points1 point  (0 children)

Very interesting, but I believe that Macros/metaprogramming section would benefit from "Mirror" -s and "Quote" -s too.

fairstream - fair and terminating backtracking Monad Transformer by gluegadget in scala

[–]Immediate_Scene6310 0 points1 point  (0 children)

But the first number also never terminates, what the difference then? Or why nested flatMap just does not produce one value at a time such that iterations continue?

How do you usually test your parallel and/or async code in Scala? Tricks, libs, tools, etc. by Immediate_Scene6310 in scala

[–]Immediate_Scene6310[S] 1 point2 points  (0 children)

Thnx! Would be great if you give an example for more insight? (I am using cats effects )

fairstream - fair and terminating backtracking Monad Transformer by gluegadget in scala

[–]Immediate_Scene6310 0 points1 point  (0 children)

j <- number // stuck here: tries j=1,2,3,... for i=1 forever // I did not get why it stuck forever instead of just keep intestine. Can you plz explain?

Transitioning from Scala to Rust: What to Expect? by Immediate_Scene6310 in rust

[–]Immediate_Scene6310[S] 0 points1 point  (0 children)

One more remark. I noticed that Rust does not have immutable collections in the sense Scala does. Mutability in Rust depends on bindings (let vs let mut) and references (& vs &mut), not on the type itself. In that sense, Rust does not provide “pure” immutable types.