« first day (493 days earlier)      last day (4457 days later) » 

10:00 PM
@wilhelmtell fixed it. Let me find the minimal patch, just a sec
 
but really, you'd probably do yourself a favor by avoiding pointers as much as possible. Whatever you're trying to do can almost certainly be done without using pointers. So do that.
 
Well, I tried that before and when printing the data my prtA contains the changes applied to ptrB
tho if it works, then I'll be off to searching some logical errors in my app :p
 
@RMartinhoFernandes really? I think MSVC can drop unused entries when linking static, but a DLL can't drop anything
@shookees you probably tried ptrA = ptrB instead of *ptrA = *ptrB
 
@wilhelmtell ` macro %= macro_b >> bsq::skip(bsq::ascii::space) [ id ] >> macro_e;`
 
nah, it was *ptrA = *ptrB
 
10:02 PM
@shookees if you indeed got that error, then whatever they point to has an invalid copy constructor. More use of std::unique_ptr and std::vector will fix that
 
@shookees show us some code then. :) Post it on pastebin or ideone if it's more than a couple of lines
 
@shookees we are speculating wildly about what you have and what you're trying to do.
 
one moment
 
gah. unresolved external symbol _COMMUNICATIONNOTIFY_RPCServer_ICommunicationNotifyRPC_v1_0_s_ifspec. But that word isn't in my 1.7GB source anywhere. Hmm
 
Have fun.
 
10:04 PM
@wilhelmtell You needed to change the skipper to match the rule declaration for id. Here's a clean-upped version: ideone.com/i695R
@wilhelmtell ... no upboats on chat
Those were a lot of flags. I missed them
 
@MooingDuck Static linking puts the library's code into the output. Sure you can do some optimizing and not include dead code (if that can be determined), but the code you use lives in the output: you can delete the static library. When dynamic linking, the code lives on the library, and the output keeps only references to it.
 
@jalf
@jalf @MooingDuck pastebin.com/rKti8vM0
the 10th line goes for modifying the object
 
for future reference, it'll be a lot easier to get others to help if you try to write your code in english. It's so much easier for us to understand your code when we understand the variable names
 
Where'd he go? Download ANTLR or COCO/R I suppose?
 
I'll have that in mind
 
10:09 PM
and the problem is that the changes made to parkai[2] in line 10 are also seen in the other objects in the array?
 
@sehe What's the difference? I usually wrap the first parameter for the vexing parse, and it's alright.
 
yes, whichever is assigned
 
I don't see anything obviously wrong with the code. But it depends on how the Autoparkas class is defined, and what the various functions do.
 
@sehe oh. is a parse a functor? i thought the brackets take a function for the action!
 
10:11 PM
I'm having some issues converting from map<std::string,std::string> to char**. I get some odd values:
 
Try stripping it down to a minimal example. Do you get the same problem if you remove the if, and just do *parkai[2]=*parkai[0]; parkai[2]->mazintiKainas(12); for example?
 
REQUEST_METHOD shouldnt' show up twice . . .
 
@wilhelmtell ok. just my habits/hurry.
 
@LeviMorrison That takes up a third of my screen. It belongs on SO
 
@jalf That's just because it is output . . .
 
10:13 PM
@LeviMorrison It doesn't really matter what it is. What matters is that it's a wall of text, which is not really suited for chat
 
@wilhelmtell not really. qi::skip is a socalled parser directive which modifies the parsing context for the contained expression. The directive is constructed using (optional) parameters. In this case, the parameter is another parser expression
 
@jalf yes, it stays the same. I'll try assigning the data through a temporary variable
 
@sehe sorry about that, was talking with a friend here at home ...
 
@shookees No, instead try to narrow it down to the simplest example you can, and then post the complete example. Including class and function definitions. Something we can take home and compile and try for ourselves
 
@wilhelmtell ooh you have friends :)
 
10:14 PM
@LeviMorrison please post it in SO, I'll downvote it
 
You know, the PHP room is super helpful. This one never is. Later guys. Enjoy your day.
 
@LeviMorrison Cheers
 
=\ he's gone
@sehe and hth, yep
 
@Abyx That was awesome code. So explosive :)
 
10:16 PM
Hey, that's not our bin.
 
