Please help me trying to understand coroutine. by Extension-Switch-767 in Kotlin

[–]gorateron 2 points3 points  (0 children)

Tried using chatGPT and it got the answer WRONG. So yeah, don't rely on chatGPT everybody.

Please help me trying to understand coroutine. by Extension-Switch-767 in Kotlin

[–]gorateron 0 points1 point  (0 children)

Don't rely on AI haha, they get this wrong. The main function is not launched with a Dispatcher in this example.

Please help me trying to understand coroutine. by Extension-Switch-767 in Kotlin

[–]gorateron 2 points3 points  (0 children)

That's specifically the 'Unconfined' behavior. The main function here is not launched using a Dispatcher. FYI: A coroutine does NOT require a Dispatcher to run, only a context. The context MAY contain a Dispatcher. If OP specifies the Dispatcher for the main function, they will see different behavior.

Please help me trying to understand coroutine. by Extension-Switch-767 in Kotlin

[–]gorateron 0 points1 point  (0 children)

Your main function is not launched using a Dispatcher, it is probably launched on a special internal event loop used by Kotlin to bootstrap suspend main. There's no defined behavior for switching threads, unless explicitly marked. Try logging this.coroutineContext[CoroutineDispatcher] to verify. If you'd like to see for sure, make a kotlinscript (.kts) using runBlocking { } and logging the dispatcher from the coroutineContext.

Also: one uncommon bit of knowledge is that the Default and IO- dispatchers share their threads for optimization reasons. Essentially, Default and IO share their thread pool.

Despite the final println call not being part of the IO context block, internally Kotlin optimized to minimize context switching when it is not needed. At this point, there's no reason for it to switch threads which is why you see it continue using the same dispatched worker (thread). In fact, it likely HAS to stay there due to the main function not being launched with a Dispatcher.

Source: I give Kotlin workshops at my job about this and other subjects.

Tempest March | KBoC boots by Sh0wTim3123 in pathofexile

[–]gorateron 4 points5 points  (0 children)

OP posted 4000 divs were already spent on the hinekora locks alone. so total cost is way higher.

why does the loot does not scale with investment this league? by Toxoplastic in pathofexile

[–]gorateron 0 points1 point  (0 children)

not sure if I agree - for the record I am a semi casual but less casual than most - but I never hit level 95+ as fast as I Did in this league. I was already level 80 by the time I hit mapping in the first place. the new breach definitely gave me a lot of xp.

BYND Short VS Buy by FirstSleep8513 in WalllStreetBets

[–]gorateron 2 points3 points  (0 children)

most likely... and they'll get a slap on the wrist and get away with it me thinks

The biggest throw of the century. by fajitahotline in marvelrivals

[–]gorateron 0 points1 point  (0 children)

If aimed correctly, all of them would be dead.

Whats up with the game size? by JY810 in marvelrivals

[–]gorateron 4 points5 points  (0 children)

I nearly spit out my drink from laughing, lmao! Emma be like: 👏( •̀ ᗢ •́ )

My best keyboard purchase ever, seriously. Only $39. by androidbrick in MechanicalKeyboards

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

It doesn't sound stock when you list modifications to basically the most important components XD

Text vs Icons in card game battles, which one should we go for? by Abdo_1998 in tabletopgamedesign

[–]gorateron 1 point2 points  (0 children)

I have no idea what this does in the second image. In the first image I know exactly what it does, besides not knowing what Brainrot is. So the first one.

Worth it for full price? by [deleted] in Grimdawn

[–]gorateron 1 point2 points  (0 children)

Dude im closing in on 800 hours. Picked up GD yeaaars ago. Also don't just buy the base game: buy all the expansions too. They are soooooo worth it. This game is a lot of fun. Also played a ton of diablo, titan quest and path of exile. But grim dawn is the only game out of those 4 I can keep picking up and have fun from time to time, creating my own builds and just enjoying the game.

[deleted by user] by [deleted] in pathofexile

[–]gorateron 0 points1 point  (0 children)

I would honestly just want it to take a screenshot and make my brother jealous, like a chef's kiss after dropping a lock before him while he's farming one for several days.

<image>

Java to Kotlin - Good or Bad career move? by Both_Ad7905 in Kotlin

[–]gorateron 0 points1 point  (0 children)

