« first day (1762 days earlier)      last day (3074 days later) » 

9:00 AM
what major language paradigm will you find cyclic tag systems in
 
"CPython implementation detail: Objects of different types except numbers are ordered by their type names; objects of the same types that don’t support proper comparison are ordered by their address." <-- oh
Which explains why tuples work, I guess
If only zip returned an object in 2 then it'd probably win
 
@Sp3000 we should have figured that out from looking at the list.
 
It could be a fun challenge to find the shortest code to get CPython to throw one of the more obscure errors.
Like "print recursion" on L275.
 
@quintopia :P indeed (and to answer your question, theoretical/esolang maybe? Not sure)
@feersum Sounds like a fun challenge, but I've never even heard of that one o_O
 
even esolangs deserve paradigms :P
i was trying to get ResPlicate a paradigm
i eventually went with ???????
 
9:07 AM
"The cyclic tag paradigm"
Done :P
 
Me neither...if it just happened all the time it would be too easy :P
 
Easy one to start off: shortest StopIteration
 
next(iter([])) ?
Or open(0) if we can assume stdin is empty :P
 
:P
 
@Sp3000 ResPlicate is maybe sort of kind of in that paradigm?
 
9:10 AM
I had next(zip([])) for Python 3, not sure if next could be replaced by anything
@quintopia Dunno, hard to say - e.g. I'd consider CJam/Golfscript a paradigm, but above that you've also got the "stack-based" category
 
@Sp3000 both would probably fall in the imperative or dataflow paradigm
 
@feersum Shortest UnboundLocalError? (staring at dir(__builtins__) atm)
 
@Sp3000 actually wikipedia places concatenative languages under the "tacit programming" paradigm
Tacit programming, also called point-free style, is a programming paradigm in which function definitions do not identify the arguments (or "points") on which they operate. Instead the definitions merely compose other functions, among which are combinators that manipulate the arguments. Tacit programming is of theoretical interest, because the strict use of composition results in programs that are well adapted for equational reasoning. It is also the natural style of certain programming languages, including APL and its derivatives, and concatenative languages such as Forth. Despite this base, the...
 
@quintopia Hm... actually I feel like I should probably back away a little from this discussion :P
 
@quintopia quintopia, your username looks familiar, were you on the xkcd forums?
 
9:15 AM
it's over. i've got to get a bit of sleep
@xnor yes
i even collab'd an esolang there once
 
@Sp3000 def g():a=a
 
Plus a g() call, but a=a is nice :P
 
You didn't say it had to be a full program ;)
 
Well... I'm invalidating existing answers :P
Hmm quite a lot of exceptions/warnings I've never seen here
 
@feersum you're a python expert i guess
 
9:21 AM
ChildProcessError? How do you even
Hmm don't think I can do this on Windows actually
 
If subprocess.check_call returns nonzero you get a CalledProcessError instead.
 
Hmm that one's not in dir(__builtins__)
 
Would you consider this a stencil?
 
We should have a challenge 'throw the most Python errors in 150 bytes' or something
 
couldn't be
 
9:25 AM
I can't decide if it's a stencil or just decorative. /:
 
ChildProcessError seems to be 3-only.
 
@feersum As in, separate snippets?
 
@feersum how do you throw more than one? chains of trys?
 
I'm not sure exactly.
 
That could work as a challenge tbh, sum of snippets <= 150
 
9:26 AM
Either of those could work, or maybe input 1...N and get a different error for each
 
oh i like that one
 
That sounds more interesting :P
(0...N please? :) )
 
or you could have it be a golf for any language
"throw 25 different errors depending on the value of input. shortest code wins"
 
It's not well-specified for general languages.
 
with some restriction as to what constitutes a thrown error
 
9:28 AM
They may not have typed errors.
 
^^ that, also we'd need to specify what counts as a different error well too
 
i mean
could just restrict it to languages for which the concept is well-defined
 
@quintopia That could be possible. Restricting it to languages with an object-oriented hierarchy of error types.
Also need to watch out for loopholes that allow objects of arbitrary type to be thrown.
 
