« first day (817 days earlier)      last day (4357 days later) » 

12:02
my poor little pi
TMI
I've currently got it burning it's way through generating primes up to 4*10^9
Xeo
Xeo
Why would you do that?
currently have quarter million of them
because I can of course
Xeo
Xeo
Just stress-testing it?
12:04
@Xeo He's evil.
Xeo
Xeo
He likes torturing robots?
100% CPU for a fair while...
@thecoshman It's burning the primes? That's criminal!
user142019
Who doesn't? Oh wait, oops.
oooh, just over 400k primes :P
12:05
man. you must be really bored
user142019
I am.
My boredom starts at 23.
yeah, I'm on a course about java perfroma... lol I still can't say it
still, you never know when you need a huge ass list of primes :P
Plot twist: two hours later he realizes there is a bug in the code.
lol, probably
any one fancy writing some validation code?
¬_¬ I see you all run away now
12:10
@thecoshman For?
user142019
For a software program.
@AndreiTita ¬_¬ validating nearly half-a-million primes are in fact primes
You start worrying when you're so bored that your boredom starts to be fun.
@thecoshman Ah. Shouldn't someone already have that code somewhere?
12:11
up next, code to let me handle numbers that are too big to be handled as numbers :P
user142019
@TonyTheLion and after a while, the boredom takes too long and becomes boring.
@thecoshman That makes no sense.
@AndreiTita sure.... but I doubt it's been done with perl
@Zoidberg lol
Numbers are numbers. (sorry, pet peeve)
12:12
@R.MartinhoFernandes numbers greater than 2^32
robot peeve
@thecoshman you mean greater than 2^33?
¬_¬ I think I should let the pi have a rest soon
sorry, derp moment
numbers > greater then 2^33 - FTFY
why write "greater then" if you can just write >
hmmm?
2*2^32 or 2^32... fairly sure I mean the latter, but in a very distracted way
12:14
why waste energy?
user142019
@TonyTheLion 4fun
one day I might have gain this instinctive knowledge of 'then vs than
Xeo
Xeo
Does "if-then-else" help?
user142019
@thecoshman Then is more often misspelled than than.
12:15
at least I know there is a difference :P
@Xeo Only if you don't have #define than then in your code.
user142019
In Zoidlang then is only used in switch cases.
user142019
switch str
    when "foo" then bar()
> Unlike then, than is not related to time. Than is used in comparative statements.
I just need to learn a way to remember it, like for 'off' and 'of' I know I need 'off' when I want to say 'get the fuck off the table' <-- throw plenty of 'f's at it
it's not just a case of knowing what to two use cases are that I have problems with, it's remembering which one is for which
and simply 'then is for temporal matters' does not suffice
Xeo
Xeo
@thecoshman s/through/throw/?
yeah, still need to keep an eye out for those two as well :P
12:19
@Xeo those two words mean entirely different things
18
Q: Is specializing std::swap deprecated now that we have move semantics?

FredOverflowThis is how std::swap looks like in C++11: template<typename T> void swap(T& x, T& y) { T z = std::move(x); x = std::move(y); y = std::move(z); } Do I still have to specialize std::swap for my own types, or will std::swap be as efficient as it gets, provided that my cla...

