« first day (980 days earlier)      last day (3973 days later) » 

10:00 PM
(of course the choice of create/destroy scheme is totally random)
 
@Insilico One that has API for creating multiple things at once?
 
one should never run sudo pacman -Syu --ignore filesystem when high, for some reason that is exactly what I'm doing
I think I might have just killed my dist
 
@CatPlusPlus it could still provide glCreateTexture() alongside glGenTextures
but ~performance~
 
It's not about performance, it's about redundancy.
 
and there goes ncmpcpp, running processes crashing in random order..
 
10:01 PM
Honestly I would just forget about templates and just make a separate non-template class for each GLId type. Factor common code into a general GLId class or something for composition.
 
yeah I think that template here was shooting myself in the foot
 
Or perhaps even use some kind of template specialization crap to keep the code DRY or something.
 
or no.. it crashes because the developer is stupid as fcuk and can't go into clock mode if the terminal is N lines high....
 
@Insilico Ugh no, just type-erase the deleter.
 
@CatPlusPlus can I do it using std::function?
it sounds like a nice solution
 
10:04 PM
@ThePhD Your pull request is DDOSing my browser
 
@CatPlusPlus What benefit would type-erasing the deleter provide?
 
lol
 
btw
how does your change to the MinGW install path work?
 
@DeadMG You place "mingw32" in the "bin` directory, where Wide gets output.
I don't know how to properly get environment variables from C++,
 
@BartekBanachewicz Yes.
 
10:07 PM
so I couldn't make it any better than 'everything is referenced locally'.
 
@Insilico Instead of the brilliant solution that is creating a separate class for every handle, have only one?
 
@DeadMG Sorry, I had to rename everything and stuff!
 
You want to tag that handle class, btw.
So you can't assign ID of one type to another.
 
you know, there's a mercurial function for renaming that does not entail deleting and recreating every file
 
@CatPlusPlus Compile-time polymorphism might be applicable.
 
10:08 PM
@DeadMG There is?
 
@CatPlusPlus sigh
 
yeah
 
Oh. Uh. Well, I didn't know. x3
 
@BartekBanachewicz Oh no 32 bytes.
OH NO
Better write my code like I'm writing assembly just to save it!
 
@CatPlusPlus on every texture, VBO and FBO and shader
I know, I know
it just hurts.
 
10:09 PM
And how many of those will you have?
 
@CatPlusPlus I'm convinced. I would probably use some variant of compile-time polymorphism that Luc alluded to, although I can't think of right now how to make that work.
 
You don't have enough of those to use too much memory.
 
@CatPlusPlus a few thousand
let's see... 10000 * 24bytes means ... 240 kB
 
Uh oh better save that for emergency.
 
@CatPlusPlus Can't you do that by having a deleter as a type argument? E.g. glid<glDeleteShader> is not the same time as glid<glDeleteVAO> or w/e .
 
10:10 PM
think about developing countries that have less RAM!
 
Remember to support DOS 3.1.
 
@BartekBanachewicz Your machine has at least ten thousand times that.
 
The deleter effectievely becomes the type's "tag".
 
@cHao but think about Africa!
 
And thus you can set equal two shader-based glids, but not a shader-deleted one and a VBO-deleted one.
 
10:12 PM
@BartekBanachewicz psh. Even a raspberry pi has like two thousand times that. :)
 
@cHao if you haven't caught that already, I'm joking
 
ok
 
@BartekBanachewicz i kinda figured. but i've had to deal with too many ricers lately
 
so what I'm really thinking is, how is "Put MinGW in this arbitrary path" any different to "Put MinGW in this other arbitrary path"?
 
@DeadMG I like your definition of "arbitrary"
 
10:14 PM
@DeadMG It's the same for everyone (the bin folder / the same folder wide.exe is in), and you don't have to code it into main.cpp (no diff when someone else is trying to build Wide / make changes)
 
@cHao sigh. it's just I shouldn't need to maneuver around this so much
 
and the other thing I'm thinking is
 
room topic changed to Lounge<C++>: The league of extraordinarily large pull requests. [c++] [c++11] [c++-faq] [no-helpdesk]
2
 
I really can't accept this because I can't see what changes you've actually made, given that your diff comprises of literally the entire project twice over.
2
 
You're both really good at pull requests.
 
10:16 PM
@DeadMG did he fix the whitespaces too?
 
