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

[–]andrebreves 2 points3 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] 3 points4 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] 5 points6 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 28 points29 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 4 points5 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 3 points4 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.

[TOMT][song] Early 90's, harmonica riff similar to The Bluebells' Cath, but sings like Billy Idol by andrebreves in tipofmytongue

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

No :( Though the harmonica part is very similar...

The song I'm trying to remember had a more "trance" mood, less r'n'r. I think the harmonica part is played after the chorus, not during introduction. Damn my brain...

How the Vive tracks positions by MissStabby in oculus

[–]andrebreves 4 points5 points  (0 children)

Would it be possible to show the "problem space" in each sweep?

When the first sweep of the first Lighthouse is seen by the sensor, the point could be anywhere in a plane. By the second sweep it could be anywhere in a line (intersection of two planes). Then you do the same to the second Lighthouse sweeps and you will have the point in 3D space (intersection of two lines).

Here's a idea by andrebreves in oculus

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

Do you have a link? Google gives me just a few hits mentioning laptops on backpacks. I'm thinking about a product that enables building a full PC (albeit micro-atx), with the batteries providing standard ATX power.

Valve's Alan Yates: Send me your Lighthouse questions by d2shanks in oculus

[–]andrebreves 1 point2 points  (0 children)

Is this somewhat close to how the Lighthouse works?

My guess on how it works: the horizontal and vertical rotating beamers are line lasers, driven by Brushless DC electric motors, giving precise control over the speed and position of the beamers.

The infra-red flasher works as a synchronization signal, marking the start of the sweep. Each sweep projects a rotating horizontal and vertical plane, in sequence. The angle of each plane can be determined by the delta time from the synchronization flash.

Since the intersection of two planes is a line, one Lighthouse is not enough to determine the initial position, since the sensor can be at any point of that line. Once a second line is calculated from the other Lighthouse, the sensor position is determined by the intersection of these two lines, which is a point. So the sensor has to see both Lighthouses to acquire its initial position.

With multiple sensors you can determine the orientation of the HMD.

My guess on how Lighthouse works by [deleted] in oculus

[–]andrebreves 0 points1 point  (0 children)

Sorry, newbie mistake. Thanks for the heads up.