@feersum I managed to get 99,999,999,999,999,999,999,999,999,999,999,999,999,999,999,999,999. or 9.9999999999999999999999999999999999999999999999999*10^49
 
I'm assuming the goal is different types of errors, not amount
 
9:42 AM
oh, well then I just wasted several minutes /:
 
Good exercise anyway :P
 
(10^50) - 1 errors :P
 
How far can you bump up the recursion limit, anyway?
 
It's here, if you want to see it, haha
 
@ZachGates That would only raise 1 error.
 
9:45 AM
how so
does that giant block count as 1 error /:
 
You don't catch anything, or do different things depending on input.
 
but all you said was 'throw the most Python errors in 150 bytes'
what does input matter?
 
10:10 AM
0
A: Sandbox for Proposed Challenges

feersumComedy of exceptions Your goal is to demonstrate the shortest program or function that can throw 10 different types of errors/exceptions (I use the two interchangeably here) at runtime. This question is only open to languages which have an object-oriented type system for errors. Furthermore, in...

 
11:07 AM
@TanMath Temporary variable - grabs a value from the stack and holds it until called again, at which point it dumps it onto the stack.
@Dennis Nice - it works perfectly. Input on the page seems to be on by default, I'm assuming this is accidental. :P
@GamrCorps Where dat MC answer for my ASCII art?
 
0
Q: c# code to set cursor position in outlook word editor

AdarshI am working with a outlook add-in for HTML content email in C#, I need to set the caret position inside a div to allow user to type when clicking new mail. Is there any option using GetInspector.WordEditor to set the cursor position to star typing the email content

 
0
A: Sandbox for Proposed Challenges

user81655Adjacent Letter Test One aspect of password strength testing is runs of adjacent letters on the keyboard. In this challenge, a program must be created that returns true if a string contains any runs of adjacent letters. What counts as a run of adjacent letters? For this simplified version of a...

 
12:46 PM
Hey guys
 
1:15 PM
...where is everyone
 
Here
 
@quintopia Hi
 
hi
 
1:38 PM
This pattern is a still life in Morley, but doesn't seem to have an official name:
x = 4, y = 5, rule = B368/S245
2bo$bobo$o2bo$obo$bo!
What name should I give it in my spreadsheet?
(I decided to do a second one for Morley)
 
1:51 PM
Heya^^
 
0
Q: Chemical sentences! Encrypting

N3buchadnezzarBackground You are bored in class, and having exhausted all the possible things to write on a standard calculator (Like 8008135) you turn to the periodic table. You want to figure out if you can write your message using the shorthand for chemical elements. The Challenge Input: A sentence, o...

 
@VoteToClose the system is done, I just havent had the time to convert the letters into json.
 
2:06 PM
@VoteToClose That was intentional, but I reverted the change.
 
@VoteToClose just found a neat online tool to so the job. Ill do my best to finish it later today.
 
2:30 PM
0
Q: Chemical sentences! Decrypting

N3buchadnezzarBackground You are sitting in chemistry class and your friend keep sending you these strange letters. It is your job to decrypt the messages into words. This is the inverse of this challenge. The Challenge Input: A list or a string of integers from 1 to 118. Output: The words for each che...

 
2:50 PM
Holy guacamole, Code Review has a design.
 
Yep, and it's actually pretty nice.
 
maybe a bit boring compared to some other recent designs, but it looks nice
 
@SuperJedi224 isn't that morley pattern you posted a mango?
or is a mango larger
 
@quintopia Yeah, it is. Thanks. I wonder why the article on Morley didn't give a name for it?
 
What's the difference between morley and life
they apparently share a still life...
 
2:58 PM
They also share tubs
And beehives
Life is B3/S23
Morley is B368/S245
Morley is also called "Move", apparently
 
ah
 
One notable difference is that, in Morley, an R-Pentomino is a p4 oscillator
In life, it's a methuselah with a lifespan of 1103 generations
 
does it have a replicator?
 
I don't know, but it has a surprisingly common 13c/170 puffer
It produces Big Blinkers as exhaust
 
