« first day (1011 days earlier)      last day (3940 days later) » 

4:00 PM
@sehe i use GG
 
Ell
@EiyrioüvonKauyf the command is working for what I've told it to do, but I want it to do something else now and I'm not sure how
 
@EiyrioüvonKauyf missing several points
 
Xeo
@sehe lawl
 
@Ell what do you want it to do?
I prefer my bash shell to fly
i mean my zsh one can
 
Ell
@EiyrioüvonKauyf I want grep to output the file which it finds the match in
which of course works by specifying -H
 
4:01 PM
if you're piping it how on earth will it do that
 
Ell
But because grep has the input from standard input from the iconv programming then it can't
@EiyrioüvonKauyf well exactly
 
just pipe find's output into awk, take the first file column and then grep
find outputs file names
 
@Ell use a bash function to do 'custom grep' while prepending the filename:
function mygrep() { fname="$1"; iconv ... "$fname" | grep -n stuff | sed -e "s/^/$fname /"; }
 
pffttt yeah that works too
awk > sed
also i never use sed because regex is too much thinking
 
Ell
@EiyrioüvonKauyf I don't understand what you mean?
I know find gives file names
 
4:02 PM
just use sehe's it's less complicated
 
Ell
but I can't just pipe a filename to awk because I need to convert the encoding first
 
no use overthinking
 
Ell
@EiyrioüvonKauyf I will, I was just curious as to your approach too
it's all about learning!
 
also xargs :3
and drugs bunnies
 
Awww yeah I got +7 on my dynamic alloc answer :3
 
4:03 PM
@EiyrioüvonKauyf find -print0 | xargs -0 but sadly I don't think you can use shell functions using xargs
 
@Borgleader rep whorin'
@sehe of course you can :3
 
@EiyrioüvonKauyf low life trollin'
 
@EiyrioüvonKauyf That's actually not a repwhore question. This is though
 
@EiyrioüvonKauyf Try it
 
4:05 PM
@EiyrioüvonKauyf that's what I meant. You can't. Of course you can fake it. But then you'll drown in quotes and other monstrosities like restricted shells not propagating functions etc,.
 
?
just make a script yo; or use a command like you should like awk or sed
 
user142019
Hi.
 
or any language cough python
 
user142019
What a wonderful day is today.
 
user142019
Use Z shell and only Z shell.
 
4:08 PM
> error C4146: unary minus operator applied to unsigned type, result still unsigned
Whhhhhhhhhyyyyyyyyyyyyyyy
Stahp stahp stahp stap staph. ;~;
 
fish
more fish
 
user142019
You shouldn't do that, idiot.
 
@ThePhD what what what; well you can if they're both > 0 and one is smaller than the other you're minus-ing from
 
user142019
Use proper readable, clear constructs like std::numeric_limits.
 
std::mehhhhhh
 
4:09 PM
It's not me!
 
@EiyrioüvonKauyf How does "both" apply to unary minus?
 
It's clang. ;~;
/// Whether this generic selection is result-dependent.
  bool isResultDependent() const { return ResultIndex == -1U; }
 
@R.MartinhoFernandes oh shit. unary xD
 
^^^ Clang did it!
 
why on earth are you doing -unsigned
 
4:10 PM
CLANG DID IT. D:<
 
@ThePhD Why are you compiling clang with warnings as errors on MSVC?
 
clang is so lame
 
user142019
@ThePhD WTF man.
 
user142019
Write readable code or GTFO.
 
I don't have warnings as errors!
 
4:10 PM
That's not a warning?
 
That shit is turned off.
 
Apparently, it's not!
 
user784668
@R.MartinhoFernandes s/clang/a third-party project/, s/ on MSVC//
 
MSVC can't suck that much.
 
4:10 PM
i need to reputation whore a little or i can't downvote T_T
 
I don't know what's going on anymore. ;~;
 
user784668
@ThePhD you do
 
user784668
@ThePhD normally "unary minus operator applied to unsigned type, result still unsigned" is a warning
 
user142019
@ThePhD You're writing terrible code and the compiler tells you, what's wrong with the latter?
 
4:11 PM
@ThePhD you're trying to make an unsigned int into god knows what
 
user784668
@rightfold he's not writing terrible code
 
he is just using wrong types
 
user784668
@EiyrioüvonKauyf actually it's well defined
 
It says it's a warning, but it's compiling as an error! msdn.microsoft.com/en-us/library/4kh09110%28v=vs.120%29.aspx
 
