« first day (538 days earlier)      last day (4408 days later) » 

2:00 PM
@sehe Sure, it's common and necessary to have such discussion - I was just saying that the amount of such meta-talk here seems to be quite high atm, relative to the amount of other general conversation (programming, SO proper, music, sex, whatever)
 
There is a way to show all digit of a number? Avoiding that the program show it in the form "mE+e"?
 
@Tony you missed your cue!
ah wait, you're already actively discussing porn.
 
@unNaturhal In what?
 
C++
 
Tin
@sehe, regarding to yoru mygen struct, I wanted to use it statically: static mygen(18.3, 18.34); but I got the following compiler error: 'mygen' followed by 'int' is illegal (did you forget a ';'?)
 
2:03 PM
@je4d mmm. Ok. I didn't notice that, if it matters. I did think that the room was considerably less active than usual in the last week or so. Frequently, Lounge<C++> isn't even on top of the room list
 
@Tin static type name(...);
 
@Collin
I tried this:
cout << pow(2, 128) << fixed << endl << endl;

But it gives me:
3.40282e+038
 
@Tin static mygen instance(18.3, 18.34);
 
Tin
@CatPlusPlus, @sehe, thanks!
 
@sehe maybe it's just coincidence that I tend to drop in when the puppy's yapping at someone :P
 
2:06 PM
@unNaturhal ideone.com/GEIrq: cout << fixed << pow(2, 128) << endl;
 
Tin
@sehe, @CatPlusPlus mmmm, still it seems to be that I'm missing something: pastebin.com/c9X7RR2B
 
@je4d No, that is never coincidence. By the way, I did try to be much more nuanced about it, but I think I used more words in 'yapping' this time :)
Saying 'fuck off' is a lot shorter than saying what you actually mean
 
@sehe I wasn't intending to object to anything you said, I thought you were quite adept and fair at handling that
 
@Tin I'm missing the question. What is the problem with that?
 
Tin
2:08 PM
I get the following compiler error: error C2628: 'mygen' followed by 'int' is illegal (did you forget a ';'?)
 
@CharlesBailey My thinking was like this: The OP may only have wondered whether the original object is still valid after the move, and the answer sounded like "it may not be". But something like a unique_ptr has stronger guarantees, so "may" is not enough.
I'd actually want something that says "yes, we do move your object".
 
@je4d @sehe: Thank you veri much :D
 
@Tin PERHAPS you forgot a ; ?!? (After })
 
Tin
:( you're right.
 
@Tin you need a ; after the closing brace of your struct definition.
Clang would have given a much better error btw
 
2:12 PM
@KerrekSB Well, a unique_ptr move is documented as transferring ownership whereas a set insert has two modes. Successful insert and no insert. Taking those three cases the question "does may parameter get moved from?" I would answer: yes, yes, perhaps.
 
@Tin observe beauty distilled: http://ideone.com/CzJDX 18.3054 18.3334 18.3388 18.3088 18.3123 18.3219 18.3075 18.3397 18.3399 18.3387 are the most random values in the universe, at the moment
 
Tin
@rubenvb, i usually use classes and thought therefore that there a struct does not need a ; at the end
@sehe :-)
 
@Tin There is no difference
 
@sehe I started reading SB about the time the words "fuck off" were flying around, I guess it just disappoints me that one of the room owners was being more unconstructive and offensive than the visitor, and creating a fuss that you had to sort out
 
@Tin classes also need a ; at the end
 
Tin
2:14 PM
@Collin, of course
 
anyway, enough meta :)
 
Tin
@sehe, and what about the seed()
 
@je4d room owners are nothing special. The thing about this room is that it doesn't really have a purpose other than being there for people to talk
 
I didn't.
I didn't want to sort it out. I didn't have to sort it out. And I didn't sort it out.
In fact, I think I just scared him away :)
 
so the room owners are the ones who talk. They're under no obligation to be nice, polite or responsible
 
2:14 PM
@Tin do it in mygen's constructor
And perhaps let it be passed in as an argument.
 
although personally I think everyone should be those things, room owners in this room aren't moderators or anything. They're just people who hang out here a lot :)
 
