News for hackers. Stuff that matters.

Sunscratch

Re:Four Months of Zig on Thursday October 29, 2026 @04:07AM (#50285839)
>Just like with allocation, passing an IO argument makes it clear which programs are pure and which ones are not. You can tell at a glace whether or not a program is going to modify something external.

Pure programs are completely useless. If under “programs” article assumes functions, in that case this statement is not correct. In Zig you can still mutate variables outside of the function body(side effects) and IO interface doesn’t track it.

>Here’s the thing: I don’t read code anymore. I used to write code and read code. Now when something isn’t working, I don’t go look at the code. I don’t question the code. I either ask one of my coding agents, or - more often - I ask myself: what happened with my system? What can I improve about the inputs that led to that code being generated?

Good luck debugging any non trivial problem in such codebase

Re:The Case for Nushell (2023) on Wednesday January 07, 2026 @04:58PM (#46533629)
I’ve created a small utility script at work that automates some routine tasks and nicely formats the collected data in a table, and I can say that Nushell is an amazing tool.
Re:Patterns for Defensive Programming in Rust on Friday December 05, 2025 @03:56PM (#46167183)
Nice article. The problem of multiple booleans is just one instance of a more general problem: when a function takes multiple arguments of the same type (i32, String, etc.). The newtype pattern allows you to create distinct types in such cases and enforce correctness at compile time.
Re:The Origins of Scala (2009) on Tuesday December 02, 2025 @07:39AM (#46120621)
I’m very happy that I learned Scala back in 2018(thanks to my colleague). I quickly realized that this is the language I want to use for work, and after some time, I joined my first Scala project. Five years later Scala is still my favorite language, along with Rust.
Re:Evolving Scala on Tuesday April 01, 2025 @03:12AM (#43543748)
>Rust has had 10x better tooling right from the start. Cargo vs SBT, no joke.

Cargo is a really good tool, but I wouldn't say it is 10x better than SBT.On the other hand, Scala can be used with different build tools: Maven, Gradle, Mill. With Rust you have no choice(or I'm not aware of). Rust-analyzer is better than metals, can't argue with that...

>Rust has improved its compiler performance by >3x in the last 5 years

Rust compiler is very slow. I can't imagine what compilation time was 5 years ago, but even now, it is incredibly slow, even compared to "slow" Scala compiler(which is no longer true). I'm working on a little project with bevy, and even on such small project compilation time sucks. You can't compare it with Scala, it's just completely different experience.

>Rust hasn't gotten any major new language feature in the last 6 years.

That's not true. Rust team handles these changes correctly. Rust has concept of "Editions", and every 3 years new edition introduces significant changes. I really like how editions work, it's a great way to maintain backwards compat.

>4 Mostly agree

>5 Fully agree

>It's easier and more performant to call C from Rust than to call C from Scala.

Yep, but it's not Scala but the JVM limitation. JNI sucks, but there is an effort to improve that (project Panama).

Overall, both Scala and Rust are great languages. Rust team has addressed many typical issues from the beginning. Scala had its mistakes, but moving in the right direction.

Re:Scala 3 Migration: Report from the Field on Friday February 07, 2025 @03:48AM (#42970680)
I would argue that John left due to political reasons mostly, and honestly, for good.
Re:Scala 3 Migration: Report from the Field on Friday February 07, 2025 @03:43AM (#42970660)
I double that. Rust is great language, and I like it a lot. But usually I pick Scala whenever I can, it’s perfectly suited for complex domain.

So my rule of thumb is: Large enterprise monolithic projects - Scala. Microservises, serverless functions, systems where resources have hard constraints, cli apps - Rust.

Both are great languages.

Re:Monocle: Optics Library for Scala on Monday November 25, 2024 @04:41PM (#42240456)
Every <insert any language here> code base I have worked on, that wasnt written by small team of experts, turned into a huge pile of crap…
Re:OpenAI to Become For-Profit Company on Thursday September 26, 2024 @09:53AM (#41658420)
Should be renamed to NonOpenAI,or MoneyMattersAI
Looks very similar to Akka, where agent is actor and Lifecycle is Behaviors.

An interesting project for a complex task - streaming stateful processing.

Re:Scala Community Email Regarding John De Goes on Monday November 20, 2023 @06:51AM (#38346716)
2019…
Re:Twitter has officially changed its logo to ‘X’ on Monday July 24, 2023 @03:51PM (#36853330)
The worst thing that ever happened to Twitter is Elon Musk
While it is very fun to hack using dynamically typed languages, it’s obvious that they are not suitable for large enterprise systems. Refactoring, code navigation, code reading is much much more better with statically typed languages. Moreover, modern ST languages like Scala have a “feel of” DT languages due to type inference, without compromising static type checking
Re:EU plans to make Bitcoin transfers more traceable on Wednesday July 21, 2021 @05:23AM (#27904074)
Well, Bitcoin and other crypto garbage should be banned. It’s already obvious that it’s mostly used for money laundering and price gambling. It’s very environmentally unfriendly, and non efficient piece of technology.
Let me rephrase your comment: “Saving people from suicides is come kind of fascism and authoritarianism - no more freedom to make decisions related to your own life.”
Re:Scala 3.0 on Friday May 14, 2021 @06:36AM (#27152773)
Amazing work. Scala language and it’s ecosystem are amazing. Thanks to Odersky and all contributors, early adopters.
Re:Kaspersky believes it found new CIA malware on Wednesday April 28, 2021 @12:39PM (#26971331)
"Kaspersky believes it found new CIA malware"... being itself russian FSB malware...
Re:Scala projects are difficult to maintain on Tuesday March 23, 2021 @06:31AM (#26553287)
> Software Industry is a young industry and complex, like any other profession, and a developer need to think about lots of other things as well, not just the language and possible pattern/syntaxes it has to keep up with!

Looks like you’ve chosen the wrong profession

Re:Ask HN: Scala vs. Kotlin? on Wednesday January 20, 2021 @05:17PM (#25852698)
7 month ago received an offer to join Scala project. Before that worked with Java and Go. I would say Scala is an amazing not just language, but an ecosystem. As a language, it’s very ergonomic and allows to do complex things with less boilerplate. So if you really interested in programming, learning new concepts - I would recommend to try it. If you want just to do boring stuff for money - Java and Golang. Regarding Kotlin - it doesn’t intersect with Scala, because mostly used for Android and back-end with Spring or other Java frameworks. Scala is mostly used for distributed systems, big data and applications with complex domain.
Re:Hands-on Scala Programming on Sunday April 19, 2020 @03:31PM (#22918191)
When you’re choosing Scala you have all the perks of JVM platform. You can reuse Java libraries if needed. Scala has pretty powerful type system. JVM in turn is a pretty good platform, with decades of effort, which can tolerate high load, make different optimizations in runtime, tolerate large heaps if needed, GC story in Haskell runtime is not even close to JVM.
Re:Ask HN: What Technologies to Learn in 2020? on Sunday January 05, 2020 @11:28AM (#21961973)
I’m going into Scala + Akka. There is a slight possibility my company will adopt it instead of current stack.
Actually Apple uses Java/Scala a lot, and some of the core contributors to Netty are Apple devs.