« first day (605 days earlier)      last day (4336 days later) » 

4:00 AM
@Pubby I'm just exaggerating.
Though I must admit I do have an addiction problem.
 
room topic changed to Lounge<C++>: A bacon of sanity in the sea of vomit that is the C++ tag. [c++] [c++11] [c++-faq]
 
I'm addicted to this godforsaken chat room of doom.
 
I fixeded the topic.
 
@RadekSlupik Hmm...costs more than my last two computers put together, and the 5 year-old machine I'm typing this on will still be going strong long after its obsolete and dead. I think I'll pass.
 
I couldn't sleep. :(
 
4:05 AM
I love bacon, even when it's been floating around in vomit.
 
@CatPlusPlus Cute.
 
Me neither; Apple released something.
 
@CatPlusPlus A cat claiming to be unable to sleep? Obviously an imposter.
 
@Jerry Coffin my computer is getting old and I need a laptop anyway for college.
Yeah but Cat Plus Plus isn't just a cat. He's a cat on LSD.
 
I processed that as "My coffin is getting old". Gosh.
Don't put spaces in pings, dammit.
 
4:08 AM
@CatPlusPlus Too late -- I'm already old.
 
You can't be any older than the oldest man. Therefore, you are relatively young.
 
@RadekSlupik I may not be, but my younger brother's son is.
 
How goes everything?
 
Oh shit my parents' alarm just went off. I should be sleeping right now.
 
With engines and wheels.
And stuff.
 
4:10 AM
@RadekSlupik Oops!
 
There are actually alarm clocks with wheels.
When they go off, they ride away and you need to find them to turn them off.
 
@RadekSlupik Speaking from experience, a child is more effective.
 
@RadekSlupik I'd annihilate something that annoying the first time it went off.
And then go back to sleep.
I'm stubborn like that.
 
If my parents need me to wake them up, they can forget their jobs.
I can sleep like a weapon of mass destruction.
 
Yes, this is perfect analogy.
 
4:14 AM
@RadekSlupik Emphasis on "child" -- anything past 5 or 6 years old doesn't work any more.
 
Oh ok.
 
"Sometimes, this chatroom feels like a beacon of sanity in the sea of vomit that is the C++ tag." - Win.
 
bacon*
 
Bacon of sanity, tasty!
 
4:15 AM
This chat room isn't sane, though.
 
@DomagojPandža Some people disagree. But they're just negative party poopers.
 
@Domagoj bacon in vomit. Yum!
 
@CatPlusPlus Oddly, it is. Most of the mechanism in a nuke is to ensure it doesn't go off except when it's supposed to. At last since the '50s, they've all just laid there "asleep" for their entire existence.
 
There are positive party poopers?
 
@CatPlusPlus Yeah, you.
 
4:16 AM
Compared to the C++ tag, a mental asylum is sane.
 
And neutral party poopers, I guess.
 
I like party poppers.
 
If you put a negative and positive party pooper together, does pooper current flow?
 
Parents y u no wake up if alarm goes off. I always do that.
 
@RadekSlupik You're claiming a level of sanity that lets you recognize it when you see it?
 
4:17 AM
@CatPlusPlus You get an explosion. Poop everywhere.
 
Assplosion.
 
Excrementosion.
 
@Etienne which reminds me of a news article about a poop wagon that exploded in some German town.
You know, with cowshit.
 
It's absolutely craptastic.
 
@CatPlusPlus Apparently the "badass" picture was a few minutes premature.
 
4:18 AM
Apr 8 '11 at 16:58, by jalf
@PiotrLegnica sanity is overrated anyway
 
I want to shovel pig shit as a job. It'll be a hundred times more tolerable than being in the same industry as dipshits like most people on SO.
 
@RadekSlupik Become a politician!
 
user406009
@RadekSlupik Code in PHP!
 
@RadekSlupik Sorry, the Java room is down the hall on the left.
 
@RadekSlupik My brother's job involves, amongst other things, shoveling ostrich shit.
 
4:19 AM
That's a shitty job.
 
Sounds fun.
 
@JerryCoffin That's what she said.
 
@CatPlusPlus Ba-dum-tish.
 
