« first day (697 days earlier)      last day (4250 days later) » 

5:00 AM
*I predicted the slow-down. But I could do nothing about it.
I didn't have another algorithm to replace it until some 8 months after we finished the 10 trillion digit run.
 
@Mysticial What do you usually do during those months of number crunching (besides sword fighting)?
 
@Insilico school work... and occasionally improving the code.
I predicted the slow-down back in 2009. That was even before the 5 trillion digit run. Of course I didn't say a thing to the Japanese guy.
 
Did he just like, volunteer to do it or something
 
I started brainstorming ideas for a better algorithm using different math. But it was so out-of-world crazy that I wasn't even gonna attempt to implement it.
 
@Mysticial You're evil.
Also, "the Japanese guy"?
 
5:05 AM
@Mysticial Perhaps "out-of-world crazy" is just what you need?
 
@R.MartinhoFernandes Shigeru Kondo.
 
Microsoft IME sucks so bad.
 
@R.MartinhoFernandes I had to. I didn't want to give him any reason to pull out.
@Insilico I eventually did implement it. It was experimental and had a high chance of not being any faster than the existing one.
6 months and 60k lines of code later, I finished it... and sure as hell, it beats the crap of the old algorithm when the size goes above 100 billion digits.
 
@MohamedAhmedNabil replace system("Pause") with cin.get(). In lines 85 and 90 replace filename with filename.c_str()
Noticed I had an Ideone tab opened and realised it was yours.
 
@Mysticial I just found it weird that you referred to him as "the Japanese guy".
 
5:09 AM
@R.MartinhoFernandes Well, not to many people know who Shigeru Kondo is. But a lot of people know that I worked with a "Japanese guy".
It wasn't meant to be offending. He's pretty insane.
(in a good way)
 
@Mysticial Ok.
 
@Mysticial It's a bit strange really. To mathematicians, he's "the guy who computed Pi to 10 trillion digits". To programmers, he's "the guy who supplied the hardware that ran the algorithm that computed Pi to 10 trillion digits."
 
@JerryCoffin More like, to non-programmers, "the guy who had the crazy computer". And to programmers, "the guy who wrote the program".
I don't know where he gets the money to get such crazy hardware. But I can tell that it's been a strain on him.
On the flip-side. I don't know how I managed to get 100k+ lines of code to hold together through all the last few years.
I was never able to test anything larger than 500 billion digits on my machines. So it was literally "pray it would work at 20x the size"...
 
Does he also work on the program and algorithms? Or does he just do the hardware?
 
void Foo( int bar )
oops
 
5:21 AM
@StackedCrooked Just the hardware. He doesn't look like a programmer.
At least not a professional one.
 
Morning
 
evening
 
