« first day (1897 days earlier)      last day (2936 days later) » 

3:00 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ Yes it is :)
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Cops and robbers are always fun :-)
 
yeah :D
I'm planning on having the most cops submissions >:|
 
@LuisMendo I thought your submission would be very easy
Until I saw the 5
:(
 
@Adnan Haha. I'm glad it's not
I'm taking a look at yours now
 
The rules say I can hide all my characters, right?
 
3:02 PM
@LuisMendo Good luck :)
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Yes, but then you are restricting less the set of possible alternative codes
 
True. I ask because I have a four-byte program that would be discovered easily if I had shown any of the four :P
maybe time to obsfucate XD
 
Nice! That was the right answer :)
 
Realized that I used range twice :p
 
3:14 PM
Hahaha, the second inclusive range was a no-op though :p
 
what does "intolerant towards 0" mean?
 
^
 
I think it has something to do whether your code works for a(0)
But I'm not sure
 
for the cops n robbers, wouldn't cops simply want to post the sequence?
I mean, it makes it harder for the robbers to crack
 
I don't understand this challenge
"The cop can hide as many characters as is so wished."
So why do people even show any character of their code
 
3:21 PM
But that means that there are more possible codes that also work for that sequence
18 mins ago, by Luis Mendo
@CᴏɴᴏʀO'Bʀɪᴇɴ Yes, but then you are restricting less the set of possible alternative codes
 
if it's not very long I doubt there are many ways to do the same thing
 
Yes, for like 4-byte answers, that might be the best strategy
 
It's actually a neat system: if you hide all the characters in a 100-byte program, then someone could easily outgolf your original submission/find a different OEIS that's easier to implement
 
@NathanMerrill I understand that as: 0 produces an output (tolerant) or an error (intolerant)
@Adnan I knew there was a range involved. But I couldn't even find the function :-P
 
@LuisMendo Hahaha, it's a long list :p
 
3:28 PM
Huh. L doesn't contain the word "range" in its description. That's why couldn't find it!
 
Yeah, ranges are explained with [...]
 
I think it's interesting to see what people are attempting for my entry for the C&R
I just have the server print out the code that's sent to it before executing it
It's also telling me what to document more
like R0 is effectively a noop. They probably wanted to do R 0
Hello back
 
@muddyfish o/
 
lol
 
Hahahaha
 
3:37 PM
HELLOOOOO MUDDYFISH!!!!! - nice code btw
 
yes sorry
 
I should make it so it logs your IP too ;)
 
plot twist, it already does
 
3
Q: What's being surrounded

DowngoatI've always wanted to surround some text with #s, but I have trouble figuring out what I surrounded so in this challenge you'll be writing a program to do just that Examples Input / Outputs are separated by a newline. ### #a# ### a # #a# # a ### # a # # b c # ####### a b ...

 
3 upvotes, unknown time. _UNK / 3 = _UNK
 
3:40 PM
@Doorknob Why do you use Doorknob here and KeyboardFire everywhere else?
 
R1 is effectively a noop too but it makes sure at least one item is on the stack
 
@muddyfish It has something to do with primes, doesn't it
 
R by itself is the same as R2
might do
 
@quartata inertia ¯\_(ツ)_/¯
I can't just change it now
 
I was under the impression that KeyboardFire came first
before Doorknob of Snow
 
3:42 PM
should Cheddar use for a of b or for a in b?
 
@Downgoat Neither; for a (b)
 
for a in b
 
@quartata wat.
 
