« first day (442 days earlier)      last day (4499 days later) » 

8:00 PM
maybe one of the shift/reduce conflicts will lead me to it, I guess
 
8:12 PM
anyone here using cppcheck?
 
@wilhelmtell Yep.
 
how do you automate getting the dependencies for --append in your build?
 
ok, I don't quite get this
 
You mean include paths and pp defines?
 
how the fuck is it possible for end of input to occur after an expression?
oh wait, nm
I need to rebuild my grammar from scratch
most of what Bison says is allowable, I have no idea how it got that way
 
8:20 PM
@wilhelmtell I never used that feature. I simply run: cppcheck --enable=style --template gcc . 1>/dev/null
 
@StackedCrooked I mean CU dependencies.
 
what on earth is a CU?
 
@StackedCrooked That misses a lot of issues for any non-trivial project.
 
compilation unit
 
oh
so what everyone else calls translation unit
 
8:21 PM
For example:
// b.hh
int* make_int();

// a.cc
#include "b.hh"

int main(int, char*[])
{
    int* m = make_int();
}
where make_int() allocates
 
@wilhelmtell I know, it's a very superficial checker.
 
this won't report the leak
but if you say --append=b.cc then it will.
so i wonder about automating the appending.
i was thinking along the line of using gcc to get the deps, and then maybe some script on top of that to do substitution of headers and CU if it exists.
 
I can only think of brute forcing it. I would write a script that generates a long list of --append options for all .cpp files.
 
the problem with that is that cppcheck can report the same error many times
 
Maybe ask on SO. I fear I'm not very helpful.
I haven't run into this error yet though
 
8:27 PM
man
why did I start fiddling with this?
thank the Lord for source control
 
fiddling with what?
 
my grammar
 
your grandma?
oh
 
now
how the hell do I get the old version out of source control? :D
 
sbi
8:28 PM
@wilhelmtell Never fiddle with your gramma.
 
which? git? svn?
lol
 
> @TomalakGeret'kal Debuggers are quite heavy. Last week I nearly broke my toe when I dropped the debugger on my foot. Thank goodness it wasn't thrown at me though. – rhooligan 3 mins ago
 
Tortoise Mercurial
 
sbi
@DeadMG You revert your changes?
 
i'm clueless with that
 
8:29 PM
I don't want to revert all of them
just the one file
 
@DeadMG Is it the last commit, or some older one?
 
sbi
@DeadMG Well, then revert just this one file.
 
I don't actually know how to do that
 
i've become a little bit of a git fanboy, so much that i'm thoroughly clueless about hg
 
@DeadMG Subversion?
 
8:30 PM
open workbench, right click on file, revert
 
i usually branch off before reverting, in case i fail reverying, so i can re-try. just an advice. :)
 
nothing seems to have happened
 
it's already reverted?
 
no, it's still the version I broke to hell
 
did you selected "working directory" in version tree?
 
8:33 PM
ah, I just did the exact same thing again and it worked
 
It should show some dialog asking if you want to keep a backup of the changes or discard them.
 
hginit.com/01.html and search for "revert"
sounds like a very dangerous command :-S
because it affects the working tree, not the repo. right?
i mean, there's no undo for that.
 
there is .orig file
 
ah.
 
(if you choose to keep it)
 
Unless you use the -C flag, it won't destroy anything.
 
i'd probably commit the broken code and then throw away the commit. just so the commit is there, should i ever be curious about this work in the future.
that's what i do in git. then the commit stays in for 3 months, in the reflog, until it gets gc'd.
 
Xeo
@StackedCrooked ...
 
nah, it just confirmed what I already knew
namely that I have a pretty fragile grammar
 
@Xeo Yeah, I know, time to sleep for me.
 
8:39 PM
@wilhelmtell You don't throw away commits in hg. There's no built-in command for destruction of history.
 
really
mm
 
Xeo
Oh yeah, I finally finished my reread of Elfen Lied \o/
 
well. then branch off, commit, go back to the previous branch, and delete the old branch ..
 
Xeo
That manga is so awesome
 
would that make sense in hg? to emulate the rebasing?
 
8:41 PM
@Xeo I assume way better than the anime?
 
Xeo
@StackedCrooked absolutely
 
@wilhelmtell The branch will remain there forever.
 
Xeo
Especially the ending is really good.
 
even when you delete it?
 
You need an extension to remove something you already committed.
 
Xeo
8:42 PM
The anime only covers ~1/2 of the manga
 
huh
mm
so how does the repo never asplode?
 
Why would it?
 
Xeo
Hm, Steam not working for anyone else here? :s
 
because things never get ... well if you experiment, then fail, and don't need it, it still stays?
oh oh
i see.
 
Why should it go away?
 