@sehe well, you talked, and the number of annoying questions and offensive remarks dropped pretty sharply. Counts in my book :)
 
@jalf Not more than anyone else, you probably meant
 
@CharlesBailey So what does this mean if you move-insert a unique pointer into a map?
 
@je4d Well thank you. I'll remember to keep talking, so that when good things happen it can always be attributed to me :)
 
2:16 PM
@jalf in my opinion they have an obligation to use the powers that come with room ownership responsibly
 
I personally think @DeadMG was right. The room topic is quite applicable IMHO.
 
@sehe lol
 
@je4d the only real power we get is the ability to change the room topic ;)
 
@jalf is moving messages to bin/elsewhere a 10k thing then?
 
er, no clue, tbh
 
2:17 PM
@KerrekSB If the insert succeeds it ends up in the map, if it doesn't it might be gone.
 
@je4d Nope, owners too.
 
I agree with you that the regulars in here should set a good example for others, but we don't have to.
 
@jalf Nobody said so, AFAIR
 
@rubenvb when was there a cue? My sex radar has been off for a few days :P
 
the unofficially official policy is that the room owners are always the 10 users listed as "most active" on the room info page
 
2:18 PM
@TonyTheLion Does it count if it was your own post?
 
18 mins ago, by je4d
@sehe Sure, it's common and necessary to have such discussion - I was just saying that the amount of such meta-talk here seems to be quite high atm, relative to the amount of other general conversation (programming, SO proper, music, sex, whatever)
near the end
 
@rubenvb Well hidden
 
lol
 
this room really only have owners to ensure it doesn't get abandoned
 
@CharlesBailey That's terrible!
 
2:20 PM
@KerrekSB Why? I don't understand the issue?
 
@jalf Yeah, I read the wiki - I think it's quite sensible actually
 
@CharlesBailey That means you can only perform the insertion reliably if you do an lower-bound plus hinted insertion?
 
Ell
"a single porn site accounts for almost 2% of the internet’s total traffic" <-- lolol
 
You wanted rid of it right? That's why you moved from it.
 
@CharlesBailey Well, if the key already exists, you don't know if your object has been destroyed or not.
 
2:21 PM
@je4d the downside to the system is that sometimes you get room owners telling others to fuck off. ;)
 
@CharlesBailey But I might not be rid of it. Or, I might expect the insertion to succeed, and if it fails anyway then I need to do something else with the object.
 
@jalf if you start to bestow room co-ownership on people based on any sort of merit, it can easily turn into a juvenile king-of-the-hill game
 
yeah, we wanted to avoid that
 