@RadekSlupik I have a feeling that Sturgeon's law applies here.
 
But the idea is smelly.
 
4:20 AM
SO MANY PUNS.
 
Puntastic.
 
Mosquitos suck.
 
Sluuurp.
 
So do vacuum cleaners.
You should know.
 
And people.
People = Shit is one of my favorite songs.
 
4:21 AM
@JerryCoffin True, but it's more primal to the nature of nuclear fission/fusion... It needs more "forceful persuasion" than conventional weaponry and usually quite a bit of conventional weapons to make it reach critical mass (at least in an implosion type device, but that's a way of the past). The guntype device was the easiest to actually accidentally go boomboom. The Little man or something...
The little boy*
 
I'm a squid. I give great hugs.
 
Hm, can we add non-existing tags?
 
Well, if we're going to do off the wall sayings, my old tagline: "The universe is a figment of its own imagination."
 
room topic changed to Lounge<C++>: A bacon of sanity in the sea of vomit that is the C++ tag. [c++] [c++11] [c++-faq] [c++-fuq]
 
Suddenly it exists!
 
4:22 AM
Modern ones are actually easily broken as they're driven by computers, multistage thermonuclear weapons which partially depend on fusion to drive a secondary fission reaction
 
Hmm, the tag leads to a 404.
 
This is not the tag you're looking for.
Hint: it doesn't exist.
 
Dropping one will likely get you in jail, rather than in heaven :Đ
 
@DomagojPandža You got that backward: they use fission to trigger a fusion reaction. That's not really very modern though -- been around since the '50s or so.
 
Oh, someone said we should have events.
Let's add an event.
 
4:23 AM
Oh, sorry... Yeah.
 
Event for what?
 
Fusion requires a higher temperature to begin, higher pressure
 
You just found a non-existing thing.
Congratulations.
 
I just realized that I always mix the Little boy with the fat man
 
WHAT'S GOING ON?
 
4:24 AM
usually little man and the fat boy
 
My god, that's a new feature?
 
No, it's been there forever.
We just never used it.
 
Feature creep.
 
> Lasts 1400 minutes.
 
4:25 AM
@DomagojPandža Not likely. When I was in the USAF, a pylon of 6 got dropped. No jailtime involved for anybody to my recollection.
 
That's 24 hours, in case you're wondering.
 
I know.
 
If silly Android rooms can have events, SO CAN WE.
 
@CatPlusPlus I think we should have signals and slots instead of events. Android programmers obviously don't know the right way to do it.
 
@JerryCoffin Well, my scenario usually involved a bearded guy with a turban running with a warhead. You were working as a contractor for the AirForce or?
 
4:26 AM
Also, are we the only room with activity chart on the list, or is that shown just for rooms you're in?
Jerry Coffin: professional nuclear warhead juggler.
3
 
@DomagojPandža Nope -- spent ~4 years wearing a uniform. Nobody in a turban involved -- just a load team that got a bit sloppy.
 
Oh, it's probably for the rooms you're in.
And here I thought admins added a cool feature just for us.
> Upcoming events: in 2 days 2012 Stack Overflow To…, in 3 days Lame pun Friday, in 4 days Android office hours
 
@CatPlusPlus Not me. I got stuck working over a weekend when I'd much rather have been doing other things, but wasn't involved until after the fact -- was doing NDI at the time. quite a bit had to be torn apart and checked that hadn't been damaged.
 
@JerryCoffin That's amazing, actually. Some of you really have neat life experiences. The most amazing thing to my life is the computer-guided rockets I build in my spare time. Unfortunately, 5 km altitude is my ceiling, legal issues and all.
 
One does not simply launch things into space. For some reason.
 
4:31 AM
We really got funky peeps in here.
 
@DomagojPandža My not-so-neat experience in the AF was walking out the door of a hanger just in time to see a plane crash roughly 500 yards in front of me. Literally close enough that the fireball singed my hair a bit (but it made a pretty big fireball).
 
457.2 meters.
 
An ugly bit of business, but still nice to be able to talk about it.
 
My life is boring and uneventful so far.
Well, I almost got hit by car once.
 
