« first day (1405 days earlier)      last day (3443 days later) » 

7:01 PM
Hmm maybe not, that's weird
(I'm testing with this: at the bottom)
solve([4,1,1,3,1,4,1,2,3,2])
print()
solve([4,1,1,3,1,4,1,2,3,2])
Spec additions seem okay to me
Oh... I know why :/
FOUND_ANGLE_STRS is a global
 
sweet, just got an email that the first publication with my name on it is now on arXiv :)
6
 
It stores found solutions so we don't get duplicates... hence the problem
:o nice! What's it on?
 
it's "just" conference proceedings, but a handful of actual journal articles will be published on this, too, in the near future
 
Ahaha nice (physics goes over my head though)
Reran 100 tests, 8 rods, length 1-4: {3: 24, 2: 20, 0: 17, 1: 15, 4: 14, 5: 7, 6: 2, 7: 1}
There's less zeroes than I thought
 
@MartinBüttner how many publications you have ?
 
7:13 PM
(and again: {0: 24, 2: 20, 3: 19, 4: 14, 1: 8, 5: 6, 6: 6, 7: 2, 8: 1})
 
@Optimizer that's the first, but as I said, a few more are (hopefully) being published in the future
 
:)
 
@Sp3000 actually, it's mostly maths (we primarily apply it in physics, but it's quite general algorithms for signal processing on the sphere)
 
Oh? It looked sort of like stuff that a few friends of mine are doing (something about quantum and matrix groups), but my linear algebra's not good enough :P
 
Wow, Arrow+Flash was super nice ..
 
7:21 PM
@Optimizer Did you just watch the pilot?
 
dude
this week is combo week
 
Ehhh you must be talking about something else lol.
 
and I said "Arrow + Flash"
 
Arrow made a cameo in the pilot episode of Flash.
 
and this week they both come together in both of the epis
 
7:23 PM
Oh really?!
 
yup. yest flash feat arrow, today arrow feat flash
 
@Sp3000 did you actually confirm my results after fixing the code?
 
I confirmed the few I tested on, and they were okay
Did you want me to go through all of them?
 
@Optimizer you definitely abbreviate too many words...
 
@Optimizer I quit Arrow halfway through season 2. It was getting to be a little too dramatic. Even soap opera-ish at times.
I'm loving the Flash, but it's headed down the same road.
 
7:24 PM
@Sp3000 no no... just the ones you disagreed with ^^
 
@MartinBüttner Anyone following the series would have known, it was in news a lot
 
I'm talking about "yest" and "epis" :P
 
:D
and feat
 
Meb we should spk lk ths all day.
Or not... that was annoying.
 
that is not the same
I <s>cut</s> optimize down obv words
not remove vowels
 
7:29 PM
Maybe => meb != remove vowels
 
spk lk
 
example does not pattern mk
I have to think way harder to type "optimized" words than I do to type it out regularly
 
lulz
 
bhld t pwr of cntxt, is't it amz?
 
wow, that was easier to understand than it looks
 
7:32 PM
"I cdn'uolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg: the phaonmneel pweor of the hmuan mnid. Aoccdrnig to a rseearch taem at Cmabrigde Uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoatnt tihng is taht the frist and lsat ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it wouthit a porbelm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Scuh a cdonition is arppoiatrely cllaed Typoglycemia .
 
Ahaha I rmmbr tht
 
As soon as I hit the first colon (:), I start reading at an almost normal pace.
 
glfd ou fv chrs
 
Ok that one went way over my head ^
 
golfed out few chars
 
7:34 PM
And added a "v" apparently
 
Ooh cls, t thrd wrd is inco
 
@Sp3000 how long does your code take for an N=12 test case?
 
a fv mnts
 
I don't think very long, but I don't want to test yet because it's still on N=16 (running through all the cases just in case anyway)
fv is wht cms aft for
 
hw cm ?
 
7:41 PM
hmm? hw cm wht?
 
@PeterTaylor what do you think about the fastest code scoring for the polyomino thing?
 
@Sp3000 fv is is what comes after for
 
Maybe I shouldn't have golfed out the "u" :P
 
@Optimizer wht cms aft fr fr u?
 
ugh, I was thinking of the for loop for :|
 
7:44 PM
We have styles in our CSS like
#Foo { width:80%; }
#Foo { width:90%; }
This is truly a nightmare of a style sheet
 
