« first day (353 days earlier)      last day (4599 days later) » 

6:00 PM
@AlfPSteinbach I can't claim it still has the original battery, but I still use this pretty regularly:
 
I would disagree, for practice purposes, paper is not that bad.
 
I think I bought that in 1981 or '82.
 
@JerryCoffin RFC 0x1EE7 Hi-five over IP clap.
 
@CaptainGiraffe Why waste it on binary arithmetic?
 
6:02 PM
Arghh, people don't know how to vote to close.
 
I have this one.
 
@RMartinhoFernandes Any kind of process that requires percolation? is good for paper.
 
It's adding two numbers. I don't want to spend a minute on it, it's a waste of my precious time.
 
Ppl, the contest is over before it even began. Please take note of the STOre and ReCaLl buttons on the HP. They are not there for fun nor looks.
 
calculators?
 
6:04 PM
Mine has them, too.
See: image above.
 
@CatPlusPlus No it's not adding two numbers it is getting a hold of a completely new number system.
Cat: They are just there for show =)
 
The thing is. It's not a completely new number system. It's a waste of my bloody time.
 
Well, I guess for You it might well be, but it I can assure you (speaking from a volume of experience), for most it is not.
@Cat As a for instance, do you find the xor swap obvious and natural?
 
I don't see how learning how to add and subtract in binary on paper is any useful, but okay.
 
@CaptainGiraffe It's not obvious nor natural: it's an abomination.
 
6:08 PM
They still won't know squat about bitwise operations after that.
Adding numbers is what you do in your natural base.
 
@RMartinhoFernandes Cm'on no its not =)
 
@CaptainGiraffe int x = 42; int y = 42; xor_swap(x,y); assert(x == 0); assert(y == 0); // ooops!
 
XOR swap is a silly trick.
 
@RMartinhoFernandes K done.
 
Nevermind the UB in a very common implementation (x ^= y ^= x ^= y or something).
 
6:09 PM
And learning how to add numbers in base 2 like you do in base 10 certainly won't help anyone understand it.
 
@CatPlusPlus It is (or can be) useful if you ever design hardware, but for most programmers learning binary is pretty pointless.
 
So just toss undergrads to Knuths "bitwise tricks and techniques" then and be happy with it?
 
for designing hardware it makes even less sense. you don't really need a register at all
 
@RMartinhoFernandes The "oops" is only if you do something like int a=42; xor_swap(a, a);
 
@JerryCoffin Oh right.
 
6:11 PM
@RMartinhoFernandes Just tell then lrn 2 Sequence point ?? :/
 
@cHao Who said anything about a register? If you're going to design an adder (admittedly, VHDL/Verilog render that kind of pointless, but...) you need to know the bitwise operations involved in doing addition.
 
What do sequence points have to do with anything?
 
3 mins ago, by R. Martinho Fernandes
Nevermind the UB in a very common implementation (x ^= y ^= x ^= y or something).
 
thought you were talking about the xor swap thing
 
6:12 PM
R's example is UB because of side effects, was my intuition
 
@cHao No one ever knows what we're talking about.
 
lol
 
@RMartinhoFernandes Am I off base?
 
room topic changed to Lounge<C++>: A bunch of semi-drunk animals around a campfire. [c++] [c++11] [c++-faq]
 
brings out the out of tune guitar
 
6:14 PM
I didn't know there was a semi-drunk state.
 
Well, we don't know what the hell we're talking about. It's an observable state.
 
"Ball-room drunk" is the technical term.
 
@CatPlusPlus You forgot "and grooving on a pic" (or am I the only one old enough to remember that?)
 
Besides, that can be corrected at any point.
Yes.
 
@JerryCoffin You're not remembering that right.
 
6:18 PM
Great, now we have an argument whos rock-card pile stacked highest on Fortran 34(BC).
 
@RMartinhoFernandes Oops -- "with a pict"
 
Lol Ada replacing C++.
 
sbi
@RMartinhoFernandes Yeah, I did. Funny, huh? :)
 
@RMartinhoFernandes That has to be the worst ever accepted/ most-voted ever.
 
6:24 PM
many academic computer "scientists" are scala-fanboys.
 
Considering asker has almost 1k rep this is kinda surprising.
 
sbi
What, only one upvote after Martinho posted a link to my wonderful answer?! What kind of lousy online friends are you? :)
 
Scala isn't bad.
 
sbi
@CatPlusPlus You're in Milano?
 
it's not especially good either
 
6:26 PM
@sbi The what?
 
Also ADA isnt that bad, and "with blocks aren't a magic fix for RAII in garbage collected languages" =)
 
@CatPlusPlus Actually, I think he had a pretty good point: while I can't really imagine many C++ programmers wanting to use Ada, if you step back and look at them objectively, it's about the closest thing to a direct replacement that's available.
 
@sbi The what?
 
