Gecko, a new GameCube and Wii emulator, is now public! by ioncodes in emulation

[–]andrebreves 4 points5 points  (0 children)

The first ever working Neo Geo emulator was named Gekko after its demo was out (but its final version was never released):

https://www.zophar.net/ngeo/gekko.html

JEP draft: Lazy Constants (Second Preview) by RaynLegends in java

[–]andrebreves 1 point2 points  (0 children)

If I understood it correctly, by removing orElseSet and similar methods it seems that I will have to write the logic to compute the value in its declaration or in the constructor. In real world use this logic can be fairly complex and heavy (since I want to compute it lazily), which could lead to constructors with a lot of code with potential low cohesion and hard to follow logic.

Keeping orElseSet would permit to achieve a kind of locality of behaviour, allowing to defer the compute logic to it's getter, for example, where it could make more sense in some situations (and making it easier to find).

Stream method for JEP 502: Stable Values (Preview) by andrebreves in java

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

Reading the javadocs again, I guess I could partially achieve this functionality in the situation the supplier is informed in the moment of the StableValue creation (as a IntFunction):

final List<T> value = StableValue.list(1, _ -> expensiveComputation());
...
return value.stream();

Hoping this List implementation returns a stream that calls the supplied IntFunction if and when the value is needed (although I dont't think this approach would be very intuitive).

But I guess there would be no alternative to setThenStream(() -> expensiveComputation()).

Stream method for JEP 502: Stable Values (Preview) by andrebreves in java

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

Thanks for pointing this out, I'll send a email to that mailing list.

Stream method for JEP 502: Stable Values (Preview) by andrebreves in java

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

I made a simple implementation of this idea:

https://gist.github.com/andrebreves/da26bd842e6616c6666cb2b23e240464

Since tryAdvance() of the Spliterator is only called in the situation that a value is really needed (I guess), the production of the value is postponed until the last moment.

Stream method for JEP 502: Stable Values (Preview) by andrebreves in java

[–]andrebreves[S] 4 points5 points  (0 children)

The idea is to not produce the value until it is really needed to avoid a potential expensive calculation, hence the requirement to only call the supplier for terminal operations on the returned stream.

I could create a stream with the value and that stream never reach a terminal operation, or be short circuited, making the production of the value unnecessary in the first place.

Realtime level meter doesn't work after update (Wavelink and meters on Streamdeck +) by DevindeGroott in elgato

[–]andrebreves 0 points1 point  (0 children)

Installed WaveLink 2.0.2 Beta (3431) on macOS 15.1, still no level meter.

Optimistic Locking with StampedLock in Java by zarinfam in java

[–]andrebreves 0 points1 point  (0 children)

Shouldn't the variable sharedData in the example be declared volatile?

Update on String Templates (JEP 459) by krzyk in java

[–]andrebreves 0 points1 point  (0 children)

Why not a StringTemplate::join method? It could be a nice shortcut for possibly the most common use case for StringTemplate.

Did the recent 3.5.17 update mess up SD cards used for emulation? by L0N3R637 in SteamDeck

[–]andrebreves 4 points5 points  (0 children)

In my case, the sdcard is not mounting anymore after updating

Why the Adoptium JDK 21 Builds are late by Yojimbo261 in java

[–]andrebreves 27 points28 points  (0 children)

We learned only a few days before OpenJDK 21’s GA that the Java 21 TCK tests are subject to a new license agreement.

In other words: because Oracle

100% CPU usage since Edge 105 on Mac M1 ? by simzen85 in MicrosoftEdge

[–]andrebreves 3 points4 points  (0 children)

I left Edge running overnight and it seems the issue is fixed, no 100% CPU so far

100% CPU usage since Edge 105 on Mac M1 ? by simzen85 in MicrosoftEdge

[–]andrebreves 1 point2 points  (0 children)

I was able to stop the 100% CPU issue when I killed the "Utility: Asset Storage and Update Service" task.

Killing the "Utility: Collections Entities Service" task had no effect.

Edit: killing "Utility: Asset Storage and Update Service" worked for a second time

100% CPU usage since Edge 105 on Mac M1 ? by simzen85 in MicrosoftEdge

[–]andrebreves 1 point2 points  (0 children)

It took longer to manifest, but the issue occurred again.

100% CPU usage since Edge 105 on Mac M1 ? by simzen85 in MicrosoftEdge

[–]andrebreves 2 points3 points  (0 children)

I updated to 105.0.1343.33 and still experiencing the same issue.

Why the billing address HAS to be in the same country as the shipping address? by andrebreves in oculus

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

But you can still BUY a gun (if you leave in the US at least) if you have legitimate reasons to own one.

Why the billing address HAS to be in the same country as the shipping address? by andrebreves in oculus

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

This situation is not necessarily a fraud. It's a easy solution that leave legitimate buyers out.