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 4y ago · link · parent

Which is a political problem and has nothing to do with their banking systems. These people don't want to use Bitcoin, like they didn't want to use USD or EUR before.

And using Bitcoin as a workaround against authoritarian governments sounds pretty risky to me. Everything leaves a trace on the blockchain and it's fairly easy to control (and ban) conversion to/from fiat currency. Going back to peer-to-peer barter is something, I guess, but I don't think we should celebrate that.

comment 4y ago · link · parent

Seeing how well the ransomware industry is faring, it seems Putin doesn't feel too threatened yet.

But what happens when he bans all exchanges that off-board cryptocurrencies to Ruble? Will the opposition be happy with tokens that are suddenly useless for day-to-day expenses?

comment 4y ago · link · parent

I'm gonna skip the obvious whataboutism of your argument, but your 2nd layer networks have just re-invented centralization of federated and trusted peers, congrats.

International settlements aren't a technological problem. SWIFT has been commoditizing international transactions for many decades. When there's still friction, it exists by design. International transfers are pretty fast and cheap between countries that agree on the same rules and regulations regarding capital flows.

Sure you can use Bitcoin to avoid these regulations. But most people and businesses aren't actually interested in illegal ways to move money.

comment 4y ago · link · parent

Political problems don't have technological solutions.

Telling these people to use Bitcoin is just giving their government another tool to send them to jail.

comment 4y ago · link · parent

There's none.

It's mind boggling that 12 years later, people like the parent poster are still claiming bullshit like that when there's literally zero evidence, rather the opposite. No country with underdeveloped banking and payment systems is interested in something like Bitcoin. They need something cheap and efficient, federated and... centralized! Many African countries are perfectly fine using M-Pesa.

comment 4y ago · link · parent

1. Check out https://www.themooltipass.com

comment 4y ago · link · parent

JUL is weird and came too late to stand a chance against commons logging and log4j. Log4j's API façade was successfully abstracted away into Slf4j, whose usage became ubiquitous in the Java ecosystem. You certainly can use JUL as an Slf4j backend though.

comment 4y ago · link · parent

> With tagless final, Kleisli and so on.

Tagless final is a good way to enforce the principle of least power, which has many advantages when onboarding inexperienced developers. It can become unwieldy if abused, but that's true for any style.

And if it really bothers you, then you can use your concrete "super monad" everywhere. It's the only way with ZIO, but you can also do that with other effects.

Regarding Kleisli, it's such a broad abstraction that you'll find examples everywhere, whether explicit or not. In practice, even with heavy usage of libraries like fs2 or http4s, it's mostly an internal implementation detail, in most cases you'll only see type aliases.

comment 4y ago · link · parent

> Save yourself, don't use Scala, pick Rust.

That's an hilariously bad advice if you think hiring competent developers and onboarding juniors is hard in Scala.

Most things companies do on the JVM, especially at scale, are going to be a lot harder in Rust and its ecosystem.

comment 4y ago · link · parent

If you've ever done a map reduce on a dataset you've used category theory, whether knowingly or otherwise.

You don't need more than highschool maths to understand the category theory behind common typeclasses.

comment 5y ago · link · parent

Boursorama and Fortuneo aren't neobanks ;)

comment 5y ago · link · parent

Legislation plays a big role in encouraging entrepreneurs to play it safe or not.

Cf. banking. European fintech startups are doing extremely well. In turn, big banks have to catch up and adapt if they want to stay relevant. Thanks to EU regulation and investment in core infrastructure.

If we think about the cloud, I don't see what Europe is lacking if we really wanted to build an O365 competitor. But there's no stewardship, rather the opposite, cf. the lackluster response to the CLOUD act an other extra-territorial US bullshit. Instead we have OVH and Hetzner compete on price rather than features and quality, and underfunded open source software like NextCloud.

comment 5y ago · link · parent

The community edition is definitely enough for sbt projects.

Any reason you're using sbt for Java projects? That's an odd combination. Anyway, I believe Metals is getting close to supporting this particular use case if you want to keep using VS Code.

comment 5y ago · link · parent

My guess:

Lots of business meetings in London -> merchants need to accept Amex company cards -> people realize acceptance is high -> people look into Amex for their personal usage, for instance to enjoy higher rewards.

comment 5y ago · link · parent

> It seems that Mastercard is more widespread among "hot" banking startups, ie I can create virtual debit Mastercards on Revolut and Monzo

They were definitely first in this space but Revolut has issued Visa's (in some cases) for a while now, and for instance Wise has recently switched from MasterCard to Visa entirely.

comment 5y ago · link · parent

Scala has its own issues, but it's worth a try.

It's easy to learn coming from Python, even more so if you can start with Scala 3 right away. You cannot really get more high-level than that. There are good libraries to work with databases, Quill comes to mind if you want something user-friendly. And you can always fall back to the many Java libraries in the big data ecosystem (even though you should probably avoid it if you can).

comment 5y ago · link · parent

The gear #4 is really bad especially in comparison with the #5 (the 1:1, direct-drive gear).

comment 5y ago · link · parent

With the Shimano 8 and 11 speed hubs you can tell that some gears have a poor efficiency, it's really noticeable!

Apparently the Pinion and Rohloff fare better: https://bikeshed.johnhoogstrate.nl/bicycle/drivetrain/shiman...