sbi
@CatPlusPlus Your record is broken.
 
6:27 PM
That's because I prefer structures.
 
@sbi teatroallascala does a lot of stuff in C#!
 
sbi
@CatPlusPlus Well, when I think I have answered your question, simply repeating it won't necessarily help.
 
@robert Why not? It's certainly more expressive than Java.
 
Way more. Not that it's difficult.
 
@sbi Abort, Retry, Ignore.
 
6:29 PM
And if you press Retry, it actually debugs.
 
being more expressive or simply better than Java is not very difficult. hell, no operator overloading because "you're too stupid to use it right, you damned developer folk"
 
I could never understand why the hell they didn't just create a new dialog.
Scala has operator overloading AFAIK.
 
@CatPlusPlus Yeah, pretty silly.
 
I don't have the rep to view the +/- tally on that accepted answer, please let me know.
 
My friends were completely flabbergasted when I shouted "Stop! Don't press Abort! I can debug that for you!" and pressed Retry.
 
6:31 PM
"Step back, I know watch expressions!"
 
@RMartinhoFernandes where do you work?
 
@CaptainGiraffe Currently at 6 in each direction. Despite zero total, he's gained 54 rep from it.
 
@CaptainGiraffe Sorry, maybe I picked the wrong word. More like my classmates.
 
Oops -- the linking seems to have suddenly gotten it some attention. It was at -3 a few minutes ago, and is now up to +1.
 
@JerryCoffin Yeah, noticed that.
 
6:33 PM
@JerryCoffin ah =)
 
sbi
Ah, four upvotes now. That's a bit better already!
 
It didn't deserve a -vote, despite all the discussions at meta telling us not to compensate -1.
 
sbi
@CaptainGiraffe I was talking of my answer, not the retarded one offering Ada!
Huh?! The guy got four upvotes, too?! What's wrong with you people?
 
@sbi Yes, dear sbi, you got a +1 for concise and appropriate.
 
I didn't vote at all on it.
My downvotes on Programmers are expensive :)
 
6:36 PM
@sbi The edit is not uninteresting and upvotes to that answer won't affect yours.
 
But he wants more points than the other answer!
I need to go looking around in Welbog's old posts for a new expression for "Internet dollars" or "imaginary points". Anyone know what screen name he goes by these days?
 
What is the context sensitivity the accepted answer is rambling about in c++? const overloading?
 
@CaptainGiraffe It's a grammar thingy.
Do you know typename?
 
sbi
6:38 PM
@LucDanton To "What kind of language will replace C++ as C++ replaced C?" he says, in his edit:
> I did not at any point claim that Ada was a replacement for C++.
 
@CatPlusPlus Thanks.
 
sbi
That seems just so wrong.
 
@RMartinhoFernandes He has a lot more up-votes than the other answer. Interestingly, @sbi will get a badge when/if the other (accepted) answer is voted to +10.
 
@R Ah, the required typename thingy.
 
morning
 
6:41 PM
Look, Welbog was onto this chat flags issue way before us:
-2
Q: Flagging fundamentally flawed

FYI I'm still changing my nameLet me use a metaphor to describe why non-local flagging is wrong: your favourite bar. You like your favourite bar because it is a bar that plays your favourite type of music (e.g., Jingle Cats). Everyone in this bar is here because of the music. It is everyone's favourite music. Suffice it to s...

 
So about the context sensitivity point, is it only declarations forcing typename that is context dependent?
 
@CaptainGiraffe That's not really context sensitivity, just what would otherwise be an ambiguity. The "most vexing parse" would be context sensitivity.
 
sbi
@RMartinhoFernandes My answer to that question is challenging to become my most-upvoted answer on PSE ever. I don't begrudge others to get a few upvotes. But Steve's answer is simply a very bad answer to the question. Ada will never replace C++.
 
@JerryCoffin I agree.
 
a * b; is another example.
 
6:42 PM
@R =) context for us (not the compiler) would be appropriate
 
sbi
@RMartinhoFernandes Indeed. I'm baffled.
 
@CaptainGiraffe Well how do you parse a * b;?
 
@CaptainGiraffe What context do you want?
 
I was under the impression that perl was one of the few languages being context-dependent.
@R the type of a of course.
 
@CaptainGiraffe Why did you assume this was multiplication?
 
6:45 PM
 
a * b; no assumptions can be made any symbol, but that does not imply context dependency.
 
@CatPlusPlus Awesome!
 
@CaptainGiraffe Perl isn't context-dependent, it's undecidable. The two are not the same thing
 
@CatPlusPlus Created or found? Impressive =)
 
@CaptainGiraffe It does. If the context has a type a, it's a variable-declaration. If the context has a variable a, it's an expression.
 
6:46 PM
Caption? Created. The screencap is from Futurama.
 
@DeadMG Undecidable? Why so?
 
