« first day (466 days earlier)      last day (4482 days later) » 

user784668
5:00 PM
@RMartinhoFernandes is right, that's uncurry.
 
Als
ola
 
Egad, I put the utility in one of my most included header. Add 20 lines of innocent code, TUs start dying left and right.
 
right
so back to the hunt for an ASP.NET site host :P
 
Pick up your own animal.
 
Als
@DeadMG Hey Pup you preparing to host a web site or something?
 
5:05 PM
I am falcon.
 
no, I'm looking for a web host so I can get technical help with how to copy videos from iTunes on to my iPhone
 
Als
ah ok
@DzekTrek What the fuck is this? A zoo?
 
user784668
@DzekTrek You already said that once. No need to repeat yourself.
 
1 message moved to bin
 
0
A: C# Potential Interview Question…Too hard?

XaadeIt takes all of 5 seconds in a real work situation to figure out what went wrong. Compile, test, oops. I'm far more concerned on if someone can build good and maintainable code. Ask questions like How would you design for this, write simple abstract design, no code. Here's an object design. T...

 
5:07 PM
So what makes taking a lock expensive? I've heard many times that taking a lock for synchronization is an expensive operation. But what makes it expensive? Is it because it requires a call into the kernel? Is it expensive at hardware level? (I thought mostly implemented with lock cmpxchg instructions to see whether a thread is already holding the lock. Anybody any answers? (or should I make an SO Question)
 
Als
Mutex lock?
 
There's probably a question already.
 
whatever kind of lock
 
@TonyTheLion lock cmpxchg is only for SRW locks
which are cheap
 
just some way to synchronize access to shared state
 
5:09 PM
@TonyTheLion I don't understand the concern. Locks are to protect threads corrupting data. That's like saying, encrypting files for the CIA is an expensive operation, we should stop.
 
full CRITICAL_SECTION locks are more expensive because you can acquire them recursively
i.e., lock(lock1); lock(lock1); unlock(lock1); unlock(lock1);
and when a CRITICAL_SECTION is contested, you have to switch to kernel mode, which is very slow
 
@Xaade I never said we should stop, I'm just asking why it seems that "locks are an expensive operation" is a commonly uttered phrase. Why is it expensive
 
@Xaade I love how the code cannot even be run, because it doesn't compile.
 
@TonyTheLion User input is an expensive operation. We should eliminate users.
 
user784668
@DzekTrek Are you still a falcon?
 
5:11 PM
I agree with that.
My metallic and plastic pals do too.
 
@Xaade Can you not READ what I"m saying. I never said anything about eliminating anything!! I just want to know why it is considered an expensive operation.
 
@TonyTheLion It's expensive because when it's contested, you have to go into kernel mode, which is really slow
 
right
 
Als
@Xaade: Okay, @TonyTheLion will use locks when he has to but still he wants to know whats the overhead of using them, is that so difficult to fathom? or you just want to put up an argument for the sake of it?
 
and with 'constest' you mean?
 
5:12 PM
and there are a couple other expenses involved when you have recursive locking
I mean two or more threads want to acquire the same lock
 
Als
@TonyTheLion: Because there is a switch between user space to kernel space involved which makes it costly.
 
@DeadMG ah ok
 
user784668
@DeadMG Of course real-world implementations are usually smarter than that.
 
user784668
They at least try to spin a while before calling the kernel.
 
@Fanael As if "spin a while" is a cheap thing to do.
but you can get slim reader/writer locks which are very fast
 
user784668
5:14 PM
It's cheaper than calling the kernel, letting it do the waiting and then returning.
 
2
Q: Why is CompareAndSwap instruction considered expensive?

eyalwWhy is CompareAndSwap instruction considered expensive? I read in a book: "Memory barriers are expensive, about as expensive as an atomic compareAndSet() instruction." Thanks!

here is one question which has some info.
@Fanael while it's waiting and spinning, the CPU can do nothing else
that's more of a waste of time to me
 
user784668
@TonyTheLion Other cores can.
 
once I measured that critical section lock or unlock takes about 50 ticks, and new T(); takes ~100 ticks, so CS is quite cheap
 
user784668
And the lock may get free in the next few ticks.
 
user784668
5:16 PM
That is, assuming that other cores don't wait at the same lock.
 
user784668
Of course, on single-core systems, there's no spinloop at all.
 
Well I'm dumb-founded. Boost.Tuple uses a length metafunction, not tuple_size, and it doesn't specialize std::tuple_size.
Guess I'm going to write a metafunction that checks expressions by abusing overloading to make it all work, gah.
 
@Fanael , you know me I know you.
 
room topic changed to Lounge<C++>: Learn to create workarounds! [c++] [c++11] [c++-faq]
 
I hate marshalls! Not a fucking single one works around here in my code.
 
