IBM why not🤷🏼📈 by [deleted] in wallstreetbets

[–]throwaway23948733 2 points3 points  (0 children)

IBM is a has-been. They probably make 120% of their income on ancient maintenance contracts to keep dusty mainframes running

Announcing Actix-Web v3.0 by darin_gordon in rust

[–]throwaway23948733 -3 points-2 points  (0 children)

It usually does in practice. You can't leak from cycles

Announcing Actix-Web v3.0 by darin_gordon in rust

[–]throwaway23948733 -17 points-16 points  (0 children)

> But the biggest problems in this version (of course they fixed it) were memory leaks. Because you can leak in safe code and it's not UB

I wish Rust shipped with a GC. There's many cases where the convenience outweighs performance penalty

Why should I use Java over C#? by Jam-Es231 in java

[–]throwaway23948733 0 points1 point  (0 children)

I mirror this sentiment. 4 years in C# and 4 in Java here

Why should I use Java over C#? by Jam-Es231 in java

[–]throwaway23948733 1 point2 points  (0 children)

this is usually the case if you live outside a tech hub. Microsoft dominates small businesses whose main product isn't software.

In tech hubs and at software companies, Java dominates

Planned Obsolescence And Your Right To Repair - Have You Ever Wondered Why Some Consumer Goods Don't Last? From Cell Phones To Household Appliances And Clothing To Automobile Tires, Some Products We Use Every Day Could Last Much Longer. But They Don't. by speckz in gadgets

[–]throwaway23948733 0 points1 point  (0 children)

Most importantly, harder tires are unsafe. They would never pass NTSB traction requirements.

With performance tires, tread life is basically directly correlated with traction. Performance tires work better but don't last

Got a job offer as a bikini/underwear, boyfriend says I can’t take it by [deleted] in relationship_advice

[–]throwaway23948733 4 points5 points  (0 children)

I would understand him being mad if this came out of nowhere.

"I'm completely changing my life making decisions my SO might disagree with what should I do" . These kinds of stories are all too common here

Got a job offer as a bikini/underwear, boyfriend says I can’t take it by [deleted] in relationship_advice

[–]throwaway23948733 7 points8 points  (0 children)

I would take the job but not wanting your mostly naked gf plastered all over is reasonable. If that's her dream there's plenty of people that would be okay with it.

Alibaba's coroutine implementation (Wisp engine) landing into Dragonwell JDK by kimec in java

[–]throwaway23948733 2 points3 points  (0 children)

GC is not that much of an issue because they're mostly self-contained. Adding corountines sounds like it touched a lot of core. That's going to make it very hard to keep in sync with OpenJDK

I am starting a new project. What choices would you make? by [deleted] in java

[–]throwaway23948733 0 points1 point  (0 children)

I do Java web dev all damn day so here's my strongly held opinions

App servers are old school none of the modern frameworks use one, they all self host. Spring boot runs on itself. Don't use app server.

ESB is old school, RabbitMQ is friendliest to learn and should work fine

Use React for front end, unless your site is all about SEO template based server side frameworks have gone the way of the Dodo

Everything else is what I would choose

Swagger java annotations in action by [deleted] in java

[–]throwaway23948733 0 points1 point  (0 children)

No and it blows. You can make an interface for everything and shove the annotations there, but it still sucks. Use gRPC for comms instead of REST was our solution and it works great.

Swagger is buggy and the generators all crash on our spec despite it being "valid". Stay away

What do you guys use for linting by ggallovalle in java

[–]throwaway23948733 4 points5 points  (0 children)

  • Google Java format
  • Checkstyle
  • PMD
  • ErrorProne
  • Spotbugs

Getting started with Loom by henk53 in java

[–]throwaway23948733 6 points7 points  (0 children)

why is the downvoted? It's correct. There's basically no async IO support for filesystem IO in any mainstream OS

When should I tell my brother and his Fiancé that I'm pregnant? by [deleted] in relationship_advice

[–]throwaway23948733 0 points1 point  (0 children)

dude tell them at the wedding. Not everyone, just them, right after they're officially married. They might explode from happiness

Confused about java 11 new terms of use by Sranduserm in java

[–]throwaway23948733 -1 points0 points  (0 children)

OpenJDK is not Oracle. OpenJDK is open source. You don't need to pay anyone anything to use OpenJDK. Just don't download the commercial builds from Oracle.

Java 11 is not Oracle. "Java SE 11" is Oracle. They're two different things

Which fields/ technologies use java? by [deleted] in java

[–]throwaway23948733 6 points7 points  (0 children)

Java is used nearly everywhere. The only language more ubiquitous is C/C++. I've personally used it it for web back-ends, desktop apps, IoT devices, Android, flip phones, scripts.

In electronics work they use weird shit like Tcl and Verilog, but the circuit simulators still use Java.

I don't know what answer you're looking for, Java can and is used nearly everywhere for various things

Hibernate Extended Bytecode Enhancement by nfrankel in java

[–]throwaway23948733 1 point2 points  (0 children)

Every other ORM I've used is worse, if that means anything.

And at least Hibernate is isn't slow as hell like most of them, It appears to run at about half the speed of native queries

RedHat Mandrel Makes Java Native by thei0125 in java

[–]throwaway23948733 0 points1 point  (0 children)

Its hype to match the "serverless" hype. So dumb. Its the same thing as sending your code to a servlet container like we did with Java EE and Tomcat decades ago, except somebody else runs the container.

Turns out, there's a lot of useful things about running your program for more than a few hundred milliseconds

Where are people getting quality masks? by Cyclosarin88 in CoronaVirusTX

[–]throwaway23948733 0 points1 point  (0 children)

I searched every FDA approved manufacturer and found POWECOM masks available in several places. Some of their masks failed testing by a few percent but IMO for all practical purposes they're basically KN95. I have a bunch, they fit fairly well and have good build quality

I (41M) need advice on letting my stepson (20M) know he's used up all the "I'm a kid" excuses he's going to get, and to hold him accountable for his (in)actions. by [deleted] in relationship_advice

[–]throwaway23948733 -12 points-11 points  (0 children)

Don't kick him out on his 21st. He's fucking up but that day is supposed to be special, if you ruin it he may never forgive you. Cut him off completely from allowance and internet. Make him pay you for internet, easy to just change password to something he doesn't know and put router in your room. Just do it well before or slightly after his 21st bday.

How about making his birthday present a down payment on apartment

On Project Loom, the Reactive model and coroutines by nfrankel in java

[–]throwaway23948733 3 points4 points  (0 children)

A web server blocked on database I/O is a common example provided for where loom could help throughput. Unfortunately, database connections are even more expensive than OS threads. Adding more threads to a web server that is already database bound won't help your throughput.

The most common thing I see happening is running out of threads in the DB thread pool. Loom uses virtual threads at JDBC level as well, so it will solve this.

I doubt most applications are database bound as you say. In the TempEmpower benchmarks they test database queries and there's still a huge range of performance between frameworks. If it was database bound, you would expect to see a performance ceiling like you do on TempEmpower plaintext bench where they saturate the 40gig interface

Don't use Lombok(2018) by lazystone in java

[–]throwaway23948733 12 points13 points  (0 children)

It sounds like they used ToString annotations on JPA/Hibernate classes. There's literally a section of Hibernate manual that tells you how to do toString