(I'm a pythonny person)
 
@quartata no, it didn't
 
3:43 PM
@Downgoat for variable (array)
 
It was much later
 
@Doorknob oh, huh
 
@quartata I have never seen that syntax before...
 
@Downgoat Really?
That surprises me.
I won't tell you what language it's from because that'll bias you against it, but suffice to say it's pretty common.
I like it
 
@Adnan 2 1R is the same as 1 2
 
3:44 PM
That's not me :p
 
isn't it?
ok
 
@quartata isn't that how BATCH does it?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Maybe, I don't know.
 
almost
 
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\Conor O'Brien>for /?
Runs a specified command for each file in a set of files.

FOR %variable IN (set) DO command [command-parameters]

  %variable  Specifies a single letter replaceable parameter.
  (set)      Specifies a set of one or more files.  Wildcards may be used.
  command    Specifies the command to carry out for each file.
  command-parameters
             Specifies parameters or switches for the specified command.
 
3:47 PM
That's FOR A IN (B) and it operates on files
 
\o/ Windows user!
 
or /L for arrays
Or is that a loop with steps
 
@zyabin101 :D
^^
why do I know that
 
@person sorry I broke it for a second
 
Hahaha
 
3:49 PM
@quartata Python I have no idea
 
@Downgoat No, Python does for a in b
 
> Okay, don't wanna bother you, but the person sitting to your right is using cough cough Linux. And the person behind you is using Linux. And the person in your very seat is using Linux. Everybody uses Linux.
> Except you. The brave user.
 
@zyabin101 That's because Linux actually works
 
@zyabin101 :D
@quartata not for me
 
@Downgoat OK, all right. It comes from Perl.
But that doesn't change the fact that it's a good idea
 
3:50 PM
I kinda like perl :P
 
perlfect
 
@quartata hm, but there is no keyword...
 
@Downgoat It doesn't need one.
for $a (@b) { ... } is how it looks in Perl.
 
for a of b is just weird.
 
3:52 PM
JavaScript does it....
 
If you're gonna do it like that you might as well do for a in b
@Downgoat I'm not going to warrant that with a reply
 
@quartata cough cough my
 
@Doorknob Oh shush
 
@quartata that wasn't a justification for it's non-weirdness :P
 
for(a : b) à la Java
 
3:53 PM
@Fatalize Oh, that's nice too.
 
@quartata call-with-values is a counter-intuitive function to use. Most people prefer to use let-values or receive instead. The correct invocation for your case, with call-with-values, is (call-with-values (lambda () (partition even? (range 1 5))) (lambda (x y) (map + x y))) (or, golfing with SRFI 26 like I did, (call-with-values (cut partition even? (range 1 5)) (cut map + <...>))).
 
@Fatalize I think I'll do for in, because it's easy to parse...
 
@ChrisJester-Young yikes
 
that syntax will mess up with typing
 
"for a of b" sounds terrible
 
3:54 PM
^
of just doesn't sound right at all.
 
^^
 
@quartata The let-values version looks like: (let-values ([(evens odds) (partition even? (range 1 5))]) (map + evens odds)). Easier to read.
 
That sounds better, yeah.
Anyways, if I can map cons over it and flatten it I can just iterate through
 
Are you sure you're mapping cons and not list?
 
Oh, hrmm
 
3:56 PM
Also, instead of map + flatten, use append-map.
 
oh, even better
 
append-map is known as flatmap in other languages.
 
@CoolestVeto iapologizetou
sowee
 
@LegionMammal978 That was from an actual website. I was reading a webcomic, and I tried to find the previous one by editing the URL...
 
@quartata and in fact, the solution I sent you did indeed use append-map. :-)
 
3:57 PM
Wait, which one? I didn't see that.
Was that the golfed one?
 
Yes.
I can write you the non-golfed version of that code.
 
Ah, OK.
 
@EᴀsᴛᴇʀʟʏIʀᴋ <3
Also: I just named a class Object in Java. I regret everything.
 
@CoolestVeto I named a class Class in a project
 
3:59 PM
HOI
 
HII
 
@CoolestVeto oh do NOT do that
 
@CoolestVeto you should name a variable undefined in JavaScript, that's the worst..
 
HÆI
 

« first day (1897 days earlier)      last day (2936 days later) »