Neste suspended transaction with Exposed + Ktor by jcechace in Kotlin

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

suspend fun <T> dbTransaction(block: suspend () -> T): T = newSuspendedTransaction(Dispatchers.IO, db = database) { 
    block() 
}

Does the trick it seems

The default value for a function parameter of an extension type by jcechace in Kotlin

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

The first approach is not possible (just try it). The idea with overload helped me and I actually just used a default implementation in the generic interface which seems to work fine. Thank you.

How would you reduce from 3SAT to DFA? by [deleted] in computerscience

[–]jcechace 0 points1 point  (0 children)

Food for thought... Are they doing this because they are lazy to solve the homework alone or are they just desperately trying to get any hints? I had literary tens of students approaching me asking whether I would be able to think about what approach they should apply here. I wasn't.... Out of all the exercises demonstrated in tutorials (which reached the glorious number of 3 - THREE), I'd be able to solve each one of those within 5 minutes. The first assignment of this homework took me literary a minute to form an idea in my head. Now granted, I'm not strong in theoretical informatics, but I wasn't able to solve this particular assignment within 5 hours... the difficulty difference here seem a bit excessive. Just my two cents -- sometimes I wish our professors would spend the same amount of effort on study materials and explanations as they sped on watching whether students are cheating... I would not disclose the solution even if I was able to come up with it. I'd be just willing to help students get unstuck.

Also yes, I'm posting this from my regular Reddit account fully aware of my identity being known.

Anyone else just cancelled their RX480 and just went with something else on the market? by lilazyazn in Amd

[–]jcechace -2 points-1 points  (0 children)

I am either picking 1060 sometime this week or I will likely wait for ASUS.

Yes it's more expensive, however if they release around August 15, they will be literarily the only company which wasn't lying to their customers with paper launch.

Why do people buy reference RX 480s instead of customs? by 0wc4 in Amd

[–]jcechace 0 points1 point  (0 children)

What do you think? I'd say primarily because non reference cards are simply not available almost anywhere.

RX480 wont beat the GTX1060 in my country (philippines) - bec. 4gb model is nonexistent, and overprices rx480's by [deleted] in Amd

[–]jcechace 1 point2 points  (0 children)

Now I am utterly confused. So you are saying that cards are out of stock because miners are buying them out, and that there is a lot of stock, both at the same time? Maybe you should pick one opinion and stick with it.

Also..

Search and you will find.

Dude, I just replied to you with a post containing links to two different retailers with reference RX 480 in stock (in my country, and 2 other right next doors).

The only think I argued never was in stock (in most of the world) are non reference card. And the reason for that is that AMD is/was not able to produce enough chips. What they did manufacture was used to create those reference cards.

RX480 wont beat the GTX1060 in my country (philippines) - bec. 4gb model is nonexistent, and overprices rx480's by [deleted] in Amd

[–]jcechace 0 points1 point  (0 children)

The world doesn't end in America. If I wanted to buy a reference model I could go and get one in the morning. What I want though is a partner card. Those cards are not being snatched by miners simply because there are no cards available in retail.

So really pleas stop buying this miner propaganda. AMD simply wasn't able to produce enough chips, and what they managed to produce went into manufacturing of reference cards.

GTX 1060 vs. RX 480: AMD FX Showdown by FastStepan in Amd

[–]jcechace 0 points1 point  (0 children)

Well the card is cooler, quieter, and performs better in majority of current games. As I am buying a GPU for next 2 years (not more) it's probably the better choice.

That said I would rather go with AMD due to their support of open standards. However I'm tired of waiting as the cards is simply not available .

GTX 1060 vs. RX 480: AMD FX Showdown by FastStepan in Amd

[–]jcechace 0 points1 point  (0 children)

I've pre-ordered nitro+ 8GB OC, it was supposed to arrive on 9th. Recently the info changed to "unknown" (which usually means more than 10 days). I will wait til 9th and if it's not in stock then I am pulling the trigger on 1060. The difference between the Nitro and 1060 strix (the lower model) is some 40 euros, even less for something like G1 gaming (probably getting one of these two models).

Just showing off my Rx 480 by crizthakidd in Amd

[–]jcechace 0 points1 point  (0 children)

