Better HN
topnewbestaskshowjobs
Log inSign up

hocuspocus

3,034 karma · joined Jan 27, 2014 (12y ago) · 1,459 submissions

Scala dev in Switzerland.
Submissions

comment 1y ago · link · parent

Current licenses for Oracle JDK and GraalVM are essentially the same terms. It's pretty straightforward.

https://www.oracle.com/downloads/licenses/graal-free-license...

comment 1y ago · link · parent

Scala since 2014.

Java 22 had the feature as preview but it was removed in 23, it'll come back after some refinement.

comment 1y ago · link · parent

Instant transfers and mobile wallets are very much customer facing. Revolut already supports the former and will probably add the latter at some point as it did with BLIK in Poland.

comment 1y ago · link · parent

Pix isn't a CBDC.

The deployment of SCT inst is mostly complete and Wero (EPI) was launched in 3 countries already. Things take a bit more time when you need to push standards and regulations to 11/27/36 countries. Overall banking and payments in the EU/EEA are pretty advanced and evolving at a decent pace given the market size and number of entities involved, the PSD is world-class.

comment 1y ago · link · parent

Fees are always paid by consumers in one way or another...

That said the EEA capped interchange with the explicit goal of making these fees painless to business owners, i.e. similar to the actual cost of handling cash, and we have PSPs charging as little as 0.5~0.7%.

While adoption is indeed slower than in developing countries since people are used to card payments (rather debit than credit by the way), the popularity of mobile wallets such as Swish, Vipps, BLIK, ... is actually pretty significant in a good number of countries, and at the same time, an increasing portion of the population uses Apple/Google/Samsung/... Pay and doesn't care about the physical card anymore. Given that the EU has forced Apple to open up its NFC payment feature, we can perfectly imagine a pan-European federated payment scheme take off in the near future, using EPI/Wero in the Eurozone and interoperable local players outside.

comment 1y ago · link · parent

The exact same can be said about Java or Kotlin.

comment 1y ago · link · parent

It's never been a better time to try Scala if you're interested in the FP side. It's still very much "not opinionated" but the community and ecosystem have benefited from a certain convergence and given up on the "better Java" front which is served by Kotlin more adequately. Of course you can still consume any Java library when needed but it's best to avoid it if possible. Today you can pick between several ecosystems:

- Typelevel libraries: modern and more welcoming take on ScalaZ ideas, rich and mature, extensible libraries that are written in "tagless final" style.

- ZIO: concrete "super monad" with 3 type parameters, shuns the Haskell baggage and category theory lingo but pretty much the same concepts, compile-time autowiring dependency injection, a bit less mature.

- Kyo: new effects system on the block, pushing Scala 3's type system to the limit to stack effects using an "auto-flattening" monad (sorry if I butchered the description).

- Li Haoyi's own ecosystem that sticks to the standard library and JVM built-in mechanisms whenever possible, focused on Python style expressiveness, only more functional and with stronger types.

- I'd skip Akka/Pekko libraries but it's still an interesting piece of software if you need actor based, stateful cluster sharding.

Martin Odersky and the LAMP are focused on "capabilities" and we should eventually see something like direct-style algebraic effects, or like Kyo but without monads.

Also we have much better build systems than before (Scala-CLI, Mill, sbt has improved a lot too), binary backwards compatibility since Scala 3, and a very capable LSP backend if you don't like IntelliJ IDEA.

comment 1y ago · link · parent

Google has been working on replacing the ad-hoc Signal protocol with MLS since before Apple announced they'd support RCS, it would have happened anyway.

It's more likely Apple was made aware of the spec/Jibe/Messages roadmap when they finally got on board, decided not to target the latest UP version for some reason, and realized implementing the current E2EE scheme would be wasted effort given it would need to be revamped within a year. The iOS RCS client is still pretty far from being provisioned worldwide.

comment 1y ago · link · parent

If it's really a DDoS attack, I assume the perpetrators picked the time most inconvenient to current employees, which I believe are mostly located in the Bay Area compared to pre-Elon years where Twitter had a more geographically distributed workforce.

comment 1y ago · link · parent

I don't think Threads is dying, I believe Meta's numbers are actually quite good.

But the content pushed by its engagement algorithm makes the experience pretty far from what I'd expect from a serious Twitter alternative, even after several apparent tweaks. It could be a good platform for brands and celebrities though.

comment 1y ago · link · parent

Bluesky is not bad if you're interested in tech and science.

comment 1y ago · link · parent

Are you joking? Renewables mean one order of magnitude more raw materials imports from China and Chinese operated mining in unstable African countries.

With some work and investment European nuclear fuel supply could be 100% free from Russia, which anyway is peanuts compared to billions spent on Russian LNG. Uranium ore can come from Canada, Kazakhstan and Australia, not only African countries.

comment 1y ago · link · parent

Sure but but the argument here is that Scala.js failed to grow the ecosystem. It doesn't convince people who aren't already.

comment 1y ago · link · parent

Of course but that's a bit beyond the point.

- If you deploy XGS-PON, unlocking the max speed doesn't cost you anything.

- I have six devices that can hit 1~2 Gbps over Wi-Fi 6/7 in my household, a wired 2.5GbE connection to my desktop computer, and my TV.

comment 1y ago · link · parent

In practice sub-6 bands are just good enough in most scenarios. We're 5+ years into mmWave deployments in the US and there's still very little interest or regulatory push worldwide.

For instance it's completely stalled in South Korea which has one of the highest 5G coverage and market penetration. In Japan I found articles from 2023 claiming the mmWave coverage was "0.01%" then, I don't know if it expanded in the meantime. In Europe there's virtually zero production deployments or devices sold with the compatible modem/antennas. While there are small deployments in Australian cities, Apple doesn't bother selling compatible models. Etc.