The 2003 C++ standard (yes, C++, bear with me for a few lines) says in 5.3.1c7: The negative of an unsigned quantity is computed by subtracting its value from 2^n, where n is the number of bits in the promoted operand.
 
4:12 PM
And NO, I don't have warnings are errors turned on. D:<
 
dam you're right
 
@ThePhD And the logical conclusion is...
 
user784668
@ThePhD disable warnings as errors
 
@ThePhD I trust the compiler more than I trust you.
3
 
@ThePhD STOP USING UNSIGNED
 
Xeo
4:12 PM
@R.MartinhoFernandes Oooooooooh
 
you're banned from now on
 
user784668
@EiyrioüvonKauyf that's not his code
 
...............
 
Xeo
@R.MartinhoFernandes Aw c'mon, was that edit really necessary?
 
@EiyrioüvonKauyf Why?
 
user142019
4:13 PM
Warnings don't exist.
 
user142019
There are only errors.
 
I don't want to ruin my reputation.
 
user784668
@R.MartinhoFernandes no star for you because of that edit.
 
Does MSVC have an equivalent of GCC's -isystem?
 
4:14 PM
:c
 
user784668
@R.MartinhoFernandes not, but you can wrap includes in #pragma warning disable whatever the syntax was
 
Okay, look see: I'm not crazy!
 
I'm looking for a way to do this without a loop and explicit cast. — OlivierD 1 min ago
-.-;
 
@Fanael That's so fragile.
 
4:15 PM
@R.MartinhoFernandes You've spent this long in the lounge, and maintain an illusion that your reputation could be further ruined? I didn't realize robots had such active imaginations.
 
I don't love you guys like I used to
 
user142019
@Borgleader too localized.
 
@Borgleader ....... sigh
use a dinosaur
 
Seee?
It's not my fault!
VS 2013 Preview is nuts!
 
python makes me feel syntactically challenged
 
4:16 PM
@Borgleader I think it's a legitimate thing to want.
 
Really? I don't see that he has a choice
 
That's another matter.
 
user784668
@R.MartinhoFernandes: still has the warning
 
@Fanael I noticed, fixed.
 
user784668
4:20 PM
@R.MartinhoFernandes now you don't need to specify the return type
 
Xeo
std::transform(input.begin(), input.end(), std::back_inserter(output), []static_cast<float>); :D
 
@Xeo In your dreams :P
 
Xeo
In my proposal :P
 
@Xeo Hmm, casts in the ops namespace is not a bad idea.
 
Xeo
mh
 
user784668
4:23 PM
Transformer t = new Transformer(); Range i = new WholeContainerRange(input); OutputIterator o = new BackInserter(output); UnaryFunction<float, int> f = new StaticCastUnaryFunction<float, int>(); t.work(i, o, f);
 
Ugh, except reserved words.
I need a renaming scheme for these.
op::cast_static?
 
Xeo
Append underscore
 
user784668
+1 for underscore
 
cast_static
 
moving casts to op namespace would break so much code, itll never go through
 
4:24 PM
x_<y> is weird.
@Borgleader lol, not what I meant.
 
user784668
@R.MartinhoFernandes Prepend underscore and uppercase the first letter.
 
Xeo
or op::static_convert<To>
 
@Borgleader I have a bunch of generic function objects for common operators in an op namespace.
 
@sehe so if someone asks a badly phrased /thought out question can we just respond $RANDOM or 42 or towel?
 
4:25 PM
Like op::plus{} is a polymorphic version of [](int a, int b) { return a + b; }.
No polymorphic lambdas is too sucky.
 
Wide has them
 
Xeo
Wide sucks even with them, though.
 
Does it have addition?
 
yes!
 
Xeo
And subtraction?
 
Ell
4:27 PM
@sehe I don't think you can use find's -exec with shell functions either: stackoverflow.com/questions/4321456/find-exec-a-shell-function
 
er, I think that I left subtraction for later.
 
who needs subtraction anyway
 
@DeadMG Then I'm stuck with my op::minus{}.
 
Xeo
Does Wide have []id yet?
 
Doesn't need it.
 
Xeo
4:28 PM
Not even for operators and casts n stuff?
 
It has first-class overloads/function templates.
 
user784668
@A.H. we don't need subtraction, lambda calculus is sufficient
 
@EtiennedeMartel Nice music. Makes me want to listen to one of the Science Fiction Jazz albums.
 
Xeo
Also, have you removed free ad-hoc polymorphism from Wide yet? :P
 