1 message moved to Casual chat
@LeviMorrison sooo... Why did you ask here, and not in the PHP room?
 
@jalf Traumatizing our casual users!
 
@jalf Because it isn't PHP?
 
It doesn't look C++, either, TBH.
 
Why did you ask here and not on SO? ;)
 
10:17 PM
@LeviMorrison So? People discuss all sorts of languages and questions here. If the PHP room is so helpful, I'd expect that they do the same
 
sbi
Last night I had a dream where I was teaching my wife how to write Apache virtual hosts... What is wrong with me.
 
@sehe What's BOOST_SPIRIT_DEBUG_NODE?
 
@jalf wut... why don't you revive this in casual chat...
 
otherwise, SO is a pretty cool place to ask questions
@sehe cos I'm a noob at moving messages. :)
 
@wilhelmtell It's got to with italian food, I think.
@jalf Not the moving, the reviving.
 
10:18 PM
@sbi Haha
 
@sbi s/apache/nginx/ and he's perfectly sane
 
room topic changed to Lounge<C++>: Chat went bananas. Also, we're not helpful and we don't like PHP. [c++] [c++11] [c++-faq]
 
@CatPlusPlus But, we are helpful.
 
@CatPlusPlus "We're not helpful, like the PHP room" - accurate
 
But yeah, PHP sucks.
 
sbi
10:20 PM
Now, about those bananas... Tries to look cute
 
@EtiennedeMartel You might be surprised that most of the folks in PHP chat don't like it either.
 
@LeviMorrison Not at all
 
Woah, sane people in PHP room.
 
You might not be.
 
10:20 PM
@LeviMorrison Considering most people here don't like C++, I'm not surprised at all.
 
sbi
@LeviMorrison No, it's more or less a running gag here.
 
@jalf Use this bin: chat.stackoverflow.com/rooms/549/bin. I remember someone once not liking us dumping stuff on the bin of Casual Chat.
 
@EtiennedeMartel exactly
 
@CatPlusPlus I'm pretty sure many of them do it because they have to pay the bills at one point.
 
sbi
Anyway...
 
10:21 PM
I'd rather be homeless than write PHP.
 
sbi
LOUNGE, Y U NO SLEEP?
 
@EtiennedeMartel And they can't do something else... Nah. Kidding. Even I have done php once
 
@sbi coding.
 
@CatPlusPlus I don't think so.
@sbi UTC - 5 here.
 
sbi
@Abyx Aren't you in Russia? You're like, what?, 2hrs ahead of me.
 
10:22 PM
Stop unfunning my jokes!
 
@sbi yep, it's 2:23AM here
 
Btw @sbi I can only get on here when certain keywords aren't mentioned in the starred sidebar and only between 9am - 4pm
 
@sehe With Java on the serverside
 
@Abyx Oh, not that bad then.
 
10:23 PM
Is there a way to send only some output to a file? (Using the shell > operator)
 
@sehe Lol.
 
@Moshe Pipe it to a filter?
 
@Moshe You either redirect the stream, or not.
 
@Moshe cmd | grep -v uninteresting > file.txt
 
@Moshe Yes. With the > operator in your shell.
 
10:24 PM
Ah, right, piping. I forget that exists.
 
@sehe Why are you grepping the output of the Windows command prompt? That sounds silly.
 
What's the > operator called?
And is there a diff between cerr and cout in this regard?
 
sbi
@KianMayne Well, fornication doesn't seem to bother your school's dumb filter.
 
I'm on unix, btw
 
10:25 PM
a single translation unit, 51 loc, 6 rules spirit grammar: about 4 minutes to compile. :-S
 
@jalf, now when I'm thinking there might be a problem with copying one object with the other. You see inside them there's another dynamic pointer array, whereas there might be difference in size
 
sbi
@Moshe It's called greater-then. And it's got nothing to do with IO.
 
@sbi Huh? :L
 
@wilhelmtell That's fast.
 
@Moshe @RMartinhoFernandes had a lame joke about cmd -> cmd.exe
 
10:26 PM
@sbi No, it's not. It doesn't involve time.
 
@wilhelmtell gimme that. My system is wicked fast. Want to see how fast it is
 