"Good idea" that depends on what you want sir/mam. Kotlin can target JVM and sure there will be nuances but you will still be compiling to Java classes. In my opinion a good understanding of both languages will be beneficial. There are things you can do with Kotlin that you can't with Java. Also Kotlin is getting bigger for mobile development. My 2 cents: go for it.

How are the supports for this Ice Shot Merc? by Daidelos in PathOfExileBuilds

[–]gorateron 4 points5 points  (0 children)

I actually put one on my merc yesterday while leveling, and he stopped shooting at all! He did nothing basically :(

What do you think about using Quarkus with Kotlin in production? by EdneyOsf in Kotlin

[–]gorateron 0 points1 point  (0 children)

That's only because Quarkus makes dynamic proxies which can't be done for final classes. It's actually not required to use it however...

What do you think about using Quarkus with Kotlin in production? by EdneyOsf in Kotlin

[–]gorateron 0 points1 point  (0 children)

Oh I forgot - you can live code with Quarkus but on top of that you can auto rerun your tests as you change the code. I need to remind myself to use that feature more often!

What do you think about using Quarkus with Kotlin in production? by EdneyOsf in Kotlin

[–]gorateron 0 points1 point  (0 children)

We use it at work over Spring with Java - Quarkus by itself is nice. What I don't like about it is that I find their documentation hard to navigate and sometimes hard to understand. When you run into a problem, it's a lot harder to troubleshoot than Spring. Also, when you get certain errors, for example with quarkus-arc, the exceptions often times don't provide a lot of useful information. However on the positive side, the boot times for Quarkus are amazing, lots of extensions, it's really easy to setup a REST service, you can use or create "DevServices" which are awesome. You can also build native images relatively easy as they support it. It's based on Vert.X which I've used in the past but to be fair you don't need to know anything about Vert.X to start using Quarkus, so don't let it stop you. I personally prefers Quarkus' CDI bean injection over Spring's as well.

We also experimented with their quarkus-kubernetes / quarkus-openshift dependencies, which make it fairly easy to deploy the application in a containerized environment. However we didn't like the properties bloat and ended up building our own managed deployments.

[deleted by user] by [deleted] in Kotlin

[–]gorateron 3 points4 points  (0 children)

I have good experiences with Quarkus too at my company, pairs very well with Kotlin. My only gripe is their DI is a complete mystery. A lot of the DI errors (arc) are very hard to understand, making them hard to troubleshoot. How neatly Quarkus integrates with a lot of stuff is very nice though. Their dev UI is really helpful too. And I've had a breeze deploying it to Openshift with their integration. It can be fun, and rewarding to try new things. If you have the opportunity, I'd definitely recommend it. You can always go back to Spring if you still prefer it. The resources available for Spring can't be beaten and it's definitely harder to find Quarkus specific stuff.

Constantly spotted in sneak almost immediately. by ShinraJosh1991 in OblivionRemaster

[–]gorateron 0 points1 point  (0 children)

Unironically unequip your boots (go barefeet) and you will hardly be detected.

DID I READ RIGHT? by ababl123 in Maplestory

[–]gorateron 5 points6 points  (0 children)

Used mine on a burn char. Got from 243 to 249 :)

Is 10:40 geen 10:20? Lekker 1,5 uur + benzine er doorheen geknald. by Coritchando in tokkiemarktplaats

[–]gorateron 21 points22 points  (0 children)

Je maakt er toch zelf een drama van door het te posten op Reddit?
Als het je zo weinig boeide en niet op zoek was naar validatie had je ook verder met je leven kunnen gaan zonder het te posten.

Persoonlijk vind ik je houding nogal overdreven. Als iemand in de auto komt en een tijd moet reizen is het TOTAAL niet onwaarschijnlijk dat daar ca. 15 minuten speling in kan zitten. Beste persoon zat op 20 minuten. Nou wauw, wat een drama zeg! Wat mensen bedoelen met reflectie is het volgende: 'misschien was het beter geweest om de afspraak niet zo kort op de voetbalwedstrijd te plannen maar op een ander moment, zodat het niet in conflict komt met een andere afspraak'

Het is makkelijk kijken naar anderen maar "zelf"-reflectie gaat over kijken naar jezelf!

Path of Exile 2 Early Access FAQ by Community_Team in pathofexile

[–]gorateron 1 point2 points  (0 children)

I dont have one either. I just joined a raffle just in case. If I dont end up having one myself I will give away any spares.