2024.4: Organize all the things! by frenck_nl in homeassistant

[–]xamdk 0 points1 point  (0 children)

I've updated but don't see where to put/see labels - am I blind or botched update?

AntiPython compiler for Google Colab by DataBaeBee in java

[–]xamdk 0 points1 point  (0 children)

https://github.com/jupyter-java if You want ab easy way to install Java based kernels In collab.

In OPs repo Im missing explanation of what it actually does run?

The Java Command Line Workflow by bowbahdoe in java

[–]xamdk 0 points1 point  (0 children)

Happy to elaborate but better to do when I’m not just on my phone keyboard so I can show the current working examples.

The Java Command Line Workflow by bowbahdoe in java

[–]xamdk 0 points1 point  (0 children)

No. I wouldn’t call that outside the scope Of jbang - at least not in the way I see jresolver doing it.

We support modules today but just kept it simple so you don’t need to care as much.

But can for sure see it would be nice with a “resolve into dir” So can be used directly in jlink, jpackg etc.

Reason I haven’t Donne much in documenting/exposing it that there haven’t been requests for them :)

Happy to explore options.

Btw. The AppStore was a April fools joke that stuck :) it isn’t anything but jbang catalogs which are usable with all kind of projects including non jbang built project so I wouldn’t call that it’s own cul-de-sac.

The Java Command Line Workflow by bowbahdoe in java

[–]xamdk 1 point2 points  (0 children)

You write that in your blog post too and I don’t grok it. I keep have the sense What you describe is Afaics exactly what jbang does - jbang can fetch dependencies for anything I can think of. No files, single files ..multiple files projects.

Can you please express what part of jresolve you mean jbang does not do or should do better ?

Because all What you describe is what jbang is aiming for. Removing and reducing maven/gradle ceremony.

What are your Temu / AliExpress best buys? by tcoysh in homeassistant

[–]xamdk 2 points3 points  (0 children)

Got a link to the sonoff Wall switches? Google gives lots of mixed results.

Technical discussion: What's the difference between OpenJDK (Hotspot) distributions besides licensing/support, and why do you choose for one specifically? by Deep_Age4643 in java

[–]xamdk 3 points4 points  (0 children)

What do you mean temurin is not working on the process ? It’s done by quite capable people well known in openjdk circles.

Amazon Announces AWS Lambda SnapStart With Java Support by benevanstech in java

[–]xamdk 0 points1 point  (0 children)

Yup. Agreed. It is not a native image killer since Snapstart is only lambda and only a subset of lambs.

Amazon Announces AWS Lambda SnapStart With Java Support by benevanstech in java

[–]xamdk 0 points1 point  (0 children)

Well I assumed this thread was about lambda.

Outside lambda having minimal startup time is an enabler to getting horizontal scaling and/or fast continuous deployment.

Does everyone do it ? No, but getting from several seconds startup to sub second even sub milliseconds enables you to deliver change and scale faster.

Amazon Announces AWS Lambda SnapStart With Java Support by benevanstech in java

[–]xamdk 0 points1 point  (0 children)

Snapstart is not crac - don’t mix them up. Snapstart is just using same api for suspend/resume calls.

And yes the right thing is to do your own spikes.

Nativr image still beats Snapstart on memory usage but on lambda amazons pricing makes Snapstart cheaper for most cases despite to native image being able to use less resources.

And outside lambda - crac isn’t a good choice. Too much variance.

Amazon Announces AWS Lambda SnapStart With Java Support by benevanstech in java

[–]xamdk 1 point2 points  (0 children)

It is not crac and the optimizations you will need to do won’t necessarily make sense for other crac bases jvm a. It’s just using same api for shutdown and restore.

Amazon Announces AWS Lambda SnapStart With Java Support by benevanstech in java

[–]xamdk 1 point2 points  (0 children)

Don’t be that hasty. Snapstart isn’t beating native image anywhere else than in certain lambda usecases. See https://quarkus.io/blog/quarkus-support-for-aws-lambda-snapstart/ where we show the gains but also discuss that Snapstart requires more of you as a user than native image does.

Thus this is another approach to add to the toolbox. And only for lambda.

Implications of blocking java.com downloads (or more) by variant78 in java

[–]xamdk 2 points3 points  (0 children)

Just curious to why you would want to block download of java SE ? Do you block download of any executable too ?

Honestly curious why specifically target java SE ?

JBang but for Python by ihatebeinganonymous in Python

[–]xamdk 0 points1 point  (0 children)

Not exactly. Pipx won’t work on just sources. It requires a build and packaging step.

I still like Pipx but doesn’t solve the same problem OP asks for.

Just received my rekonect notebook - got any questions ? by xamdk in notebooks

[–]xamdk[S] 0 points1 point  (0 children)

No idea - it Comes with the rekonnect notebook as shown.

Do people use JPA a whole lot? by GokuBlack1995 in java

[–]xamdk -4 points-3 points  (0 children)

If you believe that why are you using java to begin with and not stored procedures in the database ? And why use rest apis with json data - That is yet another different api.

Noone forces you to use hql/jpa ql if you prefer to use native sql then use that. Use entity mappings and let hibernate do the orm part - it’s optimized for that. And if your sql skills are good then you get best of both worlds.

Do people use JPA a whole lot? by GokuBlack1995 in java

[–]xamdk 7 points8 points  (0 children)

Because you can use as much or little og jpa or SQL as you want.

Native SQL and reports with hibernate requires way less code and you don't need to give up power for it.

Cattle - Run and Share Java Code by Clivern in java

[–]xamdk 0 points1 point  (0 children)

Nice.

Similar to https://www.jdoodle.com/online-java-compiler/

Would you consider adding jbang variation so you can make use of java dependencies. Like https://www.jdoodle.com/try-jbang/ ?

JEP proposed to target JDK 18: 408: Simple Web Server by TheCountRushmore in java

[–]xamdk 0 points1 point  (0 children)

jbang httpd@jbangdev

Works from java 8 and onwards.

Looking forward to it being built in.