« first day (487 days earlier)      last day (4465 days later) » 

sbi
1:00 PM
BTW, is there a simple term for the question this one was closed as a dupe of other than "the question this one was closed as a dupe of", because "the question this one was closed as a dupe of" is pretty long and unwieldy and much in need of a simpler term than "the question this one was closed as a dupe of".
 
"duplicee" ? maybe
 
@sbi "The original" is sometimes used, but it's not very expressive/accurate.
 
Xeo
@sbi Time for
 
Wait no that's not even a word.
 
Xeo
?
 
sbi
1:01 PM
@Xeo Yeah, good idea.
 
the non-clone question?
in the end, after everybody got artificial white skins, all the real white people had the right to wear a button saying "I have never been colored"
 
@Potatoswatter good luck implementing constant-time nonthrowing swap on a vector which uses such an optimization ;)
 
What.
 
@jalf Good remark.
 
@jalf That might be a good reason to allow incomplete types. Although constant-time is guaranteed for "small" vectors, nonthrowing is definitely a new problem.
 
Xeo
1:05 PM
@Potatoswatter There's a reason why std::basic_string gets treated specially here, after all. :)
 
@Xeo basic_string can only store character-like types, which I think can't throw on swap anyway.
 
Xeo
@jalf Well, you can have a trait that says whether a type is nothrow swappable, and if yes, enable the small optimization
 
@Potatoswatter constant time isn't guaranteed either. You're copying a constant number of elements, but you can't ensure that they're copied in constant time ;)
 
Xeo
@Potatoswatter I was thinking more of the constant time requirement
 
since the copy constructor might do something sick and twisted taking non-constant time
 
1:07 PM
@jalf You're swapping a constant number of elements. Swap is usually supposed to be constant time. I don't know what the standard really has to say about that.
 
Xeo
@jalf You know that the complexity is specified in terms of number of operations. :P So it doesn't matter if the copying takes ages
 
sbi
0
Q: Word for "the question this one was closed as a dupe of"

sbiIs there a simple term for the question this one was closed as a dupe of other than "the question this one was closed as a dupe of", because "the question this one was closed as a dupe of" is pretty long and unwieldy and much in need of a simpler term than "the question this one was closed as a d...

 
Xeo
copying a std::vector<std::vector<X>> is O(n) according to the standard, although each inner copy is O(n)
 
@Xeo true enough
 
Doesn't vector swap simply swap the three pointers (and not the actual data)?
 
1:09 PM
@StackedCrooked yep
but if you implemented this "small vector optimization", you'd have to swap the actual data
 
Xeo
@StackedCrooked We're talking about a hypothetical small-vector-optimizing std::vector
 
sbi
@jalf Wouldn't that be implemented by invoking swap() on all elements? And wouldn't those swap() calls be required to be constant-time and non-throwing, too?
 
and true, that'd still technically be constant-time, but it'd be much more expensive than the user would expect
@sbi swap isn't in general required to be constant time, is it?
It's only for std containers that extra requirement is present, I think
 
sbi
@jalf Ah, I see.
(Well, except for std::array, where it is O(n) anyway. Mhmm. But that would still be constant, since n is fixed at compile-time.)
 
> Note: Unlike the swap function for other containers, array::swap takes linear time, may exit via an exception, and does not cause iterators to become associated with the other container.
 
Xeo
1:12 PM
Btw, I don't think small-vector optimization is feasible for other reasons. sizeof(std::vector<T,NoStateAlloc>) is 12 on 32bit, can't fit very much in there. sizeof(std::string) is 12 too, but since sizeof(char) is guaranteed to be 1, you can always fit atleast 8 of those in there (keeping space for the size / end pointer).
> -1 for not conforming to ELU's guidelines. +2 for the gorilla – Pitarou 2 mins ago
What ELU guideline?
 
Electric Light Urchestra.
 
sbi
@Potatoswatter The two fellows I share the room with gave me a stern look for my snort!
@Xeo Oh. English Language and Usage.
 
Xeo
Ah, "English Language & Usage - ELU"
 
sbi
5 messages moved to bin
 
@Melvin if you want to have your CPU in a busy wait loop, then sure
 
sbi
1:18 PM
1 message moved to bin
Zing!
 
@sbi oh you thrashed it
lol
 