sumon's bn dng to mch prgrmg
 
god! sumon! :D
 
I sumon R# to fix prob
 
nd 2 is shorter
rpound ?
 
ReSharper
 
7:46 PM
@Optimizer rhash -> rash
 
@MartinBüttner Cases look okay, [1]*12 takes 11 seconds, will try on others
 
gyz ths is goin out f hnds
 
don't worry about the timing, that's good enough
I just want to make sure that the N=16 benchmark isn't trivial to beat
 
Visual Studio is laughing at me. "ReSharper fails. You lose 8 development hours."
 
Yeah N=16 took a few tens of minutes I think
 
7:47 PM
I'm sure Ell, feersum, Keith and Peter will do it, but it should take some work ;)
 
(naive implementation is naive)
 
@Sp3000 naive implementation is also in Python :P
 
Well if they start off with not Python...
:P
I wonder if PyPy's any better
 
how about you wait for the cjam program to finish with your browser completely frozen..
.. for 11 minutes
 
... 1.6 seconds for [1]*12
 
7:48 PM
@Optimizer yeah, that online interpreter needs some serious work :D
@Sp3000 that's okay
 
What the heck have I been waiting for for the past half hour
D:
 
@MartinBüttner that's just GWT being stupid
 
(PyPy's not always faster though)
(for general problems I mean)
 
python is super slow language ?
 
@Optimizer not as bad as Ruby :P
 
7:49 PM
isn't ruby on rails a popular framework for websites ?
 
(Let's see how [1]*16 goes)
 
why is it so popular if ruby is so slow
 
@Optimizer because on websites, the bottleneck is the connection anyway, I guess?
 
not nowadays
specially for internal applications
 
(btw I can get about 8 times speedup by just sticking to strings that start with R+U.* :D)
... 73.34 seconds for N=16. What have I been doing for the past half hour
@MartinBüttner you might want to raise that benchmark :P
 
7:51 PM
are you asteriks ?
 
That was just a normal regex :P
 
I am a *!
Supah stah!
 
im a *! (glfd ou to chrs)
 
@Sp3000 you can't though... some solutions require you to start with RD
@Sp3000 damn.
then again...
 
7:54 PM
... oh damn. Four times speedup? :D
 
doing 50 of them in 5 minutes still requires a speedup of more than factor 10
hmmm
should I do 100 chains each, or longer chains?
actually that's a stupid question
100 chains -> factor of 2... longer chains -> factor of 3 for every increment in N
does anyone Befunge around here?
1
A: Print a Negative of your Code

Pietu1998Befunge, 9x9 I have no idea why I did this. It took way too long. I have a massive headache now. 8>v_20gv v9<^v#<4 1@,/<>^6 v1,*$:<p ->,!-^87 :^*25<^g _88g,^^4 9vp\v#6< @ Output: @ @ @ @ @ @ @ @ $$$$$$$$ Some ...

I need to learn this language some day
 
Ahaha Befunge nice
(Personally I prefer ><> though, for some reason)
Hang on... (trying to figure out if the code reads the source)
 
added benchmark sets up to N=20
 
Okay, it only uses g to get the @ sign at (8, 8) in order to immediately print it at the end of each of the first few lines
 
that's fine
 
8:04 PM
befunge program are aware of themselves ?
 
"aware"?
 
They can read their own source and modify it, if that's what you mean
Hmmm
 
without knowing the filename ?
 
Yes
Befunge has two memory locations: an operator stack and the 'fungespace'. The latter is a 2D grid (infinite in Befunge-98) initialised to the source code, and is used both for storage and for the actual code (so you can dynamically generate code at run-time)
One of the stated goals of Befunge was to make it as hard as possible to compile :P
 
8:09 PM
so you can chang ecode at runtime and then run that code
 
@Optimizer Try 88*90p here: bedroomlan.org/tools/befunge-93-playground
 
... so that becomes a new runtime .
 
@MartinBüttner hehe, reminds me of another Befunge program: github.com/fis/fungot/blob/master/fungot.b98
 
(you'll need to hit Input Code and Reset)
 
why did the @ had so many spaced before it ?
64 was some sort of address ?
 
8:11 PM
64 is ASCII for @
I put the @ at (9, 0), hence the spaces
 
what if you want to put at (90, 1) ?
vs (9, 01) (bad example, I know)
 
99*9+ to get 90 I'd imagine
 
There are lots of "interesting" tricks to pull when golfing Befunge.. for instance, loops are often a single line of the from .#v_, so to negate the condition you'd do .!#_, but there's a more clever way: reverse the IP direction so that you get v_# instead, going left-to-right
 
oh, all characters are tokens ?
 
(alternatively "Z" works (ASCII 90))
 
8:13 PM
Yep, all instructions are single-character
 
why did 88*901p print a - ?
 
You're putting ASCII 9 at (0, 1)
 
That's probably how it shows nonprintables
 
I see
 
@FireFly what the...
 
8:14 PM
It's an IRC bot :D
And it's actually in active use
 
I love how comments are written in 2D languages
It'd be funny if some comments were used as part of the code
 
@FireFly IRC bot ?
 
5 mins ago, by FireFly
@MartinBüttner hehe, reminds me of another Befunge program: https://github.com/fis/fungot/blob/master/fungot.b98
 
oh
 
8:39 PM
Heck yea! I cut 2,100 lines of CSS down to 400 lines. Now I just have to categorize them and add comments and I'm done!
 
An hour later: "... aww, now it's 2,100 lines again. :("
 
Ah, good old negative code...
 
a release later: "... why is the home page all white ?" ...
 
@Sp3000 two Rains in a row o.O ... what have I done to deserve this
 
We were going for a craigslist-style approach :)
 
8:44 PM
@MartinBüttner It's a sign that you're getting too good :P
 
I got rid of 1400 lines last week and they haven't written a single bug about it. In fact, we only have one bug currently: Product fails to install.
 
D:
 
@Sp3000 so far today, I haven't been able to break my record from yesterday
(and I just had two consecutive Rains again...)
 
Two of me in a row!
 
@Rainbolt In that case, I can get rid of a lot more lines for you.
 
8:45 PM
@Rainbolt exactly... what have I done to deserve this?
 
Everyone deserves two of me.
Except me, because that would create an unending cycle of deserving.
We don't need a Rainbolt stack overflow
 
So by the Transitive Property of Deserving, everyone deserves more than you.
... that was your point, right?
 
@Doorknob冰 It's funny. While reading your comment, I had a huge smile on my face, but I felt very sad inside.
 
8:59 PM
@Doorknob冰 If you refresh me, I'll join in your cold parade for the next couple of months.
 
Done. :D
 
Yay!
 
@Doorknob冰 link o...
 
@hichris123 Dangit, I can't kick you because of your blue protection. :P
 
@Sp3000 I swear I just had 10 triple-c's in a row o.O
 
9:07 PM
What's this about?
3 hours ago, by Doorknob 冰
@hichris123 don't you dare
 
Well... good practice? :P
 
@Sp3000 yeah I survived all of them, and then there were two C's in the same direction, and obviously, I kept turning :D
 
XD
 
It actually started in TL, so I can't show you that. :P
 
@Doorknob冰 You sure? I thought it was the tavern.
 
9:10 PM
Oh yeah, it was:
 
in Tavern on the Meta on Meta Stack Exchange Chat, yesterday, by Doorknob 冰
@hichris123 Read my profile description. ;)
Obsolete.
 
@Sp3000 improved my record from 32 to 34... but now I'm not getting anywhere near it... I should rather write the draft for the other challenge
 
Ahaha have fun, I should sleep :/
 
@Rainbolt I'm disappointed by the lack of namechange...
@Sp3000 I'll let you know tomorrow if I need help collecting code snippets ;)
 
Ahaha k :)
 