@Moshe foo > bar redirects stdout. foo 2> bar redirects stderr.
 
@Moshe Greater than, output redirection, arrowhead, gozinta, and lots of others I don't remember.
 
@sehe 3-year-old macbook, but nonethless. 51loc!
 
Gozinta?
 
10:27 PM
Horizontal arrow in MathJaX?
 
sbi
@KianMayne The message I linked to speaks of fucking, it's start, and yet it doesn't seem to affect your school's filter.
 
@CatPlusPlus "Goes into".
 
sbi
@RMartinhoFernandes Eh?
 
@wilhelmtell You mean, it was the same snippet?
 
evening
 
10:27 PM
@sbi How do you know?
 
@sehe Yep, the code you revised
 
@sehe that is mighty annoying, BTW
 
sbi
@KianMayne How do I know what?
 
It's been a while since I had shish taouk.
 
10:28 PM
@sbi That it doesn't affect the filter
 
sbi
@RMartinhoFernandes Darn. That's a dumb typo. I know the diff.
@KianMayne Uh. You are here, no?
 
@sbi But I'm not at school
 
But do you know the diff3?
 
It's 10:30 pm here :L
 
@wilhelmtell lo and behold:
sehe@natty:/tmp$ time g++ -std=c++0x -g -O0 -I ~/custom/boost test2.cpp -o test2

real	0m6.815s
user	0m6.170s
sys	0m0.580s
 
10:29 PM
Does it take all day with -O3?
 
@CatPlusPlus 0m6.885s with -g -O4 -march=native
 
There's -O4?
 
There's no -O4!
 
@RMartinhoFernandes No. Just showing off
 
@sehe ok i may have lied. i didn't actually time it, i just approximated when it was done. time flies when you watch the carebears
 
10:30 PM
Let's start using -O9
 
@CatPlusPlus Oh, you can specify it. It just won't make a difference
 
Just in case.
@sehe I know.
 
sbi
@KianMayne Oh. Well, this room is rather straight-forward in word choice. I am sorry that locks you out, but please blame your school for this idiocy, not us.
 
@CatPlusPlus Then you know that was a lie :)
 
@sbi Oh i do (:
 
sbi
10:31 PM
Anyway, I do need to go to bed. See you tomorrow, folks!
 
@KianMayne Good. Case closed ... And blame your proxy
 
@sehe holy laser beams of captain america these are SECONDS?! I thought it was 6 minutes!! lord
 
@wilhelmtell Seconds. Yes. I had some fun moments sharing my compile times with others before.
 
golly
 
10:32 PM
what machine is it?
 
@RMartinhoFernandes I didn't realize every room had their own bin. Seems needlessly confuzzling
 
We don't, we overran somebody else's.
 
@jalf Only the Casual Chat room has their own bin (because apparently, someone was unhappy that they could not chat in the "bin"). The "bin" is for everyone.
 
I want a new machine!!11!!!one!!1
 
Lol, that guy actually went and asked that question in PHP room.
 
10:34 PM
@shookees that would explain it. Unless you define a proper assignment operator, it'll use the compiler-generated one, which would just copy the pointer to the array, rather than the array itself. That is why I suggested you should avoid pointers. The standard library comes with a very nice dynamic array already. Use that instead
 
@RMartinhoFernandes well, I searched for 'bin', and that was the only one that seemed the least relevant. If an angry admin/janitor comes around to complain, just tell them I did it and it won't happen again. :)
 
@wilhelmtell Oh the specs are in that post too - essentially unchanged since Nov 7 2009
 
@jalf Yeah, it didn't show up because you didn't have write access to it. Now you do :)
 
34 mins ago, by Mooing Duck
@shookees if you indeed got that error, then whatever they point to has an invalid copy constructor. More use of std::unique_ptr and std::vector will fix that
 
10:36 PM
@CatPlusPlus No fucking way?
 
@RMartinhoFernandes Like I said: confuzzling
 
anyway, I'm heading to bed
 
@sehe there's a part I commented out in experimenting but forgot to bring back in. that's the accumulation of _1 in the text rule
    text    = no_skip[+(char_ - macro_b)[_val += _1]];
but that's wrong, it won't compile
 