@DomagojPandža Yeah -- wasn't a lot of fun. And since I was nearly the closest witness, got pretty thoroughly grilled on what I saw (not much -- it was literally hitting the ground just as I opened the door).
 
4:35 AM
How is it called in C++ when you reuse the same member for two values? i.e struct x { int a:10; int b:8; }
?
 
@KarimA Bitfields.
 
That's bit field, not reusing the same member for two values. And don't use that, unless you really have to.
It's weird and practically useless.
Save for some 0.00001% cases.
 
Quite a bit of people died that day, seems to be a standard crew complement like on STS missions, like the Challenger (7 astronauts dead) and Columbia (7 astronauts dead)
 
I want to have some data type that will store ranges of 0 - 9
and I think that its a good idea to store them in one char
sorry - not ranges, but min/max, where min/max are always in range 0-9
 
@CatPlusPlus I often see US private rockets capture quite a bit of altitude which really surprises me. After all the mess in 2001., you'd think there would be more legal constraints in place regarding launching projectiles into US airspace.
 
4:38 AM
@DomagojPandža They're too busy creating stupid policies regarding planes.
 
struct range { char min:4; char max:4};
 
Don't use bitfields to restrict range.
 
user406009
@KarimA It would probably run much slower with the bitmaps as the CPU has to do quite a bit of work around them. Just have a struct with two chars.
 
This is not their purpose.
Enforce invariants by creating proper interface to your classes.
 
ok - I will use two chars. I will optimize around it if this will be the bottleneck.
3
 
4:40 AM
What.
 
How can a struct the size of 2 bytes become a bottleneck?
 
@DomagojPandža Yeah -- the story's a bit...misleading. The "spectator" who was killed wasn't sitting and watching. He was the boom operator who was scheduled to be on that flight. He had a little bit of a cold so he couldn't fly though. He'd gone to base ops, told them he couldn't fly, then stopped at the BX on his way home. Just pulled out of the BX as the plane crashed, and one of the landing gear wheels came loose. bounced along and plopped on top of his car, destroying it and killing him.
 
@JerryCoffin Some people have no luck in life. That's messed up.
 
Domagoj, because I've found out that for my scenario the best data structure to use is a form of trie and I'm going to store in every node what range of values a certain node has
 
Universe has a weird sense of humour and likes to mess around with people.
 
4:42 AM
this data structure is used for very-efficient interger lookup, and I'm storing each digit in a node
which gives me a constant lookup time of O(k), where k = number of digits in the max possible value
 
@CatPlusPlus I knew a few people who suddenly got quite religious after that.
 
And that's related to bitfields, how?
 
The Stratotanker, what was the status of the fuel tank at the time of the crash? That must've made for quite a fireball.
 
user406009
@CatPlusPlus He probably wants to make the nodes as small as possible.
 
it's related to bitfield because, on every node, I will not store all the possible digits (0-9) as it will use tons of memory, instead I will start with 1 element on every node and expand as needed
 
4:44 AM
@DomagojPandža Not sure what it had on board, but standard load was 60,000 pounds of fuel (at least if memory serves -- it has been quite a while).
 
Yes, one byte more per that struct is tons of memory.
 
"constant look up time of O(k)"? Am I missing something?
 
every node will have max_digit - min_digit elements
 
You'll save entire kilobyte on 1024 of them!
 
Radek, yes if k is constant, then it's constant
 
4:46 AM
Isn't constant look up time O(1)?
 
cat plus plus, for 64bit integers it's going to start matter (i think)
 
Yes. Constants are factored out.
@KarimA Your struct is two chars.
You're trying to compress it to one char.
 
yeah
 
Oh k. (pun intended)
 
Lame pun Friday, eh?
 
4:47 AM
(And if you reaaaaally want to do that, bitshift yourself instead of using bit fields.)
 
Bit fields are more evil than robots.
 
Bit fields are ugly and confusing.
 
you're right
 
@RadekSlupik Robots are not evil.
 
Says a robot.
 
4:48 AM
@CatPlusPlus Why? Do you really think you're going to do it better than the compiler can? I have a hard time believing anybody would consider it clearer or more readable.
 