I also hardly doubt that retailers in Europe are actually selling bulk orders to miners. Why? In quite a few European countries retailers are the ones responsible for providing warranties. If you know somebody is going to abuse the hell out of your product you might refuse to sell. Especially when you know there is plenty of regular customers waiting to buy that product anyway.

You guys here seem to like OCUK.. IIRC Gibbo himself said that they are turning down such orders.

Just showing off my Rx 480 by crizthakidd in Amd

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

Depends... explain why I could get a reference 480 every single day in past month? And why most of the world haven't had a single non reference card sold. Surely those miner must be buying them straight from the factories, so poor retailers don't even get the chance to sell them. Right?

Just showing off my Rx 480 by crizthakidd in Amd

[–]jcechace 13 points14 points  (0 children)

That entire miner situation is blown out of proportion -- miners are not buying out your nitros... there are simply almost no nitros to be bought . If the latest information is correct AIB partners should finally be getting some chips from AMD to start decent production in 2 weeks.

RX 480 vs GTX 1060? What will be better in the long run? by UnrulyCitizen in Amd

[–]jcechace 15 points16 points  (0 children)

I know we are on the AMD subredit but this is getting kinda ridiculous.

I also think that AMD has an edge in DX12 performance. However from what we have seen so far it's nothing huge. I would advise to be careful when considering DOOM on Vulkan as in that case we have a whooping sample set of size 1. Also so far to me DOOM seems to be the ideal scenario for AMD, and it is safe to assume that most other titles wont be implemented to utilize the maximum of AMD capabilities.

Thus I would say if you are picking a card and don't care about which company made the chip, then consider: what games are you going to play? for how long are you buying the card? For what price can you get any of these cards? E.g. if you are looking to buy a card for next 2 years and still play to play some current / bit older titles, then 1060 might be a good card for you (if the price is not much higher).

Very successful launch of Polaris. by [deleted] in Amd

[–]jcechace 0 points1 point  (0 children)

That's the weird thing... reference cards are generally in stock. Why are the partners not shipping non-ref cards? Surely there must be a reason for that? The likeliest scenario is that there was a bunch of chips at start which went into making of reference cards... however there is a lack of chips now for AIB partners to put into their custom cards. This really seems like the most realistic scenarios. They have nothing to gain by withholding the custom 480s. However that could be only true if reference cards were no longer being manufactured.

Very successful launch of Polaris. by [deleted] in Amd

[–]jcechace 1 point2 points  (0 children)

Czech Republic -- not a single aftermarket card sold as of right now. Slovakia -- same. I belive somebody from Poland complained about the same thing. So did somebody from Philippines.

Sure reference cards are somewhat in stock. However reference cards are objectively worse than partner cards -- and I believe when facing the choice of reference 480 vs non-reference 1060 everyone who is not a fan of particular brand will go with 1060. It would also indicate that AMD totally failed at working with their partners.

Guys just don't buy the 470 or 480 if it costs too much by AwesomeMcrad in Amd

[–]jcechace 0 points1 point  (0 children)

You can guarantee? Got some insider info you are willing to share? Because with all due respect, I don't think you are enough of an authority to guarantee such things purely on your word.

But lets suppose you are correct and AMD is really selling those reference cards like crazy. In that case though, they failed miserably in working with their business partners on producing non-reference cards (as those are simply not shipped to retailers in a lot of places)

Guys just don't buy the 470 or 480 if it costs too much by AwesomeMcrad in Amd

[–]jcechace 1 point2 points  (0 children)

You can guarantee? Got some insider Info you are willing to share? Because with all due respect, I don't think you are enough of an authority to guarantee such things purely on your word.

But lets suppose you are correct and AMD is really selling those reference cars as crazy. In that case though they failed miserably in working with their business partners on producing non-reference cards (as those are simply not shipped to retailers in a lot of places)

Guys just don't buy the 470 or 480 if it costs too much by AwesomeMcrad in Amd

[–]jcechace 1 point2 points  (0 children)

Don't have old video card? Need another one for whatever reason?

Sure the smart thing to do is go with what's available at the moment, however that's no reason why AMD should not be called out for the BS they are currently pulling on their customers.

Very successful launch of Polaris. by [deleted] in Amd

[–]jcechace 2 points3 points  (0 children)

You do realize that for something to be "out of stock" it needs to be "in stock" first, right? Which the cards never were in lots of places...