@je4d which is bad why?
(hint: I'm kidding)
 
@KerrekSB Well you moved from it, so presumably you're going to recycle or delete the unique_ptr pretty soon any way?
 
2:21 PM
@rubenvb ever been on DALnet? :P
 
@je4d nope. Only here, #llvm, and #mingw-w64. And a bit of #mathematica. Nowhere else has sparked my interest
 
@KerrekSB OK, if you want to hold on to it if the insertion's not going to work then you'll want to check the key first.
 
@CharlesBailey I see.
 
I think. It seemed "obvious" to me until five minutes ago!
 
Tin
@rubenvb, something like this: pastebin.com/chQJcDSe ?
 
2:27 PM
@Tin Yeah, that looks OK from here. That and learn to use ideone for this. It checks your typos for you.
 
@CharlesBailey I'm tempted to argue that the minute you say m.emplace(key, std::move(p)), you are guaranteed that p == nullptr.
 
@KerrekSB Is m any container type?
 
@CharlesBailey A map.
Ordered or unordered
 
@KerrekSB But if emplace throws an exception, the function shall have no effect?
 
@CharlesBailey OK, imagine the statement wrapped in a try/catch block
imagine key is oft type int
imagine the allocator doesn't fail.
This is just about key existence
 
2:34 PM
OK, if the allocator doesn't fail there's not going to be an exception unless the move constructor of p fails.
I think unique_ptr's move constructor is guaranteed to be nothrow.
If the key doesn't exist, obviously the pointer is moved into the container.
 
Hi all!

Please critise my code ( don't tell me about: i, j! I know about names, I mean about the construct of the code ( its design ) ): http://ideone.com/WrKae ( trully mine )!

Here I'm generating dynamically arrays with different size, and test sorting algorithms as:

- quick
- bubble
- insertion
- gnome

in each new array!

with time speed testing! pure c
 
The question is, if the key does exist, is p guaranteed to be, or not to be moved from or is there no guarantee?
 
@user1131997 This is the C++ room, we don't care about your C stuff.
 
Ell
lol wtf?
 
ok, be nice now. In this room we've discussed C++, Haskell, Java, Javascript, Scheme, WideC and a million other languages. Saying "we" don't care about C stuff seems a bit off
 
Ell
2:38 PM
but maybe code review would be a better place for it?
 
@CharlesBailey I guess if the standard doesn't say anything about it, there's no guarantee
which is a unfortunate
 
room topic changed to Lounge<C++>: Not the place for being an asshole. You don't have to answer if people ask a question here that you don't care about [c++] [c++11] [c++-faq]
 
Tin
@rubenrv What would be the difference is defining a static instance of mygen and defining a non-static instance but with a static engine as class member?
 
@jalf lol
 
@Tin thread safety. Don't do it.
 
2:39 PM
On the other hand plenty of "Hey I want to discuss topic X regarding and/or involving technology Y" have been told off, for various values of (X, Y). Not that it warrants saying "we".
 
@CharlesBailey personally I'd like to see it behave like the strong exception safety guarantee does, i.e. leave the arg alone if the insert fails
 
@jalf ok, but he's been at this for a long time. There's better places than here to discuss this kind of thing, like SO proper.
 
but that does force the implementation to be a lower_bound + hinted insert, as @KerrekSB said
but then again, boost container/boost intrusive implement it like that anyway
 
Tin
Also the idea would be then to pass this high scope instance of 'mygen()'  as a parameter of the constructor of a 'myclass' object, right?
 
Personally I think ignoring someone is worse than telling them this isn't the place to come looking for answers.
 
2:41 PM
@rubenvb Ignoring them sure beats telling them to f*ck off though
 
@CharlesBailey That is indeed the question
 
@rubenvb sure, it's the "we don't care" I object to. you don't care, and he'd almost certainly get better answers on SO proper
but when brushing people off, do it for yourself, not for the room as a whole
 
@jalf OK. Got it.
I'll stop acting like the puppy from now on.
 
;)
 
@rubenvb thanks
 
2:44 PM
@KerrekSB Maybe it's worth an SO question?
 
oh... I missed something interesting
 
Does one of GetMessage or CallWindowProc always get called when a WndProc gets called?
 
@je4d Why is this? I'm not sure I see where the implication comes from?
 
Hi there.
 
2:46 PM
Hi ya.
 
I agree that this is C++ room, and we don't care about your C stuff.
 
I'm somewhat newb on C++ and I think I don't get namespaces right yet..
I come from a heavy influenced Java world where the use of pacakages is encouraged...
 
@rubenvb so @rubenvb was perfectly right by saying "we"
 
@Abyx lol. Asses aplenty in this room it seems.
 
But from my little experience in C++, namespaces aren't like packages. I mean in Java you simply import the package, all good. In C++ you mostly have to refer to the classes and stuff by the whole identifier. You could use "using namespace" but that can defeat the whole purpose of them.
 
Ell
2:48 PM
@pedrosanta in c++ namespaces are mainly for categorising classes and stuff and avoiding name conflicts. I believe.
 
Again, from my little experiment I have noticed that it's very hard to work under a deeply nested namespace tree...
:/
 
@pedrosanta There are also using declarations, to bring just one (although possibly overloaded) name (e.g. using std::get;), and namespace aliases (e.g. namespace fs = boost::filesystem;).
 
Ok. I get that. But, from a organization and maintenence point of view I find difficult having all the classes under a folder.
 
hmm
folders are not connected to namespaces
 
How can I get a nice structure and still manage to use namespaces properly. Any tips?
 
2:50 PM
@CharlesBailey When you construct the container element, you will to invoke the move constructor of the unique_ptr passed in. To make it not affect the unique_ptr passed in if the insert fails, you have to find the insert position so that you know if it'll fail so you can avoid ever constructing the set element if it's going to fail. Does that help?
 
This doesn't have much to do with namespaces though. This is real about modular code, right? Since you mentioned Java packages.
@pedrosanta I use the filesystem. project_foo/feature_x/bar.hpp and so on.
 
Yeap, I want to give it some modular organization.
Yep.
The filesystem seems a good approach to me aswell.
All tidy and clear without the deeply nested namespaces hassle.
 
Namespaces don't really come into the picture as some of them are purposefully designed to be reopened across modules-TUs-packages (e.g. it's not unheard of to have one module bring feature foo and a twin result_of::foo).
 
