« first day (465 days earlier)      last day (4483 days later) » 

11:00 PM
@DeadMG from you? Anger. From anyone else, discussion.
 
user142019
Extremely good evening.
 
@TonyTheLion There's no direct equivalent to the colloquial use of "I'm offended"/"This offends me" in my language and frankly I've never felt the need for one. Things like "this is inappropriate here" are more constructive.
 
Xeo
Okay, how can I see the svn changelog from the command line?
 
@DeadMG something along the lines of "it sucks" or "fuck that'
more then that is expecting a lot I guess :P
 
@Xeo $ svn log
 
11:03 PM
are you kidding? of cours I completely agree with him
 
Xeo
oh. I overlooked that
 
@TonyTheLion yes, I have no obligation to please others. I may due so of my own volition to be polite or respectful, but there is no obligation. I also note that being rude or disrespectful may cause others to treat me differently or escort me from the premises.
 
Yay, it works. I win.
 
user142019
You think it works.
 
@MooingDuck hmmm. but you are willing to take that consequence of being removed from someone's premises?
@DeadMG wow, that's a first :P
 
11:05 PM
@TonyTheLion that's a socially acceptable and expected consequence of my actions, and (in America) they have that right
 
@MooingDuck right, ok. Interesting viewpoint
 
what, that I like to offend people? :p
 
@DeadMG no, that you agree. I know that you like to offend people :P
 
then why wouldn't I agree? :P
 
11:07 PM
I know that this statement returns true in all cases: DeadMG gives no fucks
@DeadMG donno, maybe secretly you might have another view
 
Xeo
Hm, just doing $ svn log is not a good idea
$ svn log | less -- that's more like it
gotta love piping
 
LOL
@Xeo Pipe ALL the things
 
user142019
$ svn log | less | less <— what happens if you do this? Just wondering…
 
Nothing bad.
If it doesn't have a terminal, less just pipes the input forward.
 
user142019
11:16 PM
Ah k
 
So the less in the middle will do nothing.
 
user142019
I understand. Wish I had access to the command line. Gonna set up a Linux server with SSH soon I think.
 
@WTP easy to do inside a virtualbox (with little performance penalty, it seems)
@TonyTheLion love the colors on that poster!
 
user142019
@kfmfe04 the point is that I need it to be running 24/7 so I can do unix things at school/in bed. I don't want my working machine to be running all the time as I sleep next to it and it makes a lot of noise.
 
I leave an iMac running all the time, with Ubuntu (in vbox) also up 24/7 - no noise out of this thing except a slight hiss from the fans (probably need to blow the dust out of the insides)...
 
Xeo
11:27 PM
Xcode analysis looks so amazing...
 
user142019
They are, I use them all the time. Unfortunately they don't work on C++.
 
Xeo
Why?
 
user142019
Analyzer support for C++ is still very limited. The analyzing is done by clang.
 
user142019
It works great for C and Objective-C, though.
 
user142019
And oh imagine how slow it would be for C++ code.
 
11:32 PM
@WTP Not even Chuck Norris can analyse C++ statically.
 
yeah, the Standard forbids it
 
user142019
I read "Stanford forbids it" lol
 
The way to analyze C++ statically... ...run your executable
 
user142019
Ah finally my homework assignment is finished.
 
user142019
It took me more than an hour.
 
Xeo
11:38 PM
This blog post is awesome, especially the last example
 
> Clang: crafted for real programmers who make might make the occasional mistake. Why settle for less?
5
"make might make" is an "occasional mistake" :)
 
user142019
It'd be a correct sentence if the colon were a comma and there were a comma after the first "make". I see it as a typo.
 
Does any compiler warn on function prototypes in a function? I want a warning for that
 
Xeo
You mean most-vexing parse?
 
Anyway, clang only looks super awesome because it's being compared to GCC.
 
Xeo
11:43 PM
Well, what other choice is there, really?
 
user142019
Compare it to MSVC and it looks even more awesome!
 
Xeo
@RMartinhoFernandes Fact is: Clang is super special awesome.
 
user142019
Or Borland, or MingW.
 