user142019
> Rails in particular: Independent of [Ruby], I see Rails as the emperor with no clothes on.
 
user142019
4:29 PM
lol
 
Would be cool if it was the empress.
 
user142019
Unless you're a gay man or a heterosexual woman.
 
0
Q: Adding a method in idl fuck up a non related method

DrakaSANI have a huge code (~4k lines) in c++.net where I must write a log function. Then I need to make this function part of the .net. So I need to add it in the idl file of the project. Knowing nothing in idl, I tried to mimic the others method that were already added and part of the same object. But ...

Dat title xD
 
Does anyone have VS 2013 open? =/
 
@rightfold Now guess what I am.
 
user142019
4:31 PM
A gay woman! :D
 
Xeo
@rightfold *hetero
 
@ThePhD Forty three people currently.
 
user142019
Woops. :P
 
Hetro Metro Sexual.
 
user784668
@rightfold hatredsexual?
 
Xeo
4:31 PM
@R.MartinhoFernandes A robot, androgynous.
 
Well, could someone punch in
 
Xeo
@ThePhD /punch
 
Dx
I meant in the editor!
unsigned x = 3472843294; x -= -1U;
 
Hey In! punches In
 
Xeo
Cheerio! ( >.<)---@ ThePhD
 
4:32 PM
Just, I need to know if I'm crazy.
 
@ThePhD wat?
 
@Xeo Katanagatari?
 
Xeo
Of course.
 
Awww :)
I love Togame
 
Xeo
No, nvm
 
4:33 PM
@ThePhD Is it available on RiSE?
 
@Xeo Haha I gotcha. I was about to say it but then I realized I might spoil :P Or were you really saying you loved her but now you don't?
 
I've got warnings as errors turned off and this thing that says its an error and not a warning, so I'm thinking I found a compiler bug that I need to ship to the compiler team ASAP.
 
> Supported compiler versions are VS2012RTM and VS2012CTP
 
@R.MartinhoFernandes Wha?
 
4:34 PM
Ooh, right. Yeah, it doesn't seem to exist there.
I wish coliru could compile MSVC code too. That'd be nice. =[
 
@ThePhD what's "MSVC code"
some strange language, I guess?
 
