« first day (638 days earlier)      last day (4300 days later) » 

12:00 AM
@DeadMG I'm not. I'm spreading links.
 
what, the mechanism of "Draft bills contain errors- that's why they're drafts"?
@sehe Which is basically the same thing on The Interwebs.
 
@DeadMG Ah. I wasn't aware of that. Back when I was little, my grandma used to say "You shouldn't believe everything that the papers write". That was 30 od years ago. She wasn't the sharpest knife in the drawer.
I think I'll be fine with ruining people's intellects and chance at a decent opinion.
 
you're the one who said that people would believe it
and I agree, people will be stupid enough to believe it when they read it
 
@DeadMG Precisely. And that's not because some c++ nerd linked it
 
well, arguably, the potential audience for a link in this place is not particularly large.
 
Ell
12:03 AM
I'm confused as to why you guys are argueing
?
 
@NikiC The puppy would like me to stress I linked the 'information' on astronomical bullshit just for shits and giggles
 
but that just means that you pointlessly lied about a public body to a small number of people rather than a large number of people
 
@Ell For the sake of it, maybe?
 
@Ell I linked to something that unfairlt discredits the UK. End of story
 
@Ell Because how many people have you seen who claim Obama's a Muslim or some other BS?
 
12:04 AM
@DeadMG I didn't lie. I linked. Cut the crap. You could just have asked me whether I knew what I linked to, and what my opinion about it was.
 
@sehe Well, I don't see the difference between saying it yourself and linking to a page that says it.
 
I think someone is overreacting here...
 
@DeadMG Really? You must be having identity crises rather easily then :)
 
well, not really
because of you, people will see those words. The exact mechanism you used is irrelevant.
@NikiC If nobody cleans up their act, society will be a cesspool forever.
I just seem to be the only person capable of looking more than two minutes beyond the lolz
 
Good. Well, summarizing, sorry if one of my pointless jokes included a link that offended people and/or institutions you care about. That was not only unintentional, but also rather extreme coincidence.
@DeadMG WORLD DOMINANCE. I rule the public opinion. I love the thought
 
12:07 AM
@DeadMG I hate it when dog owners leave their poo lying around
(Just had to note that.)
 
lol
so do I
although fortunately, I am not one of the above (mostly because I never have to walk the dog these days)
poor puppy
 
The point about critical thinking is this: you can only do it for yourself. No one else can. That would be called 'censorship' by the way. And no, nobody heard it because of me. They heard because of twitter and this falkvinge site
 
@sehe The point about critical thinking is that an unfortunately large amount of the population are not capable of it, and vote in politicians who make laws based on their inaccurate views.
 
Ell
just forget it guys I have really important news I need to share. get ready for teen-drama.
 
room topic changed to Lounge<C++>: Thou shalt prefix thy standard library names with std:: [brainfuck] [c++] [c++11] [c++-faq] [teen-drama]
ready!
 
12:10 AM
@Ell uhoh
 
@DeadMG But any self-respectable C++ geek should, right?
 
Ell
I'm pregnant.
 
<choke/>
 
I find that statistically improbable, given that last time I checked, you were male.
 
You checked?
 
12:10 AM
although I guess that I probably just assumed that and never actually checked, as it were.
 
Damn
 
Ell
har har I'm kidding of course. just really bored :L and my friends just left so I'm lonely :L
 
harhar pwned u sehe
 
Ell
oh no I assure you I am male
 
wait
weren't you Listener on Mumble?
 
Ell
12:14 AM
no I wasn't
I was elliotpotts
 
@DeadMG that was Domagoj
@DeadMG When? Where? Did you say something really witty?
 
12:30 AM
666 rep ... must change right away.. :-)
 
MOAR EDITS
 
yep, doing them now
 
12:43 AM
Ok, no more 666 when people approve my edits.
 
now I'mma reject all ur edits
 
you shouldn't, they are all legitimate
 
@DeadMG Here. Lemme link to another bombshell. Let's hope the world doesn't end in flames tomorrow: verse 21
Puppy disclaimer I don't condone it. I just link to it. Though somehow I think you must ascribe to this particular verse. Now, no more spreading false rumours about my mother :)
 
It's getting kinda late
Good night everyone
 
1:17 AM
well
time to desperately attempt sleep
wish me ze luck
 
2:07 AM
It's quiet...
 
2:18 AM
I've been cleaning since.. well, since my last message here
 
Xeo
Oh hey @Mysticial, question: Did you watch the Majikoi anime?
 
@Xeo Haven't heard of it. Is it this season?
 
Xeo
Nah, it's "old"
Adaption of a pretty awesome Visual Novel
though it doesn't follow any of the routes and as such doesn't spoil anything
 
then, probably, not... lol Since I almost exclusively watch new things.
 