Xeo
Xeo
@TonyTheLion I know.
vote to close please
user142019
lol
huh, has GCC decided to stop paying attention #pragma?
Xeo
Xeo
12:19
@FredOverflow How come?
@FredOverflow why?
Xeo
Xeo
Didn't we conclude that we'd let both stay open?
user142019
Scumbag Fred. Question has 18 upvotes, now it's time to close.
hey does somebody know why do i get a bunch of erros (missing dlls) when trying to run an app outside qtcreator? when i run it inside qtcreator it works fine.
user142019
Because it cannot find the DLLs.
Xeo
Xeo
12:20
@ddacot Different working directory, most likely.
and what should i do to get it to work even on another computer?)
user142019
Static linking FTW.
because to dll's are missing
ensure the required dll's are transferred with the executable, or staticly link
Why the fuck do I have so many shared_ptrs in my code.
user142019
Because you're terrible.
Xeo
Xeo
12:21
"You suck." is a likely answer in this room.
sharing a lot of data?
@AndreiTita cause you put them there or someone has a shared_ptr fetish.
@Zoidberg I knew that was the answer.
user142019
Then why did you ask the question?
I needed some confirmation.
12:22
lol
@AndreiTita 2 > 1
user142019
lol
@Xeo Because you were first, and I basically asked the same question.
Xeo
Xeo
@FredOverflow Err, do you not remember our discussion?
@Xeo Oh, we did? Why?
12:22
What do you guys think about ruby?
@Jeffrey I prefer saphire
@Xeo Apparently not. It's been too long.
@Jeffrey it sucks
Xeo
Xeo
We decided to let both stay open, since Howard explained different aspects in his answers.
Then we should probably merge. Is it possible to merge two questions when they were answered by the same guy? :)
user142019
12:23
@Jeffrey It's a nice language.
@Jeffrey I use it occasionally, but I only have very basic knowledge of the language. So I can't really judge it.
@TonyTheLion, why?
user142019
@FredOverflow I'd be surprised if it isn't. You can answer a question twice.
@Jeffrey because this is the C++ Lounge where everything sucks by default. :P
Xeo
Xeo
Dec 23 '11 at 16:30, by Xeo
@FredOverflow They're both good. Howard's answer on your question focuses more on the efficiency point, which he only touched on mine. His answer on my question explains the noexcept stuff. Let's just keep both and I'll post a "related: " link as a comment
12:25
@TonyTheLion even sucking sucks, and saying that things suck, and not sucking sucks
Xeo
Xeo
Seems it wasn't that much of a discussion after all.
user142019
@TonyTheLion This is the C++ Lounge where answers to questions are always useless.
@thecoshman your statement sucks
@Zoidberg and statements get answers
@TonyTheLion as does yours
I know you don't like comparisons but what would you prefer for web? PHP or Ruby?
12:26
It got worse.
user142019
Ruby.
@Jeffrey Ruby.
user142019
If you prefer PHP for anything, you're a terrible person.
Xeo
Xeo
@TonyTheLion Ha!
12:26
sigh, do we really need to say this again
user142019
CoffeeScript
php < java < everything else
Your mom
user142019
@thecoshman swap(php, java);
12:27
JAVA
@Zoidberg are you mad? As shit as java is, at least it is conistent
Xeo
Xeo
@thecoshman Wat.
interfaces everywhere
It's consistently bad
user142019
lol
12:27
@Jeffrey I wish it used a more functional programming style.
I'm not saying java is good, I am saying php is even worse
Haskell > everything else
Xeo
Xeo
@thecoshman Aha?
Ruby has a problem of bad design lurking around
bad design lurks?
Why did I know it links to coshpost
user142019
@TonyTheLion s/Haskell/Erlang/
¬_¬ slowest loading image ever....
user142019
lol
12:29
@R.MartinhoFernandes ah... oatmeal
user142019
@thecoshman it's 22 kB
@Zoidberg s/Erlang/TonyTheLionLang
@CatPlusPlus lol
One of the biggest problems Ruby has is open classes
user142019
No, that's awesome.
12:29
Shut up.
No, that's maintenance nightmare
@Zoidberg connection here is that bad
When you've got 300 methods on fucking nil
And sometimes some of them aren't there
Have fun finding which part of your 200-bundle application defines them and in what versions
Open classes don't solve any problem that can't be solved elegantly without fucking up namespacing and symbol origin
12:32
you know RSA uses prime factors of a huge ass number... is it always a pair of prime factors? or can be any number of primes?
It's two big primes
exactly two?
Everything else is computed from those two
I see...
How many would you want and for what?
12:34
those RSA numbers are rather large though :P
That's the point
Bit-length of their product is key length. That's 4096 bits commonly
1.4 Billion primes <-- just a few there :O
Why do you guys love Python?
because it's without clutter, easy to use and has a nice interface
yeah, but significant white space
12:39
Ah, yes, the classic "an" error. That's the worst, I'm afraid there's no fix. — Luchian Grigore 21 secs ago
@thecoshman that's not such an issue I find.
@LuchianGrigore You tell them.
@TonyTheLion probably not, but not really felt the need to learn python, might one day
-1
Q: Exceptionhandling in a Parser Wrapper class

