« first day (2 days earlier)      last day (4826 days later) » 

12:12 AM
We have visitor? \o/
 
12:26 AM
Woo!
 
hey
 
550 points! Wow, your score has definitely bloomed. :-P
 
hello
 
yeah, I enjoy code colf :)
*golf
 
Hehehehe. :-)
@Bass5098: Heya!
 
12:31 AM
Chris, are you the proposer of code golf?
 
Nope, but I did run some code golfs on SO. :-)
Why do you ask?
Re the C code without semicolons contest, we were just discussing this on #stackoverflow last night. :-)
The solution I have in mind involves CPS.
 
what is cps?
 
CPS?
 
Continuation passing style.
In functional programming, continuation-passing style is a style of programming in which control is passed explicitly in the form of a continuation. History Gerald Jay Sussman and Guy L. Steele, Jr. coined the phrase "continuation-passing style" in AI Memo 349 (1975), defining the first version of the Scheme programming language. Introduction Instead of "returning" values as in the more familiar direct style, a function written in continuation-passing style (CPS) takes an explicit "continuation" argument, i.e. a function which is meant to receive the result of the computation performed w...
So instead of returning a result, you call another function with the result.
Eventually, you end up calling exit().
 
I've never tried that in C.
 
12:36 AM
:-)
But you can see how, if you combine that with something that doesn't require semicolons, like the condition of an if, than you can easily write any complicated code without requiring semicolons.
 
I'm not sure why you need CPS here.
 
Well, you can't say return.
Because return requires a semicolon.
 
Good point.
Ok. I understand CPS enables procedural programming.
 
Well, it enables something, all right. :-)
 
We need a more complicated version of that 'Print 1 to 1000' question
 
12:41 AM
Indeed. :-)
 
I love the random maze generator posted :). I hope to see more soon
 
I hope to find time to write something. :-)
 
1:22 AM
Woo, we have more people here. :-)
 
 
2 hours later…
3:14 AM
Heya
 
Heya!
:-)
More people need to turn up. :-P
 
Agree.
I expected more chatters on SE in general TBH.
 
Yeah. I guess it goes to show, SO is still where all the activity is.
 
And that's [status-bydesign]
 
Hahahahahaha.
Well, I'd hope, for the sake of SOIS's investors, that that's not really by design.
 
3:24 AM
is still a relative noob. Not sure what SOIS refers to exactly :/
 
SOIS == Stack Overflow Internet Services, the company that runs S[OFU], SE, etc.
 
Ah, okay.
> member for 3 months
> visited 99 days, 99 consecutive
 
That's hardcore.
You almost have your Fanatic badge!
 
Tomorrow night sometime! Heh.
 
I currently have 35 consecutive. I had about 50-odd consecutive prior to Christmas, but I stayed away from the computer during Christmas to spend with family, so, sadly, I had to start all over again.
 
3:28 AM
@ChrisJesterYoung Yeah, there were a few days in December where I just checked in on my Blackberry, because I'm a badge whore.
 
I don't have a smartphone yet. :-(
 
Shhh
 
/me will get one once I have some $$$.
 
So, how long have you been code-golfing? I honestly had no idea specific scripting languages existed for it before last week :/
 
Hahahaha, well, I don't really know how long I've golfed, except that I know I'm not a "professional".
Professional golfers are the ones you see at the top of the ladders at codegolf.com and Anarchy Golf.
GolfScript was designed by a professional golfer.
 
3:32 AM
Aha...
 
@RebeccaChernoff: (:
 
allo
causing trouble in here? (;
 
Always. :-)
 
suddenly turns into Raj from Big Bang Theory.
 
I don't have a TV, so I won't pretend to get the reference. :-)
We had a TV for less than a month, actually.
We bought it about 3 months ago, then when we came back from Thanksgiving, we discovered that our place was burgled.
 
3:36 AM
He becomes incapable of speaking in the presence of a lady :P
 
Hahahahahaha.
 
Hmm, I guess I lied.
@ChrisJesterYoung ):
 
Hahahaha, awwww....
@mootinator Yeah, that wasn't fun.
 
I had satellite 'til about a month ago, switched to Netflix only.
 
> Dr. Rajesh Ramayan[3][4]"Raj" Koothrappali (Kunal Nayyar) is Howard Wolowitz's best friend, and yet another genius of the group; his name is usually shortened to "Raj". He is originally from New Delhi, India, and he works in the Physics department at Caltech, where his area of expertise is particle astrophysics. Raj is extremely shy when it comes to dealing with women; he is unable to speak to them unless he drinks alcohol.
> When Penny is around, Raj usually whispers what he wants to say to Howard or Leonard, who then responds out loud. Despite his pathology, Raj has often ended up in bed with women, leaving the other guys perplexed
 
3:38 AM
That's hilarious. :-)
 
The following is a list of characters from the American situation comedy The Big Bang Theory created and executive produced by Chuck Lorre and Bill Prady, which premiered on CBS on September 24, 2007. It concerns two prodigies in their 20s, one a theoretical physicist and the other an experimental physicist, who work at Caltech and live across the hall from a waitress with show-biz aspirations. Their geekiness and intellect are contrasted by her social skills and common sense. Main characters * Dr. Leonard Leakey Hofstadter (Johnny Galecki) is an experimental physicist with an IQ of 173...
SO SAYETH THE WIKIPEDIA
 
bows before the great information containing powers of the wiki.
 
Oh look, it's a @sepp2k!
 
where?!
 
Hiding in the right hand nav! :-O
 
3:43 AM
@sepp2k poke poke
 
