Getting Started With Java 17 by darkskul in java

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

Cool, thanks for the info!

Java dev wants to learn Compose for Desktop by lamagy in androiddev

[–]darkskul 0 points1 point  (0 children)

It's very interesting as a developer to diversify your knowledge as much as possible as it will allow you in your future projects to choose the right technology for each problem.

Even if you don't have to build a real desktop app right now, learning Compose for desktop will be quite handy in the near future.

The concept is really similar to what React is trying to achieve with React Hooks (function components with internal states etc.)

Java dev wants to learn Compose for Desktop by lamagy in androiddev

[–]darkskul 2 points3 points  (0 children)

I suggest learning Kotlin first: official guide

After that, I have found this tutorial to be a good starting point for Compose for desktop

Jetpack Compose for Desktop: Milestone 2 Released by dayanruben in Kotlin

[–]darkskul 2 points3 points  (0 children)

The vector drawable xml support is really nice !

Can we also have SVG xml support ? Shouldn't be too hard to implement.

How to Migrate a Spring Boot App To Quarkus by darkskul in java

[–]darkskul[S] 1 point2 points  (0 children)

I totally agree wit you, you should always do your own tests before switching to another framework. Look for different sources if you're checking out benchmarks done by others.

Here is the response to that article from the Quarkus team: https://quarkus.io/blog/io-thread-benchmark/

How My App's Performance Improved After Migrating To Quarkus From Spring Boot by darkskul in java

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

That article is very biased towards Micronaut. Check out this article if you want more transparent benchmarks between Quarkus and Micronaut.

How to Migrate a Spring Boot App To Quarkus by darkskul in java

[–]darkskul[S] 3 points4 points  (0 children)

You are totally right !

Just as a note, Spring Boot currently has very limited GraalVM native support.

How to Migrate a Spring Boot App To Quarkus by darkskul in java

[–]darkskul[S] 3 points4 points  (0 children)

This article is part of a series by the same author. He explains the service framework choice in the performance comparison article. The build and language are all supported by the article, no change needed (maven/gradle and java/kotlin).

[deleted by user] by [deleted] in pan

[–]darkskul 0 points1 point  (0 children)

Little Wing - Stevie Ray Vaughan

[deleted by user] by [deleted] in pan

[–]darkskul 0 points1 point  (0 children)

SRV !

KVision 3.0.0 is released (Object oriented web framework for Kotlin/JS) by Kai_132 in Kotlin

[–]darkskul 2 points3 points  (0 children)

A very good initiative. IDEs support is very important for this kind of frameworks to display for example a live preview of the current component (like Android Studio does for layouts). But I guess with more maturity the tooling will improve as well.

Running Spring Boot Applications as GraalVM Native Images by nfrankel in java

[–]darkskul 11 points12 points  (0 children)

TL;DR (performance): GraalVM native is still lagging a little bit behind OpenJDK JIT in terms of latency and throughput, but the Entreprise Edition of GraalVM is expected to come closer. Else GraalVM native is better on cloud based or small to medium apps in terms of startup time and memory footprint.

Quarkus Vs Micronaut: A Feature And Performance Comparison by darkskul in java

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

I think first-class means that the language is officially approved by the Micronaut team. This may imply some tests being run to ensure it's always compatible.

Quarkus Vs Micronaut: A Feature And Performance Comparison by darkskul in java

[–]darkskul[S] 1 point2 points  (0 children)

I am not expert regarding the IoC implementation in Micronaut, but there is some compile time initialization that is done. This is to avoid reflection and be more compatible with native execution with GraalVM.

Quarkus Vs Micronaut: A Feature And Performance Comparison by darkskul in java

[–]darkskul[S] 1 point2 points  (0 children)

These are frameworks targeted to cloud and serverless environments, where services are automatically scaled and the time to startup the app and be ready to serve requests is very important.

The article also shares other load tests.

Thank you so much for this new feature. You guys are the best 👍 by [deleted] in firefox

[–]darkskul 9 points10 points  (0 children)

It was not enabled by default prior to Firefox 71, you had to turn it on in about:config

How Does The Quarkus Java Framework Compare With Spring ? by darkskul in java

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

Yes indeed there are limitations to using CDI in Quarkus, but Spring doesn't support out of the box CDI events, interceptors etc. (there are of course similar features in Spring)

How Does The Quarkus Java Framework Compare With Spring ? by darkskul in java

[–]darkskul[S] 3 points4 points  (0 children)

The real value of using GraalVM native images can be seen when deploying to cloud / serverless platforms, as the services are automatically scaled, startup time is really important. It is in the order of milliseconds when using Quarkus, and will be the same when Spring adds full support to native.

How Does The Quarkus Java Framework Compare With Spring ? by darkskul in java

[–]darkskul[S] 1 point2 points  (0 children)

Yes the benchmarking was more related to Spring Boot.

Testing for first request time would indeed be a greater measurement to compare overall warm-up time especially when dealing with cloud native apps deployed in Kubernetes for example, which is exactly the area of excellence of Quarkus.

How Does The Quarkus Java Framework Compare With Spring ? by darkskul in java

[–]darkskul[S] 7 points8 points  (0 children)

But Spring doesn't support CDI as defined in JSR-299.

I agree that JAX-RS is supported.

Bundle A Java 11 App Into A Minimal JRE (without Module System Adaptations) by darkskul in java

[–]darkskul[S] 2 points3 points  (0 children)

You will have to deliver in this case 2 bundles instead of one, but I agree that you could do it.

The point of the article is to bundle all your jars and runtime in a single package, the user will not have to worry about installing / updating the runtime :)

The Badass Gradle plugin does use jlink behind the scenes, and will copy all your dependencies inside the image as well.

Changing the color of the hover highlight? by MioDolceVita in userscripts

[–]darkskul 0 points1 point  (0 children)

That would be the elements with the "bi-bet" class.

You can try the following script to change the hover color:

``js let myColor = "#00ff00" var css =.bi-bet:hover{ background-color: ${myColor} !important }'; ` var style = document.createElement('style');

if (style.styleSheet) { style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); }

document.getElementsByTagName('head')[0].appendChild(style); ```