comment 5y ago · link · parent

I wasn't aware!

Still, I'll believe it when I see it at amateur cycling clubs. At pro-level I don't think anyone would take the performance hit (even though they claim it's compensated) just to avoid having a front derailleur.

For gravel, cyclocross or even casual road biking, if a double chainring really bothers you, then 1x12 groupsets exist.

Edit: https://www.rosebikes.com/rose-backroad-classified-2x11-2696...

Nice bike but the price bump compared to the other electric-shifting models is pretty steep!

comment 5y ago · link · parent

The biggest issue is the complexity, weight and poor efficiency compared to a derailleur. And also fewer and unevenly graded gears, though that's probably less true with Pinion hubs.

It's not that hard to avoid shifting under heavy load (higher-end IGHs shift fine under some load). And on a commuter bike, being able to shift gears at a standstill is great.

Edit: you completely changed the content of your message and my reply doesn't make a lot of sense now.

comment 5y ago · link · parent

It's not a particularly recent idea, I believe Brompton has been doing that for decades. And it fills a very specific niche.

On most bikes I don't really see the point.

Either you want the convenience of an internal gear hub and you have plenty of options that offer a pretty wide range. For instance the Nexus/Alfine 8 feels plenty enough for a commuter bike even if you live in a hilly place. If you're rich you can go with an Alfine 11, Rohloff, or Pinion.

Or you don't want the weight/cost/inefficiency, nowadays you can get affordable and reliable 1x10 or 1x11 groupsets. And of course on a proper road bike you'll still want a double chainring.

comment 5y ago · link · parent

Also card usage varies a lot between countries, mostly for cultural reasons.

Moreover I'm fairly certain that before the mandatory cap on interchange, countries with relatively high card payments were also the ones with the cheapest PSP fees.

comment 5y ago · link · parent

Isn't it just the first choice in the list? IntelliJ offers several vendors (Amazon, Azul, Bellsoft, Eclipse, IBM, Oracle, SAP), defaulting to Oracle JDK 17. But I assume you need an older version for Android development.

comment 5y ago · link · parent

Targeting multiple platforms is orthogonal to the core language design goal, which has always been to be more like C# on the JVM, with 100% Java interop and no need for a big standard library.

I give you nullability, however extension methods without proper typeclasses is just syntactic sugar, and coroutines will be superseded by Loom.

Java hasn't only been catching up, it now supports pattern matching which Kotlin still lacks.

comment 5y ago · link · parent

Zio is pretty much what you want. No need to understand category theory, no over-reliance on implicit resolution, ...

That said you don't need to understand that much to use high-level libraries in the Typelevel ecosystem. And when I do need to reach for low-level constructs, I find nice that everything is built upon clean and composable abstractions.

You mention Akka, it's kind of its own beast. The inner workings go definitely way beyond "better Java", yet Lightbend needs to provide a surface API that plays nice with Java interop. It's not an ecosystem easy to navigate in my opinion.

comment 5y ago · link · parent

Scala is fine. People understood it's not really worth it as a "better Java". Companies that choose Scala in 2021 are using either big data frameworks (where Python bindings are the most common alternative to Scala, not Java), or functional ecosystems (Typelevel, Zio). Scala 3 has taken an interesting direction and to me it seems that Odersky wants to win Python developers over rather than Java shops using Spring.

New features in Java and the JVM (records, loom, valhalla, ...) are directly going to benefit Scala and make it even better.

On the contrary, Kotlin's essence has always been threatened by the fact it's nothing more than a better Java. I assume there's still a big demand for that on Android, but if you're running on a recent JVM, I would certainly consider Java over Kotlin.

comment 5y ago · link · parent

> One issue is there's a significant conflict of interest between their device and CPU businesses. Apple left them precisely because Samsung is a competitor in handsets, and other handset manufacturers are also wary of buying from them for the same reason.

I don't think what bothered Apple is relevant to other phone makers. Case in point, Qualcomm doesn't mind having Samsung fab their SoCs, and even their modems, a domain where Samsung has repeatedly tried to catch up!

Anyway in the current Android smartphone landscape, everyone is using ARM reference CPU designs.

comment 5y ago · link · parent

You're right, I checked, there were pre-orders, which made zero sense given there was no promotional offer of any kind and very little demand then.

Anyway the Pixel 3 and 4 were pretty big flops. Pricey and uninteresting devices, with abysmal battery life for the non-XL variants. I remember third party sellers fire-selling their stock of Pixel 3s during summer 2019.

The 5 and the 6 are priced a lot more reasonably, Google probably doesn't need to do anything to sell their current stock, so if you believe you'll get better than $200 headphones, good luck with that.

comment 5y ago · link · parent

The Pixel 5 was actually cheaper in Europe because it didn't support mmWave 5G.

Sure, it's a loss leading tactic. And that's my point. Outside the US, Google is using incredibly weird, inconsistent and half-assed marketing tactics. If you believe there will be something better than getting free Bose 700 headphones, you'll probably be disappointed.

I ordered my Pixel 5 on day one, and I was waiting for good deals throughout the year so that I could recommend it to family members, and that just didn't happen. And the 5a wasn't even released in most of the world.

comment 5y ago · link · parent

That's completely irrelevant to last year's models. And there were no preorders for the Pixel 3.
1
222324
49