@RMartinhoFernandes That doesn't mean something can't be more evil than robots.
 
They're your plastic pal who's fun to be with.
 
I don't use Firefox.
 
user406009
@KarimA How are you going to have these nodes point at each other? Wouldn't that also take up a lot of space?(relative to the size of a char)
 
60000 pounds of fuel igniting. No way to survive that. But at least it wasn't full capacity. And speaking of the landing gear, that thing is the size of a 707, I've had a chance to stand on the extruded front part in front of the blades (one of the engine nacelles), those things are huge. Landing gear included.
 
4:49 AM
@JerryCoffin Well I don't like bit fields.
 
Also metal and glass > plastic.
 
And I don't really remember any rules regarding them.
 
Ethan, yes - that is why I'm trying to compress that as much as possible
 
Bitfields are slower than yo momma.
 
I'm building a trie for integers
 
Als
4:51 AM
Bit fields, who needs bit fields!
 
Bit farmers have fields of bits.
 
because I will need to lookup data from my data structure about 2000 times a second
 
Think FarmVille.
 
that is why performance here is super-critical.
 
If performance is super-critical, use ints.
 
4:52 AM
@DomagojPandža For most practical purposes, that thing is a 707. But yes, the landing gear are fairly sizable. Then again, as landing gear go, they're not really all that huge. The wheels on the B52's were quite a bit bigger.
 
Not chars and certainly not bitfields. Also: MEASURE.
 
Radek, because of processor's work size?
*word
 
Try the god damn things and pick the fastest one.
 
@JerryCoffin There is certainly damage potential in them. But still, that's just a streak of bad luck. Hopefully the guys didn't suffer.
 
chars are slow?
(er than ints)?
 
4:53 AM
Everything is slow. Even snails.
 
Radek, I think that you are wrong.
 
Als
@JerryCoffin uhm...You in to planes? I thought you were a nerdy young man sitting in front of a computer all day(and night) long
 
Bit snails.
 
What you are saying is: "Trial and error is better than design".
 
@Als He keeps talking about how cool it was in the fifties or something. He's not a nerdy young man, I'm sure.
 
4:54 AM
Design is irrelevant, this is an implementation detail.
 
while it might work sometimes, I don't think that its a good way to reason about programming
 
2000 times a second? I do hundreds of thousands of vector-matrix multiplications every 16 ms. You ought to be fine.
 
Als
@RMartinhoFernandes oops i meant nerdy old man
 
implementation detail is not design?
 
Design is trial and error, just going on in/at/Idon'tknowwhatgoeshere extended period of time.
 
4:54 AM
First ensure you have a bottleneck, then go into mad optimization mode.
 
@Als The subject of my time in the USAF came up (can't even remember how now). But yes, I'm sort of into planes. Oh, and I'm actually a nerdy old man sitting at the computer all day and night.
 
Als
@JerryCoffin USAF eh....so you are the top gun :P
 
All programmers are into airplanes and spacecrafts, it's a natural association. :Đ
 
Internal design is never stable.
That'd mean code rot.
 
user406009
I think Karim should just try a std::unordered_map.
 
4:56 AM
And quite possibly abandonment.
 
@DomagojPandža Aka MOM.
 
@Als Top Gun is cheap imitators (Navy pilots).
 
SPACESHIPS.
PEW PEW.
 
@KarimA: And yes, bit fields will likely be slower than plain chars or ints.
 
Als
4:57 AM
@JerryCoffin uhhh
 
Whether that's bottleneck cannot be said without profiling.
 
agreed. I think its slower too, because the processor will need to load a whole integer anyway.
but I disagree with the trial and error approach as a design principle :)
 
USAF is cool, eh has stargate and doesn't afraid of anything.
 
Also enable -O3 before profiling.
 
-O3 is evil.
 
4:59 AM
@CatPlusPlus Hm...must have gotten that since I departed for greener pastures.
 
@JerryCoffin Around '96.
 
Personally, I prefer the private sector most. Then "civilian" agencies like NASA, ESA, JAXA. And then military aerospace/scientific divisions.
 
...well, it's not really. I just felt like dissenting.
 
-Os is evil.
 
