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

My bad. Sure it's easier and more convenient, and also it's cheaper. But not entirely necessary.

comment 1y ago · link · parent

A permissioned stablecoin run by big tradfi players is by definition not a blockchain.

comment 1y ago · link · parent

You wrote "from the loans they got from bigger banks" which makes little sense.

Private banks create money by extending credit, that's it. They worry later about reserve requirements, which in the case of USD or EUR are extremely low.

And I still don't understand how this relevant in any way to the topic.

comment 1y ago · link · parent

I fail to see what a CBDC and/or Fed sanctioned stablecoins would achieve for entities outside the US that need to transact in USD. It would essentially work the same as today under a new name?

The point of a CBDC is government control over an increased share of the money supply. Pretty irrelevant to USD balances held by other central banks.

The point of a stablecoin for an entity with an American banking license is... nothing?

comment 1y ago · link · parent

EU directives have forced banks to modernize at a pace that wouldn't have been possible if we just let the free market decide. There are downsides to the heavy regulatory framework, for instance the unhealthy consolidation and size of systemic banks. But we enjoy pretty advanced banking services and arguably the most flourishing fintech ecosystem by worldwide standards, mostly thanks to EU technocrats.

comment 1y ago · link · parent

Not only this isn't how banks work, but also completely irrelevant to moving money.

comment 1y ago · link · parent

Better ergonomics, direct style syntax, no need for monad transformers. There might be second order advantages like small performance gains compared to monadic effects.

comment 1y ago · link · parent

Two things:

- Only your outermost application entry-point will need to stack all effects; you'll wire the server, client, DB and so on in your `main` method that returns Unit \ (IO & Abort & Result & Transaction & Env ...). In specific modules individual functions should use only the narrowest effect.

- Good ergonomics for type polymorphism and type inference are obviously paramount to adding algebraic effects in a way that is minimally invasive. It's obviously not trivial and mostly a PL research field at this point, but existing implementations show that there's potential for better DX compared to alternatives (monadic effect systems, mostly).

comment 1y ago · link · parent

Last time I checked it was only for Rust, specifically you couldn't use the LSP feature for arbitrary languages that aren't supported by Fleet yet.

Java and Kotlin are definitely not using the LSP but their proprietary backend.

comment 1y ago · link · parent

Yes I'm not claiming it's ideal, it'd be nice not to worry about such things as a tourist, it can't be that hard or expensive for Google to just let everyone use the feature.

But at least if you move to Japan, you can essentially get a Japanese flavored Pixel at the small cost of a factory unlock/relock.

comment 1y ago · link · parent

Thanks, my recollection of C# evolution was blurry, I stand corrected.

So really, Sun and Oracle could have definitely moved faster around Java 6 and 7, the Java 8 release took a long time given the feature set.

I feel that records could have come quicker, their implementation isn't exactly ground breaking. Avoiding the async/await route was a smart call though, and Loom could probably not have happened much earlier.

Valhalla is another can of worms entirely

comment 1y ago · link · parent

Note that on global Pixels it isn't hard to enable, either via root or flashing Japanese variants of the factory images.

comment 1y ago · link · parent

Java could have easily caught up with C# in the early 2000s. In 2001 Pizza (Scala's ancestor) showcased generics, higher-order functions, ADTs and pattern matching. Interestingly enough only generics made it to Java in a reasonable timeframe, the rest came only much later.

Aside from early versions being rushed, I feel that Java's success and adoption were the bigger issue. While Microsoft could iterate quickly and break backwards compatibility with major versions of C# and the .NET runtime, Java was deliberately moving at a much slower pace.

comment 1y ago · link · parent

4000 VMs, not hosts. More likely $3-400k a year before negotiating a volume discount.

VMware enterprise tier is probably 10x more expensive.

comment 1y ago · link · parent

My bad, that's too far in the past. I've changed Android phones several times between 2017 and 2020, and I remember using the QR codes exports.

comment 1y ago · link · parent