Tin
@rubenvb, ok, thanks for the clarification.
 
It depends on scope. I have one big EDSL and for obvious reason it's hidden away in a namespace to avoid leaking everywhere since every operator is overloaded.
 
Tin
2:54 PM
i need to leave you guys for a while
 
In terms of folder structure I've found this particular suggestion very good: stackoverflow.com/a/2360780/330461 In fact I already noticed that some parts of my code could/should be placed under the lib/ folder.
 
Tin
thanks for your support
 
@pedrosanta Unlike Java, C++ makes no requirements about the file structure of your code. You can put everything in one directory, or have as many dirs as you like, it's all up to you. :)
 
(I'm developing a lib/ aswell an application over that lib.)
 
@pedrosanta I use include/foo, src/ and unit/ (where foo is the name of the project, be it a library or program). Toolchain is set up to look inside include/ such that my include directives look like #include "foo/feature_x.hpp". include/foo/feature_x.hpp (just feature_x for short) will have src/feature_x.cpp as a source file, if any, and unit/feature_x.cpp as a unit test.
 
2:56 PM
@jalf Yes. :) I think I get kinda of lost on a lack of convention. (Influenced also by my recent heavy Rails experience)
 
So far none of my 'deep' headers (e.g. include/foo/big_feature_x/big_feature_x.hpp has needed a source file and I'm not sure how I would go about that.
 
@LucDanton Isn't the separation of header and source files in different folders discouraged?
 
I don't know. I'm not sure why it would be, but I'd guess it's a limitation of some build systems.
 
I just got the Reddit Enhancement Suite, meh, now together with that and TVTropes, I'm lost for eternity in the intrigues of the interwebs :P
 
Ok. I got it. :) I think I'm gonna keep my namespaces no more deep than 3 levels (right now I have things like interactivemembranes::mvc::views::ui::Button aka teh hell) and rely heavily on folder organization.
 
3:03 PM
As a disclaimer though I'm using C++11 so I have e.g. the convenience of auto available.
 
Thanks all.
 
@je4d OK, but that's all on the implementation side, right? Perhaps I haven't done enough implementation but I don't see how you'd make the insertion much more efficient if you were allowed constructed an element before finding the position in which to insert it.
 
@CharlesBailey As I understand it, lower_bound + hinted insert is actually optimal
the disadvantage is purely that it does reduce the freedom that the implementer of the std library has
it's not even a particularly big disadvantage, IMO having better-defined semantics for failed calls would be preferable
 
@je4d I agree.
 
3:19 PM
@JohannesSchaublitb nice one
 
@CharlesBailey
§ 23.4.4.4
map modifiers
template <class P> pair<iterator, bool> insert(P&& x);
template <class P> pair<iterator, bool> insert(const_iterator position, P&& x);
template <class InputIterator>
vod insert(InputIterator first, InputIterator last);

Requires: P shall be convertible to value_type.

If P is instantiated as a reference type, then the argument x is copied from. ...
I don't see any qualifiers about success on that statement, so to me that says it will always do the copy/move
 
@je4d What about emplace? With emplace you don't have to create a pair<int, unique_ptr> in the example we're considering?
 
@CharlesBailey ah, of course.. that section is moot since you already have to create the pair
I'll have a look at emplace, and operator[] too
 
