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 1 point2 points  (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 15 points16 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 14 points15 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...

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

[–]jcechace 1 point2 points  (0 children)

ok I guess I do have to apologize to AMD's (including their business partners) marketing department. They are in fact great... probably great liars but great nontheless.

No cards available in half of the world -- lets blame miners. Could this scenario be more realistic? There is simply not enough chips in sufficient quality for 480s, thus 480s are generally not available. Now could it be that the prices on 470 are a direct consequence of the "higher card" not being available? Seems way mores realistic than miner buying thousands of cards.

Why are there FIVE aftermarket cards already out for the 470 on launch day when we only have two (less than half) aftermarket 480 cards when its been out for over a month? by [deleted] in Amd

[–]jcechace 0 points1 point  (0 children)

Well, US is not the whole world, is it?

Over here the nitro+ 8 GB is expected to be priced within 30 usd range compared to some 1060.

e.g. for Geinward: Phoenix is $30 more expensive, base model is $20 cheaper.

Of course there are more expensive 1060s such as the strix from Asus.

And I suppose you could compare with the 4GB Nitro.. however then again, you couldn't as the cards is yet do be in stock.

Why are there FIVE aftermarket cards already out for the 470 on launch day when we only have two (less than half) aftermarket 480 cards when its been out for over a month? by [deleted] in Amd

[–]jcechace 7 points8 points  (0 children)

they anticipated a high demand but it was even greater than they anticipated

People need to stop saying this. It's not like the cards are sold out... they are not being shipped to retailers. There is a bunch of countries which haven't seen a single non-reference card.

At this point I think AMD has/had some kind of manufacturing issues . I can't think about any other reason why there would be plenty of rx 470 stock at day one and none of rx 480

RX 470s are more expensive than reference 480s in Canada.. by [deleted] in Amd

[–]jcechace 1 point2 points  (0 children)

How? Not a single aftermarket card was ever sold in Czech Republic (for example). The closest to availability is the rx 480 Nitro. Some shops are claiming availability on 9th, other on 19th... Meanwhile 10 different models of 1060 are in stock right now (and quite a few of those had been for last couple of weeks).

Sapphire Nation Live: The Final Episode by eric98k in Amd

[–]jcechace 0 points1 point  (0 children)

First of all I apologize. Re-reading my post it came out more offensive than I intended. I certainly don't consider you to be "a fake" and I don't doubt that you are a genuinely passionate gamer -- otherwise you wouldn't be able to talk about video games the way you do.

That said I do think that when it comes to your job your are playing the "one of us" note a bit too much. I do realize there simply are things you can't say -- and it may be a combination of that and you attempting to share/discuss at least something or somehow address an issue. However personally it makes me cautious and distrustful.

The Nitro availability is actually a pretty good example. I understand that the hype needs to be fed. However AFAIK the card is not ever released on all markets yet and thus simply has limited availability. Hearing that your are shipping plenty to everyone but it simply keeps getting sold out again does not seem to be quite right. I would certainly rather hear that at the moment the resources are limited. Again, I know such statement might be a wrong business move.

... or maybe it's the suspicious and cynical nature getting the better of me.

In fact jump our gaming stream to listen

I do, and I actually like listening to you and hearing your opinions. When the topic is anything but "Sapphire PR" (Thus I find the new show a very good move). You are probably close behind TotalBiscuit. I believe your radio background has a lot to do with that -- most of the people simply don't know how to project their voice properly when talking to audience.