« first day (871 days earlier)      last day (4302 days later) » 

10:00
Triple dashes
@Cicada haha :)
@MartinJames no idea :( haven't even been here much this week!
do you guys know a good boost::range tutorial
?
@LightnessRacesinOrbit Only happened to me once when I close/down voted someone for asking business questions. The were hacked off that I/SO would not do their market research for free.
Xeo
Xeo
@MartinJames But it wouldn't have been for free. You'd have gotten rep for it. :D
10:11
@bamboon What do you need tutorialling about
@CatPlusPlus Nothing special, just some introductory material to the concepts. I never get really warm with the boost doc.
@Xeo I prefer cash. For doing market research, it would have to be a huge amount of cash to make the boredom worth while.
@AvoidComments, The Whole Friggin’ Internet
This account will tweet periodic reminders to not read the comments sections for, well, pretty much anything, ever.
99 tweets, 11.6k followers, following 0 users
user142019
That account is great.
That account is so wrong. Comments make the internet so superior to every other media.
10:16
Okay. But argue so in the comments only please, not the chat.
user142019
You don't read comments in code, so why would you read Internet comments.
(Most comment sections are so horrible it's hilarious)
X+=Y; // adds two numbers together
Xeo
Xeo
The comment is lying, I see no numbers.
user142019
10:19
@MartinJames wrong.
user142019
Concatenates two strings together.
Xeo
Xeo
// applies += to two objects
Oh -sorry, I should have posted the entire .h, complete with pointless comments on every line, so y'all know the types :)
user142019
@Xeo you think.
user142019
No wait fuck. :P
10:23
You're bad
user142019
Stupid preprocessor.
I am on the lecture
I dont't know what I'm doing here
Chatting
16
Q: Pointer arithmetic across subobject boundaries

Stephen LinDoes the following code (which performs pointer arithmetic across subobject boundaries) have well-defined behavior for types T for which it compiles (which, in C++11, does not not necessarily have to be POD) or any subset thereof? #include <cassert> #include <cstddef> template<ty...

Sleeping
10:28
difficult
I mostly do sleeping, because wifi never works where we have lectures
16 hours ago, by R. Martinho Fernandes
dots the dirs.
I have 3g
The guy is too loud for me to sleep
@TonyTheLion No. It's outright UB.
He is rambling something about race conditions
Xeo
Xeo
10:31
@LucDanton: Btw, yeah, turning a static_assert into a soft-error doesn't really work because of the "immediate context" stuff they added. :/
@Xeo Yup.
@LucDanton oh wow
@TonyTheLion No need to be surprised.
@CatPlusPlus so you sleep instead of paying attention?
@TonyTheLion Yes?
10:33
@LucDanton I'm mainly surprised the answer is that simple
like a real cat
@CatPlusPlus Wait, you're a student?
user142019
I start new projects instead of paying attention.
@GamesBrainiac he's a student in sleepology
I mostly don't go to lectures these days
10:34
@TonyTheLion That is a good degree to have, its one of the few that actually is useful.
user142019
@GamesBrainiac no, he goes to boring lectures for fun.
@CatPlusPlus Same here, the teacher is an idiot.
he's studying the affects of sleeping in a class with other students on the ability of the student to retain data.
user142019
@GamesBrainiac or are you a noob?
user142019
Teacher has a degree so he must be good!
10:35
@Zoidberg That seems to be the logic of the teacher herself, and no, I am not a noob at learning.
@TonyTheLion The OP knows the first snippet is incorrect and provides the quote as to why. The second snippet has a zero-length array.
user1357851
@TonyTheLion so if here is a hot chick near by, he could say he has slept with this hot chick. Although it has to be taken more literally - he is sleeping with the chick sitting in the same lecture room
user142019
Let's see.
Likelihood of UB also increases very dramatically the cleverer the code attempts to be. And that is very clever code, so.
user142019
I'm going to write some codes so I can make a software.
10:36
@Telkitty lol
@Zoidberg What other way would you make software?
user142019
@GamesBrainiac visual programming.
user142019
Executable UML.
user142019
Whatever.
@Zoidberg Is that like a professional version of scratch?
user142019
10:37
It's the most retarded way to make software after Java and PHP.
@Zoidberg Still hatin' on java, huh? What do you hate most about java, name 3 things.
Just 3.
The top 3.
Syntax, lack of expressiveness, checked exceptions, primitive generics, uninteresting type system
user1357851
exceptions
user1357851
untimely garbage collection & extra extra long names at times
Lack of free functions
Stupid pseudomodule system
10:40
@CatPlusPlus: Why would you want free function when you can have static singleton class methods ?
which other big language does have value semantics?
Also, why would you want multiple instances of a class when you can have several singletons of it ?
user142019
@GamesBrainiac no type inference, no lambdas, single class per file crap, extremely terrible community (almost as bad as PHP's) and generics are more terrible than your momma is fat.
Also the proliferation of stupid design in standard library and Java community in general
user1357851
@CatPlusPlus ???????????? C++ is a lot worse in this regard!
10:41
Yeah no type inference
java.util.Date <3
@Zoidberg: I'd add on top of that all the Java-related crappy-terms like : "Java Architect"
java.util.Calendar <3
user142019
Functional programming is kinda undoable in Java if you want to keep it readable. Wait, maybe static import and a static class, nah nevermind.
@Telkitty What ?
10:42
java.lang.String <3
user1357851
free handy lib functions
ITT Robot loves Java library
user142019
@Telkitty wat.
org.w3c.dom <3
@Zoidberg Must you be rude in every single statement? But those are some descent points, I never really cared, because there was always a way around it. And for me atleast templates cause A LOT of problems.
user142019
10:43
C++ has free functions, Java has no free functions. Conclusion: C++ is better at free functions than Java.
@TonyTheLion Make sure to distinguish language from library.
user142019
@GamesBrainiac No rudeness no fun.
@Zoidberg Well, java 8 will have lambdas
C++ has completely retarded compilation model but that's not really relevant
@LucDanton FTFY
user142019
10:44
@GamesBrainiac templates cause a lot of problems because you don't master them.
@Zoidberg Just don't get people's mothers involved, thats all I ask.
It is much more expressive than Java
But Java has singletons. Nothing can beat that.
@GamesBrainiac C++ is irrelevant for the suckage of Java.
@CatPlusPlus Expressive is such a subjective term.
10:44
I am a singleton
user142019
@GamesBrainiac Oh no I'm so offended because somebody said "your mother" without meaning anything at all. On the Internet.
@TonyTheLion String is part language part library!
@ereOn Yes, that is awesome! :D
"Algorithmic issue ? No problem ! Just make a singleton out of it ! This doesn't make sense ? No problem ! Just make a singleton out of my sentence !"
@Zoidberg 'Executable UML' - :)
10:44
@LucDanton pedant
Ooooh, almost forgot.
Also yeah why everyone is always bringing up C++ when talking about why Java is terrible
java.lang.Object <3
user142019
Ooooh, almost faggot.
user142019
@CatPlusPlus Because they're similar languages!!!
10:45
You're trying too hard Zoidberg and it's not funny~
@Zoidberg Lets just keep things civil. You can be rude to the person, but if for example someone's mother was dead, it would serve to hurt them, not uplift then. I know you mean no harm, but I just say as a cautionary note. Nothing more.
@TonyTheLion I did suggest you make sure to distinguish either. Failing that, I have to point it out to you. (That a string type is part language and part library is a very interesting choice when it comes to language design btw.)
At my work, we have a code base in which at some point someone made a multiple-ton
user142019
Both are object-oriented! Both use new! But C++ is worse because you have to do memory management manually!!
user1357851
10:46
@R.MartinhoFernandes stop it, just stop it!
see if I care
Oh, also Java has no multiple inheritance
@R.MartinhoFernandes So, you're a Java fan?
@R.MartinhoFernandes What is it useful for?
A class for whose only two instances could exist.
10:46
But it's totally an OOP language
user142019
@GamesBrainiac I've been told that the software in fans is written in Java.
@GamesBrainiac fyi sarcasm
@Zoidberg exactly! :P
@GamesBrainiac No, it's not
user142019
I should go to school in a burqa on a skateboard once.
10:47
It's not precisely quantifiable, but it's not subjective
You can objectively order languages by expressiveness
@LucDanton It provides cloning, finalization, a monitor, equality comparison, hashing, and reflection for every object.
@Zoidberg A freind of mine, who was a guy, actually wore a burqa to school, we all had a good laugh about it.
user142019
Which language is most expressive?
Probably dependent-typed ones
user142019
@GamesBrainiac you'd have laughed harder if he travelled by skateboard.
10:48
People say Ruby is expressive, but for me, its just crap
@GamesBrainiac Just listing the parts of the standard library I have had the most fun with. (DF kind of fun)
@R.MartinhoFernandes Is there a default implementation for those when you write out your class?
Whether Ruby is expressive is orthogonal to whether Ruby is crap
@Zoidberg Wouldn't we all laugh if it got caught up in the wheels.
user142019
@GamesBrainiac s/its/I'm/
10:48
(It's both)
@LucDanton Yes. Not all are overridable.
But Ruby isn't crap because of lack of expressiveness
That is nice. I don't recall clone() working that way oddly enough. Recent change?
It's mostly stupid design around some parts that make working with large projects absolutely unbearable
@R.MartinhoFernandes what does DF mean?
user142019
10:49
I like Python.
2
Funnily enough Object.clone has no default implementation
@bamboon Dwarf Fortress.
user142019
Python 3, that is.
@CatPlusPlus It has.
I g2g guys.
10:50
Well, it's private
user142019
def clone!
    clone
end
Most Java attempts at being more expressive and ~magical~ are hilarious failures
user142019
I wonder if that works though.
10:51
Like Serialisable
@LucDanton No. It's still the same: if your object implements the empty interface java.lang.Cloneable, it performs a shallow copy. Otherwise it throws CloneNotSupported.
@R.MartinhoFernandes How does that come into play?
Oh it's one of those default implementations
@bamboon "Losing is fun" is the DF motto.
@R.MartinhoFernandes That is not nice.
user142019
10:52
clone = deserialize . serialize -- :L
And Object.clone is protected, so you have to override it with a public method.
But it isn't part of the Cloneable interface.
Because...
Welcome to Finland.
user142019
Use only immutable objects and every cloning problem is solved.
I've rarely found cloning useful anyway.
@Zoidberg Erm, clone() is most useful when using immutable objects.
user142019
Why would you clone an immutable object?
10:54
What
(And by "most useful", I mean "not at all")
@Zoidberg To return it modified.
user142019
You make a new object with the almost same state.
user142019
If you'd do object.clone() and it's immutable you cannot modify it since it's immutable.
@Zoidberg And you don't see where clone helps?
I've never used explicit cloning on an immutable object
10:55
@CatPlusPlus Only internally.
@R.MartinhoFernandes aha, I never played that.
@Zoidberg You can do it internally.
user142019
new Object(x=object.x, y=object.y + 42)
Yeah internally
user1357851
10:56
copy constructor
@Zoidberg Or clone and change y.
user142019
@R.MartinhoFernandes you can't; everything is immutable so y is immutable.
@Zoidberg You can. You are writing the class.
user1357851
10:57
@sehe why pic when we are having semi meaningful discussion on how cloning is actually invocation of some form of copy constructor?
user142019
Everything is immutable.
user142019
So members are also immutable.
BTW what's in that new CTP
user142019
Everything (or every thing), is all that exists; the opposite of nothing, or its complement. The totality of things relevant to some subject matter. Without expressed or implied limits, it may refer to anything. The Universe is often defined as everything that exists. It may refer to an anthropocentric worldview, or the sum of human experience, history, and the human condition in general. Theory of everything In theoretical physics, a theory of everything (TOE) is a theory that would explain and unify all known fundamental interactions of nature in a single model. Originally, the term wa...
Xeo
Xeo
10:57
@CatPlusPlus Nothing.
Oh wait, a blue theme
Xeo
Xeo
So, nothing.
@Zoidberg Why would you want to make your life even more miserable.
MS Y U RELEASE CTP WITH NOTHING?
@Telkitty bwahahahahaha. keep it coming!
user1357851
10:59
Thanks, troll, you made my day complete!
> Visual Studio 2012 may crash in the debugger UI.
that's definitely not a "nothing" upgrade for me.
Wait, that's one of the new things?
user1357851
@DeadMG could be some obsolete functions you are using.
user142019
@TonyTheLion lol
user142019
Screw irony. Give me goldy.
@R.MartinhoFernandes Yeah.
there are others too
@DeadMG New bugs?
various "buggy code generated" or "compiler crashes/intellisense crashes/etc"
@R.MartinhoFernandes No, that's the "Fixed" list.
Oooooooooh.
That makes a lot more sense.
Xeo
Xeo
11:04
@TonyTheLion Capcake
user1357851
Supermarket customer allegedly found a frog in a bag of salad

http://www.smh.com.au/national/woolworths-customer-hopping-mad-after-frog-allegedly-found-in-bag-of-salad-20130305-2fil4.html#ixzz2Mf7baaIS
Xeo
Xeo
@R.MartinhoFernandes "Okay, here's what we fucked up this release:"
As if.
user142019
Damn.
@Xeo It's a CTP. I don't think it's stretching it to assume they have a list of known issues.
Xeo
Xeo
11:07
@Telkitty Dat punstorm.
> Another alleged that Woolworths had "kermitted a crime".
you don't need to dump a photo connected to a news story you just linked.
There's worse - I bought a cheese sandwich with drawing-pins in it.
Xeo
Xeo
Woah, that website is doing something iffy with the clipboard.
user1357851
@TonyTheLion you just posted a bunch of pics
11:09
Venus, from Saturn.
Xeo
Xeo
Wait, what?
That little dot?
@Telkitty Because I can and because I'm awesome.
@R.MartinhoFernandes lolwut
@Xeo Little dot close to the top of the picture.
Xeo
Xeo
Oh, woah
11:10
Cassini takes awesome pics.
where is klmr's don't use pointers thingy?
I saw it, but I had to wipe screen to be sure it wasn't a pizza crumb.
tinyurl.com/fuck-pointers
Xeo
Xeo
@TonyTheLion tinyurl.com/fuck-pointers, I belive.
Yep, works
11:11
&fuck
Xeo
Xeo
@R.MartinhoFernandes Meh, wonder if people will figure out how to navigate that.
Since scrolling doesn't work. :P
Does on firefox.
Xeo
Xeo
@MartinJames I have FF
user1357851
Gosh this is hilarious:
user1357851
11:14
QtCreator ended up being a lot nicer than I remember.
Xeo
Xeo
Gah, I want to remove the C++11 tag from the exception question, but the enitre question seems to be based around the misunderstanding that std::uncaught_exception is new to C++11...
why does unique_ptr rely on having rvalue refs?
user142019
user142019
lol
Xeo
Xeo
11:18
@TonyTheLion Because otherwise you can't get it out of any scope, really.
@Xeo No need. I killed it.
oh right
Xeo
Xeo
@R.MartinhoFernandes Yeah, I was pondering whether to remove the faulty part completely.
scoped_ptr is unique_ptr without move support
Xeo
Xeo
And deleter support
11:22
@TonyTheLion Because it's move-only, and how are you going to move it without move semantics?
user142019
Xeo
Xeo
Hmm... why the heck is dict.keys() a list, not a set in Python. :|
@CatPlusPlus std::unique_ptr<T> const!
@Xeo It doesn't really matter
You don't use it to check whether a key is in the dict, you use it to iterate over keys
@DeadMG true
11:24
@Xeo I knew it! uncaught_exception is for a scope guard :/ stackoverflow.com/q/15222502/46642
void Manager::manageWork eeek
user1357851
@Xeo insertion order maybe?
Xeo
Xeo
@R.MartinhoFernandes Gaaah, and I also want to remove C++11 from that one... it's not a question about a C++11-specific thingy. T_T
in order for that to work, I'd have to actually do work :P
Xeo
Xeo
@Telkitty dict is a hash-based container in Python
11:26
@Xeo Thread cancellation is very much not C++03.
user1357851
@Xeo what happens with inserting items with duplicate keys
Xeo
Xeo
Nothing, I think
Wait, I don't even need that dict.
That's a copy-paste artefact from some other code.
Also use iterkeys in 2.x
In 3.x it returns a lazy view not a list
(keys that is, so there's no need to use iterkeys unless backwards compat)
oooh, iter_keys, not i_turkeys, was confused as all hell :S
Where do you see "turkey" in iterkeys
Go buy some glasses you old bat
Xeo
Xeo
11:32
@CatPlusPlus Are you seriously asking the pirate that? He doesn't even see his own keyboard's letters correctly!
2
s/i//
s/e/u/
dyslexia is great fun :(
@thecoshman Don't think there was a need for s/i//
@thecoshman turkuys?
Hmm, I need to get rid of this O(N^2)
Xeo
Xeo
@AndreiTita sed, by default, only replaces first occurence.
Would need s/e/u/g for global replacement.
11:39
@AndreiTita learn to regex of fool, I said s/e/u/ not s/e/u/g
@R.MartinhoFernandes depends, is it a problem?
i reject your regex and substitute my own.
@AndreiTita I don't see anything to that effect
@DeadMG I don't know, never hurts to be extra clear
@thecoshman I could do it if I knew regex :(
@AndreiTita suck it :P
and learn regex whilst you are at it
@thecoshman I wouldn't need to get rid of it if it wasn't.
Since N is the number of characters in the document, it can get quite problematic (imagine a whole book)
Xeo
Xeo
11:42
@AndreiTita s#\(s/.*/\)$#\1g#?
@R.MartinhoFernandes indeed... I some how read that as a question :S
Xeo
Xeo
Ha! Nailed it first try.
@Xeo ¬_¬ my god... that just might work
Xeo
Xeo
$ echo "s/e/u/" | sed 's#\(s/.*/\)$#\1g#'
s/e/u/g
@Xeo nope, you are missing the third /
Xeo
Xeo
11:43
And shaddup about unnecessary use of echo.
oh, I see what you are doing
user142019
@Telkitty that's impossible.
user142019
It's a hashtable.
user142019
You'd need to pair a collection with the key.
Xeo
Xeo
@R.MartinhoFernandes Where?
11:47
@Zoidberg well, it works doesn't, just overwrites the existing value, no?
Xeo
Xeo
Also, I now have a script that tells me if there are case-fucked files in a Perforce depot... I wonder if I should let that run over our main repo.
@Xeo In my code?
At work.
Xeo
Xeo
@R.MartinhoFernandes No shit, Sherlock.
@R.MartinhoFernandes Ah, no help, then
My code to collect glyph data.
I know I am doing redundant traversals of the wax, I just need to engineer a way to avoid them.
user142019
@thecoshman if you assign yes.
user142019
11:48
I don't think there is such a thing as mydict.insert(key, value).
My current test document has a whopping two characters, so I don't notice it, but I am sure you will notice it in a full-fledged book.
@R.MartinhoFernandes maybe you need to start testing with something a wee bit more substantial then that?
@R.MartinhoFernandes CR-LF ?
11:57
@thecoshman I prefer small documents so I can focus on the getting the features right without much noise. Though yeah, I need to ask around for some heavy stuff to test this thing (but I'm sure it will be slow as fuck for something with 600k characters: 360G comparisons is way too much).
@R.MartinhoFernandes broken beyond repair on Opera. No navigation whatsoever. No keyboard, no mouse responsivity /cc @KonradRudolph
I thought that was the bestest... :P

« first day (871 days earlier)      last day (4302 days later) »