comment 1y ago · link · parent

In most places it's 2G/3G/4G bands, either repurposed or through dynamic spectrum sharing, plus sub-6 bands.

mmWave is a flop.

comment 1y ago · link · parent

Several Western European countries have deployed XGS-PON at scale, offering up to 10 Gbps, peaking at ~8 Gbps in practice. Hell I even have access to 25 Gbps P2P fiber here in Switzerland.

Also you can deliver well over 1 Gbps over coax or DSL with modern DOCSIS and G.fast respectively. But most countries have started dismantling copper wirelines.

comment 1y ago · link · parent

It's true some Scala features or patterns fell out of fashion but I don't recall any time where replacing compile-time logic with annotation based runtime reflection was considered a good idea. And I don't think Guice was ever the most popular JSR-330 implementation, at least not when Play started using it. Spring had been dominating the Java world for several years by then. Funnily enough in the Android world I remember Dagger being very popular exactly around that time as people figured compile-time automatic DI is a lot saner than Guice.

Of course Spring is another can of worms entirely and I find many aspects infuriating. But things like diamond dependencies are less of an issue thanks to Maven BOMs which are common in the ecosystem.

My point is that ~10 years ago people started using Spark at my company, got curious about Scala and thought Play was compelling. Nowadays Spark (in Scala) is less ubiquitous and these teams remember that so many people got burned by Play before.

Funnily enough the peak of Scala's hype which I believe plateaued between 2014 and 2019 before dropping sharply was mainly driven by:

Spark: ground breaking in many ways but has become a huge liability to the ecosystem, holding so many libraries back. Databricks is also the main financial contributor to the Scala Center (I believe) while not giving much of a damn about the community or Scala 3 altogether. Spark is a very frustrating piece of software overall and today 95% of users are in PySpark anyway, avoiding JVM dependency hell being one reason.

Play: good idea, questionable execution, poor governance, and today mostly irrelevant to the future of Scala. Props to community maintainers who managed to secure funding and brought the framework back from the dead, saving many projects from a certain death.

Akka: also ground breaking, pretty much the only game in town if you need stateful cluster sharding, deployed at scale by top-tier companies. But also overkill for most people, and on top of that the relicensing really hurt the community and broke trust.

The boons and banes of Scala.

comment 1y ago · link · parent

I use Tapir with http4s as the http server isn't my bottleneck anyway and I like Cats Effect and fs2.

But SoftwareMill has done extensive benchmarking to make sure the overhead from Tapir vs calling the http backend directly was insignifiant. I believe Netty is the recommended backend if you want direct style (i.e no effect systems) on Java 21+ virtual threads even though Oracle's Helidon Níma is supported too.

comment 1y ago · link · parent

Like KajMagnus mentioned:

- The churn caused by breaking changes in minor versions used to be annoyingly high.

- Slick looks neat at first but caused a lot of friction when used by less experienced developers.

- The fact Akka is in your dependency tree encourages people to reach for it and raw actors are usually a bad choice. Akka streams work well for websockets and SSE but it's another footgun.

Additionally:

- It was in state of semi-abandonment for several years before Lightbend gave the project to the community. Even though there are/were big companies deploying Play apps at scale, for instance Apple.

- The introduction of Guice (in 2.4 afaik) was a terrible mistake, completely unnecessary and at odds with the Scala philosophy. Sure you can not use it, or use something else (like macwire) but defaults matter.

- Play-JSON depends on Jackson which is annoying in the JVM world, causing binary compatibility issues when you have diamond dependencies.

- Standard library Futures are not so nice when you've experienced anything else (Scalaz Task, Cats IO, ZIO, even Twitter Future...)

- Code generation from routes files is an odd choice when Scala has always been expressive and DSL friendly.

- Swagger/OpenAPI integration is brittle.

I've personally used Tapir since 2019 and couldn't be happier. All Play apps still running at my company are being abandoned or replaced by Spring/Java projects.

comment 1y ago · link · parent

While a bit late to the party, Akka on Scala 3 is perfectly viable nowadays, and they have a couple employees contributing to Scala 3.

The bigger issue comes from Databricks being the biggest Scala Center sponsor while holding the entire ecosystem back, for instance with their managed Spark runtime still on 2.12.

comment 1y ago · link · parent

That is correct.

Play's hype did more harm than good. I work at a company that has many legacy projects in Scala because we were/are heavily invested in Spark, and Play is a disaster overall.

comment 1y ago · link · parent

And again, nobody needs blockchains to tokenize centrally issued securities.

comment 1y ago · link · parent

Clearly, digital ownership for something that truly lives on the blockchain and not outside is an obvious use case. But it also illustrates that blockchains are pretty useless beyond that.

I also wonder how the long-term monetary incentives work for a truly trustless domain name scheme. Having a quick look at https://app.ens.domains this doesn't seem terribly cheaper than a traditional registrar.

comment 1y ago · link · parent

The most popular stablecoins aren't trustless, proving the parent's point.

comment 1y ago · link · parent

Append only, immutable and signed ledgers do exist actually.

comment 1y ago · link · parent

Why would you need a blockchain for tokenization?

comment 1y ago · link · parent

Kamon supports OTel.

comment 1y ago · link · parent

It's not so surprising. We (the average tech worker on HN) are part of the problem, not the solution.

comment 1y ago · link · parent

Context propagation isn't trivial on a multi-threaded async runtime. There are several ways to do it, but JVM agents that instrument bytecode are popular because they work transparently.
1
8910
49