2:29 AM
That's not that old... hmm wonder why I haven't heard of it. Since I quite literally watch the first eps of pretty much every single show I can find except for the hentais.
*every single (new) show
 
Xeo
std::for_each(new_shows.begin(), new_shows.end(), watcher());
 
Yeah, pretty much.
 
Couldn't sleep. :(
 
2:50 AM
evening everyone :)
 
Morning, ITNinja
 
what do you all think about Dart? (the language of course :P)
 
A nice try. A good try, actually, but the community is still way too sentimental around JavaScript to jump to it, even though transpilers exist.
 
if only python used indentation syntax from hell
 
3:06 AM
o.o?
 
erhm, I'm.. losing it
if only python didn't* use indentation syntax from hell
 
i love pythons indentation syntax haha
 
I don't
but other than that, I do like the language..
I should write a python code translator so that I could use {} instead of spaces, would be neat
 
here, you can use braces in python, aswell as ';': ideone.com/ceuCc
:P
 
 
2 hours later…
Xeo
5:04 AM
@LeviMorrison Garbage, next.
3 messages moved to bin
 
5:30 AM
@Xeo I was seeing how you guys reacted when an anti-c++ article cropped up. I never got a chance to see it. How sad.
 
Xeo
@LeviMorrison Depending on the content we either say "yeah, C++ sucks" or "Garbage, next."
 
6:30 AM
morning
 
6:56 AM
I have a small question that is tricking me a bit: According to C++11 standard §23.3.6.5/3 - "iterator vector::erase(..) invalidates iterators at or after the point of the erase."
I have a vector that I'm iterating over in reverse order using const_reverse_iterator
and whenever I find a value that matches a certain predicate, I push it on a different collection
and after that loop is done, I do vector.erase(-- rev_iterator.base())
because I want to remove these elements from that vector.
now: all elements of the original vector are sorted in descending order and I remove smallest values, and due to some assumptions and contrains of my system, there is no way an element would be removed unless all its previous elements are removed as well.
which means that the mentioned quote from the C++ standard does not affect me, because the erased values are "after" any next iterator that points to an element in my vector that I'm going to erase in a future iteration.
but does this hold true also for reverse iterators?
what is the reference point for reverse iterator?
when they internally calculate their next element, do they base it on end() or begin()?
 
@KarimA: Sounds like a reasonable question. Maybe you should post it to StackOverflow?
 
sounds like a good idea.
 
@refp from __future__ import braces
(Syntax Error: not a chance)
 
7:26 AM
0
Q: vector::erase and reverse_iterator

Karim A.I have a collection of elements in a std::vector that are sorted in a descending order starting from the first element. I have to use a vector because I need to have the elements on a contiguous chunk of memory. And I have a collection holding many instances of vectors with the described characte...

 
7:41 AM
in MSVC iterators get invalidated.
:(
is this a bug in the implementation?
 
I get a BAD_ACCESS when I try to insert something into std::set??
 
nope - sometimes it does sometimes it does not.
hmm..
 
Xeo
8:12 AM
@KarimA sounds badly like UB
 
yeah, it works only when I store const_iterators in the first place.
after erasing anything all reverse_iterators get invalidated.
 
You shouldn't have all reverse_iterators being invalidated
 
but they do.
MSVC11
 
it might make more sense to save off the appropriate (forward) iterators instead of saving off reverse_iterators. That is, since you need to convert to iterator anyways before you can do a vector::erase, do the conversion early. It would likely make the invalidation semantics much more clear.
 
This is how I solved it. I was just intrigued by this behavior ;)
 
8:25 AM
what you're doing in that post certainly yields invalidation/UB if you ever get reverse_iterators to contiguous elements into what_to_delete.
 
it depends on how you interpret what the standard means by "after".
and reverse_iterators's implementation and what it uses as a reference point
because if it was keeping track of it's position relatively to index 0's address
then erasing elements that are further from 0 than a certain reverse_iterator should not affect it at all.
but if "after" is meant "relatively to iterator's direction" then you're right/
 
I call mySet.insert() in a deep recursive call.
 
@Nils: posted a question to SO?
 
however mySet is a class member
humm I can't show the code it's for an assignment
 
Nils, is it a pointer to a set or a set?
 
8:29 AM
a set
set should dynamically resize, right?
 
@Nils: I doubt you'll get much help from... anyone... if you can't show your code.
 
error happens in __tree
 
@KarimA: Well, I posted an answer -- I don't think that the standard is ambiguous on the point.
 
f it works for smaller problems
but with larger problems it does not
 
@Managu, I've upvoted it, but I want to see if someone elase has anything to add.
Thanks!
 
8:30 AM
/nod
I'm sure some of the real gurus 'round here will eventually come around and tear my answer to shreds -- usually happens when I try to talk about de jure C++ as opposed to de facto C++.
@Nils: chances are you're doing something really nasty to your std::set in a totally unrelated place. Or are otherwise thrashing your memory.
 