have you ever implemented a CA simulator?
 
3:07 PM
I wrote a toroidal life simulator in Javascript once, but that's really about it so far
 
I've been thinking of doing it, but it seems difficult to do it well
 
3:54 PM
we are all the idlest
 
@Adriandmen Hi
@DantePuglisi Also hi
 
0
Q: Scoring PHP GET Parameters

MegoGET Parameters With PHP, GET parameters may be specified as command-line arguments, which is a valid form of input by our rules. However, they must be passed in the form argname=value on the command line, because register_globals is off by default, and we assume a default configuration. After an...

 
3
Q: Legen… wait for it…

DennisIn events entirely unrelated to what will hopefully happen to me in the next couple of days, I task you to write code that does the following: Print Legen... wait for it... immediately, with a trailing newline. Wait until the next full hour (when the cron job for awarding the badge runs). Pr...

 
@ProgramFOX Hi
 
4:06 PM
@Downgoat Hi
 
Hi
 
@SuperJedi224 Hi :)
 
@Stefnotch 'Hoy
 
About the Legen... question:
Would:
a=alert,a`Legen... wait for it...`,l=new Date(),z=l.getHours();for(;z==l.getHours(););a`dary!`
be valid (It waits until the hour has changed...)
Hi!
 
@Stefnotch I think so
 
4:13 PM
It waits until the hour has changed. That's the idea.
 
I can't believe Snowman is beating something :P
 
0
A: Sandbox for Proposed Challenges

Generic UserThis might already exist, but through my search I couldn't find anything like it, so here it goes. Find My Number code-golf My friends and I have made are playing a game where we have a variable N that represents a number from 0 to 10. Using an expression they give us containing + - * / for a...

 
Now it's beating two things!
 
@Dennis i was going to post a JS answer, but using alert, it will remove the first alert from the screen while alerting dary!
 
@Doorknob Isn't 36000 ten hours?
 
4:20 PM
vt in Snowman returns time in milliseconds.
wait...
 
for it...
 
@Optimizer Oh yes, that's unfortunate.
 
I need more zeroes then
 
@Dennis unless i do the second alert with the complete string. is that allowed?
 
@Optimizer Would that actually remove the first alert box or would I have to dismiss it manually?
 
4:24 PM
@Dennis u may or maynot dismiss it, second will come on top of it
wait.. it depends
but it can be done.
 
@Optimizer Couldn't you use console.log/print?
 
well
 
@Downgoat How do you get TeaScript to not do this:
Legen... wait for i["t"]...
 
@quartata Try wrapping the string in backpacks instead of "
 
Oh, about my JS answer, I think it won't do anything unless you dismiss the first alert box...
 
4:28 PM
@Downgoat I did.
` Legen... wait for it... `
Compressing the string adds 1 extra byte and the unicode flag sadly (although the output is fine)
 
@quartata aw crap, the regex must not be prepared to handle this case :/
"Legen... wait for i\x74..." should work
 
@Downgoat Works thanks
 
@Optimizer I didn't anticipate the alert problem and I donct want to break existing answers. Using alert is fine.
@Stefnotch CC ^
 
Hm
 
in which form ?
 
4:34 PM
I'm stupid. Is there a shorthand way for Date.now() or new Date()?
I really don't JavaScript much and I'm probably doing this all wrong
 
@Optimizer In any form. It's a common alternative for STDOUT, and I don't want to override that.
 
hmm
 
@quartata +new Date
 
@Doorknob Does Snowman have power/squaring?
 
Snowman has no power
1 simple push can make it fall apart
 
4:38 PM
So, question: What should I put in a big Vitsy library?
 
A modified version that waits until the next full minute should work in TIO btw.
 
l is like for, right? So that wouldn't be what I'd want for a while loop
 
Vote To Close Also Known As Virtual S M of Addison Crump E
 
@VoteToClose Books.
Maybe some CDs if you want.
 
@Optimizer WTF where'd you get my name?
Oh, right, Vitsy. xD
 
4:40 PM
@VoteToClose your license text XD
 
