« first day (1678 days earlier)      last day (3284 days later) » 

7:00 AM
We are the 1%...
 
Second degree equations are taught at around age 13.
 
@buttifulbuttefly: I've done worse.
 
> In some languages (e.g. German), the colon is the commonly used sign for division (instead of ÷).
 
@buttifulbuttefly: Look at Adrien Bertrand's solution lol.
 
7:07 AM
malloc free free malloc malloc free and malloc some more
 
> 5,4,3,2,1 , easy. 666 is the devil divided by 10 and a bit . Good weed , fuck numbers anyway .
WARNING: Your IQ will drop temporarily by 5% just by reading that.
 
@DonLarynx: I agree, numbers suck. That's why I do mostly math now instead of CS. XD
 
kek
I disagree. That's why I do CS now instead of math...
 
@DonLarynx: You will learn. In due time.
 
@Bair Coming from a math major...not sure when that will come
will die before that
 
7:16 AM
Math > CS
 
Math + CS > Math > CS
 
CS, in most universities, sucks
 
not mine huehuehue
 
they basically teach some programming and that's it
 
user1804599
@thecoshman No. He stands for something and is passionate about it.
 
7:18 AM
@rightfold He's still paranoid.
 
But he just admitted to using TOR, so wont he be pursued by FBI?
@khajvah you have to apply yourself. profs cant make you apply yourself.
 
@DonLarynx CS professors have to concentrate more on theory than on programming
 
it always baffles me when CS folks insinuate they don't use Math, or that they don't need Math, or say things like "I'm not a mathematician" to justify their aversion to Math
 
I don't know why Mr. Stallman care's so much about his privacy whereas he himself details so much about his own life.
 
@thecoshman I agree.
 
7:21 AM
@DanielKO saying "I hate math" or "I suck at math" is like saying "I suck at critical thinking". Now I'm not sure if every girl I meet will say that "I suck at critical thinking", but hopefully they suck at other things!
 
@MarkGarcia he wants everyone to get a chance at getting privacy if they want
 
user1804599
@DanielKO it always baffles me when people randomly capitalise words.
 
user1804599
Especially if they're not silly like Germans are.
 
@JerryCoffin Really? I hear that virgins are meh for sex. :)
 
I capitalized what matters
 
7:22 AM
@DanielKO: You don't need that much math for all domains of CS. I do lots of math, but I rarely use much more than basic math for programming.
 
user1804599
Programming isn't CS.
 
@wilx "I hear" hear hehehehehehe
 
@DanielKO: Scratch that.
 
@Bair It's the logic behind it
 
sbi
7:22 AM
Good morning, folks.
 
@rightfold: Yeah I accidentally typed CS.
 
@MarkGarcia I have never been with one. So, yes, heard. :)
 
@sbi Good morning.
 
user1804599
7:22 AM
@Xeo after he came out/it became known he raped little boys?
 
sbi
@Xeo Yeah, I retweeted it this morning.
 
@rightfold: Meant to say programming.
 
you can work with computers without using much math, but that part of the work usually has little to do with science
 
user1804599
oh lol
 
@sbi morning!
 
7:24 AM
@Bair lol please learn to link messages. That's just too funny!
 
@rightfold Way to conflate pedophilia with disgusting, filthy homosexuality! Not all pedophiles are homosexuals.
4
 
user1804599
But all pastors are pedophiles.
 
@rightfold proof?
 
@MarkGarcia I know how to now, but I didn't realize it was necessary.
 
@DonLarynx Go to church and you'll see
 
7:26 AM
@DonLarynx It is a dogma. You do not need proof, you just have to believe!
 
Knowing how to factor common code into functions or blocks outside conditionals, that's mathematics. It's not much different than doing algebra and factoring out terms to help solving a problem.
 
@wilx just like religion
 
sbi
@buttifulbuttefly Ouch! That hurt.
 
@khajvah Your sarcasm detector is broken!
 