9:17 PM
@MartinBüttner I could change it to Icebolt but that would hardly make sense.
 
@Rainbolt Snowbolt
 
Rainbolt only makes sense because we know your name ;)
 
What is autumn then?
Spring is the only one for Rainbolt
 
while the chatroom is full, can I get some opinions about posting this as two sister challenges (code golf and fastest code)
 
Heatbolt = Summer
Or Firebolt.
 
9:20 PM
Leafbolt
 
When I die, I'll be deadbolt.
Hahahahahha I crack myself up!
 
@Rainbolt It's okay, I already have one of those.
 
@MartinBüttner How long does a golfed one take? If it's really fast even golfed, fastest code might be a stretch as a separate one.
 
@Doorknob冰 Sorry that looked really boring starred so I unstarred lol.
 
@Geobits I think optimisation will definitely cost characters.
For starters, the shortest is probably to just enumerate all 3^n leffturn-rightturn-straightahead tuples and check them for validity and eliminate duplicates.
Optimisation will be done either by pruning that search space, which costs characters, or by solving subset sum twice (which should be O(2^n), which I also think should take more characters.
It's definitely not one of those problems where there's an elegant solution that's both short and fast enough to be hard to beat.
 
9:25 PM
@MartinBüttner I have an important question for you.
 
... so apparently I have the "least helpful" post on the site. Woohoo, I'm so proud of myself! :P
2
 
Furthermore, the fast languages usually aren't the terse ones.
@Rainbolt Are you gonna ask it? ;)
 