@TonyTheLion Who's Melvin? :)
 
I an
am
 
@StackedCrooked well, he's in a the bin now
 
sbi
@Melvin You can edit your messages here. No need to flood us with correction. Please read the newbie hints, linked from the right-hand panel.
 
1:19 PM
how do you move messages to the Bin?
 
sbi
And I'm sorry, @Xeo, I didn't mean to bin your message, too.
 
This bin is a handy feature.
 
sbi
@TonyTheLion "Room" menu, "message admin". You have to be an owner of both source and target rooms.
 
Oh!! I thought you were taking the piss, but then I checked your profile and noticed your 60k rep at Stack Overflow. I'll delete my earlier comment. Sorry. – Pitarou 1 min ago
lol
 
You don't have 60k!
 
1:21 PM
@sbi ok, so make me owner of the Bin, I wanna own a bin :P
 
@Mysticial could you run your little piprogram on your SB, please and tell me the time you get?
 
@Mysticial Yeah, that SE is weirder than the others, but still fun.
 
Is there any c++ programmer from India?
 
@sbi Ah, now I get it. I thought it was a message in response to @Mysticial.
 
1:24 PM
@bamboon What size?
 
the same you ran it on your 950
it is 1000000
 
@bamboon huh? I don't have a 950... 1,000,000 is gonna take less than a second.
 
@sbi Btw I second @Potatoswatter and would refer to it as "the original question".
 
@Mysticial erm sorry, I mean 920, but I don't mean y-cruncher
 
@linuxeasy Nope. Not one in a billion. Although you might get a second opinion in the Telugu room, which sees a lot of activity.
 
1:26 PM
 
@bamboon oh... lol. That's prime-crunching - in a horrifically inefficient way... but sure... lol
 
did I say pi?
oh yeah crap, sorry
I know that it is inefficient but I fear something is wrong with my machine
 
sbi
@linuxeasy There is.
 
@sbi active in the room?
 
sbi
@linuxeasy Yes.
 
1:30 PM
Old Crays are vector computers as well as multiprocessors… so some techniques here might apply:
10
Q: Brute-force, single-threaded prime factorization

Michael GoldshteynUp for consideration is the following function which can be used to (relatively quickly) factor a 64-bit unsigned integer into its prime factors. Note that the factoring is not probabalistic (i.e., it is exact). The algorithm is already fast enough to find that a number is prime or has few very l...

 
@bamboon Interesting, are you also testing on a Sandy Bridge?
This machine calculated all 78498 prime numbers under 1000000 in 30.0997 seconds
it's slower than my 920...
 
@Potatoswatter Ok. The reason why I am searching for one is, I am transitioning myself to C++, and when I am looking for a C++ job, people have a requirement for C++ with Unix. I thought may be what they meant by Unix is simple writing make scripts, using GDB. But somewhere I found that what they meant is being able to know IPC in unix, and many OS concepts.
 
funny that people go to talk in the bin
2
lol
 
@Mysticial yeap, that is what I got @4.2
 
even at 4.4 GHz (vs. 3.5 for my 920)
 
1:31 PM
strange, that is why I asked
 
and all that looks like C to me. So I am searching for any Indian C++ programmer to know, what they actually do.
 
time to check the latency tables for division...
 
@Mysticial I got all the numbers under 4 billion in 13 seconds, on a 2.2 GHz core2 duo, at least if I'm reading my answer linked above right
@Mysticial You should not be using division!
 
@Potatoswatter this is not about the algorithm itself
 
@Potatoswatter It wasn't my benchmark. :) I just parallelized it!
 
1:33 PM
@linuxeasy You're all over the map. For what it's worth, don't look for a C++ job, look for a job in a domain you're interested in, where C++ is relevant.
4
 
Nehalem: 17-28 7-17
Sandy Bridge: 20-27 11-18
it is indeed a tad slower...
Goes to show you shouldn't use integer division as a benchmark... lol
 
sbi
@linuxeasy The only one who is here once in a while is not currently here.
 
@Mysticial but I don't understand, why it doesn't scale at all
 