:(
 
sbi
7:31 AM
I am looking forward to the next 60 rep I get from upvotes. Hopefully they won't overshoot. :)
 
@sbi It's ok, I will happily downvote, if they do overshoot.
 
sbi
@khajvah Thanks. I count on you!
 
@sbi: I'm looking forward to the occasional 10 rep I get from doing absolutely nothing.
 
sbi
@Bair I have been doing nothing for year, and still got about 60k from it. :-P
 
@sbi: Well shit.
 
7:33 AM
@buttifulbuttefly We going to gloss over the presumptions that homosexuals are pedopphiles?
 
sbi
@Bair I believe proper English mandates the use of "good" in this context, rather than "well". ICBWT.
 
'Swell' can be swell as well.
 
Xeo
swell a swell
 
@sbi: Gg.
 
@sbi a comma would also suffice AFAIK
 
Xeo
7:35 AM
@sbi Passive rep is nice.
 
sbi
@thecoshman ", shit"? Seems wrong to me. But then, I'm just a bloody furriner.
 
This week in the news: two stone-age judiciary systems confuse revenge with justice. http://t.co/CtChTdwSUd
well played
 
@sbi "@Sbi, shit" yeah I think that works :D
@buttifulbuttefly I have no idea what that is about o_o
 
sbi
Wow. This is an incredibly pure, concentrated condemnation of the fundamentally evil American justice system. http://harvardlawreview.org/2015/04/policing-mass-imprisonment-and-the-failure-of-american-lawyers/
 
I got my first follower in twitter, with 0 tweets and with no picture.
 
sbi
7:37 AM
@thecoshman Why don't you shorten this to "I have no idea"? Fits you better, I think.
 
user1804599
Greece has such an ugly flag.
 
I wonder, why would anybody follow me
 
@sbi Wall of text, queued for post-work hours. Thanks :)
 
holy smokes listen to this
its linked to the beginning of a certain song
wait no its not? brb
just start it at 1809
 
@sbi I know you can go to hell and die
@DonLarynx "House" ¬_¬ no thanks
 
7:39 AM
@thecoshman thats what i thought, i was like "fuck it" and fell in love.
 
user1804599
Luxembourg also has an ugly flag.
 
user1804599
The colours of that Dutch flag ripoff are too bright.
 
user1804599
Frisian flag isn't ugly.
 
That's even more ports than current laptops!
 
user1804599
7:43 AM
> One of the worst flags in the world comes from the state of Antwerp in Belgium. It's a chess set on acid.
 
user1804599
lol
 
sbi
@buttifulbuttefly I read it (not very thoroughly) this morning. Very tough read, IYAM, but well worth.
@thecoshman Thanks you, I was just waiting for your allowance.
Anyway, I need to work now.
 
Gotta love these undocumented error codes
 
@buttifulbuttefly Every good API author knows they need to add suspense
 
user1804599
Specify everything.
 
8:09 AM
yo loungé
 
yo yo man
 
man... sometimes it feels like simple things are such a pain in the ass with c++. I just want to iterate backwards over a list
 
@Prismatic: hey.
 
@Prismatic rbegin / rend?
 
reverse iterators are stupid
and useless since you can't pass them to any other container functions
 
8:12 AM
the idea of reverse iterators is stupid
 
Ell
Why can't you pass them to other things?
 
they take normal iterators
 
what's wrong with reverse iterators?
otherwise just boost::adaptors::reversed
 
user1804599
@Prismatic you are stupid.
 
user1804599
8:13 AM
Reverse iterators are fine.
 
Ell
They take Iterators, don't they?
 
user1804599
You just don't know how to use them.
 
Ell
Which reverse ones satisfy
 
user1804599
Reverse iterators are just normal iterators.
 
user1804599
8:14 AM
There's nothing special about them.
 
user1804599
There's no "reverse iterator" concept.
 
Imagine having a reverse case for all standard algorithms.
 
sɹoʇɐɹǝʇı
5
 
@rightfold Except for the part where you can't pass them to container methods
 
user1804599
@Prismatic SSCCE.
 