10:38 PM
@wilhelmtell Oh and I was running my Windows VM (at 4GB, 2 cores and dual monitor)
 
I could use a powerful machine.
I should start considering new desktop.
 
@wilhelmtell well, text is qi::rule<Skipper> -> the attribute type is qi::unused_type, you can hardly expect operator+ to work on that, no matter how lazily evaluated
 
Laptops are all fuzzy and mobile, but they really suck at power.
Are there 8-core CPUs yet?
 
Damn, I need to clean up my fan. I can't play DF without the temperature going through the roof. And I haven't found magma yet.
 
Magma found you.
 
10:42 PM
@sehe maybe i should say what i want. i want to ignore all input, leave it exactly as is, but when i read << iwant to recognize that and what's follows until and including >>
 
@RMartinhoFernandes DF is crazy processor intensive
2
 
Oh hey, there's i7 with 6 cores.
At 3.33GHz.
 
@wilhelmtell Sounds like a jobs for a regex
 
@sehe i don't think i should specify a skipper in the class type because i don't want to skip between tokens. i want to leave input as is until <<
 
@MooingDuck It's worse than GCC.
 
10:43 PM
@wilhelmtell Here are three 'sane' options:
        /* 1 */ text    = as_string [ no_skip[+(char_ - macro_b)] ] [_val += _1];
        /* 2 */ text    = no_skip[ +(char_ - macro_b)[_val += _1] ];
        /* 3 */ text    = +(char_ - macro_b) [_val += _1];
 
@CatPlusPlus apple.com/macpro a Which means that you can have a 12-core system at up to 2.93GHz
 
@MooingDuck No thanks.
 
@sehe i don't think so, because inside << and >> may be << or >> in, say, double quotes
 
@CatPlusPlus but think of the dwarves!
 
@wilhelmtell 1. make sure you do std::string::operator+=(const std::string&)
 
10:44 PM
I don't want a Mac any more than I want a console.
Which I don't want.
 
2. or append single characters, easier to write and less intermediate allocs
3. no_skip was redundant there
 
@MooingDuck For only $4,999.00.
 
afk
 
10:47 PM
@EtiennedeMartel 5000 bucks is the actual price, I didn't make it up. Also, what's with the freaky hundreds separators?
 
Oh, there's 990 at 3.46GHz
For about 1000€.
 
@wilhelmtell fair enough. Make it a Q on SO and I'll see what I can do.
 
Do want, though.
 
@RMartinhoFernandes It was a ReBoot reference.
 
en.wikipedia.org/wiki/Multi-core_processor says Intel Xenon goes up to 12 cores, but the en.wikipedia.org/wiki/Xeon disagrees
 
10:49 PM
I am messing up a differential equation finding the normal :( and I can't figure out my mistake :(
 
$ echo Xenon > a ; echo Xeon > b ; diff a b
1c1
< Xenon
---
> Xeon
$
 
ah, Intel's Xenon: Dunnington has two die, each with 6 cores only $2729
 
@RMartinhoFernandes diff <(echo Xenon) - <<<"Xeon"
 
@sehe Ah, nice. I thought you were taking too long. I was almost certain you would teach me some new trick :)
 
@RMartinhoFernandes or add { set -e; aname=/tmp/$RANDOM_a.txt; bname=/tmp/$RANDOM_b.txt; trap "rm -f $aname $bname" ERR EXIT INT; ... }
 
10:53 PM
@sehe Not worth it, really.
 
@RMartinhoFernandes well. I don't like garbage. Like Stroustrup, I prefer not to create it, or to deterministically clean my own garbage :)
 
@sehe I keep a terminal open with cwd /tmp/testing_garbage for this.
 
Process <(substitution) does the job. A shame we can't have more <<<"than" <<<"here" string on the same command line
@RMartinhoFernandes I live in /tmp. When I reboot, all of that is gone, since it is in RAM
 
So I need to git push regularly to save anything. Anything at all
 
10:56 PM
You live on edge.
Of RAM.
 
@CatPlusPlus Have UPS. Helps.
 
I had forgotten the negative reciprocal
-.-
 
@CatPlusPlus For the rest: stable OS-es and and a giant set of balls
 
Cojones made of armed concrete.
 

« first day (493 days earlier)      last day (4457 days later) »