@Potatoswatter yeah, but to start with something, to gain some more confidence, I was planning to look things near me, and thats why awaiting guidance from any Indian C++ programmer, to bring clarity. This must be appearing very silly, but I am not able to think thing better :(
 
@bamboon Why does what not scale?
 
sbi
1:37 PM
1
A: Word for "the question this one was closed as a dupe of"

Peter TaylorIt's not a single word, but the duplicated question seems like an obvious answer.

The key concepts of OO are Ignorance, Apathy and Selfishness. @KevlinHenney #JFokus
Haha!
 
@Mysticial the benchmark, with clock speed
 
@sbi Hey, thanks for mentioning, I would look for him some other time, when he might be here. lets see!
 
@bamboon It doesn't scale with clock speed?!?! WTF? Lemme try again a 2.2 GHz...
god... TurboV is sooo bloated...
 
@Mysticial well ok, in comparison to 2.2 it should^^
 
@bamboon A faster-clocked processor cannot necessarily divide faster, because there's a physical limit on how fast transistors on a given manufacturing process can perform division. But that's not necessarily a problem…
 
1:40 PM
@bamboon If you're comparing my machine to yours... then anything can happen, especially with background programs and such
 
I think, the key concept of software development is intelligent laziness. To not make rash decisions when you know the least, but to intelligently defer them until you know quite a bit more. It's the opposite of the 1970's top-down approach, so that Bertrand Meyer put it like this: "Real systems have no top".
 
I never tried to "tune" my machine for benchmarks.
 
@Mysticial sure
 
This machine calculated all 78498 prime numbers under 1000000 in 60.2116 seconds

2.2 GHz
 
oh ok, forget it
 
1:42 PM
@bamboon yeah, not as hardcore as the XtremeSystems people... heck I have Aero enabled...
 
@Mysticial well, I am using fedora so you can compare it even less
 
sbi
@AlfPSteinbach :)
 
yeah, thanks
 
@bamboon lol yeah. Anyways... got up too early this morning... need a nap.
 
1:47 PM
@Potatoswatter transistors performing divison? you mean the divide ALU is limited by something else?
 
I'm pretty sure that there's no such thing as a division transistor
 
@bamboon If you change a microarchitecture to clock faster, you add pipeline stages, and then division takes more cycles.
 
@Potatoswatter not necessarily. There are other ways to make it go faster
 
@jalf "transistors in the division circuit"
 
smaller transistors
 
1:50 PM
Small transistor optimization.
 
division can be sped up just as well as any other operation. It's just a matter of how many transistors you're willing to spend on it
and in the case of integer division, CPU designers typically aren't willing to spend that many, because they get more bang for the buck by improving more commonly-used instructions, or perhaps just adding more cache
 
sbi
OH at work: “I ♥ bjobs.” Claim they were referring to the cluster software. Riiight.
 
@jalf No, Amdahl's law applies. There are a certain number of steps that need to be performed in serial.
 
@all Since I am new to C++, I have a question. What kinds of work, the C++ is used in? are they all similar those used for Java. (I know it can be used at almost anywhere, but what about the members here, where do they use C++ mostly in ?)
 
Also, there is a cost to making the circuit bigger, because then the wires slow signalling down. So a small design is often fastest, regardless of what you could do with more transistors.
 
1:54 PM
@Potatoswatter define "often". There's a reason a modern CPU uses a billion transistors
it is faster
or, it allows you to make faster processors, at least
 
@jalf It uses a billion transistors divided among many cores and caches. That's different from a division circuit which does one operation on a single bitvector.
If we could make a single-thread processor six times faster, we'd certainly do that instead of a six-core processor!
 
@Potatoswatter the same logic applies. Why do we spend 500 million transistors on cache, if the bigger circuits makes it slower?
@Potatoswatter yep, definitely. But that has nothing to do with transistor count or die area
 
@jalf That's a major issue in cache design. Much effort is spent designing repeaters to keep signals propagating fast. And it's the reason for a hierarchy, because a big cache spends cycles just pumping the signal across its vast millimeters of distance.
 
@Potatoswatter there is, yes. But you can still do a lot in parallel, especially if you're willing to waste some of the work (evaluate multiple speculative branches in parallel, and combine them and discard the wrong ones at teh end). Of course division can be sped up if you're willing to do so. It's just not worth the cost
@Potatoswatter I'm not disputing that. I'm saying that at the end of the day, my 1 billion transistor CPU is faster than a 100 million transistor CPU, which is faster than a 10 million transistor CPU
Yes, thre are problems associated with larger dies, and problems associated with higher transistor counts. But it also enables a lot of important optimizations
 
