« first day (1144 days earlier)      last day (4030 days later) » 

15:00
hh, someone took the time to downvote the accepted answer on that :)
user3010322
Though it should case linker errors more than anything, I guess.
we need like a C <-> C++ tags decoupling thing, when someone tags a question with both, it will threaten to kill his family AND friends unless he's really sure he wants both
JBL
JBL
@ScarletAmaranth Unless he proves it. I bet some would still be really sure...
Just make it an autoban
@ScarletAmaranth Oh come on. Just for example, this clearly needs one more VTC both!
15:10
@JerryCoffin Heeey, I am working on getting a gig on that one!
@ScarletAmaranth I seem to be on an Austin Powers kick this morning. My immediate reaction was "install the lasers on frickin' sharks, and we'll all give you an up-vote!"
hmm... ok... so, git. I made some changes, but then realised I was on the wrong branch. I have not pushed the changes. Can I do something like 'uncommit' those changes, but keep them in a stash, checkout where I want to put them a stash pop there? or is there a smarter way?
Where would I post a question about C/C++ interop?
@thecoshman Just rebase them
@MartinJames Stack Overflow or here
15:13
@ThePhD No, not really. It has nothing to do with abstractness.
@CatPlusPlus And then reset the branch to origin/whatever
@CatPlusPlus hmm... not played with rebase for anything more than squashing commits so far...
Xeo
Xeo
rebasing is cool
@MartinJames I would advise ExpertSexChange.com.
I mean, which tag/s should I use?
@JerryCoffin Heh.. :)
Xeo
Xeo
15:15
user3010322
Tag it C and C++ and have people rage at you for using both tags. :D
@thecoshman git checkout bad_branch; git rebase good_branch; git reset origin/bad_branch; git checkout -B good_branch should do, I think.
@R.MartinhoFernandes :S here goes
You might need to move the good_branch ref too
Oh yeah.
@thecoshman See -B I edited in!
15:17
ergh... I think the changes are trivial enough for it to be easier to just redo it all... but I want to learn this :P
Xeo
Xeo
@R.MartinhoFernandes What does that do?
Creates a branch
Hmm, still not right.
Well, the branch repointing at the end needs some work.
git checkout bad_branch; git rebase good_branch; git reset origin/bad_branch; git checkout HEAD@{1}; git checkout -B good_branch
oh, the 'git reset orging/badbranch' put my changes into the unstaged area :D
@Xeo First goes to your bad position, then bases those changes on the good position, then sets the current (bad) branch pointer to where it should be, goes back to where we were before you changed the current branch pointer, then puts the good branch pointer here.
@thecoshman Ah, yeah, resets should probably be --hard for cleanliness.
15:19
ergh... so many branches, so many terrible names, so much stupid 'd_' prefix
Xeo
Xeo
@R.MartinhoFernandes ooookay
nope, changes lost
oh well, thankfully they were trivial to redo
@R.MartinhoFernandes ?
@thecoshman Just try git reflog
15:21
All commits are in reflog
All of those HEAD@{n} things you see are places you can go back to with git checkout.
fuck it, like I said, was very trivial change
oh... well
Still, knowing the reflog is good.
may as well keep going then, if I can just keep trying it :P
I memorize my reflog at the end of each day
15:23
Hmm, something went wrong with my commit message.
"Sam" is not a good one.
What the fuck happened to the rest of it.
Xeo
Xeo
"Sample ... "?
Were you aiming for "Frodo"?
"Samurai"?
ok... so I now have this commit I want to rebase, but it has no branch... do I 'git rebase origin/goodBranch'?
@Xeo "Sampling rate (...)"
Xeo
Xeo
15:25
Close enough
(I actually had "sampling rate" as the alternative in mind)
@R.MartinhoFernandes ...and some people have the nerve to say Git isn't completely intuitive!
@JerryCoffin It's horrible. Note how the operation of "setting a branch pointer somewhere" is done with reset in one place, and with checkout in another.
Xeo
Xeo
Yes, no, maybe.
@R.MartinhoFernandes Yes, it has more symptoms of "arrogant C programmer's syndrome" than almost anything else I could easily name.
why a code of 5 lines is not tolerable here ?
I have to admit that "a code of 5 lines" is a weird greeting.
Because the limit is 0.
@Xeo Is all I need to hear from you.
Xeo
Xeo
?
@aMother This is a place where we all go to avoid code for a bit, 5 lines or 5000.
15:32
nope, I've made too big a mess of this :P time to just get it done
@R.MartinhoFernandes debug time :) Also, :verbose se ft?
ok, so we just can't ask any questions here...
4 mins ago, by ScarletAmaranth
whoa
deletionism
Xeo
Xeo
@EtiennedeMartel I think I'm missing a reference here.
@thecoshman if it's just a single commit, you can simply git cherry-pick it onto the correct branch, and then git reset to pop it off the "wrong" branch
15:33
@aMother Questions about food, beer or sex are generally welcome.
@sehe It was a reaction to something that has been removed at a later time point :P
@jalf not any more :S
@aMother There's a site
not any more what? :p
@Xeo "Yes, no, maybe is all I need to hear from you" is a line from a Cut Copy song.
JBL
JBL
15:34
@aMother Did you read the newcomers hint ?
@MartinJames @jalf I got that
Hrrrmm...
How silly of me to inspect _your_ deleted posts, but not those.
Oh wait! :)
Xeo
Xeo
@EtiennedeMartel I see
told you, was very trivial change. I've redone that work in seconds. Sure if I knew what I was doing I probably could have moved the commit faster but vOv I'll learn one day
@jalf He replayed the change by hand.
@thecoshman for the next time you need to do it, cherry-pick is super easy to use if you just want to move an individual commit or two (just git cherry-pick <commit-id> will take the commit you specify and apply it to the current branch). If you want to move longer sequences, you can use rebase, but the args for doing that are a bit more complicated and I usually have to look that up :p)
and to roll back the current branch you can just git reset <commit-id> to roll the current branch back to the commit you want to be the new head
@R.MartinhoFernandes no I didn't. I even failed that.
¬_¬ it's taking me nearly all afternoon to change a few settings in a fucking maven build script
@aMother You can ask, but unless you become one of us, don't expect an answer.
I like maven.
Of course, everything is fucked up at enterprise-y levels.
Wanna see something interesting?
15:41
@R.MartinhoFernandes belive it or not, I am not giving out at maven, or git. This is a streight up ID10t error
@EtiennedeMartel not really
Open this and search for "Lambada".
5
Is ICC for Linux OSS?
Maybe free if not OSS?
> for(size_t i=r.begin(); i!=r.end(); ++i)
AHAHAH, wat
Ew.
Hmm seems so. There's people compiling Gentoo with ICC.
@EtiennedeMartel Well, as long as it doesn't have Macarena functions, that has to be at least a small improvement...
15:47
@JerryCoffin Sure would help my code feel more festive.
@R.MartinhoFernandes free for non-commercial, non-academic use.
So really, free for personal use.
@rubenvb So if I learn anything while I use it, I'm violating the license agreement?
But as a lot of scientists effectively live at their uni, their use might qualify as personal.
@JerryCoffin they say "non-commercial" is "unpaid"
So if you're homeless you can't make personal use?
15:50
@rubenvb I was referring to the "non-academic" part.
@JerryCoffin Yes, because you'd learn to not buy ICC
It's even in the repos!
@JerryCoffin exactly
Need to accept the license, but that's it.
@R.MartinhoFernandes well yes. And I believe you need a serial key you get when you register with Intel.
Xeo
Xeo
15:52
0
A: std::list.remove is calling the destructor but doesn't delete it