I don't know, I've no idea about Perl
 
Via quickmeme.
 
but it was proven that parsing Perl is equivalent to solving the Halting Problem - i.e., impossible
 
@DeadMG I terms of chomsky grammars?
 
6:47 PM
@CaptainGiraffe Sometimes Perl interpreters "heuristically guess" what your code means.
 
Perl isn't a Chomsky Grammar
 
@DeadMG link?
 
Google "perl halting problem" and you'll find it.
 
even the most difficult Chomskies can be parsed by a Turing Machine
 
@DeadMG Er, why not?
 
6:48 PM
but Perl can't
 
@RMartinhoFernandes Yes, but that is for not to make perl not to solve the halting problem.
@DeadMG Perl is not implementable but our fav. machine??
 
Let's not talk about Perl, let's talk about pleasant things.
 
@sbi Man, Welbog was really spot on with that! Almost one year ago!
 
even Chomsky 0 Grammars can be solved by a Turing program, but as parsing Perl is an undecidable problem to solve exactly, it does not fit even the least restricted Chomsky grammar definition
 
His metaphor is awesome!
 
6:49 PM
Good point Cat
 
@CaptainGiraffe Not all Perl programs can be proven to be parsed != every Perl program will not parse.
 
@CatPlusPlus I don't get the link you posted
Not sure if a*b or a*b ???
 
@DeadMG Really curious about a for-instance.
 
what do you mean?
 
It's ambiguous. It can be multiplication or variable declaration.
 
6:50 PM
"for-instance" = "example"
I guess.
 
a perl script that does not execute well behaved (lets not go to well defined)
 
well, I'd have to actually know Perl, to start with
 
Kids and their weird English these days.
 
@DeadMG only knows PROLOG.
 
6:51 PM
and then, the Perl programs which cannot be decided may well be a tiny subset that's difficult or impossible to enumerate
or serves no useful function
 
@CatPlusPlus how is a*b a variable declaration
 
b is a pointer to type a.
 
@LewsTherin typedef int a; a* b;
 
:( I lost.
 
lol
 
6:52 PM
@LewsTherin if you have int a, b; a*b;, the a*b is multiplication. If you have typedef int a; a *b;, the a*b is defining a variable named b of type pointer to a (which in turn is pointer to int).
 
Yeah I get the joke now
 
@DeadMG There should be at least one example =) There are more perl afficionados than there are php haters (just for the reason that php questions seems to rely on php being poorly defined in api and operators=
 
I doublewin.
 
that's cool :) @CatPlusPlus
 
@CaptainGiraffe There's possibly billions of examples. How would I know any of them?
 
6:53 PM
Although explaining a joke is like dissecting a frog. You understand it better, but the frog is dead.
 
@DeadMG Sry, I assumed it would be one in a billion, but it was worth a shot.
 
Such an example would probably melt your brain.
It probably awakens a Great Old One somewhere.
 
Let's not talk about PHP either.
 
Not really, by understanding the meant then I got the joke...I was able to appreciate it ha
 
man
 
6:55 PM
I bet Larry Wall is a Mi-Go zombie.
 
why is it that using my brain is so hard? :(
 
@DeadMG Really?
 
@CatPlusPlus I second the motion.
 
@DeadMG Please a chuckle? smiley?
 
evening kids
are you all behaving?
 
6:57 PM
no
 
@TonyTheLion Yes. Behaving badly is still a form of behaving.
 
naughty, naughty
 
Oh nooooo, I have to write some proofs for tomorrow.
 
6:57 PM
I'm going to have to spend another year of my life proving rotation matrix formulae
please shoot me
 
@RMartinhoFernandes I wish I understood that one
 
I'm so not going to sleep today.
 
@DeadMG bang shot fired at DeadMG
 
@DeadMG According to RFC 0xDEAD
 
you missed
 
6:58 PM
Which reminds me of the old line: "I'm in shape. Round is a shape!"
 
@CaptainGiraffe Larry Wall is the creator of Perl.
 
How do you prove e^iπ + 1 = 0?
 
@TonyTheLion hiya da
 
@DeadMG damnit
 
And I sure hope you know what a Mi-Go is.
 
6:58 PM
@RMartinhoFernandes Yes of course, its the other part I'm curious about
 
@LewsTherin hello there :)
 
I need Mathbusters.
 
Crap! I don't know what a Mi-Go is!
 
@CatPlusPlus From e^ix = cos(x) + i sin(x) ?
 
@CatPlusPlus work it out for different values of i
 
6:59 PM
Yeah.
 
i donno
 
@CatPlusPlus Going around in a circle!
 
There's only one value of i.
It's i.
 
:( I suck
 
@TonyTheLion For every value of 1...
 
6:59 PM
@DeadMG that's what I was getting at
 

« first day (353 days earlier)      last day (4599 days later) »