@MartinBüttner What is a leffturn?
 
@Rainbolt that's why you waited so long...
@Doorknob冰 please back me up here...
 
I type slowly...
I just started on another CSS, and I found
.TreyClass
{
    visibility:hidden;
}
Trey worked here before me
Or maybe he's still here and we just can't see him.
 
9:30 PM
remove the directive then ;)
 
I'm scared :(
 
Have you seen Shutter?
 
It's possible. Horror movies start to blend together
 
@Rainbolt thanks for your constructive feedback though ;)
 
Hmm. How do you toggle the visibility of a control? According to this guy:
.MyControlVisible { blah; foo; visibility:visible;}
.MyControlHidden { blah; foo; visibility:hidden;}
 
9:43 PM
oh no, it's the dreaded orthographic Rainbolt
 
0
A: Sandbox for Proposed Challenges

Martin BüttnerWhat language is this written in? popularity-contest / code-challenge (I have no idea what other tags are applicable here.) You know how you sometimes spot a snippet of code and immediately know what programming language it is? For this challenge, I want you to think about how you do this, and ...

 
@PeterTaylor just saw your comment. so which one would you rather see? if I have to choose, I'd probably go for the fastest code.
 
Fastest code seems likely to be more interesting.
 
@PeterTaylor k... do you think the spec and scoring for the fastest-code part are solid?
@Rainbolt regarding your comment... a) you misquoted me... b) I cannot possibly know if another language exists in which any piece of code is valid, plus any piece of code is a polyglot (brainfuck + HQ9+ + whitespace + Lenguage + ...)
 
@MartinBüttner "Intentional" belongs with the verb in the sentence, so I'd say you mispoke.
You either intentionally includes a polyglot or you didn't.
 
9:56 PM
no
I mean
I won't include any piece of code that was intended to be a polyglot
 
But you might include one that is accidentally a polyglot?
 
@Rainbolt as I said. every string is accidentally a polyglot
 
I might accidentally include a polyglot.
I might include an accidental polyglot.
Whatever. You're just being difficult.
 
that's a difference
what?
okay, if you're not making a distinction between an accidental and an intentional polyglot, then there is no such thing as code that is not a polyglot
in that case I cannot exclude polyglots
so all I can do is include code that was written to be valid in a particular language
I can't do anything about the fact that it will also be valid Whitespace code
or Brainfuck or...
so all I can do is to exclude code that was written with the intention of being equally valid in two languages
I don't know what's difficult about that.
 
Code doesn't have intentions....
You are just playing with words.
 
10:00 PM
the author does...
 
So the criteria for inclusion is that the author didn't "intend" for it to be a polyglot? That's so pointless.
 
the criterion is that the code makes much more sense in one language than another. if you see a piece of Python code, you wouldn't immediately think "damn is this Python or Whitespace?"
would you?
so I think presenting the program with a Python snippet, one can reasonably expect it to not take it for Whitespace, even though it's a polyglot.
 
You know what, I'll just revise my comment and you can have it your way.
Done.
How the heck am I supposed to know what to output if the input is valid in multiple languages? You have not described this.
 
How do you do it yourself when you see code?
(also, the output will be included with the code snippets, although not given to the program, obviously)
 
You can't possibly be asking me to explain how my brain works when I read code.
 
10:06 PM
well that's the thing with optimisation challenges that can't be solved optimally... I can't tell you how my brain counts grains of rice either, but it still makes for a valid challenge.
 