8:15 AM
@buttifulbuttefly That's a fliperator.
 
You need FwdIterators for some algorithms
 
@MarkGarcia fliterator
 
user1804599
You can pass reverse iterators to std::vector<T>::insert just fine.
 
user1804599
@buttifulbuttefly std::vector<T>::reverse_iterator is a forward iterator.
 
user1804599
std::reverse_iterator<T> has the same iterator categories as T.
 
8:17 AM
@ThePhD then you must specify "identical". And since that is implementation defined the only supported way is to create a temp std::string. Obviously. You could use boost::container::string and boost::string_ref and hope they had a consistent hashing approach (hash_value(boost::string_ref(sz)))
 
@rightfold Doesn't work with erase
 
user1804599
template< class Iterator >
class reverse_iterator : public std::iterator<
                           typename std::iterator_traits<Iterator>::iterator_category,
                           typename std::iterator_traits<Iterator>::value_type,
                           typename std::iterator_traits<Iterator>::difference_type,
                           typename std::iterator_traits<Iterator>::pointer,
                           typename std::iterator_traits<Iterator>::reference >
 
user1804599
@Prismatic SSCCE.
 
user1804599
erase takes a dozen parameters
 
8:18 AM
onice
 
68
Q: How to call erase with a reverse iterator

0xC0DEFACEI am trying to do something like this: for ( std::list< Cursor::Enum >::reverse_iterator i = m_CursorStack.rbegin(); i != m_CursorStack.rend(); ++i ) { if ( *i == pCursor ) { m_CursorStack.erase( i ); break; } } However erase takes an iterator and not a reverse iter...

 
Da fuck CSV.
Chaos of So many Versions
 
csv is annoying
 
@rightfold you sexy beast
 
Chaotic "Standard" V-something
 
8:19 AM
@buttifulbuttefly nice anyways. We really need unicode identifiers in C++ :)
 
Cussing So Very good to do right now
 
user1804599
@Prismatic erase takes std::vector<T>::iterator, not std::vector<T>::reverse_iterator.
 
user1804599
So it obviously won't work.
 
hence my frustration
 
> erase takes a dozen parameters
 
8:20 AM
CSV's very idea of a very simple format makes it so damn complicated!
 
user1804599
It's like passing an I/O stream where a set of fish is expected.
 
I/O stream is to fish as iterator is to reverse_iterator :p
 
user1804599
set of fish*
 
> Reverse iterators are just normal iterators.
 
user1804599
@caps Yes, so?
 
8:22 AM
> There's nothing special about them.
 
user1804599
Yes, I said that.
 
> erase takes std::vector<T>::iterator, not std::vector<T>::reverse_iterator.
 
user1804599
Why are you quoting it?
 
user1804599
@caps Yes, indeed.
 
user1804599
That's like saying strings are special because void f(int) takes an integer.
 
8:23 AM
lol
 
You made fun of him for being frustrated that reverse_iterators wouldn't do what he wanted, implying they should be able to do anything he wants, then concluded that of course they wouldn't do what he wanted...
 
@rightfold Much better analogy BTW.
 
Also, I'm super-tired; way late here.
 
Ell
He was not making fun
 
8:24 AM
> you are stupid.
> Reverse iterators are fine.
 
user1804599
Yes, they are.
 
user1804599
void f(int) taking an integer doesn't make strings not fine.
 
user1804599
Conversely, erase taking iterator doesn't make reverse_iterator not fine.
 
@MarkGarcia I’m a bit tired :( nice salvage though
 
Ell
8:27 AM
The problem is with erase, not reverse iterators
 
for (iterator = end; iterator-- != begin; ) {}
 
@Ell Yes, because we totally need more overloads -.-
 
user1804599
fail
 
I wonder if converting a reverse_iterator into a normal iterator works correctly for rbegin() and rend() for a container of size 0
 
@MarkGarcia I wanted to try and make up for it with Right-to-left shenanigans but Clang whines. It’s probably right, too, as there are restrictions on what can appear in identifiers. Oh well :)
 
