« first day (528 days earlier)      last day (4646 days later) » 

> Teratogenic Effects of Pure Evil in Ursus Teddius Domesticus
rofl
> A sample of Pure Evil was obtained from the ruins of an exploded toaster in the south of England
So this is something you can do @DeadMG :-P
lol
> At 3 months 2 weeks subject chewed through the steel bars of its cage, after which it killed and partially consumed two graduate students. Subject was then euthanized with a sustained burst of automatic weapons fire
> Holy Crap Don't Use This Stuff
XD
The pregnancy is 4 months though
So apparently it was a premature birth
13:10
It was reabsorbed.
There was no birth.
Oh wait I can't read
The subject is the pregnant teddy bear, apparently
How'd they convince the teddy bears to get pregnant, I wonder
Perhaps it's similar to this
Panda pornography (or panda porn) refers generally to movies depicting mating pandas, intended to promote sexual arousal in captive giant pandas. Under zoo conditions, the animals have in general proven unenthusiastic about mating, placing their species in danger of extinction. History The method was popularized following reports of an experiment performed by zoologists in Thailand, in which they showed several captive giant pandas at Chiang Mai Zoo a number of pornographic videos featuring other giant pandas. Though the researchers behind the project state that they believe in a successf...
argh, my code, y no work? :(((
Okay, why the hell doesn't the VisualHg buttons do anything in Visual Studio?
sbi
sbi
13:13
@Insilico Holy shit, they're giving Viagra to pandas?!
Mercurial and TortoiseHg works perfectly
@sbi: Yeah, apparently
I find it mildly alarming that whenever I enter this chat, the topic is saucy
from penises to panda porn, you guys have it all
@KonradRudolph: We aim to please
No wait that sounded wrong
sbi
sbi
@KonradRudolph We find it quite alarming that, whenever sex is the topic, you enter the chat.
Well, either you or @Tony.
13:18
Is the Tony effect spreading?
What is the Tony effect?
sbi
sbi
@Insilico Whenever sex is the topic, he enters the chat.
it's a regular user, TonyTheLion, who has an amazing habit of turning up whenever sex is mentioned
also, he brings up sex on a very regular basis
Because sex has everything to do with C++, obviously.
He even turns up when the topic is sexual and he doesn't know it.
13:21
The English language makes it surprisingly easy to make anything sound sexual out of context
he's a wizard of "Penis? WHERE?"
@sbi oh we finally found another
Q.E.D.
sbi
sbi
@Insilico That's not the English language. It's just human behavior.
13:22
To be fair, @sbi plinked him this time.
@sbi: Although English is a result of human behavior. :-P
my sound isn't on
lols
sbi
sbi
13:23
@TonyTheLion I was laughing so hard, I almost bit my desk!
owned, robot :P
Ok, I lose this one.
lulz
@sbi no need to bite your desk
btw, you started your new job yet?
sbi
sbi
@TonyTheLion Now the guys I'm sharing the office with want to know what I am laughing about. What am I to say??
@TonyTheLion I haven't even sent the application.
@sbi C++ is funny
13:25
@sbi You wrote some deliciously humourous comments
@sbi oh, but aren't you decreasing your chances by waiting that long
sbi
sbi
@TonyTheLion I'm supposed to write C#.
@sbi that isn't funny, so I'm not sure what you'd say then
@sbi: Presumably you're very good at C#.
sbi
sbi
13:25
@Insilico Don't make me laugh again!
@TonyTheLion Shrug. It's not that I'm desperately looking for a new job. They want me. :)
@sbi ah I see, but I thought you were excited about a new job in C++, IIRC
sbi
sbi
@TonyTheLion I am excited. But I also have a job to do, kids to look after, and had a short holiday this month. Plus it seems I can't start there before June, or likely not even before October.
double fractionalPower( double const x, double const n )
{
    wclog << "fractionalPower(" << x << ", " << n << ")" << endl;
    assert( 0 < n && n < 1 );
    int const radix     = FLT_RADIX;                // 2
    int const nDigits   = DBL_MANT_DIG;             // E.g. 52

    double  result          = 1.0;
    double  digitWeight     = 1.0;
    double  digits          = n;
    for( int i = 1;  i <= nDigits;  ++i )
    {
        double const    leftShiftedDigits   =
            radix*digits;
        int const       digit               =
My screen man, I only have 800 lines.
^ Iterates about 51 times too much for a square root. How to fix?
13:28
@sbi oh I get it
sbi
sbi
@CheersandhthAlf ideone.com
is this a quiz?
I just started on an SO question about how to do your own pow function
Don't know if I will submit though
It smelled like homework
But interesting to do
For an old brain... ;-)
13:37
ohhhh cockles, I'm a moron
just realized why my bones don't render
goddamn Direct3D Debug Runtime debugs my arse, put in bad data and don't get even a warning :(
Looks like complete shit in IE but looks sane in Firefox
now all I need to do is fix my less-than-expected frustrum culling
Xeo
Xeo
@DeadMG "frustrating" culling? :)
13:42
lol
is "rubs genitalia in paint" offensive?
i voted "not sure"
sbi
sbi
@Insilico It might look well in FF, but what it says is still mostly uninformed crap.
I voted invalid.
13:45
@Insilico hmm, none of that really elaborates on the "worse than CVS" part
@sbi @jalf Yeah that page doesn't really help me with Mercurial related information, which is what I hoped to find
Holy shit where these flags come from?!
SFML: library that provides a string class that converts implicitly from std::string, std::wstring, char, wchar_t and Uint32 and to std::string and std::wstring.
Okay seriously WTF is going on in the Javascript room?
@Insilico apparent sexual harassment over in javascript group.
^ I refuse to use time on checking the detailed context
13:48
hey, valid flags!
me happy ^^
@CatPlusPlus: Yes, because the next thing my project wants is to deal with 4 different string formats all over the place
It's Unicode or GTFO
@CatPlusPlus Wait, it converts from uint32?
Yes. It assumes it's UTF-32 character.
Valid flags? What are you talking about?
That must work pretty well on platforms where wchar_t is 32-bit.
13:49
GoingNative 7: VC11 Auto-Vectorizer, C++ NOW, Lang.NEXT http://dlvr.it/1Mgwmd
oh em gee, their chat is much funnier than ours
kthxbye
I migrate
is it me, or does "Lang.NEXT" sound really really scary? Like the the new new proprietary-C++-derivate that the MSVC team is going to spend the next 2 years on, neglecting everything else?
@jalf Wasn't that C++/CX?
@jalf: Hopefully it means "we'll implement most of C++11"
13:51
@RMartinhoFernandes no, that was the new proprietary-C++-derivate that the MSVC team spent the last 2 years on!
Because their C++11 support now kind of sucks
Maybe they already forgot about C++/CX.
Now they're done with that, they need a new language
@jalf You're scaring me.
just to be clear, I haven't watched the vid, so I have no clue what it actually is
13:51
@jalf I'm inventing as fast as I can! :P
@jalf: Naw, they'll just come up with sublanguages
Like they did with LINQ and PLINQ
but given the MSVC team's track record, I think my scenario isn't entirely impossible
@Insilico PLINK?
Parallel LINQ
@Insilico PLINQ is actually library only.
13:52
I retract my statement about PLINQ then
@RMartinhoFernandes PLINQing you, kekeke
@Insilico what DeadMG said ^
But seriously, Lang.NEXT is just an event. Yawn
@sehe ah, that's good
I really, really want to see variadic templates implemented in VC++
13:54
Unless it's a "let's see how many new languages we can invent over the next week" kind of event
I suspect they hold those regularly
At the same time I want them to do a good job of implementing it
A half-assed implemention is worse than no implementation
@jalf Get ready for C++/CY, C++/XY, and C**.
13:56
CX, CZ, CAA, CAB.
I'm not that fussed about variadic templates, but I really, really want to see them deliver on their promise of out-of-band updates to VC11
Then the version after that
C##
C360
If they decide to steal their xbox department's naming scheme
It even rhymes too
"see-three-six-tee"
C64
FTFY
13:58
But it doesn't have that alliteration that C360 has
But is has proven trackrecord:
The Commodore 64, commonly called C64, C=64 (after the graphic logo on the case) or occasionally CBM 64 (for Commodore Business Machines), or VIC-64, was an 8-bit home computer introduced by the now defunct manufacturer Commodore International in January 1982. Volume production started in the spring of 1982, with machines being released on to the market in August at a price of US$595. Preceded by the Commodore VIC-20 and Commodore PET machines, the C64 features of RAM, hence the name, and had favourable sound and graphical specifications when compared to well-known contemporary system...
True, the 360 used to have problems with its ring of death
not really anymore
@DeadMG: I stand corrected then
14:00
@RMartinhoFernandes Just remembered: sudo apt-get install kcharselect
Man, that's some thick accent :D
D♮
It amazes me that there doesn't appear to be a glyph for double-flat
@wilx Which one? Diego?
@jalf: I do not know the guy's name.
14:02
"seplahplaaahs"
@jalf: That phrase makes me spit so much when I try to say it for some reason
@sehe 𝄫
@Potatoswatter: Apparently my font can't render that character 0x01D12B
@Potatoswatter nice to see you again. Very long time, AFIAK :)
@sehe Been in and out the last couple days. I'm busy, but sick and too unfocused.
14:04
My font renders it perfectly fine, but kcharselect doesn't know about it. Guess it is in an unusual font
K. Gotta run. Swimming school for the oldest (ufff. old. 6 years. OLD)
Last night I tried to destress by writing a recursive variadic min preprocessor macro.
Xeo
Xeo
@Potatoswatter Recursive variadic preprocessor thing? destress?!
@sehe That old? He must be all shrivelled.
@Potatoswatter Did it work?
@Insilico No, but I'm not sure why. Then my own preprocessor got an internal string class error when I tried it, so I should go back and fix that.
GCC and Clang don't produce comprehensible error messages :(
It goes something like this:
#define min( suffix, a ) min_outer (a, min1 ## suffix (

#define min1( suffix, a ) min_inner (a, min2 ## suffix (
#define min2( suffix, a ) min_inner (a, min1 ## suffix (

#define min1end( a ) a
#define min2end( a ) a

#define min_outer( a, b ) ( (a) < (b)? (a) : (b) ) kill_rparens(
#define min_inner( a, b ) ( (a) < (b)? (a) : (b) )

#define kill_rparens( suffix ) kill_rparens1 ## suffix(
#define kill_rparens1( suffix ) kill_rparens ## suffix(
#define kill_rparensstop()
#define kill_rparens1stop()
14:10
@RMartinhoFernandes clang supports it, and even gives a diagnostic if you return from such a function.
14:20
^ in fractionalPower, if I take 8 digits at a time instead of just 4 I lose precision in the result, why?
and with 16 digits it just goes Na Na Na Na NaN! Or something
@CheersandhthAlf Before I get to heavily into this, would you care to summarize how you're trying to do this?
Hello @JohnSmith
@Potatoswatter oh, not self-documenting code :-( ok. in x^n, where 0<n<1, it just treats n as a sum of weighted digits, x^(n1 + n2 + n3 + ...), where n1 = d1/R^1 where d1 is the digit value in position 1 after radix position, and so on. I.e. x^n = x^n1 * x^n2 * x^n3 and so on. where e.g. x^n1 = x^(d1/R^1) = root( R^1, x^d1 ).
14:33
@CheersandhthAlf Yeah, I figured it out :P . Doing 3 things at once though…
That expansion doesn't seem like the most efficient pow
@CheersandhthAlf edit nevermind, you just set n = 1 for that example
ah, got a "seplahplaaahs" in the first minute of the new c9 vid. Wonderful :D
Making fun of the man's accent. You're mean.
@Potatoswatter i'm sure it's not, but i'm not a mathematician
i mean, if i knew any math i wouldn't have to ask about the precision loss
@CheersandhthAlf: I don't think even hardcore mathematicians would know anything about precision loss
It's more of a CS problem than a math problem
Math assumes infinite precision. :-)
time for me to sleep
nighty-night, e-friends
14:38
Nite @DeadMG
It's three o'clock.
and I've been awake for nearly 24 hours
hiho
dead no function good no sleepy tiem
:) Good night, then.
strlen(getParam("config") . c_str()
0
Q: Valgrind debug log: Invalid read of size 8

webprofusarecently I decide to debug my application with valgrind. I've resolved a lot of errors, but can't this one. ==12205== Invalid read of size 8 ==12205== at 0x37E1864C40: std::_Rb_tree_increment(std::_Rb_tree_node_base*) (in /usr/lib64/libstdc++.so.6.0.8) ==12205== by 0x40393C: readConfig(std...

14:41
@CheersandhthAlf I think you're doing 0^0
You mean inderminate. That's when changing code to use pow8 and /8
No wait, that's just precision loss.
Hmm, maybe that's not it…
pow16 and /16 causes Infinity values
@RMartinhoFernandes only a little bit. I just think of it as GoingNative's signature move, kind of thing :)
Well one reason for losing precision at 8 instead of 4 is that DBL_MANT_DIG is 53, so there's a lot of round-down error when dividing by 8.
14:50
Oh, I'm stupid. With 16 bits at a time, it involves taking e.g. x^65535 in worst case. That can be huge number.
The reason for failure to converge at 16 (or I just tried 12) might be differetn.
Ah, suppose that would do it. Doesn't look like a stupid mistake to me :)
It seems with this method one pays for efficiency by reduced domain and reduced precision
@CheersandhthAlf Yeah, I saw a similar effect when I tried to implement a fast pow
So, what's the idea for fast pow? :-)
Like, interpolation?
4
A: Optimizations for pow() with const non-integer exponent?

PotatoswatterIn the IEEE 754 hacking vein, here is another solution which is faster and less "magical." It achieves an error margin under .02% (although I've done only minimal testing) in about a dozen clock cycles (for the case of p=2.4, on a Core 2 Duo T7400). Floating point numbers were originally invente...

Check the other answers in the thread, too, they're mostly good IIRC except the one I specifically criticised.
@CheersandhthAlf The principle is basically polynomial interpolation.
15:07
lol, it's nice and a bit beyond my knowledge i think
I spent a day or two on it… heh
alright, gnite all!
15:41
I was wondering why there wasn't an extra iterator category above random access for contiguous iterators. Then I realized that basically means pointers.
Wait, but std::vector::iterator is not necessarily a pointer.
@RMartinhoFernandes: What would be the difference?
@wilx There's no way to test if an iterator is contiguous.
Aren't random access iterators supposed to be used on contiguous stuff?
Other than std::is_pointer, that is.
@EtiennedeMartel std::deque.
Oh, yeah, that fucker.
15:47
@RMartinhoFernandes &*it1 == &*it2 ?
@Abyx Will you make up your mind?
wait a sec...
&*it1 == &*it2 is true for all iterators if it1 == it2, I think.
&*(it +1) == &*it + 1 is a runtime check and not a good guarantee: again, think std::deque.
@RMartinhoFernandes I don't think it's required to be true for input iterators, is it?
@jalf Ah, maybe not those, yeah.
At least with std::is_pointer you never get false positives, but you will get false negatives.
16:09
@RMartinhoFernandes I once also wanted a category between bidi and random, where I can quickly move forward and backwards, but not necessarily compare >=.
@RMartinhoFernandes but that's a good idea too
@MooingDuck Why would that comparison not be possible?
Id est, what kind of container would provide those?
@RMartinhoFernandes I was making a vetor of vectors (it seemed like a good idea at the time), which let me move forward and backwards quickly, but I couldn't immediately tell >= or not.
No wait, it started as a linked list of vectors, that was the problem. I fixed it by switching to a vector of vectors.
Origional draft was O(sqrt(N)) for pretty much all operations
Oh, wait, all you wanted was it+n?
@RMartinhoFernandes I'm having trouble applying that question to anything I or anyone else said :(
Bidirectional iterators require ++i and --i (and postfix versions). Random access requires i+n and comparisons.
16:17
@RMartinhoFernandes With a container that is a linked list of vectors, it's tricky/slow to do >= for iterators, but easy/fast to do +=.
You could overload std::next.
No, you couldn't.
oh sweet deal, never knew about std::next. Good to know.
For a while I simply made the iterator bidirectional, and overloaded std::advance, but then changed the container to a vector of vectors which fixed everything
It loops for non-random iterators, so it wouldn't help you.
I get more and more annoyed by strong typed enums each day.
2
That's a failboat of a feature.
@RMartinhoFernandes oh really? I haven't heard that yet
Yeah, it looks like the Right Thing on first sight, but it sucks.
16:28
I like regular enums more
I don't. Implicit conversions is a big fat no-no for me.
@RMartinhoFernandes what are the issues you ran into?
Ell
Ell
What is wrong with strongly typed enums?
GLIBC can't be compiled on OS X. :(
@MooingDuck I don't like that you can't add members, but I can live without that. I don't like the mandatory scoping. It makes my code much uglier than it needs to be: if I have a class named foo that needs flags, I can't have foo::bar and foo::qux be the flags; I need either foo_flags::bar or foo::flags::bar. I don't like writing foo_flags all over in foo_flags::bar | foo_flags::qux (which is only possibly because I implemented operator| myself).
I know there are other issues but I can't remember now. They're strewn all over the chat transcript though.
Ell
Ell
16:34
does enum inheritence exist in c++?
@Ell not as far as I know
Inheritance with enums doesn't sound very good to me.
@RMartinhoFernandes Did you ever get anywhere with that roguelike?
Ell
Ell
@RMartinhoFernandes I just agreed after reading this: stackoverflow.com/questions/1884433/java-enum-inheritance
16:38
What does it mean to convert derived_enum::enumerator_that_only_exists_in_the_derived to base_enum?
Ell
Ell
Enum inheritence creates a super class, not a subclass. Apparently o.O
Wait a second no it doesnt. Argh now I'm confused
@Pubby Nah, I spent too much time sleeping that week :(
@RMartinhoFernandes Aww, too bad. Do you think Haskell is good for games?
@Pubby Dunno, all I've written in Haskell besides that failed roguelike were either parsers or solvers for puzzles like Sudoku.
One thing I did realize with that roguelike was how unpleasant record syntax is.
And yeah, Haskell sounds great for parsers and puzzle solvers but I just have no clue about games with it.
16:43
@Pubby I don't see a problem with some of the points raised there, but I agree with most.
Record update is what hurt me most.
Updating values in nested records is so stupid.
What's that look like?
Say, I had state record, with a player field, and that was a record too. Updating the player position looked like: \s -> s { player = (player s) { position = pos } }.
That is stupid
Yep.
I ended up writing little helpers, like modifyPlayer and so on.
16:56
No subtitles?
17:13
-5
Q: What's wrong with this C++ program (Google CodeJam practice)?

AnmolI just registered for Google Code Jam and encountered this practice problem, http://code.google.com/codejam/contest/351101/dashboard#s=p0 Looked simple enough, but for some reason the code I wrote wouldn't work, it works fine for the first input, but I'm baffled as to why it wouldn't work for sub...

So, people that don't even know how to debug sign up for CodeJam. Nice.
Lol.
Gah, two years and Breakpad's documentation still sucks.
Xeo
Xeo
17:36
@RMartinhoFernandes Lol, did you just do a Clippy with your comment?
@Xeo A what?
Oh.
That was not intentional.
I think it fits.
Xeo
Xeo
Sure, but it sounded very much like Clippy
Yep.
> There is no translation available, please select a different language.
Why the fuck does a Portuguese government site default to English?
is Qt4 popular among crowd here?
user457812
17:52
Apparently some douchebag went around flagging all of my answers O_o
you use Qt4?
Xeo
Xeo
room topic changed to Lounge<C++>: Serial{{up,down}vote,flag} self-help group. [c++] [c++11] [c++-faq]
I hope I got the sets right
room topic changed to Lounge<C++>: Serial-{{up,down}vote,flagging} self-help group. [c++] [c++11] [c++-faq]
user457812
I wasn't even aware serial flagging existed
user457812
Today I learned something :D
@Xeo Self-help group?
Xeo
Xeo
17:57
Yes? That's what my dictionary tells me it's called in English :P
Oh.
It doesn't make sense to me.
Self-help sounds like something you do on your own.
Xeo
Xeo
In German it's "Selbsthilfegruppe"
user457812
I see nothing wrong with it
Xeo
Xeo
I can make it "support group" if you want
yeah, support group
Xeo
Xeo
17:58
Same meaning
I associate self-help with self-help books -- those ones you read to boost your confidence or whatever you feel you're lacking, not with support groups like AA
yeah, self-help in English means "helping yourself" which is not quite contradictory with "group", but close enough to contradictory to be awkward

« first day (528 days earlier)      last day (4646 days later) »