@MartinBüttner Only if the spec is solid. Your new spec isn't.
The output for a polyglot is totally ambiguous right now. Every challenge should have a clear definition of input, output, and how to connect the two.
 
a polyglot == a string
 
So what should we output when a string is passed in as input?
 
the most likely language this is code for
 
At what point was there any question that this was anything other than a pop contest?
 
10:10 PM
cool, so say I whitelist languages... even then I don't think I can be 100% sure no two of them could have a polyglot... but I guess I could just check that no piece of code actually chosen for the challenge is actually valid in two of them.
but then the programs are again limited to the exact set of snippets I provide for the challenge, which ruins the entire idea.
 
So you can either whitelist (which ruins the entire idea) or pop contest (the place where specs go when they are unclear but too cool to ditch)
When I wrote my comment, I (maybe wrongly) assumed that you wanted to pull the challenge out of pop contest territory. I'm not out to ruin your challenge. I just made two suggestions that would make the winner objectively identifiable.
 
I don't see how a challenge where you could get the output wrong is unclear. That's what half the optimisation s are like. If I tell you how to figure out the language from the snippet, I'm prescribing an algorithm, which doesn't make any sense either.
 
No you don't understand. You have failed to identify what "wrong output" even means. It's like you aren't listening to me at all.
 
@Rainbolt Yes, and I appreciate that. But I think any attempt to make it this rigid will make it an inverse kolmogorov-complexity/regex-golf challenge.
 
I have nothing against programs who get the answer wrong. I have a problem with not describing what wrong is.
 
10:15 PM
do you have a suggestion for defining it?
 
I apologize for making a recommendation that would solve this problem. Next time I'll be sure to just point out the hole in your spec and leave suggestions to everyone else.
 
that was a serious question
 
Create a whitelist. Output the name of every language that each snippet fits.
I don't understand how this limits you to an original set of snippets. You whitelist languages, not snippets.
 
hm, with outputting every language it might not... what I said was choosing the sets such that only one answer is possible... that would have limited the challenge to this set, because there would be snippets out there, that aren't valid in only one language
(removed)
 
:18909404 Response to removed
Weird it won't highlight.
That was ":18909404 Response to removed"
 
10:23 PM
If you're happy and you know it, syntax error!
 
Syntax error.
 
puff pastry + figs + goats cheese + honey --> oven --> bliss
 
They turn into an oven, and then they turn into bliss?
 
exactly
you should try it
you need a Moonstone though
anyway... I might just scrap the challenge... I can't see how I would determine reliably all the languages that a couple hundred pieces of code are valid in... except by limiting the languages way too much
 
I know
Download 20 compilers and a command that will run them all on a particular input file
Create a list of the extensions for each file type
Save each snippet to 20 files and try to compile them
If it succeeds then it's valid.
 
10:30 PM
@Rainbolt you, I might accidentally run malicious code by doing so :P
 
Take your snippets from Code Review or something
Well that doesn't really mean anything... nevermind
Someone could have a valid reason for deleting their user dir
 
furthermore, snippets don't necessarily compile at all
 
I know
Do you have Windows 8?
Find a Windws 8 machine and run on a VM
Or just run on a VM (but Windows 8 makes it ez)
 
@MartinBüttner Yes, I'd have commented otherwise.
 
0
Q: Forming Polyominoes with a Chain of Rods

Martin BüttnerBackground Consider a (closed) chain of rods, each of which has integer length. How many distinct hole-free polyominoes can you form with a given chain? Or in other words, how many different non-self-intersecting polygons with axis-aligned sides can you form with a given chain? Let's look at an...

btw I came up with this challenge while idly staring at the Site Stats box on the front page and feeling the sudden urge to fold the top right corner inside o.O
 
10:52 PM
I told me old coworker/classmate that I would tutor him if he
1. Drove to my workplace and
2. Picked up a 44 oz. Dr. Pepper on the way
So he's here and he drank half of the Dr. Pepper already
 
in that case tutor only half of him
 
Turns out he was just joking and he just wanted to check the place out and then leave
My head is throbbing. Need caffeine.
 
I want to share a small optimization idea for the polyomino rod chain problem, despite being unlikely to attempt a solution myself
 

« first day (1405 days earlier)      last day (3443 days later) »