@jalf Not in single-threaded performance, it's not. 64-bit division isn't arbitrarily parallelizable.
 
sbi
1:59 PM
I wonder if there already is a chat room for hardware discussions?
 
@Potatoswatter I never said arbitrarily
 
@sbi heh, probably belongs at electronics.se
 
but here's the thing: integer division is often non-pipelined, and has a latency of something like 20+ cycles. floating-point division, which is much more complex, is typically pipelined, and can be done with much shorter latency. That is because the computation can be sped up by throwing more transistors at it
 
morning
 
multiplication isn't "arbitrarily parallelizable" either. But it's such a common operation that we throw a lot of transistors at speeding it up as much as we can
@Potatoswatter but if you want the simple counterexample: build a lookup table in hardware with the results of every possible division. Then, when you have to divide, simply send the operands down all of these paths, and have it masked out on the ones where the operands don't match. And then or all the outputs together, and you have your result. Perfectly parallelized. (but, as you said, likely much slower because such a LUT would be big.)
Nevertheless, it shows that arbitrary parallelization is possible :)
 
2:04 PM
@jalf Ah, yes. That's more like physically duplicating the pipeline stages that implement a given division algorithm, not a change to the algorithm itself.
 
@Potatoswatter So? That's how a lot of hardware-level optimizations work
send the signal down both paths, and let them run in parallel, and then just pick the right result at the end
it just costs a bunch of extra transistors, which, in the division case, you probably don't want to spend
 
@jalf Yeah. It's a trade-off. No, it's so much like running more alternatives in parallel. It's more like "here's a circuit which does the same thing for N consecutive cycles, I'll just duplicate it N times since the duplicates won't get in the way, and then it's fully pipelined."
 
Hey, hey hey everyone! :)
 