angevadI had same problem but only for vectors. Probably you should to use virtual destructor for Component. Without this virtual destructor I had memory leak in my program. class Component { public: virtual ~Component(){/*empty*/}; ... };

shudder
Its sad that the Linux DNA project died... ICC is quite good on Haswell, because nobody else does AVX2 right
Xeo
Xeo
Also, TIL that one of our projects uses two evil "dirty" bits within the object pointer :|
@Mikhail because AVX2-optimized kernels will make your system run so much faster?
Just like Gentoo is so much faster than Arch?
Please.
@rubenvb #1 Gentoo is much faster because the packages I run like Povray are built from source the way I like them... #2 The LinuxDNA benchmarks were good and showed some improvement, maybe not because of AVX2 but look at the benchmarks and stop guessing.
I run a lot of floating point software...
@Xeo two?
15:55
Hey Cat, does the build server have clang?
Xeo
Xeo
@DeadMG Yes
Yes, 3.3
@R.MartinhoFernandes yes
@Xeo It started with std::list, and you thought it was going to go well? :-)
15:56
@Mikhail Oh fuck compiling, it doesn't matter in the slightest
Gentoo is better because of Portage
And not breaking the system every 4 months
Portage is the killer feature. Not the compilation.
Xeo
Xeo
lol, today's what-if
It's the best package manager, hands down.
Compilation is annoying side effect at best
Xeo
Xeo
What makes it sogood?
15:57
@Xeo It does everything properly :P
Slots, masking, overlays
Xeo
Xeo
heh
@Xeo If I wanted AVX2 in my software using apt-get I would need to wait years... by building from source it happens automatically? wtf are you guys talking about :-/
Package in repo outdated? Most of the time you just need to copy the ebuild from package-version1 to package-version2 and it just works
Slots are great.
Xeo
Xeo
15:58
erm, I was honestly curious what made Portage good - I never used it before.
Is "they" not acceptable for generic singular?
@Pawnguy7 It is
Sure portage is good, but it isn't alone.
USE vars are nice too.
15:59
That's portage, by the way.
(Yes, I'm running out; I have a bunch of names preallocated for projects I haven't started)
Xeo
Xeo
What, started so many projects since last publishing your list?
I just pick a random dangerous disease and roll with it.
@Pawnguy7 Not formally, no. Despite the apparent sexism, "he" is generic singular. If you want to satisfy the feminists more than grammarians, "he or she".
Our projects at work use some marine theme.
15:59
Two people have told me when they see it they think of plural, but I have been using it as singular for quite a while. Far as I know, there is no word for this situation, and "he or she" is just... bad.

« first day (1144 days earlier)      last day (4030 days later) »