Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vips7L
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
451.
▲
by
vips7L
11mo ago
There are plenty of errors/exceptions that don't need to be bubbled up the call stack. I don't think that's the main issue with them. Like you say the issue with checked exceptions is that there is no escape hatch to shu
452.
▲
by
vips7L
1y ago
That’s why I just write Java now. It has pattern matching and sum types and they’ll never just break something for fun.
453.
▲
by
vips7L
1y ago
> but there is still backwards compatibility (via TaSTy), I don’t know man. I’ve been burned so many times by breaking changes. We don’t even write new Scala anymore. Everything new is Java nowadays.
454.
▲
by
vips7L
1y ago
Significant white space is a drastic syntax change.
455.
▲
by
vips7L
1y ago
Scala just seems to have an ever changing identity. Scala 3 drastically changed syntax and now they're trying to move the language from monads to effects.
456.
▲
by
vips7L
1y ago
God I hope so.
457.
▲
by
vips7L
1y ago
I don’t think I’ve ever worked in a codebase I’ve been excited about. I didn’t know those existed.
458.
▲
by
vips7L
1y ago
There are commits from over 6 years ago in there.
459.
▲
by
vips7L
1y ago
> So “Java” in practice is different from niche Java. This is an odd take, especially when in the discussion of Rust. In practice when talking about projects using Rust as an http server backend is non-existent in comparison. Does that m
460.
▲
by
vips7L
1y ago
I honestly doubt any of the frameworks in that benchmark are using virtual threads yet. The top one is still using vert.x which is an event loop on native platform threads.
461.
▲
by
vips7L
1y ago
I don’t think anything runs in a vm on iOS since they don’t let you JIT compile code. Unless they’re doing pure interpretation, but I can’t imagine that being good for performance.
462.
▲
by
vips7L
1y ago
The NASA space probes can’t plow into a minivan with a mom and her 2 kids inside. There’s an entire different risk level here.
463.
▲
by
vips7L
1y ago
If you haven’t used GitHub plugins in your ide to review you should really give it a try. It’s really night and day.
464.
▲
by
vips7L
1y ago
Do you not have to check the signature to see what a function can return when using Results? It’s off in another file too. > failing to make a clean distinction between recoverable errors and unrecoverable bugs Recoverability is context
465.
▲
by
vips7L
1y ago
All modern languages are adopting a checked error system: Rust, Swift, Kotlin, Zig, Gleam; they all have some type of error you must handle. The problem with Java is that they haven’t added the syntax to make dealing with those errors easy.
466.
▲
by
vips7L
1y ago
Checked errors aren’t universally ignored by developers. Rusts main error system is checked. Swift has really introduced checked typed throws. Kotlin is introducing checked error unions. Checked exceptions are the same thing.
467.
▲
by
vips7L
1y ago
Dagger is by far the worst UX experience for a DI framework. Really you should try anything else. For compile time DI like dagger you can try Avaje Inject: https://avaje.io/inject/
468.
▲
by
vips7L
1y ago
A better name would probably be CronScheduler or something else. “Service” is always overused and doesn’t actually describe or mean anything.
469.
▲
Money Talks: the deep ties between Twitter and Saudi Arabia
(theguardian.com)
4 points
by
vips7L
1y ago
|
0 comments
470.
▲
by
vips7L
1y ago
They are a good idea. Checked errors are so important for correctness. HN’s darling Rust exclusively uses checked errors.
471.
▲
by
vips7L
1y ago
It’s just too complex. They should have went with the internal modifier.
472.
▲
by
vips7L
1y ago
Fun! I remember reading OSTEP almost 10 years ago and implementing a lottery scheduler in xv6. It really showed me at the time that these projects that seem so large and complex are really just code. https://pages.cs.wisc.edu
473.
▲
by
vips7L
1y ago
The issue is the ecosystem and standard library. They still will be throwing unchecked exceptions everywhere
474.
▲
by
vips7L
1y ago
They're famously working on changing that. I think we're all hopeful that we'll start seeing the changes from Valhalla roll in post-25.
475.
▲
by
vips7L
1y ago
For me, it will be if they ever get checked errors of some sort. I don’t want to use a language with unchecked exceptions flying about everywhere. This isn't saying I want checked exceptions either, but I think if they get proper union
476.
▲
by
vips7L
1y ago
It’s poorly worded. Graal and NI aren’t going anywhere. The wording is this: “Native Image, is being discontinued for Java SE Product customers" That means that it will no longer be included as a product for the OracleJdk that you woul
477.
▲
by
vips7L
1y ago
This was discussed over on /r/java when it came out. The tl;dr is that it’s a poorly worded blog post about the OracleJdk (the one you pay and subscribe to). Graal isn’t going anywhere. https://www.reddit.com/r
478.
▲
by
vips7L
1y ago
> Whereas pointing Mypy to a standard Python codebase will type hints that conform to the language spec will do something for you, as null safety is not tacked on but baked in for python type hints. That is if you wrote your code base wi
479.
▲
by
vips7L
1y ago
I like where Scala 3 is headed (finally). Martin seems to realize that the simpler "direct" programming model is better and that will make the language more attractive to regular people who aren't FP purists. Though it does f
480.
▲
by
vips7L
1y ago
A lot are, but there is an equal amount that are of modern versions. It’s a big landscape of employers. I’ve already begun moving my team to Java 25 from 21.
More ›