@BartekBanachewicz A shittier version of C++ code. =[
 
@ThePhD Of course you are. What a silly question!
 
Haha
 
@ThePhD ah, who would be stupid enough to write that crap?
 
4:36 PM
What should I call the C-style cast type?
 
Xeo
@R.MartinhoFernandes cast
 
@JerryCoffin ;~;
 
@R.MartinhoFernandes c_cast
 
@BartekBanachewicz Those of us who value portability. I generally stick to the language subset supported by all compilers with significant market share, which is nearly isomorphic to "what VC++ supports".
 
Xeo
That's what it's called in the standard.
 
4:37 PM
Well, seriously.
 
Xeo
or rather, "cast expression"
 
@JerryCoffin IIRC his code is not compilable under g++ or any other conformant compiler, simply because it's not conformant
 
Xeo
But honestly, I'd name it "op::dont_use_me_cast"
 
^ Someone punch that into VC++ 18.0.x.x.x (VS 2013)
I really need to know if I'm doing something horribly wrong. =[
 
4:38 PM
@R.MartinhoFernandes abomination_cast
 
@ThePhD why don't you check in the standard?
 
@ThePhD Add -Wextra (doesn't make a difference here, but should be in your starting warning set)
@Xeo it has one use!
 
Xeo
I just noticed I still don't have VS13 installed
 
(A dubious one, but one)
 
@R.MartinhoFernandes Has no effect on the output. I know for a fact that GCC and Clang handle it just fine -- it's MSVC that's issuing a scary error when it should just be a warning.
 
4:39 PM
@BartekBanachewicz That's a rather different story -- I generally avoid MS extensions and such (oddly enough, even in code that's inherently non-portable, at least across OSes).
 
And since it's a warning, my stuff doesn't build. ._.
 
Xeo
Anyways, 2012 issues a warning.
 
What is the -1U idiom supposed to do anyways? UINT_MAX or INT_MIN ?
 
@JerryCoffin Cilk extensions (or whatever they are called) introduced by ICC are pretty neat, though.
 
@ThePhD Yeah, I know it makes no difference, but just letting you know you should use it.
 
Xeo
4:40 PM
@ThePhD former
 
@ThePhD UINT_MAX
 
Maybe I could just fix the clang source code header to use UINT_MAX or std::numeric_limits
 
std::numeric_limits do it now
 
But then again, this is for an llvm header. Maybe it doesn't want to #include <limit>
 
static_cast<unsigned>(-1), then.
 
4:41 PM
@R.MartinhoFernandes Dubious, and more importantly, rare -- to the point that I'm pretty sure I've never used it except in code written specifically to demonstrate what a C-style case can do that a new-style cast can't.
 
@JerryCoffin I would expect no one ever used it outside of demo code.
 
@ThePhD I had to just turn off all warnings when including Clang and LLVM headers with MSVC, they threw loads.
 
static_cast<dinosaur>(me);
 
Xeo
@R.MartinhoFernandes Then just leave it out
If somebody needs it, they should go to the trouble of writing a lambda or something.
 
It's not the warning I'm afraid of. It's that it's throwing the warning as an error.
 
4:42 PM
@Xeo But but
 
Xeo
No
 
When I don't have Warnings-As-Errors turned on.
I'll just wait for @melak47 to show up, he'll help me.
 
I use C-style casts usually when I can't be bothered to type static_cast and the cast is obviously static.
like for example, (int)a_float.
 
@ThePhD I'm here? what's up :p
 
@R.MartinhoFernandes I've actually seen code that put it to real use (though I'm certainly not going to try to defend the code in question, especially since I can't remember what code it was any more).
 
user784668
I don't use C-style casts because I the compiler spits errors when I use them.
 
@ThePhD ^ Can you throw that code into a VS 2013 project? /cc @melak47
 
BTW, did you know that OpenGL has warning "gl::DEBUG_TYPE_UNDEFINED_BEHAVIOR"
 
Just, make an empty C++ project and put it in there. I need to confirm that MSVC 2013 is screwing with me right now.
 
warning C4146: unary minus operator applied to unsigned type, result still unsigned
 
4:45 PM
adhjawkdhwajdkhwajdawkdawjdkwahdwakdhwjkahdwjkhdjwkahdwjkdhwajkdajwhdjwkahdjwkah‌​dwdjkah
WHY IS IT AN ERROR FOR ME WRAAAAAAAAAAAAAAAAARRRRGH
 
Xeo
@melak47 Sure that's 2013?
 
Because you have warnings as errors.
 
user784668
Wait.
 
Xeo
That looks exactly like the 2012 warning
 
@Xeo yep. it has colored icons :p
 
user784668
4:46 PM
What was the GCC option that warns on C-style casts?
 
@Xeo It is the 2012 warning (but reported as an error for some reason)
 
@Xeo It looks the same since it exists.
 
user784668
@DeadMG some reason like /WX?
 
@Fanael --FuckCProgrammers
 
Xeo
@DeadMG Eh, wasn't @ThePhD's error 4244?
 
4:46 PM
I should try out the GCC 4.8.1 memory checker and race detection tools.
 
answering that question would require paying attention to ThePhD's project
 
@Fanael old-style-cast
 
user784668
Why can't I find it in the docs?
 
Xeo
Nvm, I must've mixed something up.
 
@Fanael wouldn't -Wall cover that?
 
4:47 PM
Hello, and sorry to bother... Is there any room I can promote my question about shell script?
 
@ThePhD Werror?
 
not this one.
 
user784668
@A.H. -Wall is far from all.
 
@ThePhD what the hell is isResultDependet anyway :D
 
@Xeo Not sure how a lambda would help (the use is conversion from object to an inaccessible base class). e.g., class A : B, C {}; Only a C-style cast can convert from (a pointer/reference to)A to B or C.
 
4:48 PM
@DeadMG yes, but is there any?
 
I neither know nor care
 
@A.H. -Wall is just "all of those we can add without a ton of people complaining about spurious warnings".
 
fair enough
 
user784668
@R.MartinhoFernandes Right, "-Wold-style-cast Warn if a C-style cast is used in a program"
 
Xeo
@JerryCoffin No, I mean like with transform. We were talking about ops::some_cast function objects, and not to include C-style casts
 
user784668
4:48 PM
Had to gcc --help=warnings to find it.
 
is this room about c++ only?
 
@Cawas You could try the bin.
3
 
Xeo
It's about lounging.
 
@R.MartinhoFernandes is a real all warning option?
 
Xeo
And then maybe some C++
 
4:49 PM
@Cawas It's not even C++ most of the time
Lounge first, C++ second
 
sometimes Java
 
user784668
@A.H. no
 
ok, good to know... I tot it was too active to be only c :P
 
user784668
@A.H. Clang has one, -Weverything.
 
@A.H. Clang has -Weverything which is way crazy. GCC doesn't have anything like that AFAIK.
 
Xeo
4:50 PM
@JerryCoffin So I meant that if somebody needed a C-style cast for such a situation, with transform, s/he should write a lambda
 
@JerryCoffin thanks, i'm on it!
 
user784668
One of my programs compiles almost cleanly with -Weverything.
 
@JerryCoffin lol'd
 
Xeo
lol
 
@Fanael is it hello world ?;p
 
user784668
4:50 PM
@A.H. No.
 
meh, there are warnings that are completely bullshit
 
-Weverything seems like a metaphor for the impossibility to please everyone.
 
@melak47 It's a clang function in expr.h
 
@JerryCoffin aw. I'm new to those channels... :(
 
4:51 PM
 
@Xeo Ah, I see. Yes, that makes sense.
 
Look at it. LOOK AT IT. I have /WX- in there!
 
@ThePhD ahaha you're still doing reflection
poor ya.
 
@Cawas Sorry 'bout that. Didn't mean to mislead.
 
I legitimately need C-style casts all the time because static_cast is so burdensome to write.
 
Xeo
4:52 PM
...
 
@JerryCoffin ya, I had that feeling after Tuntuni's lolz
 
Xeo
@StackedCrooked THAT'S PART OF THE REASON IT EXISTS!
 
@StackedCrooked "legitimately"
 
It's designed to be burdensome?
 
time to make a test build of minicraft with GLDR :F
 
user784668
4:53 PM
@StackedCrooked please die and don't get resurrected
 
Xeo
@StackedCrooked Yes
 
@Xeo To be burdensome?
 
@StackedCrooked Question is why you're doing casts (of any kind) so much.
 
Xeo
Because you should think before you cast.
And better not cast.
 
I was just joking.
 
Xeo
4:53 PM
And it is also explicit and grepable
 
user784668
-Weverything is so cool.
 
I thought it was obvious.
 
user784668
error: trailing return types are incompatible with C++98 [-Werror,-Wc++98-compat]
 
@melak47 Are you sure you ran it under the v120 compiler set and not v110_ctp or v110 ?
 
@ThePhD any particular reason why there's no WIN32 and _DEBUG defines in that command line?
@ThePhD yes
 
4:54 PM
=[ I don't know what's going wrong, then.
 
@thecoshman: In your REST question, your comment "Curious, how would you achieve this?" What exactly are you asking about?
 
@melak47 I don't know. D:
 
@ThePhD What error do you get?
 
TBH I did use one C-style cast today. It looked something like: std::cout << int(0.5 + 1000.0 / duration.count()) << std::endl;
 
A warning.
 
4:55 PM
@StackedCrooked It did seem out of character, but I think you need to go a little more over the top to make it truly obvious.
 
@JerryCoffin at least you got 3 stars almost instantly :D
 
> I legitimately need C-style casts all the time because static_cast is so burdensome to write.
legitimately should give it away
 
Called it.
 
@Cawas Well, there is that.
Three stars and a quarter will buy you....nothing, any more.
 
4 mins ago, by ThePhD
user image
 
4:56 PM
@ThePhD Wot. Where's the error lol?
Oh. just saw it
sneaky
 
lol yens.
@ThePhD Did you try with a new project?
 
It's strange because @melak47 Isn't getting the error. ;~;
 
i can't remember where I saw that problem before (the slashes replaced with yens thing). iirc, it has something to do with locale?
@ThePhD i'll try now
 
... Ah... ahaha... ahahahahaha
So
 
user784668
So my code doesn't compile with -Weverything -Werror.
 
Xeo
4:58 PM
@Tuntuni Japanese locale
 
user784668
Big deal. However, it doesn't compiler with -Wall -Werror either.
 
QtCreator's FakeVim modus is like the cruelest thing ever. It gives only you 75% of the features that you frequently use. So you end up more frustrated than without it.
 
Xeo
@R.MartinhoFernandes I didn't even notice that because my PC is on Japanese locale all the time.
 
user784668
Because Clang is a filthy liar.
 
So, so so. I added a random preprocessor define (-DBIG_DICKINS), saved everything, recompiled, and now the error is gone.
2
 
4:59 PM
ahahah what
 
Xeo
Did you try a clean build before?
 

« first day (1011 days earlier)      last day (3940 days later) »