Better HN
topnewbestaskshowjobs
Log inSign up

wscp-dev

184 karma · joined Sep 14, 2023 (3y ago) · 26 submissions

A Rustacean, JVM and dev tooling enthusiast. Ardent weeb.
Submissions

comment 3y ago · link · parent

thank you for giving it a read!

comment 3y ago · link · parent

I do believe that number will go down in the coming releases; things like valhalla will allow us to pack data representations much more efficiently after all. the only things that really benefit from object identity are behaviors, not data.

comment 3y ago · link · parent

did that to make it a bit clearer what I was really optimistic about, but I unfortunately can't edit the hn post itself.

comment 3y ago · link · parent

it's a matter of standardisation again. Java's standard is like C++; ponderous. The record pattern jep indicates in final footnotes that something like unapply may be in the works, so all hope is not lost.

comment 3y ago · link · parent

I did title it that way at first but ended up changing it at the last second, ended up shunting it off course.

comment 3y ago · link · parent

Ahh, true. I need to find a way to add sorting by recent updates to my site.

comment 3y ago · link · parent

Ill add that in, somehow forgot about that golden bit of info

comment 3y ago · link · parent

With valhalla, we will have explicit nullability as well, so that problem will also be handled.

comment 3y ago · link · parent

That is true, but there are many who have discussed that. I wanted to bring some attention to the new syntactic changes Java brings that can help with implementing better logic.

comment 3y ago · link · parent

Not by that much... the problem is Java's build systems. Theyre what complicate and slow down java development 90% of the time.

comment 3y ago · link · parent

Oracle has definjtely done bad things; mismanagement of java is not one of them. They got a pile of crap and turned it into something competent.

comment 3y ago · link · parent

What a marvel of engineering.

comment 3y ago · link · parent

Id rather say use kotlin. It comes with a better type system with explicit nullable types, proper closures, and syntactic sugar to easily enavle beneficial programming patterns.

Nd it is very compatible with Java itself, interop is dead simple

comment 3y ago · link · parent

Java has in recent times actually removed some apis from the standard library, and made some inaccessible (undocumented internal apis especially) so any advanced frameworks that use them would have been affected.

comment 3y ago · link · parent

Yes/you/do/but/the/ide/does/it/for/you/so...

comment 3y ago · link · parent

Thatll probably come in about a year or so going by the pace of valhalla's completion.

comment 3y ago · link · parent

That is an extremely debatable topic. Which is why kotlin completely ignores checked exceptions.

Frankly, Id rather have a result and optional/nullable type like in rust/kotlin than deal with exceptions in any capacity.

18.

Java 21 makes me like Java again(wscp.dev ↗)

412 points · by wscp-dev · 3y ago · 742 comments

comment 3y ago · link · parent

I think the experience is better with more well designed languages like Kotlin, which can reduce boilerplate and allow you to focus on the handler and controller logic instead of boilerplate.

Regarding magic... I think it is a matter of pulling away the curtain; once you know how the DI works, it becomes drastically easier to write code with it, since you can predict its behaviour. I have always had trouble when I don't know all the rules of a system.

comment 3y ago · link · parent

well... My company was aiming to do codegen to fix errors. We took quite some time to figure out what to do with AI in our product. When we finally implemented something, we found apis like gpt4 to be quite expensive, though GPT4 did work well for the task. We later turned towards llama2 and codellama, which worked decently but had a higher "wrong output" rate.

And then they laid off 60% of the workforce (We were only 30 people)... I am not sure LLMs are going to affect their outlook very positively in the long term.

comment 3y ago · link · parent

it would depend on whether the frontend generates optimal LLVM IR for the given code. For example, if a language implemented multiplication through repeated addition (though I think LLVM may be able to optimise that itself), the result would be suboptimal to generating a single IR code for multiplication.

comment 3y ago · link · parent

hugo's nice.

comment 3y ago · link · parent

could you elaborate on your second point? As in, are there any specific ways you sort posts other than chronologically?

comment 3y ago · link · parent

I think that all came down to the fact that macs were popular with a certain demographic, and that demographic didn't include many programmers.

I think I will use shortcuts though, it seems like a nifty gui automation tool.

comment 3y ago · link · parent

Well, at least they aren't asking their users to give them per-download royalties yet...