Ah now I get a stackoverflow.
much better
on Windows VS
on my Mac still bad access
how is the recursion depth limited in a C++ program?
 
"That depends"
 
@Managu Looks good to me
 
@jalf :-)
 
so how can I enlarge my stack?
 
8:38 AM
@Nils: chances are, if you really need to enlarge your stack, you're doing something badly wrong and should rethink your entire approach.
Or rather, if you're really overflowing your stack, even.
 
I'm doing DFS in a really large graph.
 
Sure. Are you certain your graph is acyclic?
Is your graph finite?
Perhaps an A* search would be a better match to what you're trying to achieve?
 
yes it is finite
@Managu it's assignment 4 for algo-class
it seems to work for smaller graphs
 
How much are you shoving onto your stack at each call?
your call stack that is -- how much space worth of local variables?
How big is a "really big" graph?
 
the function is rather small
70mb txt file
so I have to buy breakfast
anybody wants a coffee? ;)
 
8:44 AM
@Nils: stack size is a linker option under VS: msdn.microsoft.com/en-us/library/tdkhxaks(v=vs.110).aspx
 
yeah trying with 10M now, thx
 
Why do you do this recursively in the first place? That's just asking for trouble in a language like C++
 
(is LMGTFY off limits for chat?)
6 mins ago, by Nils
@Managu it's assignment 4 for algo-class
20 mins ago, by Nils
humm I can't show the code it's for an assignment
@jalf: the usual answer: 'cause that's part of the assignment?
 
9:05 AM
@jalf algo is recursive
might have to transform it to an itertive solution
 
@Managu You don't usually get assignments that require you to provide special compiler switches to avoid blowing the stack. ;)
 
9:22 AM
Ello.
No thing.
I just woke up.
No.
No.
PHP is fake, just like Windows.
And Java.
And Linux. Piece of shit.
BSD and XNU FTW
Windows is a joke.
 
lol
I love how people argue like they are holding stocks in this game
 
Back in the days, if you removed a non-vital file C:\autoexec.bat and you booted your machine, instead of recreating it the OS told you to reinstall Windows.
Same with applications and missing registry keys.
 
yeah I wonder where that went
I want to load a couple of environment variables.
or let's say execute a bat script at startup
where to put it?
 
The API is horrible. How many GUI libraries does Microsoft have for Windows? WinAPI, Windows Forms, MFC, WPF? What else?
 
WPF
that's quite ok
win32 is old
 
9:34 AM
Meh. Things always look fuzzy when I use WPF. :P
 
same as mfc
hands of
 
And resizing the window lags.
What is so difficult at just designing a decent library in the beginning and just use that forever?
One that just makes it damn easy to make a GUI and make it consistent with the system and other applications.
 
@RadekSlupik mfc was a rather decent library
 
@RadekSlupik Well, how many sound APIs does Linux have? Show me an OS that isn't fucked up, and I'll show you one that obviously hasn't been developed on this planet
 
@Abyx the point is that they didn't just have one definitive library that everybody would use.
 
9:39 AM
@RadekSlupik it's impossible. you can't use mfc in C#
 
@RadekSlupik Unlike X11... Oh, wait, no one uses that. Instead they use a half-million different libraries which wrap it. Really, we get it, you have an irrational hatred for Windows, but what you're describing isn't Windows, it's every fucking OS that's used by more than 15 people
 
@jalf that's a different story. The user doesn't care about the sound APIs, the output is they same for every library anyway. GUI libraries, on the other hand, are all inconsistent with each other.
 
@RadekSlupik The user sure as hell doesn't care about the number of GUI libraries Windows has either
And the output from gui libraries is the same too. They output pixels.
 
@jalf but he does care about the GUI of the application he is using.
 
9:40 AM
My favorite article about Linux and GUI and graphics.
 
@RadekSlupik Sure. He also care that the sound isn't choppy
 
The output is different. One GUI library uses different styles than other ones.
And different conventions.
A Qt app looks different from a WPF app in most cases.
 
@RadekSlupik Which GUI libraries are we talking about here?
@RadekSlupik Since when was Qt a Windows API?
 
Ok MFC then.
Whatever.
 
You're talking complete nonsense. Windows sucks because third-party APIs exist, and they're inconsistent
 
9:42 AM
And why do they exist?
Because the original Windows APIs sucked.
 
@RadekSlupik In Qt's case? For cross platform support. And for being used on Linux, where GUI is even more hilariously inconsistent
 
wut? what's wrong with Windows API? i.e. user32
 
the only platforms which has a somewhat consistent UI is OSX and iOS
 
Cross-platform GUIs suck anyway. :P
 
-
 
9:43 AM
@RadekSlupik Wait wait wait wait wait... Which platform are you comparing against? I really hope you're not trying to tell us that *nixes have a consistent UI
Or a single non-sucky UI API
Because that has got to be the joke of the century
 