Ugh. I hate how I have to put my name in that. >.> Oh well.
 
you can just make it MIT Or something
 
@quartata -.- Seriously.
 
why do you need your own copyright ?
 
I use CC BY-SA primarily
 
4:41 PM
@Optimizer ¯\_(ツ)_/¯ For the poops and chortles?
 
so what is V M E?
 
@Optimizer ?
 
Vote To Close Also Known As Virtual Senior Member of Addison Crump Enterprise?
 
@Sherlock9 Hello
 
Hello
 
4:43 PM
@Optimizer Well, for one, Vote To Close is not in my inits.
So that's wrong.
 
VTC is not Vote To Close ?
 
Nope.
 
in your github username
 
So can someone fill me in on what we're discussing?
 
Yes. Not vote to close.
 
4:44 PM
ok
 
Weird name?
 
Gemini is SLOW.
 
Virgo is fast
 
Vitsy is slow. c:
 
4:46 PM
@Optimizer Gemini moves at 2560c/16849793. By comparison, a simple glider moves at a full c/4.
 
huh?
 
@Dennis yes
 
how can it be full when its only a quarter?
 
Vital Testing Cannot Accept Kernels Allocated Virtually Sans Mitigation or Accreditation Certificates Ever
 
4:47 PM
And there are spaceships in Life which have speeds as high as c/2
 
Is there a file in Unix that holds system time?
 
I don't suppose that's what your username means @VoteToClose
 
@Sherlock9 Hellno.
 
:D
 
@Doorknob Wouldn't that be shorter than 360... then?
 
4:48 PM
0
Q: Thanksgiving Turkey

Downgoat(Hopefully it's still Thanksgiving for you) You got a turkey for your thanksgiving dinner but you don't know how to evenly distribute it. The problem is, some people eat more than others, so you need to find a solution Input Their will be two inputs, the first will be an ascii art of various p...

 
Oh, there is a -1! I guess I will downvote it too.... (I finally got enough rep!)
 
@Dennis I don't think so
 
Actually, if you zoom in far enough, Gemini is, at some points in its evolution, composed primarily of glider streams
 
What do you have in mind? 3600000 isn't even a perfect square.
 
@VoteToClose Hmm, I was wondering the same thing.
 
4:51 PM
600X10*
now if 10 is a single byte thing, it can be 1 byte shorter.
 
Incidentally, is it bad etiquette to post too many solutions on your own question?
 
No. What is too many?
 
@Doorknob 600^2*10 Right, probably won't help.
 
That would be 600vn2nP10nM which is way longer
 
@VoteToClose Not sure. I have 6 solutions on my question currently, and 2 of them are mine already, Python 3 and Ruby. I have an idea in C and one in Ruby.
@VoteToClose *Python 3 and Golfscript, excuse me
 
4:55 PM
@Sherlock9 ¯\_(ツ)_/¯ You are a contender, do what you want.
 
Alright then. Thanks @VoteToClose
 
(When will Dennis get the badge?)
 
@Stefnotch Tomorrow.
I found something that AppleScript can actually do!
0
A: Legen… wait for it…

VoteToCloseAppleScript, 94 bytes Huh. Surprisingly contending. log"Legen... wait for it..." repeat while(current date)does not contain":00:00" end log"dary!" Since log prints to the Messages pane of Script Editor, I consider it to be the closest output to STDOUT. Basically, if you get the current date, i...

 
65 chatter ?
I suspect Serlock9 is the latest one
 
@Fatalize That's just a clarification that you have to wait until the hour changes, not until the minutes and seconds are both at 00. — Dennis ♦ 19 mins ago
@VoteToClose no, today if he hits 200 rep (@Stefnotch)
 
5:07 PM
@Optimizer Yeah, I think I'm the newest guy.
 
How can I see how much rep Dennis got today?
 
@Stefnotch You hack into @Dennis's account...
 
@Stefnotch most of time, writing down the number "200" and looking at it works quite reliably
4
 
LOL! XD
 
hacking account is the best and easiest solution
 
5:09 PM
Thanks!
 
@Optimizer "easiest"?
 
@MartinBüttner Does my answer follow Dennis's spec now?
 
looks good to me
 
(:C 157 bytes isn't too bad for AppleScript...)
 
157 bytes is too long for PearScript... :P
 
5:18 PM
-.-
So... does unix have a file with system time in it?
 
You could try to use the time stamp of some file..
 
^ Vitsy can't see that, though. I need a file with time as contents.
 
Mini-challenge, given an n-digit decimal number, print the correct fizz buzz output of the number given by the first i digits for all i<=n in order
 
happy thanksgiving! :D
 
Hi
 
5:24 PM
Conway's Game Of Life thing
 
@quintopia Duplicate of literally every question relating to FizzBuzz.
 
Probably. Seems like something more for chat than an actual thread
 
Alright, time for me to stop being anti-social. Have a good Thanksgiving, everyone! If you choose to celebrate that.
 
Mini challenge: output all the numbers from 1 to 10, inclusive
Happy Thanksgiving, everyone!
 
> Currently in the process of testing.
@SuperJedi224 how about testing before you post it? ;)
 
5:28 PM
@MartinBüttner I should know whether it works or not in about 32 minutes
 
@VoteToClose I can't find a thread for it. Everyone seems to want some variant of traditional fizz buzz. Link?
 
you know, you could test it by rewriting it for minutes ;)
 