@Potatoswatter both are done (although the "run all the alternatives in parallel" version is obviously mainly used for very small simple ops where you don't have a million alternatives)
 
I've got a crazy thought. I'm still reading the Template book so I don't know how to but is it possible to write a C++ templates metaprogram that generates up to N enums?
For example:
`enum FLAG{VAL_1 , ... , VAL_N }`
 
2:10 PM
@jalf Yeah, I'm talking about division in particular. There are a lot of approaches to a lot of problems… every binary decision a processor makes needs to be stamped into hardware!
@Olumide Can't be done. Templates can't generate identifiers.
 
Dratsky!
 
Preprocessor metaprogramming might help you, or it might just suck your brain out and leave you a zombie.
Do you literally want them to be consecutively defined as VAL_1, … VAL_N? That doesn't seem very practical. You would want different numbers in there. And then even preprocessor metaprogramming fails.
 
In many cases certain variables in my program can only accept up an unsigned integer between 0 and N. I was wondering if auto-generated enums might be a a good way to force compliance
 
@Olumide How does naming the numbers between 0 and N help you?
 
The user inputs `VAL_8` instead of just the number 8.
If the max `N` is 512, inputing `VAL_515` should trigger an error message.
 
2:16 PM
You would have to define the arithmetic operators over the new enum types to try and catch overflow. Which you could do just as well for a class type instead.
@Olumide We're still talking about compile time, right? Because enumerator names aren't visible at runtime.
 
Yes I am still talking about compile time.
 
Try inheriting from std::integral_constant and static_assert (or otherwise check) that the template value argument is within the template bound argument.
 
@Potatoswatter what do you mean by enum types? The enums are too many to create by hand in the case of up to 512 values.
 
@Olumide Forget about enum, just use a class template as the integral type.
 
the best way to do it would be to simply write your own class that does it
 
2:20 PM
Erm ... I'm a bit confused. How would the class enforce the bounds? What operators would I overload?
 
@Olumide The arithmetic ones? Like plus and minus and stuff?
 
Perhaps an integral UDL operator could help you, those can be statically checked. Using them would look like auto v = 8_val;.
 
template< unsigned value, unsigned bound >
struct bound_integral_constant : std::integral_constant< unsigned, value > {
    static_assert( value < bound, "compile-time overflow" );
    template< unsigned rhs_value >
    friend bound_integral_constant< value + rhs_value, bound >
    operator+ ( bound_integral_constant< value, bound > lhs,
              bound_integral_constant< rhs_value, bound > rhs )
       { return {}; }
};
 
@FredOverflow I don't anticipate the addition of these values, however implementing them and checking the validity of the results might be necessary in case the compiler provides an automatic implementation, which I'm not sure it does.
 
@Olumide The validity of results of what?
 
2:27 PM
Of the automatically generated arithmetic operators -- if C++ writes its own, which I don't think it will. I was just saying I don't think its necessary to implement those operators.
 
@Olumide Ah, it sounded like you were suggesting you had results to be validated.
Operator overloading can only add functionality, not replace it. Although for enum types which convert to int, it can be hard to tell the difference.
Well then, it sounds like you should just judiciously use (or cleverly foist upon your users) static_assert or the like. No new types needed if there are no new operations.
 
Cool, thanks. I'll just use static_assert to check the range of supplied values then.
 
Uh, is T const t = expr; supposed to be equivalent to T const t = alias<T const>(expr);?
(with template<typename T> using alias = T;)
I would have thought it'd be equivalent to T const t = T(expr); but now I have my doubts.
Welp, reading through 8.5 (I hate that clause :( ) makes me think that is indeed what is happening.
> the call initializes a temporary of the cv-unqualified version of the destination type
What is GCC doing to my code lookofdisapproval.jpg
 
Do you have a conversion function that returns a const-qualified object type?
 
2:41 PM
I get an error on an definition just like T const t = expr;
 
@LucDanton Yes, but specifics… why is it troublesome that the temporary isn't const?
 
Hah! Easy to reproduce.
 
note to self: always click 'go offline' in chat, the moment you log in to facebook.
 
What an interesting profile description:
> hell i'm yang and i'm not gay.
 
@Potatoswatter Wrong way around.
 
2:43 PM
Otherwise a herd of friends will tackle you with 'Howz it goingz' and 'Fuck u whereve u beenz'
and all other nonsense
 
Seemingly Smallest Compiling Code Example?
 
Son of a Sphynx who Caught a Cat by the Ear?
 
Updated test case with a bit more description and actual error message. Also, what SSCCE means.
 
@IntermediateHacker always close the browser main window, the moment you log in to facebook -- FTFY
 
2:53 PM
Sooo, did I just miss the excitement about the question audit?
 
@LucDanton The problem is that it's trying to copy a unique_ptr. Looks like it should be move-initialization in the case of the constructor/temporary intermediary…
 
whistles
 
@Potatoswatter I'm hazarding that GCC fails to properly create a temporary (at least conceptually when doing the necessary access checking) of the cv unqualified target type, as is described in 8.5. I've found an open bug related to this.
So T const t = expr; is accepted as T const t = alias<T const>(expr); whereas it should be T const t = T(expr);.
 
@LucDanton Yeah. I thought you meant there was a bug in the standard, but that clears everything up. Thanks :)
 
sbi
@sehe What would that help? Once you have FB cookies on your machine, Mr. Sugarmountain will know about every site you visit that has the Like button.
 
2:57 PM
Use Ghostery.
 
@sbi true, destroying your hard disk after visiting site that loaded stuff from the facebook domain. But that wouldn't have nearly as snappy a comeback
 
@sbi Btw. I though that was Suck-a-Burk
 
sbi
@sehe I preferred to simply delete the FB cookies and never again log into it. If I feel the need nevertheless, I use a different browser in porn mode.
 
@CatPlusPlus I don't trust them. What's in it for them?
 
3:00 PM
What?
 
@sbi I never log in. Simpler. Now, if only I could explain my wife why :)
@CatPlusPlus Ghostery
 
@sehe I still don't get what you meant.
 
My attempted backport of the llvm package on Debian sarge from Debian unstable failed. Any opinions about where a good place to get help for this would be? I was thinking the llvm mailing list.
 
@CatPlusPlus "What's in it for them" -- commonly used to question the interests of 'benevolent' parties
 
sbi
@sehe I failed to shy my teenage daughter away from it. (She must have several hundred contacts there, and chats regularly.) But I did get her suspicious, at least.
 
3:03 PM
@FaheemMitha What kind of help do you want? Restore or forward flight?
 