joachimI have a Parser class say Parser whose constructor throws an Exception. I want to use a Wrapper class ParserWrapper to hide some information and to control parameters which should not be visible. ParserWrapper::ParserWrapper(string _filename) : filename(_filename) { Parser* parser = NULL; ...

^ Avert yer eyes!
@thecoshman Same. Also, I prefer Lua.
12:43
yeah, I want to give Lua a more in-depth look
it's seems rather nice for those new to programming
python is very nice, but as inefficient as the community is fractally incompetent. so i have mixed feelings. but i love the animal anyway.
Languages don't have performance
wow, my pi has nearly calculated 1million primes
it's poisonous
@thecoshman you're wrong
12:44
Right
@sehe huh?
anyway the "languages don't have performance" is a an anti-meme propagated by fanatic adherents of lousy performance languages (like, Python community, they're mostly idiots)
Just a quick sanity check: CRTP classes should never be used as references/pointers to derived objects, right? Is there a way to prevent this? I don’t think so, just checking …
@Cheersandhth.-Alf WTF exit(-1)?
@thecoshman pi cannot calculate anything
12:45
:lol: anti meme
@KonradRudolph Not sure I understand the question.
FYI PyPy
@sehe no, but my pi can
And honestly I don't know why I even bother
12:47
<pulls party popper>I million primes
Your pi can of worms FTFY
@CatPlusPlus as i said, they're not too bright
<trolls party pooper>
@CatPlusPlus cause you have nothing better to do?
oh, the amount of ram in use is slowy rising...
wonder if it will run out before I reach 4*10^9
12:48
You need more RAM for more data? Who would've thought
^ Huh, who is this guy?
see the stress of 'slowly'
@thecoshman Dude, you need to get out more.
@R.MartinhoFernandes dude, course
12:50
I need to play with something interesting
A ball of yarn?
@R.MartinhoFernandes Say A is a CRTP base class which I use to implement some feature in B by inheriting from A. Can I prevent b instances to be accessed through A& except by inheriting from A privately?
And, should I prevent this?
12:51
@KonradRudolph Ah. I don't really care, tbh.
Please! My screen!
¬_¬ edits or bin please
@KonradRudolph I filed that under protecting against Machiavelli. It's not something that can happen accidentally, I think.
@R.MartinhoFernandes I agree. I mention it because it came up in a comment as an objection to me:
@KonradRudolph If some class is intended to be a base class for other ones, its destructor should be either virtual or protected to prevent UB when derived object is deleted via base pointer. — Tadeusz Kopec 56 mins ago
@KonradRudolph depends. e.g. std::stack has protected member and non-virtual public destructor.
@Cheersandhth.-Alf Huh? How does that support the assertion “depends”?
CRTP bases are implementation details, whoever is using pointers/references to them deserves the trouble
@KonradRudolph the protected member can only be accessed (ordinarily) via a derived class. so std::stack is meant to be derived from, but its destructor is neither virtual nor protected.
12:55
Same thing with detail namespaces
You poke in it, prepare for breakage
@Cheersandhth.-Alf Yes, I have no problem at all with that. But how does that relate to the comment?
using namespace detail; sounds like worst idea ever.
@Cheersandhth.-Alf That’s in fact exactly what I said.
well it's contrary to Tadeusz' opinion.
since when std classes meant to be derived from?
12:56
@thecoshman Ever?
streambuf
Xeo
Xeo
@CatPlusPlus Not necessarily if you use them for categorization.
@thecoshman since about 1998
@Cheersandhth.-Alf Yes, exactly. But my point is: it does not “depend”, he’s always wrong. ;-)
12:57
@Xeo Categorisation?
@KonradRudolph oh
I thought std stream objects where best avoided completely, or have I mistook @Sbi's rants
Xeo
Xeo
@CatPlusPlus Think expression templates.
oh god, even cppreference is taking time to load :O
Xeo
Xeo
@thecoshman Just because we advice people not to use them doesn't mean that they weren't designed to be inherited.
12:58
lol sbis's.
oh, it's the collections you are not meant to derive isn't it

« first day (817 days earlier)      last day (4357 days later) »