I dislike SMS 2FA and services that use my phone number as a stable identifier, however SIM swapping is not really a thing in most countries.

comment 1y ago · link · parent

I don't see how I could simultaneously lose my three hardware keys (laptop, phone and Yubikey) and backup codes.

comment 1y ago · link · parent

I'm pretty sure you could always manually export a QR code for every one of your secret keys.

comment 1y ago · link · parent

There's really no reason to use SMS 2FA for GitHub though, you can literally pick anything else.

comment 1y ago · link · parent

It's not ideal but there's been some progress.

I'm not sure we can blame Google for not pushing their Authenticator more, most services have been dead set on SMS and are now slowly moving to Passkeys, probably for the best.

comment 1y ago · link · parent

> I'm surprised ios and android don't have native TOTP apps (afaik).

They do.

Google's Authenticator is as close as it gets to a native Android app, and your secret keys are sync'ed in Google's cloud for a while now (it's a shame they waited so long).

Apple's Keychain has supported TOTP for ages too.

That said OTPs over RCS instead of SMS are a major improvement if you don't mind your phone number being used as an identifier.

comment 1y ago · link · parent

No, they don't. Bank networks are fundamentally permissioned, only authorized entities are allowed to participate. Verifiability is a political/legal decision between these entities, not a technical limitation of existing systems.

comment 1y ago · link · parent

> Most top/real projects in blockchains aren't immutable. Pretty much everything is upgradable/changeable, including blockchains themselves.

> Trustless - even this part isn' true for most blockchain systems.

Blockchains are immutable, trustless, permissionless. Otherwise it's called a database.

comment 1y ago · link · parent

Scala doesn't have operators (as in, + - * / ++ -- ... are just methods) and at some point library authors went a little overboard with DSLs using symbolic names, especially for concepts coming directly from Haskell. But those days are mostly over.

The type system is very powerful and a few concepts have complex semantics, there's no way around it. But in my experience what really hurt inexperienced developers is the mix and match of Java constructs and more functional or Scala specific ones. And in my opinion, the Kotlin ecosystem is even a bigger offender nowadays, while best practices in Scala have somewhat converged, as a direct consequence of its decline in popularity, i.e. because people have stopped trying to use Scala as a better Java.

comment 1y ago · link · parent

I think it's genuinely simpler than Swift or Kotlin that have seen an explosion of grammar, keywords and features.

The modern Scala ecosystem has mostly converged towards one style even though it's fully compatible with the more questionable Java/JVM constructs like runtime reflection, annotation processing and so on. Sure you have to understand a few FP concepts that might be alien at first, but there's a fairly straight and clear path unlike hybrid languages that evolved in too many directions at once.

Meta-programming features have also been completely overhauled with Scala 3 and are more approachable, especially if you're just an end user that needs a library doing generic derivation for instance.

Odersky is also on a crusade against monadic effect systems and we might get something like algebraic effects, direct-style.

comment 1y ago · link · parent

Escaping symbols with backticks to circumvent illegal characters and reserved keywords is a feature coming straight from Scala actually.

comment 1y ago · link · parent

I don't think people care about its relation to Apple, they care about the language ecosystem, roadmap and evolution that were shaped by Apple's needs for iOS and macOS before there was a real attempt at making Swift more general purpose and multi-platform. And now that it's somewhat there, there are better options in almost every dimension.

comment 1y ago · link · parent

It's been entirely free since mid-2023. Even if you care rather about native images, you probably want to use the proprietary distribution anyway.

comment 1y ago · link · parent

Oracle has specifically reworked its license to make terms clear after the bad press around the initial release of Oracle JDK 17:

https://blogs.oracle.com/java/post/free-java-license

Any company using Java should be willing to read and understand Oracle's terms, whether they use third party OpenJDK distributions or Oracle's builds.

If you're leaving significant performance gains on the table because you can't read, that's on you.

comment 1y ago · link · parent

Native images are just one feature though. Many people would benefit from the Graal JIT even if they don't care about anything else.
1
789
49