It's a browser addon that blocks widgets, trackers et al.
 
sbi
Anyway, gotta go and pick up the wee ones. See you later.
 
@sbi haha "the weee ones"
 
I might be tired but I don't see any 'party' here. It's ABP for things that aren't really ads.
 
weeee
 
3:04 PM
@sehe : Don't follow, sorry. I want to build llvm on squeeze.
 
@CatPlusPlus Soooo. What is in it for them? The addin didn't materialize out of thin air. Someone invested money into that. Marketing it too (see website). They will not do that unless there is a reward. They don't mention what drives that reward on their frontpage --> I don't trust them.
 
They don't like tracking elements?
 
Any idea whether clang/llvm can cope with the new gcc compiler diagnostics?
 
@FaheemMitha Sooo. You don't want to install backport? You either want to make the backport work, fix your packaging system, or build from source. What is the exact question?
 
@sehe : I was making my own backport (I don't know of one that exists) by rebuilding the Debian unstable sources on squeeze. I do this a lot. Most of the time it works.
 
3:07 PM
@CatPlusPlus That's not a reward. That is a source of motivation or an ideal. However, unless they prove that they can be independent of reward and why, I don't buy it
 
But not today.
 
@FaheemMitha Like with apt-get source --compile package?
 
The Debian unstable sources for llvm.
 
No, sorry, I'm way too tired to follow this.
 
@sehe : Correct. Though I don't think that is a real command.
I stand corrected.
 
3:09 PM
@FaheemMitha Oh, sudo apt-get build-dep clang && apt-get source --compile clang works, believe me.
@FaheemMitha also, apt-build will interest you (use Debian in the Gentoo spirit)
 
@sehe : Ok. In any case, I got a build error, so was wondering where to go for help.
@sehe : I've never tried apt-build.
 
@FaheemMitha stackoverflow.com ? Be sure to bring error and version specs.
 
@sehe : Really? They answer such questions there?
I was thinking the llvm mailing list.
 
Сретан дан државности, Републико.
 
@FaheemMitha To be honest, I never use it. I did try it before, though
 
3:11 PM
I mean, it is not a programming question.
 
:)
 
@FaheemMitha I do, sometimes
@FaheemMitha Not?
 
@sehe : Never use what?
 
@FaheemMitha That would be a good place, perhaps
 
@sehe : No, it clearly isn't a programming question. At least, I don't think so.
 
3:12 PM
@FaheemMitha Hover the messages to see what they were posted as a response to. In fact, don't ever just replay @ name, but prefer to reply to individual messages
@FaheemMitha Ok, don't post it.
 
@sehe : Sorry, I don't follow.
 
The funny part is that this bug has been present since GCC 4.3 apparently. Well maybe it's not a bug for C++03, I'm not sure.
 
Did I do something wrong?
 
3:24 PM
Which is best: nop, noop or no_op?
 
As a function name?
 
Yeah
 
Why do you need no-op function? :P
 
Template shenanigans
I guess it's really just identity
 
no_op or empty would be fine, I guess.
 
3:27 PM
 
Well, if it returns the argument.
 
I think I'll name it no_op but define it to be identity, if that makes sense
 
@FaheemMitha: if you use that ^^, you can see the links between messages and their responses by hovering your mouse. That way, your question "Never use what?" would have answered itself
 
empty sounds like a predicate that calls the argument's empty member, like std::begin and std::end.
 
@sehe : Ah, ok.
 
3:31 PM
If you want to define nop, make it take N arguments and do nothing with them.
That way you can express the absence of sequence points between the argument expressions.
 
3:45 PM
@Pubby nope
anybody alive?
 
@psihodelia What?
 
@Pubby I suspect dead puns on a dead room
 
@psihodelia I am. Or at least I was last time I checked.
 
user784668
@EtiennedeMartel Check again.
 
@psihodelia We all have to sleep, some more some less.
 
3:53 PM
@CatPlusPlus Aha, just noticed:
> Click here to learn more about Evidon's services. Also, check out what Evidon's Founder Scott Meyer has to say about the company's mission and how it relates to Ghostery.
 
Does the bottom of a depression pit count as alive?
 
@Fanael Yep, still alive.
@CatPlusPlus Oh, you.
 
I bought meself a game. Haven't done that in a while.
 