Sorry. :c
 
@DeadMG also it's a great sentence.
 
I don't know how exactly to clean it up.
 
@BartekBanachewicz Wouldn't any non-stupid diff tool have the option to ignore whitespaces?
 
@ThePhD Rollback your commit locally, and then use the detect renaming thing.
 
10:17 PM
@Insilico we're talking about PEBKAC pullrequest here
 
Yes, ignore whitespaces, then deal with inconsistent indenting for the rest of your life.
 
@CatPlusPlus would you rather commit "fixing whitespaces"? :D
 
I kept the indenting the same.
 
@Insilico Yes -- any diff that can't ignore whitespace is (by definition) stupid.
 
4 spaces, except in main.cpp (which had 2-space identation?)
 
10:18 PM
Don't send pull requests with moving shit around, or split it from actual changes.
 
@Insilico For that matter, you can normally have whitespace normalized during checkin.
At the same time, I can't blame Dead -- when you're modifying a large body of existing code, you should generally stick to relevant changes.
 
@JerryCoffin It's not a whitespace change, he renamed every file. The diff is every file removed, every file added.
 
=[
I renamed a folder and everything went bonkers. :c
 
@ThePhD Renaming things involve a "remove" and "add" operation in just about every version control system I've used IIRC. And for folders, it happens recursively on everything inside it.
 
~Sigh~
 
10:22 PM
Hg has a special change thing for "rename"
 
No.
 
@Insilico That depends on the toolset -- some can deal with that, but others (obviously enough) can't.
 
@JerryCoffin Clearly, I'm not recalling things correctly. My bad.
 
$ hg help mv
hg rename [OPTION]... SOURCE... DEST

aliases: move, mv

rename files; equivalent of copy + remove
 
So wait, do I try to do a rename or not? I'm so confused. ;~;
 
10:24 PM
VboGLId& operator= (GLuint id) {
    GLId::operator=(id);
    return *this;
}
seriously. (that fixed my problem)
 
@LucDanton It does note the rename in the changeset, though.
 
I have no idea what I'm doing.
 
You can also run addremove to do it after moving manually.
 
@ThePhD Yes.
 
@CatPlusPlus Where and when should I notice that?
 
10:27 PM
When doing a diff it'll say "renamed from X to Y" instead of listing contents twice (removed there, added there).
 
Does that depend on some diff format? I'm not noticing anything.
 
See if diff.git is set to true.
 
Apparently not.
 
> Conversion and Promotion, however, shows how clever application of sufficiently advanced technology can be indistinguishable from magic.[Clarke61]
Cute.
 
@BartekBanachewicz You didn't inherit any operators or carry them through -- why would that work?
 
@BartekBanachewicz The fact that you can muck things up doesn't mean operators suck. A more accurate claim would be that mixing assignment and inheritance (well) isn't easy.
 
@ThePhD look how construct did work
 
assignment operators and constructors are special.
 
@ThePhD So are destructors (all "special member functions").
 
10:44 PM
indeedily.
 
Hello, C++
 
~_~
 
I don't think any operators can be inherited
I've never expected it and I think the idea is a bit silly.
 
Using hg rename ... produces a bunch of adds and a bunch of removes.
This is silly. :v
 
What'd you expect?
The only way I know of to make it show up under the log is to pass -f
 
10:49 PM
@ThePhD git mv does the same thing. It figures out renames internally when running other commands (like git diff).
 
@Rapptz ?
 
@LucDanton TIL I guess.
That's pretty dumb.
 
@Rapptz Special operators can't be inherited (operator=, destructors, constructors).
But everything else moves through, if it's public.
 
Still pretty dumb.
:S
 
Operators in C++ are verbose functions with an awkward name: I'm really calling b.operator+() here. It's hidden behind the syntax (and unified with non-member operators).
 
10:51 PM
I know that but I still don't think it should be allowed
 
Note that if that operator wasn't a member the call would still have worked, due to the implicit conversion.
@Rapptz More special cases?
 
Is it really that special?
 
@rubenvb Do you have an updated version of your mingw/clang package? That one could use with say, Sublime Text 2 ?
 
Yes. Different from non-operators.
Right now it's consistent.
 
Well as long as +b calls bar::operator+ rather than foo::operator+ without putting anything as virtual I don't really care. Assuming they're both defined.
:S
 
10:54 PM
@Rapptz If I had declared the operator as non-member, the call would have succeeded due to the implicit conversion. In your system, would you forbid that?
 
@LucDanton I don't see the relevance :S
 
Because +b would work with a non-member, but not with a member with your rules.
 
Oh you mean implicitly converting from bar to foo?
 
Yes.
 
Then no, I guess?
I guess that's your special case?
 
10:56 PM
It's another one.
 
Then again I don't like implicit conversions too much but that might be besides the point.
 
@Rapptz Sure, that's fine. But why operators in particular?
 
... This is the stupidest fucking rename interface in the whole goddamn world.
 
I.e. what makes it fine for all other functions but not those?
 
This utility can't find renames or copies for shit.
What is it fucking good for?
... This is the worst fucking tool in existence.
 
11:07 PM
@Rapptz As usual, function in derived class hides function with same name in base.
 
mhm
@ThePhD What are you trying to do?
 
@BartekBanachewicz I think the bigger issue here is your assignment operator is declared private.
 
@Rapptz I ditched the GUI and used the command line to find renames using hg addremove --similarity 100
This means Mercurial should display them as renames instead of separate add/remove operations. We'll find out.
 
renaming isn't that hard
 
Doing hg rename does not mark them as renames. It just block add-removes items.
And then the diff is huge, which is what people were complaining about.
hg addremove -- after doing the changes -- is what marks things as renames, and changes the way Mercurial displays it (in theory)
 
11:13 PM
On a different note, there is quite a large number of issues with that code. Why are you doing this in C? C++ or Python would appear to make the whole problem trivial, IMO? — not-sehe 1 hour ago
Here's a simple rewrite of the C implementation in C++, including the test case from your original question: coliru.stacked-crooked.com/… running live :) — not-sehe 34 secs ago
^ thanks @stackedcrooked (and @KonradRudolph, you must be right :/)
 
Lol, almost 2000 rep.
Why don't you go back to being a polar bear?
 
user142019
Lol, almost 20000 rep.
 
Lol, almost 200000 rep.
 
@not-sehe Hmm … why am I mentioned here?
 
@KonradRudolph The better question is, why not?
 
11:16 PM
I remember Serial-upvoting a couple of users one time
Just so their reputation would have a fine value
 
Question of the day: why method that's a simple condition returns a nullable bool.
 
QuantumCode
 
@KonradRudolph because you called me too help-happy earlier :/
 
haha
true
 
where true and false == maybe
 
11:19 PM
I want to get rid of this code. All of it.
 
:%d (or perhaps: :args **/*.[ch]pp and :silent! argdo %d)
 
post your code on public forums with lots of silly code nazis
they'll fix it for you by pointing out errors so they can call you an idiot
 
I know what's wrong with it.
 
it's analogous to posting snippets of an essay in YouTube comments
 
that ever happened. not.
 
11:22 PM
I'm talking about places like cplusplus.com, not stackoverflow
You should see the bullfuckery they go through over there trying to find ways to replace system("pause")
 
... that'd be g/system("pause")/norm /system/d%
 
Well, Rayman Origins has such a great soundtrack.
 
I bet it does.
OH THAT REMINDS ME
I need to get a soundtrack. :D
 
Today I had to use Javascript. I've never written a messier code. :(
 
11:30 PM
 
Hello everyone !
 
@HamZa First time here? Read this!
 
@EtiennedeMartel Hey, thanks yes the first time, I already checked the link :D
2
 
Wow. I'm honestly surprised.
Most newcomers either say nothing and spend their whole lives as lurkers, or don't bother with the link and dump their question without giving a shit about us.
 
Breaking News: Etienne is surprised
 
11:33 PM
If I ran code duplication analysis on this thing, it'd probably report something like 80%.
 
@HamZa Hello
 
@EtiennedeMartel I'm a regular in the PHP chatroom, so I know kind of general rules in chatrooms
 
@CatPlusPlus Sounds reasonable.
@HamZa Oooooh. Hmm, that's not a very positive thing here.
We don't really like PHP.
 
@EtiennedeMartel haha yeah I know, 2 different worlds
 
Do people in the PHP room like PHP?
 
11:35 PM
I respect other people's languages (u.u) -even if they are garbage
 
I don't care, but I'll laugh if you try to prove PHP is not a horrible piece of shit that shouldn't exist.
(Don't)
 
@Rapptz Heee, we hate it, complain about it but still use it lol
 
@CatPlusPlus Why do you expect people to automatically start arguing?
 
I wonder if people in the Java rooms talk about how C++ is shit
 
@Rapptz Do people here like C++?
 
11:36 PM
Some people do (like me). Others don't.
 
@EtiennedeMartel PHP developers.
 
@Magtheridon96 Java programmers are notorious for not giving a shit about actual quality of things and just doing their work without ever stopping long enough to form an actual opinion.
 
^ so true
 
@CatPlusPlus lolz
 
@EtiennedeMartel I raise you a Prinny soundtrack.
 
11:38 PM
@CatPlusPlus Woa. Wasn't expecting that.
 
@HamZa I've been a PHP "developer" myself. And I regret spending so much time on it. If you want to do web development, please consider Python or Ruby instead.
 
@EtiennedeMartel Many Java users are much like C programmers assuming they're using the fastest language in existence (with a complete lack of testing to support the theory).
 
@JerryCoffin I don't know. Java only makes sense from a corporate standpoint, which means those who use it use it because it's their job.
I'm guessing many of them are "9-to-5-with-kids" types.
 
I was forced to use C# when I was working as an intern for this one company
 
@EtiennedeMartel Some. For reasons I can't quite fathom, a completely ridiculous number of people actually like it.
 
11:39 PM
//@todo:
public bool? IsPrivate { get { return null; } set { } }
 
@JerryCoffin Maybe it's like those who like PHP. They just don't know any better.
I mean, if the only thing someone eats is shit, don't expect him to want anything else. His reference pool is too small.
 
We've got DataAccess assembly, but half of the queries are outside of it anyway.
 
@HamZa Read the first chapter of the Poignant Guide to Ruby and you'll probably end up reading the entire book, and possibly realize how bad PHP is.
 
@EtiennedeMartel What?
 
@EtiennedeMartel Probably. I've seen a (quite un-)fair number who were thoroughly incensed at even the suggestion that anything about Java could possibly be less the the pinnacle of perfection.
 
11:40 PM
@CatPlusPlus The song starts pretty generic, and then it kicks in. And... woa.
 
$Oh $come $on
 
@Jeffrey I actually started developing as a hobby when I was about 15, now I intend to make it a profession (after 5years). After all these years (learning and forgetting), I can't really call myself a "developer".
 
$Its $not $that $bad
 
@EtiennedeMartel Yeah it's p good.
 
11:41 PM
@HamZa I had a pretty much equal experience and then I decided to take a look at the alternatives. I'll never come back.
 
@JerryCoffin All in all, that reminds me of that Henry Ford quote.
> If I had asked people what they wanted, they would have said faster horses.
2
 
Pull request attempt #2. Anywho, that's the last I'm going to be trying for that. If you decline/accept it, I'll delete my repo.
 
@EtiennedeMartel I was thinking of the other one: "You can have any language you want, as long as it's Java."
 
@JerryCoffin That works too.
Henry Ford, the software engineer.
 
@EtiennedeMartel He was, really. His real invention wasn't cars -- it was the assembly line. In other words, an algorithm for building cars.
 
11:43 PM
@JerryCoffin Indeed, cars were just the proof that his invention worked.
 
$$$$$$$$I$$$$cant$$$$see$$$$my$$$$$$code$$$$anymore$$$$
 
@Magtheridon96 You can stop it now.
 
@EtiennedeMartel Well, that and a way to satisfy a real need and make a whole lot of money.
 
@JerryCoffin Also.
 
@EtiennedeMartel Fine
 
11:44 PM
But hey, I think he deserved it.
 
@EtiennedeMartel No argument from me on that. As I was careful to point out, what he did met a real need.
 
I'm planning to buy some books, I want to learn another language. Something like C or C++, I though may be ok. I'm now struggling with which one I should begin. I searched and found out that C++ is more OOP. Now I asked some guys, some of them advised me to learn C the others C++. So you know I though I'll take a visit to the C++ room !
So what do you think guys ? What should be a good starter ? Note that even in PHP I don't know about OOP.
 
@HamZa As a rule, if a C++ book isn't on The List, it sucks.
 
@EtiennedeMartel I also took a look there !
 
That said, C is a legacy language, mostly useful for maintaining older stuff.
C++, thanks to C++11 and the fact that people are finally starting to care about it, is much more modern.
So, if you have to choose between C or C++, I'd say go with C++. C will be fairly easy to pick up after that, anyway.
 
11:47 PM
I see
So which book do you recommend ?
 
@HamZa Especially if you're accustomed to most other reasonably recent languages, C is tough to use, simply because (by current standards) its library is very small, and with minimal support for containers, algorithms, etc., to which you're probably accustomed. IOW, to write anything in C that uses those, you have to start by writing all those basics on your own.
 
I keep hearing about Accelerated C++, although I never read it myself, and I don't know how good it is with C++11.
 
@Jeffrey PHP devs hate Ruby !!!
 
@HamZa Oh course they do, they're jealous.
 
Well, Ruby hates PHP devs ;_;
 
11:48 PM
@HamZa C is fascinating, but if you develop in it you are a moron (except for possibly some really edge cases)
 
Hmmmm.....
@Jeffrey It's fascinating from a historical standpoint.
Like an artifact in a museum.
 
@JerryCoffin I see, so that's why it's used in universities to "practice" on coding algorithms
 
@EtiennedeMartel It hasn't been updated for C++11 at all, but does make good use of C++98/03 facilities (though C++11 would certainly be a better starting point).
 
11:50 PM
(That was one hell of a onebox)
 
No Amazon oneboxes.
 
@HamZa No, not really. At least from what I've seen, it's used in universities primarily because it lets them teach exactly the same class for decades at a time, without the professor having to learn anything new.
 
@HamZa Woah, PHP developers being right about something, that's a new one.
 
@HamZa My university used a C-style C++ to explain algorithms. But it's well known that my Uni sucks.
 
@CatPlusPlus Hey, they're PHP devs, not VB devs.
 
11:51 PM
lol, I know there are different versions of C++ but I've no idea what the difference is between C++11 or C++
 
@CatPlusPlus Oh come on man. Ruby is not that bad.
 
@HamZa C++11 is a major revamp, with several new features that change how you should approach a problem.
 
@HamZa C++11 is the recent standard.
 
@CatPlusPlus sarcasm level over 9000
 
C++11 introduces some nice things
like lambdas, the auto keyword (one with a different purpose at least), move semantics
 
11:52 PM
@EtiennedeMartel thanks, I think I will buy it then, hope the store has it lol
 
@HamZa For most practical purposes, there are only two versions of C++: 98/03, and 11. Technically, there were some differences between 98 and 03, but too small for most people to notice or care about (most changes were just to formalize what they'd intended in the first place).
 
@JerryCoffin xD well it's hard(er) to learn when you get older
 
You're still young though (relatively speaking)
 
@HamZa A fact of which I'm all too aware, thank you.
 
@JerryCoffin lol
 
11:54 PM
hehe
@JerryCoffin Ah damn, didn't mean it that way xD
 
@JerryCoffin Oh come on, you're not that old.
I mean, it's obvious you were born after the Cretaceous.
 
48 is the new 29
 
^ true
 
@JerryCoffin You forgot C++07 - Microsoft VC++ Edition.
 
@ThePhD Who cares about ms ?
 
11:56 PM
MS
 
@HamZa Seriously, it's not really that tough -- I don't feel any need to use every new C++11 feature every time I write a line of code, but I certainly use the new features pretty routinely.
 
@HamZa A lot of people. Unfortunately.
 
@ThePhD Well, I tried to anyway! Thanks for ruining my short-lived happiness!
 
@JerryCoffin To be fair there is also the TR1 (which is technically a subset of C++11)
 
Hmmm, I was actually referring to the teachers at the university
It's said I'm a fast learner, although I doubt about it :p
 
11:57 PM
sans the math functions :(
 
@Rapptz Mostly, but not entirely (a subset, I mean).
 
Yeah the math functions didn't make it.
 
@Rapptz The random classes were also modified a fair amount, if I'm not mistaken.
 
Until now, I never have read a book about coding. Learned everything from tutorials and searching. People keep telling me that books are the best resources
 
@JerryCoffin I did not realize how much I needed those until I went back to VS2008.
 
11:59 PM
@ThePhD Bah, 07. C++MSVC6.
 
@HamZa That was really my point -- although I don't spend my time teaching, I'm easily as old as many professors.
 
@JerryCoffin fair enough
 
Okay.
I really gotta stop tinkering with code. I should draw some shit.
 

« first day (980 days earlier)      last day (3973 days later) »