5:27 PM
@AlfPSteinbach oh hell no. When working in dependent layers, our user layer is going around working around our bugs while in development. Then we fix a bug and they're broken, but claim we broke them. It's hell. Never create workarounds.
@TonyTheLion I read it. I just find the pursuit of an answer a humorous concept.
 
@Xaade he he :)
 
@AlfPSteinbach Yeah, the supervisor at that level is the village idiot, but since their boss sees nothing but a stamp of completion on customer request.... he's an award winning supervisor. An award winning village idiot.
 
-2
Q: How to convert char[] to char* in C?

RavenThe question is pretty straight forward. How do I convert a char[] to a char* in C? I really having a hard time finding the solution for it. So your help is highly appreciated :) Here is why I need this stuff: sprintf(name,"%c%c%%HACKED%c%c.virus",a,b,c,d); // print a formatted text to string (...

Wow, and here we are complaining that arrays decay to pointers too easily.
 
Reminds me of the real Mardi Gras.
 
Xeo
Yay, new VGCats
 
5:32 PM
why is it that I have a fairly large distrust of all web hosts?
 
Because most of them are run by idiots.
 
fair enough
 
Your idiot-sense is still working.
 
Observation: café tables with candle lights are potentially ungood for laptop screens.
 
5:34 PM
they look like those file sharing services trying to scam you into paying them moneys
 
You mean, like MegaUpload?
 
yes
although not like them anymore, since they're dead
 
America: Unnecessarily pissing off the rest of the world since 1780 or whenever it was
9
 
Well, it's freemium.
 
5:36 PM
1492?
 
nah, since they became independent
 
@DeadMG The rest of the world: Unnecessary.
 
they were probably mostly fine under British rule
just like most of our colonies, things went to shit as soon as we left
 
@RMartinhoFernandes That's Columbus' landing day. They needed a couple of decades to kill the indigenous populace
 
5:37 PM
@DeadMG maybe you guys left cause you fucked up?
 
@rubenvb Wrong, 1492 is a year, not a day.
 
@DeadMG British do a good enough job of killing off the French in Canada.
 
@RMartinhoFernandes well, a day is an element of a year. Implicit conversions!!!
 
@rubenvb Nah, we left cause the colonists threw us out.
 
I like inventing history
 
5:38 PM
anyway
who wants to bet that Argentina is going to start a new Falklands War?
 
since we discovered oil in the Falklands territorial waters
 
:D
 
Nuestros amigos a Falclando es partido. :D
Viva Argentina, viva Falclando Argentinos. :D
 
5:40 PM
it's actually kind of strange to think that some fucker is going to try and invade our land
when in the previous decade we were mostly the aggressors
 
@DeadMG Wait until they decide not to drill because they don't want to "harm the wildlife". Then go drill. That's what Europe does when we halt drilling in the Gulf of Mexico.
 
lol
 
:D You are wrong, @DeadMG. It's strange not to think that some fucker is going to try and invade...
 
depends on where you live
 
Exactly. :)
 
5:42 PM
No one will invade Portugal. There's nothing to fight for here.
 
I'm definitively wary of those Swiss guys.
 
rofl
 
What about Lisbon? @RMartinhoFernandes
 
@RMartinhoFernandes Wait.... Portugal is a separate country.
 
Ell
argghh wxwidgets you make me cry :'(
 
5:43 PM
anyway, if they try and do that again, they will get their asses kicked, just like last time
 
Well, the US have some interest in Azores, but that's 1500 km from the continent.
 
Man.... Spain sucks.... they gave most of their coast away.
 
They've got boats and everything.
@RMartinhoFernandes What kind of interest? Strategic?
 
@Xaade Gibraltar win
 
@Xaade Actually, they gave only a little piece. The rest was all conquered the hard way.
@LucDanton Yes, they have a military base there.
 
5:44 PM
@RMartinhoFernandes I'm just hoping California falls into the ocean so we have a better coastline.
 
Ell
what are you guys talking about? o.O
 
@Xaade California accounts for a massive part of the US economy. If it falls into the ocean, I hope you have a Plan B.
 
@DeadMG Texas.
 
Sell tickets to see the sunken state.
 
bwahaha
without Texas, you really would be better off
 
5:45 PM
@DeadMG TX, and FL
 
bunch of biblethumpers
 
@DeadMG Odd.... the state is in a lot of debt, and they ran out of % to tax with. Can't tax at 100% you know.
@DeadMG Who make more money than they take in.
 
Ell
what is the USA's debt now anyway?
 
So, new World war is coming?
 
@Xaade All Western states are in a lot of debt, and they are still massive parts of the economy.
 
Ell
5:46 PM
I know the Uk's went over 1 trillion
 
@Xaade the state != the economy and profit businesses make
 
user784668
@Ell Two oranges and a gazillion USD.
 