Xeo
What do you call the function passed to a fold?
 
Ell
I don't know @Xeo, what do you call the function passed to fold?
 
the folder :p
 
enumerable/enumerator?
 
Ell
wait is it a joke?
I thought it was a joke
 
8:40 AM
@Mr. kbok: Wouldn't it be the foldie?
 
Xeo
@Ell no
I'm looking for a name :<
 
Ell
Oh :P
combining function?
 
Xeo
I feel like there's a proper name for it, but eh
 
Ell
that's just what wikipedia calls it
 
@Bair You mean foldee?
 
8:42 AM
@Mr.kbok: Probably.
 
@LucDanton ew. thanks
I guess
 
No; that would be the data structure that's being scanned.
 
Fold is a generalization of summation. The terms in a summation are a summands.
 
Xeo
@Bair I'm talking about the operation, not the operands
 
Call it "operation" then?
 
8:43 AM
@Xeo: I think it's just a function.
 
Why do you need a name? Code? Documentation? Curiosity?
 
Xeo
Code.
 
call it "func"
or "f"
 
No, I think there is a specific term
 
I call it "gene".
 
Ven
8:47 AM
baila baila
 
Sometimes things just don't have any fancy name, live with it.
 
Like in copy_if the function is called a predicate
 
Ell
I think folder is the best approximation though it sounds sill
 
There's a difference between the kind of object expected as argument, and its role into the function
"func" is only a type
 
I call it "gene" because that's what you call the function in a cata.
And a fold is just a fancier cata.
 
8:49 AM
That's like having a method resize and the parameter is unsigned integer
 
@R.MartinhoFernandes Do we?
 
Ell
I don't know what a cata is
 
That's how I learned it.
 
catamorphism
 
Google confirms that usage.
 
8:52 AM
What are x64 debuggers that can edit the binary too? What's your favourite? (like ollydbg for x86)
 
It kinda makes sense I guess. Is it also used for anamorphisms?
 
Ell
I ought to learn category n group stuff
 
> I can see from across the room, looking at their screen, whether their code is good or bad. Because good Python code has a very obvious structure

https://brainsik.net/2009/why-reddit-uses-python
 
Yea, anas too
 
what if I'm writing my grocery list, but in a very beautiful structure?
 
8:52 AM
neat
Maybe they could use 'nas', too. As in 'Did you use the right ana nas here?'
 
@Xeo reducer
 
Cata nas, too.
 
Ven
@Ell just remember that a monad is a monoid in the category of endofunctors
 
@LucDanton Pun only works in French
 
28
Q: Why is "pineapple" in English but "ananas" in all other languages?

Clever MashaWhy is "pineapple" in English but "ananas" in all other languages?

 
8:55 AM
I didn't realize this was Lounge<Haskell>
 
pic related
 
@LucDanton And what did I just say?
Or perhaps you are trying to subtly imply there might be > 2 languages?
Check your geography m8
On a related note
if (cond) { exprA; } else { exprB; } vs cond ? exprA : exprB;
Debate is open.
 
Ell
depends what cond is
 
a bool verbibol
 
Ell
I think if it's short then go with the tertiary op
or w/e it's called
if cond is complicated then go with former
 
8:57 AM
The third world operator you mean
 
@buttifulbuttefly I only use ternary when assignment or using the value of the expressions.
 
Ell
I think when there are lots of ?||!etc. it get's noisy to read
 
Is there a reason there's no helper function to convert a reverse_iterator into a default iterator?

SO says:
it = std::next(reverse_it).base();
 
@MarkGarcia here you go, although it doesn’t look very fancy. Edit source at own risk!
 
@Prismatic There's not much use case?
 
8:59 AM
Are there any 'gotchas' with that? I checked to see if strangeness happens but it seems to work ok
 
@LucDanton you guis are still on that
 
@buttifulbuttefly I’ve never inputted RTL stuff so it took me some while.
 
how many of them!
 
idunno it seems kinda handy
 

« first day (1678 days earlier)      last day (3284 days later) »