write your own
can't wait to play with the beta, but the screenshots look already promising
 
@jalf I am not comparing to anything.
 
Windows sucks, yes. So do Linux, BSD and OSX and iOS. But funnily enough, most of the arguments you've come up with about Windows either have not been true for a decade or more, or apply just as much to most other platforms
 
BeOS
 
That's because of my hate towards Microsoft. :P
 
9:46 AM
Which makes it kind of seem that it's not Windows sucking that's the issue here, but that bashing Windows is somehow tied to your ego. In which case, grow up.
Or attack Java or PHP instead. Pick on something that sucks more than the alternatives, not just something that sucks. ;)
 
@RadekSlupik now you are just missing a beard
 
k, I'm heading out. Seeya
 
cu
 
@Nils I have a beard. :P
 
10:02 AM
facebook is a single big bug
 
:(){:|:&};:
what is it doing?
 
I want to delete my name from a post, all it does is telling me that that doesn't work and redirects me to the "Family center"
@cicada more nvidia rage please anandtech.com/show/6092/…
 
10:35 AM
@JohannesSchaublitb #define : something?
 
@Abyx it's bash code
 
omg
offtopic then
 
@JohannesSchaublitb Killing your computer?
 
ohh
i thought it's a man lying down with things in his belly
 
10:49 AM
@JohannesSchaublitb You have interesting questions
@JohannesSchaublitb And they make me think that C++ is a very funny language :P
 
11:16 AM
I'm tired as a motherfucker..
 
I just woke up and my eyes don't work yet. :(
 
1
Q: Virtual base destructor

teddyI have a problem as below: #include <iostream> using namespace std; class B { public: B() { cout << "Base Constructor \n" ; } virtual ~B() { cout << "Base Destructor \n" ; } }; class D : public B { public: D(stri...

vote-2-close.
 
11:37 AM
@NikiC ohhhh!
 
Ell
11:50 AM
was that a fork bomb?
 
@JohannesSchaublitb fork bomb?
for (;;) { fork(); }
I'm writing a virtual machine in JavaScript.
 
bork tomb
JS is-a VM
 
JavaScript is a language.
My instruction set is currently very limited, however.
It has only five instructions. xD
Two of which are already implemented: no-op and copy register to register.
 
I'm not super good with RNGs, can anyone read this post for me to see so that I haven't fucked up the terminology anywhere? thanks.
0
A: generating random numbers out of a exponential distribution with mean

refpWith C++11 the standard actually guarantees that there is a RNG following the requirements of exponential-distribution available in the STL, and fittingly that object-type it has a very descriptive name. Thea mean in an exponentially distributed random generator is calculated by the formula E[X]...

 
There are 256 registers, all of which can hold any floating point number or integer of arbitrary length. I wish all processors were like that.
 
12:04 PM
You mean, slow as hell?
 
And possibly expensive like crap.
 
Crap isn't expensive; it's rather cheap.
Unless you're referring to unicorn crap.
 
12:29 PM
0
Q: Callbacks to handle keyboard inputs. Glut | C++

JonasI've just started learning about OpenGL/Glut and I'm facing some issues. I want to print a string key: a whenever I click the key a, but it seems like I don't know what I'm doing. I'm calling glutKeyboardFunc() from the main() function, and I'm passing it keyinput(), which tests whether key is E...

 
 @FredOverflow Hey, how are you?
 
hungry
 
I suggest pizza
 
I already had pizza yesterday, and it didn't taste very good, because I already had pizza 2 weeks before that or something. I need a pizza pause.
 
I suggest bacon
 
12:35 PM
I'm gonna have semolina porridge, that always works for me.
 
I read salmonella pork.
 
Maybe you haven't slept enough?
 
I also read salmonella for some reason ...
 
@FredOverflow Maybe you use difficult words? :P
 
"gonna have" is difficult for me too
 
12:38 PM
@RadekSlupik Okay, how about a thousand words:
 
Too long.
 
@CatPlusPlus That's what gcc says when you write long long long x; :)
error: ‘long long long’ is too long for GCC
 
Explaining EM propagation theory to idiots. Fun, fun, fun.
 
@FredOverflow haha
 
I'm just way too sexy.
 
12:51 PM
> (Or don't. I don't give a shit.)
LMAO
 
0
Q: Delete last node in linked list

Moatz1- why when the node is the last one in the list , its said that we can not delete it ?! like delete node given only access to it like del(node* curr) and it happened to be the last node in the list , we can make it like curr =0 ; and its it , as below code void fn (node* lastNode) { ...

shitty question
 
The memory fragmentation of linked lists gives me the creeps.
Goddamn WoW patcher, still 5.7 GB to go.
 

« first day (638 days earlier)      last day (4300 days later) »