So how is the private beta going?
 
Huh, what?
Who pokes me in the middle of the night?
 
@RebeccaChernoff It's pretty good. One user decided that the community "disappointed" him, and is thus leaving, but I think things are mostly trucking along.
 
I find myself wanting to use C# to golf, despite the futility :P
 
@mootinator That sounds like masochism.
@mootinator Mind you, I'm just as masochistic. I've posted golfing solutions in Scheme, for crying out loud. :-P
(Scheme is verbose and notoriously difficult to golf well. Rather like Java and C#, yes.)
 
3:47 AM
2
Q: Tips for code-golfing in C#

drachensternWhat general tips do you have for golfing in C#? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to C# (e.g. "remove comments" is not an answer). Please post one tip per answer. -- borrowed from marcog's idea ;)

 
I really had fun writing this one:
3
A: The Luhn algorithm for verifying credit card numbers, etc.

mootinatorC# 119 characters: bool l(string n){return(String.Join("",n.Reverse().Select((x,i)=>(x-48)*(i%2<1?2:1)+"").ToArray()).Sum(x=>x-48))%10<1;} Not too bad for a code golf n00b in a statically typed language, I hope.

 
@RebeccaChernoff I want to write a "tips for golfing Scheme" and "tips for golfing GolfScript" (though I'm probably not qualified to comment on the latter, at least once we have more "professional" golfers come to the site when the site goes into public beta).
 
I'd hate to see an attempt pre C# 3.
 
@mootinator I bet you did! Did you see my GolfScript solution for that one? :-D
 
I did, actually. :)
Nice explanation.
 
3:50 AM
Thanks! I tried. :-)
 
@RebeccaChernoff Yep, I actually wanted to approve the revision, but I don't have the rep yet. :-P
Mmmm...nasal demons.
 
Hmm, I'll have to check on what the priv level is at for betas. It may not be adjusted down like the rest of the privs.
 
@RebeccaChernoff Thanks! :-) Though, touch wood, I'm not so far from 500 myself.
 
Huh, I've never heard it phrased like that.
 
3:56 AM
What, "touch wood" used in that way?
 
"knock on wood"
 
Hahahah, I'm a New Zealander, so I've got to use some Kiwi expressions.
 
Live in the now, not the past. q:
 
@RebeccaChernoff Oooh, burn.
@ChrisJesterYoung (The "nasal demon" reference was in response to someone testing out (letrec ((x (cons 1 x))) x) in Scheme. That's an error condition, but since R5RS doesn't say what is required to happen with error conditions, it effectively allows undefined behaviour.)
 
4:26 AM
/me debates whether to write commentary for my "obfuscated FizzBuzz" solution.
On the one hand, I did say I'll write commentary so non-GolfScript people can enjoy it.
On the other hand, once I explain it, it's not so obfuscated any more. :-P
Much of the fun of IOCCC is that people get to figure out what the obfuscated program does.
2
And, though the site has files that explain what each submission does, they're rightfully labelled "spoilers".
 
I agree.
 
Good good. Then I won't write commentary for it. I'll simply link to this convo as rationale. :-)
 
4:46 AM
I might try a python implementation of this:
0
Q: Twinkle Twinkle Little Star

idealmachineWrite a program to play the popular English nursery rhyme. Some Wikipedia articles that may be useful: Twinkle Twinkle Little Star (has an audio clip of what your program's output should sound like) Modern musical symbols (to learn about the music notation used above) Note#Note frequency (he...

 
@mootinator Re your comment, I think the OP wants something better than a sinewave.
@mootinator What's the bet he wants you to use a soundfont and all that jazz. :-P
 
@ChrisJesterYoung Oh possibly :)
 
That's way too tiny for the font I'm using, but, yay for Unicode. ☺
 
5:17 AM
Yay also for modern web technologies.
Some 9 years ago, for work, I worked on a web chat system.
Back then, IE 4 and Netscape 4 (:-O) were part of the compatibility matrix.
Ajax was not widely supported.
 
Yeah, it was much more challenging back then. :-P
 
The mere thought of IE 4 makes me sleepless
 
0
A: The Luhn algorithm for verifying credit card numbers, etc.

sepp2kThere must be a better/shorter way, but here's my Haskell solution in 96 characters: l=(==0).(`mod`10).sum.zipWith($)(cycle[id,\x->x`mod`5*2+x`div`5]).reverse.map((+(-48)).fromEnum) Sadly the digitToInt function can only be used if you import Data.Char first. Otherwise I could get down to 8...

That just took me a lot of more work than I expected it to...
 
5:19 AM
:-O
 
But at least I know that it will be at least as hard for people to read than it was for me to write. That's the beauty of code golf.
3
 
5:35 AM
night
 
 
18 hours later…
11:43 PM
@Bass5098: Re Obfuscated Hello World, what's the significance of the numbers 2 and 7?
 
The ASCII value for "H" is 72
 
Hahahahahahaha.
That's hilarious. :-)
 
Forces a little more creativity
 
I have a solution. It's a cheater's solution, but it works.
 
There are quite a few ways to get around the restrictions, most of which can definitely be implemented in the major languages that show up here
 
11:52 PM
Hehehehe, indeed, mine just did. :-P
Since the question doesn't forbid non-ASCII characters, I simply embedded the complement of all the bytes into the string, instead.
Oops. I initially wrote a commentary, then remembered that this is an obfuscation question.
So I stripped out the commentary. :-P
 
Interesting
Never thought of either of the two answers
 
Hahahahaha.
 

« first day (2 days earlier)      last day (4826 days later) »