Xeo
And when it finally gets lambda support, it'll go to the heroic stage.
 
@WTP Not really.
 
Xeo
11:44 PM
And currently there seems to be quite some movement around lambdas in the changelog it seems
 
@WTP MinGW is GCC.
 
user142019
Well, it has blocks. Is it that lambdas are so difficult to implement or something else that it takes so long?
 
GCC has the worst error messages ever.
 
Xeo
and MSVC has the most verbose error messages, ever
 
@WTP They were probably waiting on some Defect Reports on the standard.
 
user142019
11:45 PM
GCC's error messages are like if GCC was written using yacc and lex.
 
@Xeo yeah, I want a warning for the most-vexing parse in functions. Outside of functions it can assume it's a function prototype like it currently does.
 
What's wrong with GCC errors? I think they are easy to understand
 
user142019
Forget a semicolon and think again.
 
Xeo
@MooingDuck Well, this might surprise you:
struct X{};

X x();

int main(){
  X y();
}
t.cpp:7:6: warning: empty parentheses interpreted as a function declaration
      [-Wvexing-parse]
  X y();
     ^~
t.cpp:7:6: note: remove parentheses to declare a variable
  X y();
     ^~
 
user142019
That is the most horrible thing in C++ ever.
 
11:47 PM
@Xeo excellent. Is that clang?
 
Xeo
Aye
 
What if I really want to declare a function?
:P
 
Xeo
@RMartinhoFernandes You don't
 
@RMartinhoFernandes it's just a warning. And I've never yet wanted to declare a function prototype in a function definition
 
I remember doing it last week, but now I can't find it. Maybe I dreamt it.
 
user142019
11:50 PM
Dreaming about C++?
 
Xeo
Aww. Leaving the semicolon out after the struct definition gives obscure messages. :<
(With function declaration following)
t.cpp:3:2: error: expected ';' after top level declarator
X x();
 ^
 ;
t.cpp:6:4: error: expected ';' after expression
  X y();
   ^
   ;
t.cpp:6:5: error: use of undeclared identifier 'y'
  X y();
    ^
t.cpp:6:3: warning: expression result unused [-Wunused-value]
  X y();
  ^
Normally, Clang does just fine with that
Yep, remove the global function declaration X x(); and get:
t.cpp:1:11: error: expected ';' after struct
struct X{}
          ^
          ;
t.cpp:4:6: warning: empty parentheses interpreted as a function declaration
      [-Wvexing-parse]
  X y();
     ^~
t.cpp:4:6: note: remove parentheses to declare a variable
  X y();
     ^~
The best thing is, Clang recovers from the error in the way it thinks is the best, and uses that from then on. It thinks you meant to type the semicolon, and assumes X to be a full type when encountered at X y()
 
user142019
Can you directly have a struct as a function return type? Like struct { int a; int b; } foo() { … }?
 
Xeo
no
 
user142019
CRAP
 
Well, don't forget about semicolons. How can you possibly forget about semicolons? That's like forgetting to close your parentheses in Lisp.
 
user142019
11:55 PM
 
user142019
Tuples in C -_-
 
My eyes.
Aren't names starting with underscore reserved?
(Yeah, I ask all the time)
 
lol :) nice code , WTP :)
 
Xeo
@RMartinhoFernandes Yes, in global namespace (as here, macros)
 
I think only _Ugly
not _ugly
 
user142019
11:56 PM
What DeadMG said.
 
yes, @DeadMG
 
@Pubby +1
 
Anyway, you think someone that would want to create a 256-tuple deserves to live?
 
Xeo
@DeadMG _ugly in global namespace
 
user142019
I thought 256 was a nice max.
 
user142019
11:58 PM
However, it might still be usable with typedefs.
 
8 is too much.
 
user142019
:p
 
@Xeo prog.cpp:3: note: (perhaps a semicolon is missing after the definition of ‘X’) (see ideone.com/ib7zi). That's with oldish gcc 4.3.4, I believe 4.6 or 4.7 vastly improved the situation
 

« first day (465 days earlier)      last day (4483 days later) »