Use -O4, have your code fail hilariously when they get around to implementing it.
 
5:00 AM
A MacBook Pro with a retina display.
 
@RadekSlupik Kernel uses -Os by default.
 
Kernels suck.
 
Als
@JerryCoffin How many years did you serve in USAF? any active war assignments..just curious.
 
And, while you're at Als' question, how did you end up with USAF?
 
5:01 AM
@RMartinhoFernandes Hmm..."always takes forever" qualifies as "constant complexity" right?
3
 
@Als Just four years. Not much in the way of wars at that time (unless you count "cold war").
 
I don't know much about compiler options..
 
Als
@JerryCoffin hey 4 years is not just, unless you are a zillion yrs old, oh god..cold war was like 2 decades ago!
 
They all suck.
 
5:03 AM
@DomagojPandža My parents didn't have the money to send me to college, so it was supposed to pay for it.
 
@Als Yes, there are people over 30 on Earth.
 
IMPOSSIBRU.
 
Als
@RMartinhoFernandes Yes there are, You are not one of them lol
 
@JerryCoffin That explains the 4 years. :D
 
@Als Yeah, sounds about right (but my memory ain't what it used to be, so...)
 
Als
5:07 AM
I am enjoying an off time...have a good deal of time before i start on my new job :)
 
Going from job to job, I guess some people prefer it that way. :D
 
That does remind me of another, rather more interesting life experience. Long after departing the Air Force (and the end of the cold war) I visited Russia a couple of times. Among other things, I went to the Russian State Museum. One of the paintings there caused an almost-flashback. I'd long forgotten it, but in school when I was probably 10 or so, in art class they had a picture of a painting.
 
Russians remind me of Klingons, I don't know why.
 
The caption said something like "look closely, because you'll never see the real thing, which is behind the Iron Curtain." Somehow I suddenly remembered that when I turned the corner and it was right in front of me! :-)
 
Als
haha
 
5:16 AM
Can't wait to see the next iteration of the OGLES specification.
 
@DomagojPandža If I went into detail about what Russians remind me of, I'd (quite rightly) get banned for life. Let's just say the right one can make nights that would otherwise be way too long suddenly seem like a good thing.
 
I like russians..
 
You know, bacon in a sea of vomit might not be very tasty.
 
@RMartinhoFernandes Nothing can stop bacon from being tasty.
 
5:18 AM
Bacon of Sanity. -4 to taste.
 
Considering that traditional sausages are embedded inside intestines of pigs through which shit propagates, bacon in a sea of vomit is pretty good too.
Just make sure you wash it off. :Đ
 
@DomagojPandža With bleach.
 
It's hard to be a modern C++ purist in a C of useful libraries and APIs. See what I did there?
 
@DomagojPandža Nope -- didn't C a thing.
 
Oy. Friday.
Don't waste lame puns.
They don't grow back.
 
5:24 AM
I am a bad person; I use what I want from C++ and what I want from C, and mix them up.
 
With abstraction we improve human interaction.
With polymorphism we ensure our code will endure.
By inheritance we fight redundance with might.
While encapsulating classes, we appease the angry masses.

Thank you.
 
user406009
You need more rhythm in that poem.
 
Damn it, Ethan, I'm an engineer, not a poet!
 
@DomagojPandža But it is with templates that we emulate God!
 
@JerryCoffin TMP?
 
5:34 AM
@Serge Yes, among other things.
 
@JerryCoffin I'm... extremely new to TMP, and some of the more advanced uses of Templates (read: known about it for only a few days now) so it's still a very fresh topic in my mind...
 
Templates are beautiful and everything that has spawned from them (because people love proving something is Turing complete). It enables programmers to be what they've always meant to be - lazy.
 
@Serge TMP is definitely a mixed blessing -- you can do amazing things, but also produce amazingly unreadable messes in all too big a hurry if you're not careful enough.
 
And when you make a mistake, the compiler will make sure you pay for the dark magic that is TMP
 
@DomagojPandža Strangely, I find that normal code with lots of operator overloading (for one example) can produce some of the worst error messages possible. Misplace one punctuation, and get a sea of vomit (with neither beacon nor bacon in sight).
 