Cjam, 20 bytes: 1 2 3 4 5 6 7 8 9 10
 
(or changing your system clock I guess)
@ΚριτικσιΛίθος that wouldn't print the spaces. unless you you don't want that?
B,1>S*
 
@ΚριτικσιΛίθος r(1,11)
 
5:30 PM
or B,1>p if you don't care about the output format
or just B,1> if you don't want any separator at all
 
@MartinBüttner @MartinBüttner Heh, lel, I don't know cjam syntax. :)
 
-1
Q: The Heist. Medium difficulty

JanekmuricThe difficult economic situation in the country and reductions in government agricultural subsidy funding have caused Mirko to change his career again, this time to a thief. His first professional endeavour is a jewellery store heist. The store contains N pieces of jewellery, and each piece has ...

 
@VoteToClose jsut need to fix a small bug then Im done
 
The reason I'm thinking about it is this DFA for fizz buzz that proves you could solve it with a regex runciman.hacksoc.org/~taneb/tof.pdf
 
@MartinBüttner Yeah, that's probably a much better idea
 
5:34 PM
@SuperJedi224 prntscr.com/978jvy
2
 
@Dennis You can delete the comment on my question now, I edited it to fit the specs better. ;)
 
Anyone think there's any language that can do better than 13 for Thanksgiving?
0
A: When is Thanksgiving?

Thomas KwaTI-BASIC, 13 bytes Tested on my TI-84+ calculator 29.11-dayOfWk(Ans,9,1 Thankgiving is November 29, minus the day of the week of September 1st, where 1 is Sunday and 7 is Saturday. This outputs in the format DD.MM. Test cases: 2015 gives 26.11, 1917 gives 22.11 have been verified.

 
I'm afraid CJam or K or something will swoop in and get 16-bonus=12
I think that's the fastest 50 rep I've gotten
 
5:51 PM
Does it work for negative years @ThomasKwa?
 
Ah, darn
Incidentally, is there a post like this for Easter?
 
Is there a year zero?
 
Numerically, yes. It's 1 BC
-1 is 2 BC, and so on
 
If 1 is 2 BC (not 1 BC) I could get 15 - 25% = 11.25 points
 
5:52 PM
No 0 AD?
 
Nope. It's excluded from the BC/AD system
So when they say Christ was probably born in 6 BC, that -5
 
@VoteToClose IT WORKS!!!!
 
fangirls
 
o-o I can fangirl.
 
5:57 PM
From what I'm reading, this exclusion of 0 AD is partially because the BC/AD system predates 0 being included in European numbers
 
I mostly say 'fangirl' to emphasize the screaming with excitement.
 
What works?
 
@anOKsquirrel Not bad
 

« first day (1762 days earlier)      last day (3074 days later) »