« first day (477 days earlier)      last day (4489 days later) » 

6:00 PM
> The bigger the penis is, the better the sex is.
this one?
oh no, that's not a joke
 
> We do hope that the censors won't be offended by this image of a massive cock.
 
lol
why are we talking about cocks
 
Because it's a cool animal.
 
user784668
@sbi I realized the way I use some words is not the same as the way others use them, I clearly distinguish what was mentioned in the message that's no there anymore and what you mentioned, mind you.
 
Don't delete them. It's not like we're going to be offended.
 
user784668
6:04 PM
So I deleted it because I don't want to argue over anything today.
 
user784668
And because I can. :P
 
user784668
Sorry about that, will you forgive me?
 
Damn it.
 
user784668
Oh no, looks like I did it again.
 
sbi
@Fanael If you don't want to argue, then just don't reply to an argument. But it's gotten to the point where I simply do not want to read what you wrote anymore, let alone reply, because it might vanish at any point, leaving me sitting here like someone pulled the discussion right from under me.
 
6:15 PM
42 mins ago, by FredOverflow
room topic changed to Lounge<C++>: Helping you get laid since 2010. [c++] [c++11] [c++-faq]
damn, your help was useless. :(
 
@sbi Obviously you need to weigh more. Then he won't be strong enough to yank it out from under you.
 
user784668
@sbi Yeah, seems like I fucked up this one.
 
sbi
@IntermediateHacker Well, what do you expect from a guy who loves watch C++ videos all day? (That's just porn in disguise, really.)
 
@sbi Especially when Bjarne speaks.
 
sbi
6:17 PM
@DeadMG There's several users here who can attest that weighing too little is definitely not among my problems. :(
 
unfortunately, I'm not one of them
 
user784668
@sbi I'm in need of a few kilos, wanna sell?
 
sbi
@Fanael If I only could.
 
user784668
Ah, fuck all this shit. I feel like I need a good rest, see ya.
4
 
6:31 PM
@Fanael Since you happened to use the F- word and the S-word together, your message is very likely to get starred.
 
there you have it
 
It'll probably get 5-6 stars in the next 10 hours.
I should also consider adding it to the Golden Words page.
 
"We star shit" - seems to suitable room topic
 
Hi.
@Xeo what about throwing in constexpr? Was I wrong? (I'm not sure anymore)
(But I'm still sure you can't get fully compile-time checked printf).
 
@IntermediateHacker Ha, I appear twice on that page.
 
6:37 PM
room topic changed to Lounge<C++>: We star shit. [c++] [c++11] [c++-faq]
 
cool. but it wasn't suggestion for new topic
nobody cares, I know
 
I'm bored
 
@TonyTheLion star some shit
 
@TonyTheLion it can't entertain you already?
 
I was trying to get my head around Dekker's algorithm for mutual exclusion
 
@TonyTheLion I initially read that as "I'm boned".
 
my dogs are raping each other
 
ARggh, Markdown wins.
R. Martinho Fernandes, Braga, Portugal
30.3k 13 58 113
Yay, doesn't show anymore.
2
 
woot
@EtiennedeMartel you perv
I should finish watching Hans Boehms talk
but I'm tempted to watch STL's first
 
6:41 PM
@TonyTheLion Spoiler: it's broken.
 
yea I know, but I was trying to see how works
two flags
 
It doesn't.
 
is STL's talk from GoingNative good?
 
It only worked under guarantees that are no longer true.
@TonyTheLion Yes.
 
Tropes!
 
6:44 PM
Google Code's Git branch visualization thingy always impresses me.
 
@Maxpm BitBucket's got a nice one for Mercurial.
 
@Maxpm it works for mercurial too
 
@EtiennedeMartel I've never used Mercurial. What's it like?
 
@Maxpm Like Git, but less complicated.
 
@TonyTheLion I've heard "hell yes" (but mainly from his known fan group)
 
6:46 PM
Hmm. Sounds nice.
 
Anyone tried GUM?
It's supposed to be a decent git CLI.
 
decent [...] CLI oxymoron
 
@DeadMG Oh, you.
 
CLI is OK only for scripts, IMO
 
@RMartinhoFernandes haven't. However, the idea doesn't interest me, since it is bound to be more confusing, since now there are different semantics of using CLI for the same VCS
@Abyx I'm a script. And I'm way cool
2
 
6:50 PM
@sehe Exactly!
 
ok, one is robot, one is script.
 
@sehe Yeah, I have the same reserves. And it's still git, with all that history rewriting and shit. That scares me.
 
also here is some animals..
 
Anything that is not a script needs to be very very very insanely cool or I won't use it because I want things that are automatable and repeatable; So, in practice only MSWord and VS2010/R# come into the picture...
 
I prefer CLIs for non-editing and non-browsing tasks.
 
6:52 PM
@RMartinhoFernandes Shouldn't, really scare you. You should just remember (RuleOfThumb) to not use it. Git won't actually automatically rewrite any commits unless you ask for it (rebase, fileter-branch etc).
 
@sehe I can't. It's too tempting to use it.
 
@Maxpm Well, what is CLI editing? sed? I prefer a GUI. But vim is a good GUI for me, and it has-a commandline :)
 
I prefer to create GUI front-ends even for scripts (it's easy with python+tkinter)
 
@RMartinhoFernandes No harm in that. I use it copiously and for fun and exercise. I just don't use it on any shared branches. I reckon that comes with the experience
 
@sehe Yes. sed, nano, emacs, vim...I can't stand to use any of them for anything remotely involved.
 
6:55 PM
What do you use for anything remotely involved?
 
I use my mouse a lot to jump around code.
 
AFAIK there's nothing out there that can (even begin to) handle the involved things you can do with emacs and vim.
 
Stand-alone editors when I can. IDEs when I'm in a big rush.
 
@Abyx Easy. And useless. Just makes it hard for you to copy/paste actions. I hate those kind of gratuitous UI's (we didn't really have to make this a dailog, but we did so anyway, just to annoy you. So now you can't run this on a remote machine, can't check it into source control as a regression test .... etc.)
 
Is @Xeo here?
 
6:56 PM
@Maxpm What's a "stand-alone editor"?
 
@RMartinhoFernandes Notepad++ is one example.
 
@RMartinhoFernandes In all honesty, VS2010+R#+ViEmu is pretty decent, Notepad++ continues to surprise me
 
I still don't understand what "stand-alone" means here.
 
Xeo
@Pubby Aye
 
@sehe But that's vim-ish under the covers!
And "pretty decent" is an understatement.
 
6:57 PM
@Xeo Were you the one with the tuple code? I know it was someone in this chat!
 
@Luc lieks tuples.
 
@RMartinhoFernandes A lightweight editor that is not tied to a full-fledged IDE.
 
Oh, like vim.
 
Did @Luc give tuples operator[]?
 
Xeo
@Pubby I wrote too many tuple access snippets xD
@Pubby I atleast didn't.. I think...
 
6:59 PM
@RMartinhoFernandes I know. I even admit that I'm running VsVim instead of ViEmu at work for VS2010 and I'm doing ok. I have to add that I break out gvim once every 3 minutes for 'real editing'. In monodevelop, Vi bindings are still too sparesely implemented. I need to revisit that, really monodevelop.sehe.nl/?p=monodevelop.git;a=summary
 
@Xeo What?
 
Isn't operator[] member-only?
 
@RMartinhoFernandes Yes, except I can use my mouse with it.
 
@sehe Oh, what are you doing here? Go back to work on that.
 
@RMartinhoFernandes Yes. The tuple is also a member
 
7:00 PM
@Maxpm FWIW, gvim supports the mouse (and I guess vim does too).
 
oh, martinho
I came up to a solution for some of my grammar problems
in my sleep :P
 
You dream about your grammar?
2
 
:D
 
well, I didn't know wtf to do before I went to sleep and I woke up and I do now
 
@RMartinhoFernandes I forgot about it for at least 6 months now. The existing design was in flux and both the original and target design had a bunch of hairy issues. I suppose I should go back and roll my own plan (no one seems to have stepped in and completed the work anyway)
 
Xeo
7:01 PM
@RMartinhoFernandes Yep
 
@Xeo Oh, you're back. You wanted to say something about constexpr and throw?
@DeadMG So, what is it?
 
well
 
@RMartinhoFernandes I would consider using gVim.
 
I figured there was no reason for me to allow arbitrary expressions as type expressions
I figured that I would just allow a few postfix ones, like function call, index, member access
then you have to use parenthesis for the rest
 
@Maxpm Even with VS2008/2010 I'm continuously scolding the IDE for not giving me suitable means to edit my project files. How about:
:args **/*.csproj
:argdo g/Company.Library.Component.dll/ s/2\.1\.3\.0/2.1.4.0/g
:wall|q
 
7:04 PM
then I don't have to cope with the fact that {...} is an expression
 
Just to bump the version of a referenced component in all the projects of a solution.
 
I also solved the problem of perfect forwarding without having to introduce variadic templates
 
@Maxpm vim supports the mouse. It supports it over bloddy screen sessions when running remotely over ssh. Sheez. Been using my mouse in vim terminal editing on AIX for ... ever [1]! The single thing you might need to add to vimrc: :se mouse+=a
 
@DeadMG That sounds promising.
 
yes
 
7:07 PM
[1] and I could just leave my sessions running and reconnect from home/train/different workstations. Beats the crap out of any GUI ide. Try channeling VS2005 over MSRDP over UMTS and work on a netbook from the train
 
Anybode who does Ruby on Rails?
 
what is a perfect-forwarding ctor useful for?
 
would you like to hear my scheme?
 
@Pjotr Yup. Lots of them. It is quite a popular framework
 
@sehe Can I ask you one question, trying to installing it on Windows
 
7:08 PM
@DeadMG There, the monkey is out: wide-language is actually a scheme implementation
 
@DeadMG I'm still waiting.
 
lol
 
@Pjotr It's been a while, but I remember I had a one-click installer with Apache/RoR
 
well, you know I introduced anonymous objects into the language, like f( {1,2,3} ) etc
I figured that I would introduce a language rule meaning they get automatically unpacked
so f(int, int, int) can be called as f( {1, 2 ,3} )
 
I dont understand why I have a folder named lib/ruby/1.9.1 inside the ruby193 folder which is the latest interpreter
 
7:09 PM
Tuple unpacking is neat.
 
but because it's one single object, you can do the equivalent of template<typename T> forward_func(T t) { return f(t); }
 
@Pjotr i take it you are using these downloads now: rubyforge.org/frs/?group_id=167 ?
 
and it solves the problem of multiple variadics too
because each named argument can be a separate, unpackable object
 
@sehe The book told me to use RubyInstaller
 
so you can issue arbitrary numbers of them in a single call
and they can be named variables as well, so you can forward named parameters
 
7:12 PM
0
Q: can anyone help me with correcting these two classes (the classes are in h file)

Kevin KimClass malfunctionRecord: data members: an int representing the number of times a malfunction was detected an int representing the type of the last malfunction an int representing the time the last malfunction was recorded. function members: malfunctionRecord() – This is an initializing cons...

Looks like the XY problem strikes again.
 
@Pjotr looks like a good idea. It's not what i used back in the day though. Annoyingly my VM is in the processes of installing a service pack. Could be a while...
 
ok
 
@EtiennedeMartel I see a lot of enumerating but very few paragraphs. That puts me automatically in TL;DR mode.
 
what is this TL;DR stuff?
 
@bamboon "Too long; didn't read"
 
7:15 PM
@EtiennedeMartel thanks, just found it on wiki
 
@Moshe No.
 
Overly long unformatted statements present fellow editors a dilemma: spend excessive time parsing out what you mean or being mildly rude in not actually reading what you wrote. It is more collegial and collaborative to take an extra few moments to distill your thoughts into bite size pieces. Traditionally "Too long; didn't read" (abbreviated "TL;DR", "tl;dr", "Tl;Dr") has been used on the Internet as a reply to an excessively long written statement. The term indicates that the reader did not actually read the statement due to its undue length. This essay especially considers the term...
This page in a nutshell: Be concise.
never read something like that
 
@bamboon Or put a TL;DR summary on your post.
 
@Pjotr so, what is the problem with the install? I can confirm the lib 1.9.1 is present
 
That helps people decide if reading it all is worth it.
 
7:17 PM
anyone know java here?
i need help and no one is in the java room
 
@user1079641 ask a question?
 
I'm sure there are people watching the tag.
 
@RMartinhoFernandes jon skeet :)
 
Why watch when you can abstractListen?
 
Jon Skeet watches everything.
2
 
7:19 PM
@user1079641 I sort of do, unfortunately.
 
Want to make a football fan's head explode? Say this: SO EXCITED ABOUT THE SUPERBALL!!!
 
@Pubby why assume an implementation when the module is described as 'watching'?
 
@sehe I don't know if it is wrong, but I don't understand what the 1.9.1 folder is
 
afk
 
and I have problems connecting to MySQL with the mysql2 adapter
 
7:21 PM
@Pjotr erm it is the library folder. Either it uses libraries unchanged since 1.9.1 or they simply forgot to update the version :)
 
@Pubby I like your icon.
 
well i have a list of names in an external file
using linked lists, i need to print that list out in alphabetical order
 
Ok, so it is nothing wrong with other words then
 
@Maxpm Thanks
 
@user1079641 Okay. What are you having trouble with?
 
7:23 PM
@Pjotr my guess :)
 
I can't arrange the words using link list
i have to use InsertInOrder
 
Sort the list?
 
@user1079641 This is rife for a question on stackoverflow.com
 
@Pubby lol, Java's linked lists don't have sort().
 
@RMartinhoFernandes surely, you can sort anything :) it just a bit harder to do
 
No sort? Java sounds like anarchy to me :(
 
@user1079641 Perhaps you're looking for this?
 
@Pubby Ah, apparently it's on some other class.
 
Here is the problem: I need to create a linked list in which the names will be inserted in order as they are being read from the file
 
7:27 PM
How can you insert them in order?
 
thats the problem
I know you need to use insertion sorting algorithm
so use .compareTo and then put them in order
 
That still sounds like sorting the list, not the input
 
Afternoon, gents & ladies... Does anyone use Eclipse CDT as C++ IDE? I've got a quick question about it...
 
The only difference being that you sort while inserting, not after
 
@user1079641 I'm not sure what you're asking. You need to produce a sorted linked list from an unsorted list of names?
 
7:29 PM
1
Q: Linked List. Insert integers in order

user69514I have a linked list of integers. When I insert a new Node I need to insert it not at the end, but in oder... i.e. 2, 4, 5, 8, 11, 12, 33, 55, 58, 102, etc. I don't think I am inserting it in the correct position. Do see what Im doing wrong? Node newNode = new Node(someInt); Node current = he...

0
Q: Java Linked List Question

littleKUsing a Comparator and Iterator, I am trying to add objects into a linked list in order. So far, I have the following: public class ComparatorClass implements Comparator<Integer> { public int compare(Integer int1, Integer int2) { return int1.compareTo(int2); } } and: import...

1
Q: inserting in a sorted linked list in Java

SDLFunTimesI need to insert some objects contained in a Node class into a LinkedList class in a sorted over. The Node class looks like: public class Node { private Card val; private Node next; public Node(Card v) { val = v; next = null; } where card implements the Comparator i...

 
linked list of integers sounds scary
 
(Sorry for the spam guys)
 
so, no one uses Eclipse as C++ IDE, I suppose... sigh
 
well, the whole thing is to create a linked list that takes a list of names from an external file and arranges them into order
 
Looks like a job for a vector...
 
7:33 PM
@user1079641 Okay. So read one line and step through the list to find its proper place. Insert. Move on to the next line and repeat.
 
sbi
 
sbi
These are Kevin-Helmholtz clouds. Unusually impressive exemplars, though.
@RMartinhoFernandes Succeed.
 
@sbi Magic horses!
 
sbi
7:39 PM
2 hours ago, by sbi
:2550345 Will you stop deleting your goddamn messages?! That is so annoying!
 
But it stopped being relevant :(
 
sbi
@RMartinhoFernandes So admit your premature thingummy and let it stand for everybody to see in all eternity. What could possibly be wrong with that?
 
@RMartinhoFernandes So edit it to be something even less relevant.
 
@sbi Ok, if that annoys people I'll make an effort to avoid it.
 
(removed)
2
 
sbi
7:44 PM
@RMartinhoFernandes See, my message is now irrelevant, and should be deleted. But if I did that, we'd better delete this whole discussion about deleting, including this message suggesting doing so, and all following messages directly or indirectly referring to it. We'd discuss this to no end, and finally this room would consists of nothing but deleted messages.
Also:
2 hours ago, by sbi
@Fanael If you don't want to argue, then just don't reply to an argument. But it's gotten to the point where I simply do not want to read what you wrote anymore, let alone reply, because it might vanish at any point, leaving me sitting here like someone pulled the discussion right from under me.
 
Oh, I missed that.
 
If this room had true garbage collection, most messages would delete themselves upon execution.
 
sbi
@sehe Please stop that, or feel my wrath!
And the oldest and strongest kind of fear of the unknown is fear of that which is probably an angry gorilla.
@Maxpm If this room had true garbage collection, we'd be collectively swept out of it immediately.
 
this is a garbage collector - chat.stackoverflow.com/chats/leave/10
 
ok type erasure
why do I always forget what it is?
 
7:49 PM
anyway, I believe there will be time when we'll talk about C++ here
 
Xeo
@RMartinhoFernandes sorry, went afk right away again. :)
 
ARrg,h I discovered the toolbar at the top of every TVTropes page! There's more stuff to read beyond the articles and the lists at the end! I'm so screwed.
(I mean, I knew the toolbar was there, I just never thought of actually clicking on it.)
 
lol
 
Xeo
@RMartinhoFernandes ?
 
sbi
Note to self: tweeting while walking is not advisable. My face just said hello to a branch. Note to note: I'm still walking.
 
Xeo
8:00 PM
One last close vote here: stackoverflow.com/q/9152283/500104
 
@Xeo Just above the trope titles. It has "Quotes", "Headscratchers", "Playing with", and others.
 
Xeo
btw, @RMartinho, forget my calling of yours, I misinterpreted the standard. :( You really can't have constexpr int f(bool b){ return b? throw 0 : 0; } and get it to error out at compile time
 
@Xeo Well, but that's not really an issue. You could simply return true/false and static_assert on the result.
 
Xeo
@RMartinhoFernandes Yeah
 
You can write a check_printf_format function that evaluates at compile-time. What you can't do is apply it to the arguments of an hypothetical safe_printf.
He's back.
0
Q: please help me with this error, thanks

Kevin KimClass malfunctionRecord: data members: an int representing the number of times a malfunction was detected an int representing the type of the last malfunction an int representing the time the last malfunction was recorded. function members: malfunctionRecord() – This is an initializing cons...

 
sbi
8:08 PM
@RMartinhoFernandes Quick, we might make it before his 5min grace period expires...
Haha, we did!
 
Xeo
@RMartinhoFernandes Might aswell close the dupe..
 
Dunno. I didn't bother reading it, so I don't really know if it should be closed.
 
Xeo
@RMartinhoFernandes We can, you just need to make safe_printf a constexpr function too, I think.
 
@Xeo Right, and how would printf work as constexpr?
It needs to print stuff.
 
Xeo
Anyways, anyone here experienced with VirtualBox, shared folders and mounting as non-root?
 
8:12 PM
bugger
I thought I implemented some kind of magic, and then it turns out that some productions just disappeared from my grammar :(
 
Xeo
@DeadMG They disappeared through magic!
 
"just disappeared". Right.
 
oh well
 
what's with the curly brace here: static const int a{1}; ?
is it a form of initialization?
 
uniform initialization
 
8:17 PM
c++11?
 
yes
 
thought so
so type erasure is not really about erasing the type, but just about not letting the type be visible in the interface
 
Thus erasing it.
 
it is about determining the type at run-time, so inheritance, effectively
 
8:21 PM
like vector<int> the type of what's in the vector is visible, whereas in boost.any, it's not
 
ye
 
so by that, a class template can then never be used for this?
cause any instantiation will allow you to see the type in the interface
 
yes
 
You could use a class template to erase some of the type.
Like std::function.
 
Someone here recommended the algorithm design manual, and I have to say its difficult to read, but its a great book and its opening my brain up to new ideas, even the basic algorithms:
insertion_sort(item s[], int n)
{
int i,j; /* counters */
for (i=1; i<n; i++) {
j=i;
while ((j>0) && (s[j] < s[j-1])) {
swap(&s[j],&s[j-1]);
j = j-1;
}
}
}
what slows me down sometimes, is the conitnued use as C as the language of choice for the book. And stuff like the & before the array makes me assume that thats a reference to the array passed in from argument list.
but overall its a good book
 
8:34 PM
well, it's not too hard to change it into C++
 
@RMartinhoFernandes internally, boost.any knows the types of what's put in it though, right?
 
user406009
Yeah it uses RTTI last I checked.
 
here's a C++ version
 
user406009
Insertion sort sucks anyways.
 
user406009
Quick sort is the master sort(assuming fancy semantics to prevent worst case)
 
8:38 PM
No, it's not.
Introsort is strictly better.
 
Xeo
@EthanSteinberg And those fancy semantics are called introsort
 
nice it looks good
 
guys if I have two its, and I want to use ranged for on them. how do I do that?
 
Write your own range adapter :(
 
ok, so there is no standard way?
 
8:43 PM
No.
 
bad
 
Luckily, it's not that hard. ideone.com/9bRs2
 
ok, cool thanks.
though not good for a quicky
didnt know that return syntax worked
 
Sweet, isn't it?
 
yeap, definitely
cranked to 11
 
user406009
8:49 PM
C++11 is awesome. If only clang had more features ...
 
@sbi I suppose I could flag that as a threat :)
 
@EthanSteinberg I can't wait for 3.1.
 
sbi
@sehe No threat there, I didn't want to sew.
 
@sbi You're missing the typo in sew?
 
Xeo
@EthanSteinberg Seriously, it's not missing much. :)
 
8:51 PM
Lambdas is much.
 
very much
 
@RMartinhoFernandes oh so for (auto el : std::make_pair(first, last)) didn't make it into the standard after all
 
Is Kerrek's answer correct? The type of an rvalue is really && and the type of an lvalue &?
 
@Pubby He doesn't say the type of an rvalue is T&&, does he?
 
hello, i have a quick question in C++ if i have a matrix
0 0 1 1
0 1 0 1

i need to change all the 1 in 0.5 but it is changing them into 0 i think it is due to the int and float thing. Any idea how can i solve this?
 
user406009
8:53 PM
What is a "C++ matrix"?
 
my matrix is initialised vector <vector <int>> matrix
 
He says that the result of std::move(y) is Foo&&. And that's true.
 
user406009
Do you mean a two dimensional array?
 
yes two dimensional array
 
All std::move does is change the type to Foo&&. That's the whole point of it.
 
8:54 PM
@RMartinhoFernandes I am talking about MoveAFoo() is Foo &&
 
user406009
@mona There is no way to set an element in that to .5.
 
@Pubby Oh, I missed that. He's wrong.
 
user406009
Ints just can't hold decimals.
 
@ethan mmm how can i do it ?
 
user406009
Change your array to vector<vector<double>> matrix.
 
8:55 PM
ok
thanks :)
 
@RMartinhoFernandes What about y is Foo&?
 
Same. I posted a comment about it.
Code speaks louder than words, so I phrased it as code.
 
is it rule of 4 or 5 now?
 
@bamboon search for the popular question
 
8:57 PM
Moves are a separate concern from the rule of three.
 
just saying because on that question ben voigt is talking of rule of 5
I always thought it was 4 now
wondering what number 5 was
 
Are temporaries always rvalues?
 
It's move ctor and move assignment.
 
@Pubby Essentially, yes.
an rvalue is an unnamed temporary.
 
@RMartinhoFernandes ah ok thanks, makes sense
 
8:59 PM
I believe that there might be some incredibly insignificant corner case
not sure if I ever decided that it did in fact apply
 
@Pubby I'd say yes, but @Johannes probably knows some way of making one that isn't (but a way that no one will ever think of writing).
 
@RMartinhoFernandes I believe that he used a template argument.
 

« first day (477 days earlier)      last day (4489 days later) »