5:42 AM
N-No bacon!?

...Nooooooooooooo!
 
Baconless programming :(
5
 
Actually, I brought some bacon from the fridge because this room inspired me.
Writing code with bacon increases productivity.
Unfortunately, no vomit.
 
@RMartinhoFernandes What a horrible concept (extra points to anybody who got that reference without being told that it was a reference).
 
@JerryCoffin I got the reference right here: &(what you said)
 
I love my damn guitar.
The temperature is again becoming unbearable.
Damn summer.
Damn you, G2V star. Your proximity will be the death of me and my bacon.
 
6:06 AM
Codegen > TMP.
 
The Next Code Generation
Code Trek
 
Code Mode.
...nah.
 
@sbi it was some tweet about parenting (I think) that I thought you would like, I then noticed it was you who retweeted it
 
@DomagojPandža G2v?
 
Our Sun, G2V classification... Spectral/lumin.
 
6:16 AM
Ahahaha
@EthanSteinberg That's harsh
 
Night.
 
Well, I think it's time for me to turn into a pumpkin -- or however that's supposed to work.
 
 
1 hour later…
7:28 AM
@JerryCoffin Please post pictures afterwards!
 
7:41 AM
@RMartinhoFernandes you like tropes, you might like this then Tropes vs. Women
 
 
smooth
 
Hello.
cool bear
 
user457812
(*Also in Idaho)
 
anyone here familiar with regex?
 
7:49 AM
yeah...
 
user457812
What kind of regex and what library and what really just be specific
 
I thought I had it but it didn't work.. I'd like to find all the summaries in my project that doesn't end with a ".". So I wrote ^///$[^\.]
 
user457812
We don't know what your summaries look like, do we?
 
oh right.. I'm not in the C# room.. sry 'bout that.
 
user457812
Btw, your $ is misplaced, I think.
 
7:51 AM
/// <summary>
/// This is my summary
/// </summary>
@nil where should it be?
 
user457812
Well, what does a $ do?
 
I thought it was "$anything-at-the-end-of-line"
 
user457812
No.
 
So there's my problem then :)
 
user457812
It's end-of-line/string.
 
7:52 AM
@Default it needs to be m/endnow$/
 
user457812
You may also want to account for trailing whitespace.
 
@thecoshman not quite following.. what does m do?
 
may I suggest, ^///[^.].$/
 
What happened here? Regex Anonymous?
 
@thecoshman hm, didn't work..
@sehe I didn't find any regexroom
 
7:53 AM
@Default the m// is fairy standard way of saying it is a matching regex, like wise, s/// is a substitution
 
@Default regular-expressions.info <-- top site, reference, tutorials, all the known flavours (.NET, Perl5, POSIX, whatnot)
 
@Default I'm wrong, that's why :P
 
@sehe but I like the chat@SO
 
^///[^\.]*\.\w*$
@Default I think...
 
@thecoshman "fairy standard" - nice
 
7:55 AM
don't forget, the dot is a wild card for anything, so if you want a literal full stop, you need to escape it
 
@sehe Would you like me to stop asking here and check the reg-exp.info site instead?
@thecoshman with a \ right?
 
@sehe totally on purpose
 
@nil oh, that might be why it's not finding anything. Could you help me out with that?
 
user457812
May I suggest ^///[^\.]*?\s*$ for optimal stupid complexity.
 
damn edit time outs
 
7:57 AM
@nil but as you said, I'm not accounting for white space at the start of the line. so it won't find any indented lines, right?
 
user457812
Whitespace at the start of a line != trailing whitespace
 
user457812
Whitespace at the start of a line is easy to account for.
 
so prefix it with [:space:]* ?
 
user457812
Why would you use that over \s*?
 
or \s*
 
7:58 AM
^\w*///.*?\.\w*$
am I right in thinking that '\w' is any white space? or have I gone mad
 
@thecoshman even better
 
user457812
Or just remove the caret.
 
@thecoshman according to wiki \w is "Non-word characters"
 
user457812
\w is [a-zA-Z0-9]
 
oh, w and W is not the same thing
would you look at that, I'm learning!
 

« first day (605 days earlier)      last day (4336 days later) »