void Foo( int bar )
{ bar; // what is this statement called? it presumably doesn't do anything, but it's legal c++ }
 
It's to suppress the "unused parameter" warning.
 
yes, it does do that, you're right.
 
5:24 AM
But it leads to another warning.
 
I'm wondering if that kind of statement has a name, I've had troubles searching for info on that kind of statement because I don't know its name or if it even has one.
The best I've seen is Herb Sutter called it "evaluation of the variable" in his book "C++ Coding Standards: 101 Rules, Guidelines, and Best Practices"
what other warning?
 
@TylerLaing It's just an expression as a statement.
@TylerLaing Something along the lines of "statement has no effect".
 
warning: statement has no effect [-Wunused-value]
 
interesting, I don't get that warning in Visual Studio 2010, must be compiler specific.
 
You may need to increase warning level.
 
5:28 AM
ah, probably
 
@TylerLaing All warnings are compiler specific.
 
@TylerLaing It's the "I want to look like a C programmer" statement. A C++ programmer would just use void Foo(int) { to state more directly that an argument was passed, but he's intentionally ignoring it. Of course, that could trigger a warning too, but it's a lot less likely to.
 
I want to look like a Java Programmer
 
@StackedCrooked ...and in some cases the optimization level. I'm not sure it makes a difference here, but it definitely does in some cases (e.g., most warnings about using uninitialized variables only happen when you turn on optimization).
 
@LeandroPezzente Write new and virtual all over.
 
5:33 AM
@JerryCoffin I was wondering if it had a specific, well defined name, perhaps from the standard.
 
@TylerLaing I don't believe so, no.
 
IIRC Java has no virtual keyword
C# does has a virtual keyword though
 
@R.MartinhoFernandes ...and don't forget to include at least one AbstractStrategyFactoryProxySingleton class.
 
Everything in Java is virtual. Just like the language itself.
 
Hahaha Java applications are non native
 
5:35 AM
Which in some sense, makes it a bit cleaner than in C++ in that aspect.
 
so ... Java Apps are Aliens by Default ?
 
Since you don't need to litter you code with extra keywords. Although Java is pretty well known to be extremely verbose.
 
JRuby and Clojure ftw.
 
I heard F# is a Grovvy ripoff
 
@Mysticial Yeah -- you don't see a lot of CodeGolf winners in Java.
 
5:41 AM
Is there any language besides assembly and BrainFuck that has a longer Hello World program than Java?
 
Yeah.
 
@Mysticial COBOL?
 
Mondrian ?
 
@R.MartinhoFernandes I'm not familiar with that language. But a quick google says holy shit.
Well, their first version isn't that long. Shorter than Java's I think.
 
@Mysticial Are you sure it's longer in assembly language?
.model tiny,c

.data
h db "Hello, World!$"

.code
e::
mov dx, offset h
mov ah, 9
int 21h
ret
end e
 
Could be a bit shorter still, if you were serious about golfing.
 
@JerryCoffin hmm... that's pretty short.
 
There was a language that had a very huge Hello World example.
 
I've never used the interrupt instructions before. That's probably why I thought it'd be longer.
 
@Mysticial That's like, 112 strokes.
It's not that long.
 
5:51 AM
@Mysticial Well, definitely longer than Forth anyway. If memory serves: "Hello, World".
 
Reminds me of this:
114
Q: Programming challenge: can you code a hello world program as a Palindrome?

gigantt.comSo the puzzle is to write a hello world program in your language of choice, where the program's source file as a string has to be a palindrome. To be clear, the output has to be exactly "Hello, World". Edit: Well, with comments it seems trivial (not that I thought of it myself of course [sig...

 
(Note that the trailing . is part of the code, and a crucial part at that).
 
I'm quite fond of my Fibonacci generator +>++[-<<[->+>+<<]>>>+].
 
BrainFuck is that lenguage of cipher into cipher into cipher into cipher ???
 
5:59 AM
@LeandroPezzente Nah -- it's really just an extremely basic machine language, with each instruction represented by a single character. Perhaps easiest to understand by looking at an implementation.
 
You implemented BrainFuck?
 
I don't see how hard it is to implement brainfuck in C++.
 
Maybe not. I never really thought about it.
 
Now I wanna see a brainfuck VM with a JIT.
 
@StackedCrooked Yes -- a few times over. For long hello world programs, you really want a polyglot:
23
A: Identifying programming languages by a piece of code

Jerry CoffinBeing my usual argumentative self, I offer a counterpoint to the other answers: ------------------Snip--------------------- (*O/*_/ Cu #%* )pop mark/CuG 4 def/# 2 def%%%%@@P[TX---P\P_SXPY!Ex(mx2ex("SX!Ex4P)Ex= CuG #%* ...

 
6:12 AM
There I find it , I was referencin Malbolge "Hello World" program
Malbolge is a public domain esoteric programming language invented by Ben Olmstead in 1998, named after the eighth circle of hell in Dante's Inferno, the Malebolge. The peculiarity of Malbolge is that it was specifically designed to be impossible to write useful programs in. However, weaknesses in this design have been found that make it possible (though still very difficult) to write Malbolge programs in an organized fashion. Programming in Malbolge Malbolge was so difficult to understand when it arrived that it took two years for the first Malbolge program to appear. The program wa...
 
@Mysticial Hmmm...Somewhere I think I have one that does static compilation but not JIT.
 
@Mysticial Except static and private methods :)
 
@FredOverflow true
forgot about those :)
 
6:39 AM
@Mysticial Why does "everybody" invent their own garbage collector, anyway? Can't you just make one awesome GC and then use that everywhere?
 
I don't do GCs. :)
 
@TonyTheLion Where do you get the high res content from, though? :)
Why can't @Tony change the topic to funny things?
 
@FredOverflow Were you hear when they had the room owner discussion?
 
hear? :) no
Does it really matter who owns the Lounge as long as we have "enough" owners?
 
Long story short: Someone spammed the room in the middle of the night (in Europe). Nobody was around to clean it up.
So Etienne and I were added to the room owners to cover the NA timezones.
Big debate with having too many room owners.
Tony and Jalf voluntary stepped down.
lemme find the start of the long transcript.
 
6:44 AM
That's alright, I see the point.
 
@FredOverflow Lovefilm.com
 
So Tony is not a room owner anymore because some number was too big? That's really stupid.
@TonyTheLion amazon, right?
 
@FredOverflow It seems like we'll be doing voluntary rotations from now on.
 
Can't you just kick me and bring Tony back in?
 
Here's the start of the transcript:
yesterday, by sbi
So the robot asked whether the other owners have any reservations about adding more owners, for which there was a good cause. I answered that I have nothing against these two, but I have reservations in principle, because this violates our rules, and raises questions regarding other regulars.
It's long. Very long.
When I woke up in the morning, I spent a good 15 minutes reading that entire discussion that happened while I was asleep.
 
6:48 AM
@FredOverflow if you're volunteering, you can remove/add people to the list :)
 
How exactly do I add/remove people from the list of room owners?
 
Go to the access tab and you'll see down-arrows downvote-buttons under everyone's names.
 
Man, it would be cool if you could downvote chatters
 
6:51 AM
@TonyTheLion Just troll them.
 
Thanks @FredOverflow :) :)
 
@FredOverflow don’t forget to give Tony access to bin.
 
too late, I'm not an owner anymore :)
 
I don't think we ever revoked bin access. Lemme check.
 
6:52 AM
@daknøk I can request access myself :)
 
You're still an owner in the bin.
 
@Mysticial Tony didn’t own the bin. I just added him.
 
own all the bins
bin all the owners
cin all the clowners
 
@daknøk No Feeds message?
 
@Mysticial Feeds has no write access to bin. xD
 
6:54 AM
@Mysticial in the bin prob
 
lol
Okay, let's test if Tony can bin stuff:
 
LOL
 
Cannot add @Feeds to the list either.
@FredOverflow Tony would never bin that. :)
 
@FredOverflow Tony and I gave up our ownership to make room for new people without starting a lot of drama. Given that this is still being discussed now, I'm guessing that the latter part failed :(
@FredOverflow no, let's not
because whether or not he can, some of us are still at work
 
That's considered NSFW?
 
6:56 AM
1 message moved to bin
Time's up.
:(
 
Okay, another test, SFW:
 
@Rapptz if you're in an office and people walk past your screen? Yes. Yes it is
 
Man, where I work no one cares as long as it's not porn.
 
Man, where I worked no one cared.
As long as you get your work done on time, you can do whatever you want.
 
6:58 AM
@Rapptz It's hard to tell the difference when you're far away and the bra is the same color as the skin.
 
@Rapptz no one cares about a picture like that here either, but (1) they might at other people's workplaces, and (2) if you just walk past and look briefly, it looks NSFW
 
@Mysticial Use binoculars.
 
I don't want to have to pull people over to my monitor to look at this chat just to show them "hey, that pic you thought was NSFW? Look closer, it's actually SFW"
 
lol
Where I worked nothing was NSFW.
 
I understand if others are anal about it, I guess. Though at the same time I don't.
 
7:00 AM
If anything is NSFW at where you work, don’t visit the Internet. Problem solved.
 
> Don't visit the Internet
huh?
How does one even live?
 
Like an African.
 
Well good night
 
Später.
 
@Rapptz put it like this then: I don't want to have to find out if anyone at my workplace are anal about it
so what did people find out about room ownership? Anything I should know?
 
7:02 AM
I guess if you worked for a porn website, then NSFW really takes on a whole new meaning.
 
@jalf I dunno. But I'm under the impression that we're doing voluntary rotations from now on.
 
no changes, I guess, other than Tony and Fred trading places?
 
Basically whoever feels like giving it up to someone else.
 
nothing else changed
 
user image
5
 
7:03 AM
@daknøk a new meme was born :)
 
Sem
Good morning
 
@Mysticial some people are. @sbi and some others weren't inclined to give up ownership freely. That's fine by me. The people who want to can rotate ownership, the others can cling to it
 
@TonyTheLion Scumbag jalf lol
 
@daknøk lol
 
@TonyTheLion As does "sticky"...
 
7:04 AM
@Sem Good day.
 
@daknøk lol
@FredOverflow huh?
 
I feel like @Jerry got robbed. So in a few months time (probably when I go on vacation), I'll give up my spot to him.
 
You know, sticky threads, sticky topics and stuff.
 
oh that
 
sticky liquids
 
7:05 AM
I'm still waking up
 
anyways, 2am here. I'm gonna get some sleep.
night
 
Happy NOPing ;)
 
6
A: Definition of spaghetti php?

NoldorinThe term "spaghetti code" is not at all specific to PHP - it applies to all programming languages and should appear quite similar in most languages (at least of the same paradigm). Perhaps you understand this however, and just want an example in PHP. The Wikipedia article on this subject seems p...

 
"Spaghetti PHP" sounds redundant.
 
spaghetti PHP |<some prononciation>|
noun phrase
PHP
 
7:06 AM
off to sleep for realz
 
g'night
wish I could go back to sleep
abnormal for a Lion to be up so many hours of the day
 
lol template spaghetti
 
@Mysticial Jerry? How did he get robbed?
 
template class <typename Sauce> spaghetti {};
 
spaghetti<awesomesauce> foo;
 
7:09 AM
@TonyTheLion You forgot the class :)
 
@jalf He's another one of the long-time trusted regulars in the NA timezone. (at least that's my impression of him)
anyways, off to sleep
 
That's the third time you pretended to go to sleep :)
 
@TonyTheLion epic syntax fail.
 
I'm still asleep
ignore me
 
#define spaghetti class noodles
^ fixed that for you
 
7:11 AM
 
thanks
 
@Mysticial yeah, I agree. But what did he get robbed of?
I guess because he didn't get to be an owner?
 
@FredOverflow aaand instant spaghetti code.
 
@Tony I'm afraid you're gonna have to change the topic of the lounge, it no longer reflects the truth :)
 
Say I've a thread and its run method is not running a while loop. rather its calling another function which doesn't return within short time. If I have a timeout and I want to stop that thread for not finishing within time. terminate/kill is the only way
am I wrong somewhere ?
 
7:22 AM
@TonyTheLion Ignoring you
Found this in VIM as a PHP IDE:
> UPDATE: I'm using Emacs since some months and consider it superior to VIM for most use cases after using VIM for 4 years. (And I also came to hate PHP by the way.)
 
Emacs > Vim anyway.
 
I bet this guy will make a nice cobbler one day, when he finds his vocation
@daknøk Hell, Emacs > Vim would at least be vaild syntax in php. As opposed to Emacs: (> Emacs Vim), I suppose
 
@Mysticial I don't feel I was robbed at all -- I pretty much completely quit SO for something like 3 months. I'm not in the least bothered by the fact that I'm not an owner any more; when I was an owner, I'm not sure I ever (at least intentionally) did any "owner" things.
 
@JerryCoffin You just owned :)
 
@sehe I guess I owned, but I never owned up to owning. :-)
 
7:34 AM
TIL: There is camelCase, PascalCase, caravan_case and there is PHP_NutFreakingCase
2
@JerryCoffin That's an own fault
(See: exponential decay applies to pun chains)
 
@sehe You left out Ada_Case_With_Underscores_Aka_Belt_And_Suspenders_Approach.
 
sbi
@netcoder I think that was a tweet by Tim Post.
 
@sbi Affirmative
Good morning BTW
 
sbi
Hey, good morning.
 
@sehe Getting tired is too, but given that it's 0137, I think it's time for me to rest. G'night all (or good morning, where applicable).
 
7:39 AM
room topic changed to Lounge<C++>: Tony can change the room topic to funny things again! :) [c++] [c++11] [c++-faq]
@FredOverflow it's done :)
 
@JerryCoffin Sleep well
 
@sbi Good morning
 
sbi
@JerryCoffin You know, Jerry, this is what qualifies you to be an owner more than anyone else.
@TonyTheLion Hi, cat.
 
i guess that's what it's always like when you start a new job
 
pretty much, yeah
 
7:51 AM
This JIT compiler code is nasty
alot of macros
 
Macro evaluation seems to be the opposite of jit.
On second thought, maybe not.
 
#define evaluation expansion
 
Yeah.
 
CPP is the new sed!
Or, you know, s/sed/sad/.
 
You messad up.
 
8:00 AM
Fuck trees.
I want an abstract syntax queue.
 
Use nested queues :P
 
The semantical analyzer would be a hell to implement when the syntax is stored in queues. :P
 
@StackedCrooked Isn't that technically a tree?
 
@Neil Yeah, that was kind of the joke :)
 
An abstract syntax list would be possible for assembly. :p
 
8:02 AM
Ah ok. Explaning a joke is like dissecting a frog. You learn something, but it tends to die in the process.
 
 
haha
 
@TonyTheLion ^ raise your spirits
 
@sehe ALL THE DON'T KNOW WHAT I'M DOING JOKES!
 
@sehe You like puns don't you :D
 
8:04 AM
๏̯͡๏
 
Breakfast is for people who get up early.
 
Or people who like puns
 
They are insane1
 
My fav pict right now:
 
Breakfast literally means breaking the fast. So technically my lunch is breakfast.
 
8:06 AM
@StackedCrooked I don't think that's what breakfast means anymore
 
@StackedCrooked And how would you explain this with 'ontbijten' or 'petit déjeuner'?
@Neil Etymology, my friend. When in doubt, ask the arch fathers. They were always right
 
A guy submitted 10 puns to the local newspaper hoping at least one would win the pun contest. Unfortunately, no pun-in-ten-did.
 
ontbijten means euhm, ..bijten?
 
In China doen ziet niet aan ontbijten maar aan hondbijten.
 
@StackedCrooked I think it has to do with 'ontwaken' by (door te) 'eten'
 
8:08 AM
@sehe LITB IS INSANER
 
@sehe Then I think I'll start calling my colleagues gay and we'll see how long that'll last
 
@sehe Wow, I never saw that.
 
@Neil Only if they're bright or cheerful
 
@sehe the 1 was on purpose. It was a misspelling of !.
 
@StackedCrooked Me neither. I just made it up
 
8:09 AM
@sehe Why of course. I wouldn't want to misuse that word.
 
@daknøk It's supposed to be!!1 Fool
 
*poke*
 
Damn search very slow again today /cc @R.MartinhoFernandes
@daknøk *peek*
 
I like poking people in real life.
Except when they are yo momma, which would make me lose my hand in their bellies.
 
@daknøk And they still want to borrow the iAdaptor? Oh, that was before... Next week, Splendid Isolation will be achieved again
 
8:14 AM
sehe how the fuck is my adapter relevant to poking people.
Y U MAKE STRANGE ASSOCIATIONS
 
Everybody does. If you all make the same associations, that doesn't make them 'normal'
 
Apparently I need to poke people in order to prevent them from trying to borrow my charger.
 
There ought to be a wiki-relationpedia
 
TIL: This is perfectly fine PHP code: http://ideone.com/we1o2
sehe@mint12:/tmp$ phpcs test.php -i
The installed coding standards are MySource, PEAR, PHPCS, Squiz and Zend
sehe@mint12:/tmp$ phpcs --standard=Zend test.php
sehe@mint12:/tmp$ phpcs --standard=MySource test.php
sehe@mint12:/tmp$ phpcs --standard=PEAR test.php
sehe@mint12:/tmp$ phpcs --standard=PHPCS test.php
sehe@mint12:/tmp$ phpcs --standard=Squiz test.php
sehe@mint12:/tmp$ php -l test.php
No syntax errors detected in test.php
 
Visual PHP .NET!
 
8:17 AM
@Neil PedoWiki
I also like how php -l is supposed to 'lint' the source code. And that it imposes no requirements on style or safety. It just tells you whether there are 'syntax' errors.
Someone got confused over the difference between 'lexing' and 'linting' there
 
empty($a + $b) is a syntax error in PHP.
 
@daknøk Relevance?
 
@sehe there's something to be said for some form of punctuation on blocks of code o_o
 
@thecoshman s/for of/form of/
 
@sehe it was just a statement I made, not relevant to anything at all.
 
8:20 AM
@sehe by any chance, do you use Mint?
 
@daknøk Ah. inb4 'WAT' vid link
@thecoshman blarg. by any chance, do you read?
 
@sehe ¬_¬ did I need to type a colon followed by a lowers case pee?
 
@thecoshman I can't do that for you. You need to go to the bathroom yourself
1 min ago, by thecoshman
@sehe ¬_¬ did I need to a colon followed by a lowers case pee?
^ so far as decided as
2 mins ago, by thecoshman
@sehe ¬_¬ did I need to type a colon followed by a lowers case pee?
^ lowers case
 
no, you will suffer it!
 
@daknøk Like an Egyptian. During period of revolution, that is.
 
8:30 AM
So... today is programmers' day...
 
sbi
> I once created a "non-casual day", where programmers wore suits and ties, to freak out management, who thought they were out interviewing. — C. Keith Ray
 
Programming in C makes me happy. :)
 
sbi
@daknøk Yeah, but then you're a pervert anyway.
 
@daknøk It bothers me too much to program in C. I feel dirty after having done it and I feel like I have to justify to myself exactly why all my methods are global.
 
Xeo
@Neil What, you don't have global functions in your C++ code?
 
8:36 AM
@Xeo Oh god no
 
Xeo
oO
 
sbi
> "...generate getters/setters for you. So you can do the wrong thing faster. This is called enterprise programming." @KevlinHenney #javazoneJan Fredrik Wedén
 
Xeo
Oh, wait, do you put them in namespaces?
 
Well I suppose main counts, but still
@Xeo No, I just put everything in classes
 
Xeo
Well... wtf.
 
sbi
8:38 AM
@Neil That is Wrong™.
I just thought you might want to know.
 
I don't think we're talking about the same thing then. Why do you think that's wrong?
 
I just noticed my next answer will be #2499
 
@ScottW I didn't mean I embedded it in the class
It's still in its own cpp file. I just meant all methods are tied to classes. None are global
I am not a heretic, I promise!
You wrote code and it works but you have no idea why? Now that's a novel question. :-3 — deceze 42 secs ago
 
@sbi Maybe he declares them as friend functions inside classes.
@Neil You abandoned overloading!
 
Ok, now I'm lost
 
8:51 AM
Template namespaces!
 
@Neil Overloading operator<< requires a free function, for example. You can't achieve this by putting the function in class. (Unless the function is declared a friend function, which means it actually is free function.)
 
template<typename X> namespace Foo { class X { X x }; }
Foo<int>::X;
 
@StackedCrooked I dislike overloading operators
 
lol typename Foo<int>::X
 
As for templates, those are hardly methods
 
8:52 AM
mytuple.template get<42>() = 69; :D
C++ is the ugliest language after French and PHP.
3
If C++ were like Haskell in that typenames must start with a capital letter and other identifiers with not a capital letter, everything would be so much simpler.
 
@daknøk Don't use that syntax then.
@daknøk Design and Evolution of C++ would like to have a word with you.
@Neil They are Harley methods because they rock!
 
Hey, the 90s called. He just kinda breathed on the phone and hung up.. weird.
 
hahah French
 
Zut alors!
 
@StackedCrooked Harley methods rock! Hardly methods, no, however.
 

« first day (697 days earlier)      last day (4250 days later) »