8:43 PM
so it's kind of lick svn in this regard
in git when you experiment with stuff it usually goes away from the repo at some point in time if you don't maintain a reference to it.
 
If you really need it there's a bunch of extensions that provide similar functionality. There's MQ, there's strip, and there's histedit, which is pretty much like $ git rebase -i.
 
in git you can emulate hg's behaviour by setting the reflog to never expire.
 
But I don't see the pressing need to destroy history.
 
there is. it's just git won't track anything that isn't referred to.
so, if HEAD refers to a commit, then it will forever stay, as well as all the commits it the commit refers to, recursively. but anything else will eventually get gc'd.
 
@wilhelmtell Yeah, and never delete that repo, because the unrefed stuff in the reflog doesn't get cloned.
 
8:47 PM
it's just how it works.
yeah
 
hmmm
 
the reflog is essentially the trash bin, the recycle bin.
 
In Hg, if you write something worth committing, it stays.
 
how the fuck does Lua tell the difference between f, (1 + 1) and f(1 + 1)?
 
There's no point in deleting it.
@DeadMG There is a difference!?
 
8:48 PM
Lua has no semicolons, so both are valid expressions
 
and a branch is just a sticky note, a ref, to a commit. so that commit, and its parents, will stay for as long as the ref is there. as soon as you delete the branch ,meaning delete the ref, the commit is not pointed at by anything other than the reflog, and the reflog prunes by default evewry 90 days.
 
as in, f -> expression1 (1 + 1) -> expression2
and f(1 + 1) as a function call expression
 
If you want to do "stealthy" experiments with hg, you're just a clone way.
Clone your repo, experiment on it, and throw it away if you really want to.
But if it's worth keeping, it's worth keeping. That's the hg way.
 
yeah
 