I think it's this bit from table 103: Inserts a T object t
constructed with
std::forward<Args>(args)...
if and only if there is no
element in the container with
key equivalent to the key of t.
 
@CharlesBailey §?
 
3:24 PM
Which sounds like the construction only occurs if there is no element with a matching key.
@je4d 23.2.5 table 103 (a_uniq.emplace(args))
 
ta
@CharlesBailey yeah - there is a little ambiguity there, but on balance I'd interpret it as saying that both the insertion and the construction only happen if there's no matching key in the unordered map
 
@je4d Actually that's the wrong section, I keep forgetting whether we're looking at unordered or ordered sets or maps.
But table 102 in 23.2.4 is (effectively) the same for this case.
 
@JohannesSchaublitb in Windows it's impossible to get both timeout and wake-up signal.
 
@Abyx oh
@Abyx what happens if you call "wake" while the waiting thread is waiting for the mutex after the timeout has elapsed?
well, it depends on the docs how they define their result precisely, but this scenario is ambiguous given the current Qt doc
 
3:31 PM
@jalf Yep, it's weekend after all :D
 
@JohannesSchaublitb OS will serialize such events, so Wait function will process first and return
 
@Abyx it cannot return while the mutex is being held by the waking thread
 
hm... maybe I don't understand what that QWaitCondition does..
 
it takes a locked mutex, and atomically unlocks it and waits for a "wake". when it returns it locks the mutex again. now another thread can lock the mutex and wake the qwaitcondition.
 
but it don't lock mutex on timeout, right?
 
3:36 PM
it needs, because it says when the timeout elapses, it returns.
since when it returns, it locks the mutex, it will lock the mutex on timeout
 
well... so it locks mutex with another infinite timeout...
 
The whole point is to only ensure that the waking thread only runs exactly when the waiting thread waits. that way, a wake always hits a corresponding wait.
@Abyx i don't know what you mean by "so it locks mutex with another infinite timeout"
 
ah... I got it
it timeout happened, and function locked mutex, it still can check for wake-up signal with zero timeout and change result
or it can just return false, without that check
 
@Abyx right
 
3:45 PM
@CharlesBailey are you going to update your answer to reference Table 104?
 
^ "PC Cleaner Pro ... fixes ... C++ errors"
4
 
@CharlesBailey or if you've gone afk i'll put one in.
For anyone curious, the context is:
3
A: std::unordered_set<T>::insert(T&&): moved if elements exists

