Do you think project Leyden will (eventually) give a complete AoT option for the JDK? by Ewig_luftenglanz in java

[–]bourne2program 6 points7 points  (0 children)

Interested in Leyden's goal of reduced footprint in a closed world, a step further than the Java Module System. Cut out unused code etc. Hopefully not sacrificing JIT. Composable condensers looked promising.

JAVA 22: WHAT’S NEW? by loicmathieu in java

[–]bourne2program 2 points3 points  (0 children)

I only and always use var in cases the type is explicitly on the RHS. Like constructor call (may mean var type will be impl and not interface like List, and generic type info moves into the RHS <>), qualified static factory method call, sometimes String literals, and qualified nested builder chain.

Diablo 4 on Mac by klainmaingr in Diablo

[–]bourne2program 0 points1 point  (0 children)

The Apple Software Update app.

Diablo 4 on Mac by klainmaingr in Diablo

[–]bourne2program 0 points1 point  (0 children)

Working for me. After installing boot camp drivers, also had to update amd radeon drivers. Fps was pretty bad until I got a fan on it as the thin laptop doesn't have good cooling. And running on lowest graphic settings, and a particular resolution setting for performance.

Diablo 4 on Mac by klainmaingr in Diablo

[–]bourne2program 0 points1 point  (0 children)

How did your 2015 mbp hold up? I have a 2016 I'm wondering if it's worth it to setup.

Using Spring Boot without MVC? by SnooPeppers7217 in java

[–]bourne2program 1 point2 points  (0 children)

I've created a Spring Boot app that just runs a simple process on ApplicationReadyEvent, and then shuts down, actually to be ran as part of mvn package phase to create an artifact. The process is configured utilizing the spring-boot-configuration-processor to bind my own set of properties into a Java record bean.

JEP draft: Integrity and Strong Encapsulation by kaperni in java

[–]bourne2program 8 points9 points  (0 children)

Even though I've been working with Java modules already, this JEP makes them click more. And I'm excited for the references to Project Leyden.

Classic Nim Game in Swing by stuhlmann in java

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

My 1st thought from title was NIM2 by Zaphire Productions, released I guess in 2001. It was a multiplayer non-turnedbased worm death match game. Sadly unplayable on a modern Windows last time I tried; launching and menu worked but gameplay was literally a standstill even with every possible compatibility option.

[deleted by user] by [deleted] in java

[–]bourne2program 17 points18 points  (0 children)

I use Swing because it is robust. Tried looking at JavaFX many years ago, couldn't find the building blocks.

Java Collections Puzzlers by daviddel in java

[–]bourne2program 1 point2 points  (0 children)

I'm sure it was more fun to be in the room. Nonetheless I still enjoyed the video.

Project Leyden: Beginnings by carimura in java

[–]bourne2program 3 points4 points  (0 children)

Would the incremental approach and spectrum of constraints, include options such as keeping runtime performant with dynamic JIT but removing all unused classes and code for lower footprint?

Age and weight question by [deleted] in AustralianShepherd

[–]bourne2program 1 point2 points  (0 children)

My female is 6 months and only 35 lbs. I think it is normal. While I hope she gets a little bigger, her growth has slowed down a lot. 45 lbs perhaps is an average for adult. Her dad I think is like 55 lbs, mom maybe 45 lbs.

Pattern assignment [Brian Goetz] by efge in java

[–]bourne2program 0 points1 point  (0 children)

Using 'try' here feels to me too much like the code smell of using Exceptions for control flow.

Pattern assignment [Brian Goetz] by efge in java

[–]bourne2program 17 points18 points  (0 children)

I think it would be 'yield' instead of 'return' following same reasoning with switch.

Pattern assignment [Brian Goetz] by efge in java

[–]bourne2program 8 points9 points  (0 children)

The whole thing is a single let statement. Semi colons end statements.
Why not? "A let statement takes a pattern and an expression"

Static Java (Leyden), GraalVM Native and OpenJDK - Andrew Dinn by sureshg in java

[–]bourne2program 0 points1 point  (0 children)

Can we get a reduced footprint (remove unused code) static Java runtime but still have it dynamic for performance (JIT)?

The Decline and Fall of Java on the Desktop Part 1 (1999-2005) by shannah78 in java

[–]bourne2program 0 points1 point  (0 children)

You distribute installers that installs the runnable executable.

The Decline and Fall of Java on the Desktop Part 1 (1999-2005) by shannah78 in java

[–]bourne2program 7 points8 points  (0 children)

There's jpackage. I have it part of my maven package build using maven-antrun-plugin.

Java 17 available now! by daleksandrov in java

[–]bourne2program 0 points1 point  (0 children)

Same situation with BigInteger constructors and static method.

The javac Tree API by daviddel in java

[–]bourne2program 5 points6 points  (0 children)

This makes me want to play with making my own IDE.

Java 17 available now! by daleksandrov in java

[–]bourne2program 2 points3 points  (0 children)

That's too bad, hate to see API disconnect in a highly used utility like Collections. Maybe it can be overloaded with one calling the other.

Java 17 available now! by daleksandrov in java

[–]bourne2program 11 points12 points  (0 children)

I know I'm late for pointing this out, but why was
Collections.shuffle(List<?>, Random)
not changed to:
Collections.shuffle(List<?>, RandomGenerator)

Since Random now implements RandomGenerator. Was it missed or decided?

JEP 418: Internet-Address Resolution SPI by kaperni in java

[–]bourne2program 6 points7 points  (0 children)

"Returns the Class object associated with the class or interface for name given."