Hey, you're stealing my oranges.
 
I'm not worried. Texans seem to know how to balance a budget. Lose part of the economy and hand the rest over to them, and they'll still balance the budget. A country without a deficit.
 
Ell
@Fanael I saw you say the orange thing yesterday but sorry I'm still not getting it :l
:L
 
5:47 PM
That's the point. It's nonsensical.
 
@rubenvb Hey you guys..... California drops and no more SOPA.
 
user784668
@RMartinhoFernandes Usonia stole them. That's why the oranges count as their debt.
 
@DeadMG A little hateful, are we?
 
yes
anyone who wants to teach biblical creation as a scientific theory should be shot without trial
 
^ amen
 
5:49 PM
Lol, how civilized.
 
^ true story
 
We know what you're replying to, we don't need arrows.
 
"... no stinkin' ..."
 
@RMartinhoFernandes Is it civilized to allow a poor bunch of children who can't defend themselves to be indoctrinated?
 
@DeadMG Hmm... then we have a little problem. Science changes its mind again in another 1000 years and we'll have to shoot a different group of people.
 
user784668
5:50 PM
@DeadMG Anyone who wants to shoot anyone without trial should be shot without trial.
7
 
Good thing USA is big on weapons.
 
@Xaade There's a big difference between "Not the current scientific fashion" and "Pile of complete shit"
 
@DeadMG Not that it makes shooting people without trial civilized.
 
@Fanael But that's infinite loop!
 
nah, shooting them without trial is just my dream, and a man can dream
 
5:51 PM
@DeadMG Ah yes the poor children. What makes teaching them how to have sex with an adult female using a fist isn't indoctrination?
 
@CatPlusPlus Not if that someone shoots himself without trial!
 
in reality, I'd just lock them up, or bar them from making any important decisions, ever
@Xaade Wot?
 
Can you shoot yourself with a trial?
 
@DeadMG Yes, difference is a few thousand years. "Not the current scientific fashion" becomes "complete shit" when the scientific community debunks it hard enough.
 
user784668
@CatPlusPlus Of course. You can't shoot yourself if you don't try to.
 
5:52 PM
Do, or do not, there is no try!
Or something.
 
@Xaade That doesn't bother me at all. It's not like anyone survives more than a hundred years give or take anyway
 
@Fanael Actually, you can shoot yourself without trying. That's called an accident.
 
user784668
@RMartinhoFernandes No, it this case, you try to shoot yourself, but you just don't know that you do.
 
@CatPlusPlus In Belgium, there's an expression for that, roughly translated: "Trying is for rabbits"
 
@DeadMG Now you know what I'm trying to prevent. You have wackos on all sides my friend. I'm certainly not a Bible thumper. However, if you feel offended that I discuss topics in a public restaurant, then we have bigger problems.
 
5:53 PM
That makes sense.
 
@Xaade Uh, double wot? I never said, or implied, or even thought any kind of offense
 
@Fanael It's better to just throw yourself at the ground an miss.
 
@DeadMG he sparks easily.
 
user784668
@Xaade s/an/and/?
 
@DeadMG I'm not implying you do. I'm simply saying that people on your side of the fence take things to extremes as well. I wouldn't be surprised to wake up one day and find people in jail for teaching their own children Creation, in their own home.
 
5:55 PM
HELLOOO ALLLL
 
@Xaade I'm not sure that I have a fundamental problem with that.
 
Careful with the capitals.
@DeadMG It's a free speech impediment?
 
there are exceptions to free speech for preventing all sorts of things like crime
 
@DeadMG Then, I'm glad you're on your side of the pond.
 
@Xaade Isn't that a slippery slope thing?
 
5:57 PM
bah
 
@Xaade I think most Europeans are glad everyone is at their side of the pond
 
@DeadMG When the public finds your beliefs inconvenient, I hope you remember your own mindset now.
1 min ago, by DeadMG
@Xaade I'm not sure that I have a fundamental problem with that.
qft
 
I'm really not glad I have to live on this planet.
 
hahaha
religion is not an inconvenient belief, it is insanity
 
In Canada there are PSAs about drugs. According to the federal government, if you smoke a joint once, you're going to do crack and/or crystal meth within a month.
"Stay away from drugs kiddos"
 
5:58 PM
What's a PSA? PlayStation Arcade?
 
@EtiennedeMartel Unrelated. There's significant hatred of the Christian religion, that I wouldn't be surprised to discover such a change. I'm not connecting a slope (not implying what would lead to that point).
 
Prostate-Specific Antigen?
 
@RMartinhoFernandes Public Service Announcement
 
5:59 PM
@Xaade Probably because religious groups get away with all sorts of shit that would never be allowed for anyone else for any other reason.
 
@EtiennedeMartel if statistics support it.
 

« first day (466 days earlier)      last day (4482 days later) »