Xeo
Damn, Steam servers sure are busy today. :(
 
8:51 PM
what i like about git is that it makes me think of committing as saving, not as "this is worth keeping". so i commit very very often, sometimes junk. i always know it's easy to get it out of the way not to pollute my history.
 
I do the same.
 
@wilhelmtell that's a DVCS thing, not a git thing
 
It's just that I don't have this idea of "history pollution".
 
sbi
@wilhelmtell You know, reading this babble makes me think C++ actually isn't all that complicated.
 
sorry, not history pollution. timeline pollution.
 
8:52 PM
always bugs me when people go conflate "the first tool I happened to learn" and "all tools in the same category"
 
if you look at my reflog you'll proly find about 60% "asdf" commits
 
It's better to have a long list of small changes than a short list of big changes. Especially when you're tracking down a bug.
 
@wilhelmtell Whatever you want to call it.
 
Git having DVCS features doesn't mean that Git is the best VCS ever. It jsut means that Git is a DVCS like so many others
 
My commit history is the history of the things I committed.
 
8:53 PM
lol
@jalf never said it was
 
Not some beautified version of it.
 
@jalf but i think that dvcs are like editors, in the sense that it's good to know one very well.
 
@wilhelmtell but you did say that what you like about git is that you can commit often and freely, which isn't a property specific to Git
 
If you commit something with a message like "asdf" either it's not important, or you're just lazy.
 
@wilhelmtell absolutely
anyway, I'm tired. 'night all
 
8:55 PM
@jalf what's wrong about it? i didn't say i don't like some others because they don't support that. i didn't even say it's unique about git. just that git allows for it.
@RMartinhoFernandes i'm lazy. this is the fast save nature of my workflow. usually i squash those asdf into a proper commit with a proper detailed message. i will never ever have asdf in my timeline. you'll never find a single one of those.
they're only in the reflog.
 
Suppose you experience a mysterious code crash in your application. You know for certain that the bug did not exist yet at revision 1000. You're currently at revision 1100. You can then find the bug by first testin revision 1050 (middle), and then refine to 1025/1075, etc... What is the name of this strategy again? Divide and conquor?
 
binary search
 
bisect
or bisection
 
I hate grammars
 
8:58 PM
i find that in practice it isn't always easy because you can have the same bug appearing and vanishing in between. or other bugs that shadow it.
 
That's one reason why you should prefer many small commits over a few big commits. You can trace down the origin of a bug quickly by using binary search to find the guilty revision. And then you only need to check the small amount of changes in that commit.
@wilhelmtell I've used this strategy succesfully in practice. However, sometimes it doesn't work. (Once it turned out that a boost update was the culprit, which was added as an svn:external. Nearly drove me crazy to find that one.)
 
@xeo do you think my answer is completely wrong?
 
But that's exactly what the common git strategy of squashing stuff doesn't do. It turns small commits into large ones.
 
Well then, git sucks. Apparently.
 
lol
 
9:01 PM
so what's new?
 
and so it begins
 
This year.
 
you know what's new? that i woke up a couple of hours ago and it already starts to get dark outside. i hate the winter!
 
@RMartinhoFernandes Isn't that an attribute of distributed vcs in general?
 
9:02 PM
What's new? My OS :D
 
hg doesn't like rebasing
and squasing
 
but it's Mac, so it's probably less valuable than Windows XP
 
sbi
@StackedCrooked I remember a CI tool (actually a Trac extension/plugin/whatever) we used at one company I worked for which would do this automatically across platforms.
 
i think that if you value your build then often you have to squash commits together, so the build doesn't break
but that just means logical commits, which is fine.
 
@DeadMG Ignorance is bliss :p
 
9:04 PM
lol
 
@xeo you there?
 
lol love the Java quote on the rightt
 
Honestly, I'm starting to like OS X more. (And given the reputation of Apple here I guess that counts as another self-deprecating statement..)
 
If you reach mastery when you learn to eliminate code then by all accounts I'm an end-all-be-all master jedi Java programmer :p
 
@StackedCrooked The only one I know that lets you manipulate history like that is git.
@wilhelmtell Just don't push broken commits.
 
9:07 PM
I see.
I don't like svn either.
 
If it's broken, it's not worth pushing.
 
So hg is the messiah?
 
Xeo
@MrAnubis Ah, sorry, was gaming right now. 'sup?
 
@StackedCrooked No, hg is also flawed in parts.
 
@Xeo do you think my answer is all wrong?
 
9:08 PM
Q: How do I kill all changes in my working tree? A: Use the update command.
 
I have vague memories of Perforce in one company that I worked for. I remember that that was pretty decent (but not free).
 
Xeo
@MrAnubis Yeah, because there is no copy ever made in the code shown. And you can use a map with a move-only type, as long as you only use the operations that don't require a copy
 
Fuck it, I need to restart Firefox. This is getting too straining for my poor little laptop.
See you after the break.
 
@Xeo but compiler does checks syntactical error which his program seems to have
@RMartinhoFernandes you're using palmtop ?
 
Xeo
@MrAnubis It will only check the copy ctor if the pair was copied at any point
 
9:14 PM
@Xeo and If that isn't the case why he is seeing that error? (must be any unknown edition of VS then :D)
 
Xeo
He's not showing the real code, easy as that
 
ok I'm gonna delete the answer before I get downvoted :D
 
I press the refresh button on this page when I'm too lazy to scroll to the bottom.
 
hmmm
 
the problem with perforce is that not only it's not distributed but it ties to the server beyond hope. absolutely anything you do, anything, requires you to be online and is very slow because ofthe latency.
 
9:26 PM
@wilhelmtell Everything is server-side indeed.
I don't remember this being problematic. It was on a reasonably fast intranet.
So that leaves darcs.
The following is a comparison of revision control software. The following tables includes general and technical information for notable revision control and software configuration management (SCM) software. General information {| class="wikitable sortable" style="font-size: 80%; text-align: center; width: auto;" |- ! Software ! Maintainer ! Development status ! Repository model ! Concurrency model ! License ! Platforms supported ! Cost |- ! | AccuRev SCM | AccuRev, Inc. | actively developed | Client–server | Merge or lock | | Most Java Platforms (Unix-like, Windows, Mac OS X) ...
Anyone ever used Bazaar?
 
sbi
@StackedCrooked Of course. Why else do you think they developed it in the first place?
 
@sbi Now that is something to think about.
 
sbi
@StackedCrooked Of course. Why else would I say anything?
 
@sbi You're a true sage.
 
sbi
Can someone please pin that? I'm too modest to do it myself.
2
 
9:40 PM
Ha, too humble to pin it yourself?
That's just the person you are :D
Lol, I should sleep soon.
@Xeo: @sbi orders you to pin my message where I call him a sage.
Lol.
Who did that?
 
sbi
Not that one! Who's the moron who did that?!
 
Seems that nobody is willing to help you.
 
sbi
Breaks into tears.
 
On New Year's Day!
 
sbi
@StackedCrooked Not day anymore. it's almost 11pm here.
 
9:45 PM
Man.
 
sbi
:)
 
I upgraded my OS and now I have a new wallpaper.
 
Xeo
Btw @sbi, you wanted to mail me a certain something I believe. :)
 
sbi
@Xeo No, you got that wrong. It was you who wanted me to mail you something. :) Anyway, I looked at the code and decided I'd have to clean it up a bit before I give it away. :-/
 
user142019
9:54 PM
I'm bored to death.
 
Xeo
@sbi Why?
 
sbi
@Xeo If you need to ask why one needs to clean up, your mother must have failed.
 
Xeo
lol
 

« first day (442 days earlier)      last day (4499 days later) »