Charles BaileyI found this note in the standard (17.4.6.9): [ Note: If a program casts an lvalue to an xvalue while passing that lvalue to a library function (e.g. by calling the function with the argument move(x)), the program is effectively asking that function to treat that lvalue as a temporary. The im...

 
@CheersandhthAlf "It fixes" and "It ... C++ errors"!
lol
 
haha
gotta get a copy of that
 
3:59 PM
@je4d insert for unordered_set seems even less clear.
 
@CharlesBailey wrt emplace, the wording for unordered_set is the same as for an ordered set afaics, "An object ... is constructed ... if and only if"
the wording for insert, OTOH, is less clear
 
Mmmh I have some classes marked with default visibility yet GCC doesn't put relevant information in the generated library. Other classes work fine though. This is vexing.
 
so I guess Table 103 doesn't answer the question, since it was asked about insert not emplace
 
Ell
4:26 PM
hi guys
 
Mathematica Y U NO FullSimplify[ Sinc[k r] k r]??
Ah, cause k r could be zero
<facepalm>
 
Ell
</facepalm> <!-- you forgot the closing tag -->
 
I don't obey html
I use french style half quotes <> for emotions and actions
cause chat is missing IRC's /me
 
Ell
haha yeah I know it was a joke :L admittedly not funny but at least I tried :P
 
I was also trying to be funny
FYI
But it seems the Lounge has rubbed off on me =(
 
Ell
4:37 PM
haha :L want to move to the SO tavern anyone? o.O
 
@Ell why?
 
Ell
I don't like getting c++ people angry when I blabber on about nothing :L and I think if people start moving there, there will be less non-c++ things here?
am I right in saying the best way to throw an exception is by raw pointer?
 
@Ell less C++ things here is a good thing AFAICT
@Ell value, ie: throw int or throw my_exception("helpful error message").
 
Ell
@rubenvb why so? and also what is AFAICT?
value? why value? then unecessary copies happen?
 
@Ell Pointers won't behave polymorphically, and how do you deal with lifetime anyway?
 
4:43 PM
@Ell The only thing that seems to get people angry is persistently asking for help, especially when it's not even c++
 
Throw by value, catch by reference, use Boost.Exception.
 
hi all! :)
 
what timing.
 
@Ell no, don't throw by pointer
 
Ell
4:43 PM
@LucDanton pointers won't behave polymorphically? I thought it was only pointers and references that act polymorphically?
 
@Ell this is the lounge at the same time as C++, it's wierd
 
Ell
yeah
@CatPlusPlus boost.exception? what is wrong with std::exception?
 
@Ell catch(std::exception const*) won't catch an std::runtime_error const*.
 
well, there's cats, puppies, lions, and robots. And you think the chat room is weird
 
Ell
@LucDanton I never knew that :P how long will it take me to learn c++!!!?!?!?!?!1111///1/1/!?!?1/1//1/!???
 
4:45 PM
@Ell Nothing, Boost.Exception is an extension. You should only throw things derived from std::exception.
Publicly.
 
@Ell he mentions it every time exceptions come up, but I don't know how it's any better, he's never said
 
So catch (const std::exception&) is your last resort catch-all.
 
Ell
@MooingDuck haha I'm reading the boost docs now :L
 
catch (...) is useless, because you can't access what's been thrown.
 
"The ability to add data to exception objects after they have been passed to throw is important, because often some of the information needed to handle an exception is unavailable in the context where the failure is detected." Well that's pretty sweet
 
Ell
4:47 PM
maybe just to terminate the programme afap?
can't you just catch, add data, then re-throw?
 
Well yeah, and you'd end up reinventing Boost.Exception.
 
@CatPlusPlus can't you attempt to to use RTTI with std::current_exception in a catch(...)?
@MooingDuck huh?
 
And what'll that give you?
 
@je4d No. Only operation from an std::exception_ptr is std::rethrow_exception. You can try to match again from there, but there's no way to get an std::type_info const&.
 
Ell
@LucDanton well I haven't really read into it so I won't comment further after this but to me it seems like there is no need for it because its already built into the language? I don't know :P
 
4:51 PM
exception_ptr is primarily used to transfer exceptions across thread boundaries.
So you can capture exceptions from futures, and rethrow in calling thread, for example.
 
@Ell It's not. The point is, if you're presented with e.g. shared_ptr (whether the Standard one or the one from Boost), you could react with "Well, can't I just reference count myself?". Of course you could. Same with Boost.Exception: yes, you could make sure to append data yourself.
(Boost.Exception has other uses though.)
 
@LucDanton thanks for the clarification. I wasn't sure whether it was possible or not, because I couldn't see how it would cope with vptr-less types, hence phrasing it as a question
 
Ell
Yeah I haven't looked into it so I don't know how the data is appended but to my simple mind I can't really see any other way of doing it so just ignore me :L
 
The devil is always in the detail. There's no such thing as just reference counting or just appending data to an exception.
 
Attaching arbitrary data to exceptions is neat, and reinventing the wheel is pointless, so use B.E, duh.
 
Ell
4:54 PM
Well I'm still a c++ noob and haven't found a use for that yet
 
Figure it out, Sherlock.
 
Ell
@je4d Boost.Exception?
lol
 
@Ell just got there
 
Ell
haha ;)
is __LINE__ a standard macro for line number?
 
Ell
4:56 PM
I saw it on msdn and gcc
ahh kk
 
@Ell FUNCTION is nonstandard, but both have it anyway
 
__func__ is standard.
 
Ell
Now I just have to figure out how I put it into a string literal :P >.<
 
Line number?
 
Ell
yeah for debugging and whatnot
 
4:58 PM
BOOST_PP_STRINGIZE(__LINE__)
 
Ell
I hate dependencies on boost :L I'll just use std::stringstream
 
Then it's not so much a string literal.
 