@CatPlusPlus not so, it's more like a zombie mode, you ain't dead, but certainly you ain't alive.
 
Description fits the picture.
 
3:55 PM
The only difference between depression and undeath is that in the former, you don't have the urge to eat human brains.
 
@CatPlusPlus Is that the (our) Scott Meyer? ^^
 
I have no idea.
 
:) @EtiennedeMartel very true.
 
4:09 PM
they say that javascript andf ruby on rails has the most repositories on git
why is this?
do people who write c++ not put there stuff on git?
 
user784668
@JohnMerlino Do you mean github?
 
yes
 
GitHub is marketed toward hipsters, and they mostly do Web stuff with RoR and JS.
 
user784668
lol
 
hg > git.
 
4:11 PM
so then how do c++ programmers work collaberatively on the same project without source control?
 
@JohnMerlino Hg, TFS, SVN, Perforce, etc.
 
user784668
@CatPlusPlus Git is the CVS of DVCSes!
 
It's funny how you can take a piece of information and derive completely unrelated conclusion from it, no?
 
@CatPlusPlus 5$ he just heard about source control.
2
Seriously, though, I used both SVN and Mercurial in my life, so, yeah, there's more than Git in this world.
 
Anyone with Qt knowledge in here?
 
user784668
4:19 PM
@Prætorian No.
 
Wait, which one is hg?
 
@Pubby Mercurial
 
user784668
@Pubby Mercurial?
 
@Pubby Mercurial!
 
I'm having trouble getting one of their examples running, it works fine if I launch it from within the Qt Creator IDE, but if launch it standalone the window is blank
I've copied all the Qt DLLs to the same directory, so that shouldn't be the issue
 
4:21 PM
If DLLs were missing, it wouldn't run.
Maybe it loads the UI from .ui dynamically.
 
@CatPlusPlus oh, good call, the UI is QML
maybe I need to have some directory structure
@CatPlusPlus that was it! I copied the qml directory to the .exe directory and it works! Now I need to figure out if embedding the UI files is possible, this is kind of a mess when it comes to deployment
 
They have a resource system AFAIR.
 
but svn sucks
3
i used svn too
it sucks
 
@CatPlusPlus cool, I'll do some digging around
 
why wouldnt you use github just because its hip?
 
4:26 PM
Some people are not hip enough to use it
 
Bitbucket has better plans.
 
user784668
@CatPlusPlus What plans?
 
Pricing plans.
 
user784668
@CatPlusPlus Ah yeah. And I agree.
 
I self-host most of my git stuff
although at work we've only recently moved from CVS to SVN :)
 
4:30 PM
@CatPlusPlus I read that as "Bitbucket has better pants"
@JohnMerlino Welcome to the club.
@awoodland Hell, it's about time.
 
@JohnMerlino based on what do you say it sucks?
 
it wasnt intuitive, i would get cryptic errors all the time, and when I switched to git, it felt natural and easy to adopt
 
user784668
@JohnMerlino Git felt natural? Oh well.
 
@KillianDS Ever tried merging a branch in SVN?
 
@JohnMerlino funny, I had the exact opposite feeling. Actually, while I had encountered some constraints of SVN, the awful user experience that GIT is kept me away from DVCSs for a long time
@EtiennedeMartel I was specifically asking @JohnMerlino, I know there are issues with SVN :), but most "svn sucks" bashers just echo popular git opinion without really knowing what they're talking about. I've done my share of weekly SVN merges (luckily in the past)
 
user784668
4:35 PM
@EtiennedeMartel Since when SVN knows what "merge" means? Because the last time I checked, it thought that it means "crash randomly". Did anything change?
 
@Fanael There's something called "merge". But it does not work well.
 
user784668
@EtiennedeMartel Okay, so nothing changed.
 
user784668
@KillianDS template <typename T, typename U> most "T sucks" bashers just echo popular U opinion without really knowing what they're talking about.
 
@Fanael true :P
 
4:50 PM
is it possible to empty ostream's buffer rather than flushing it?
 
user784668
@MrAnubis Any reason you want to do that?
 
@Fanael Had seen a Q on SO , was thinking about it
 
user784668
I think it's not.
 
tlf - criminel
 

« first day (487 days earlier)      last day (4465 days later) »