AFAIR, it boils down to something like this:
#define STRINGIZE_AUX(x) #x
#define STRINGIZE(x) STRINGIZE_AUX(x)
 
Ell
yeah I know :L the string literal was just for ease
 
@CatPlusPlus yup, it should be that roughly
 
4:59 PM
So yeah, you can try #__LINE__ first.
 
#__LINE__ will yield "__LINE__".
 
Ell
I just want to be able to do something like this: throw std::runtime_error("GetWindowText threw error at line __LINE__!");
 
Use Boost.Exception.
 
Ell
I don't need boost.exception!
 
@Ell std::runtime_error("GetWindowText threw error at line " STRINGIZE(__LINE__) "!");
 
Ell
5:00 PM
@MooingDuck that will just work? do I need to define the STRINGIZE_AUZ(x) and stuff?
you know I just think it looks ugly, I'm not going to bother. I don't even know why I need the line number, it's only called in one place
 
@Ell yeah, you need the two STRINGIZE macros
 
@Ell or you could use whatever your implementation uses internally for assert, it's usually that same macro
 
Er, no, assert doesn't have to expand the argument first.
Or maybe.
 
@CatPlusPlus I don't recommend boost/exception/all.hpp in a header, it brings tons of crap.
 
5:03 PM
Now I confused myself.
 
Ell
I just hate macros, I don't even know why though. It's not like I've had bad experiences, text substitution just seems hacky so I tend to avoid. I am afraid.
 
@LucDanton I'm lazy.
 
I mean 3.4s vs 0.8s for an empty program to compile "tons of crap". I fiddled around with this this morning.
 
isnt boost a compile timer killer in general?
 
No.
 
5:10 PM
@bamboon no
I just noticed the facebook plugin at the bottom of Ideone.com is in Polish. Is that for everyone or just this one page?
actually, it appears most of their pages don't have the plugin.
ideone.com/HpuGq There it is
 
Yes, Polish.
 
Leet speak here.
 
Wierd that the site is in English, but the plugin is Polish
 
Someone screwed up the settings, probably.
 
Ell
I can't decide between lots of members (OnClick = std::function, OnMouseMove, Onblah blah etc. etc.) or a map of enum => std::function. Any opinions?
 
5:25 PM
Ideone is run by guys behind SPOJ.
@Ell Boost.Signals.
 
Ell
@CatPlusPlus you really like boost don't you?
 
No point of reinventing something that's already been implemented and reviewed.
 
@Ell everyone really likes boost. THe C++11 library is modeled after boost
 
No, he likes not reinventing the wheels. Some of the better wheels happen to be in Boost, but not all.
 
@Ell you're the kind of person who refuses to use the standard library aren't you?
@LucDanton I love reinventing wheels
 
5:27 PM
@MooingDuck You are a sick individual, seek help.
 
Ell
@MooingDuck no I just want to have a programme without so many dependencies for once >.< I have only used the standard library so far
 
Dependencies are good.
 
Ell
but if its really that bad I suppose I could just use boost -.-
@CatPlusPlus why? :P
 
@Ell if I were to reinvent, I'd go with a hashtable. Higher density than a ordered map, and if you don't use them all, less space than lots of members
 
They mean you don't waste your time.
 
Ell
5:28 PM
but i swear programming is just stiching a whole lot of dependencies together :L
 
It is. It's called reusing.
 
@Ell and debugging, yes.
@Ell people who do that make more money, and finish products. People like me don't finish anything.
 
The opposite is "Not Invented Here" syndrome.
 
Ell
@MooingDuck I don't finish anything either - I have no idea how I find programming fun. I have literally (no lie) never finished anything other than "hello world" and one day long projects
 
@Ell dependancies also tend to make faster and less buggy code.
 
5:31 PM
> "Just like in the real world, booze is a great way to get extra Adventures. Just be careful not to overdo it, or you might knock yourself out of commission for the rest of the day."
Lol.
 
Ell
I am hoping this is my first c++ project to finish
argghh Boost.Signals is a pain!
 
5:49 PM
@Ell looks fairly straightforward to me
 

« first day (538 days earlier)      last day (4408 days later) »