« first day (1803 days earlier)      last day (1791 days later) » 

12:00 AM
Yes, but golfier.
 
Posting in the Pyth chat also works if you want to give suggestions
 
Okay.
 
@isaacg Hi! I've had a question about Pyth for a while. Reading the herokuapp descriptions, I cannot find a way to form an array literal. Is this possible in Pyth?
 
[
 
Yeah - it's [
 
12:01 AM
ninjaed each other. :P
 
Since arrays can be arbitrarily long, you'll need to end it with ) if you want other code after that
 
Huh. I tried that and I got [1.[2.[3]]]
IIRC
 
A single [
 
There's no separators
 
12:02 AM
Ohh
 
No commas
You'll need spaces, though
 
so [1 2 3 4 5)?
 
Or else it'll think it's one number
But if it was anything but numbers, no spaces either
 
12:04 AM
[1 4 6) doesn't do [1, ,4, , ,6]?
Or is that not Python
 
No
2
The spaces are just to separate numbers
 
oh
Sorry, Pyth noob
 
If you want actual strings consisting of spaces, use d
IT's OK
 
@isaacg thanks
Fun fact: I created Jolf because I didn't know how to make an array literal in Pyth :P
 
@isaacg So emphatic
IT IS ALRIGHT CONOR DO NOT BE AFRAID ISAAC IS HERE FOR YOU
2
 
12:07 AM
@AlexA. yay! \o/
 
12:36 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ I just answered the Char Value Calculator question and my answer is very similar to Jolf's.
 
@Cyoce Huh!
@Cyoce Maybe...
I kinda want to write a PlatyPar to Jolf converter
Just to see what happens
 
Might be a little difficult
If I understand correctly Jolf uses variables whereas PlatyPar uses a stack
 
That's why it'll be fun
 
Then have fun
 
Hello 476
 
12:42 AM
476?
 
1:07 AM
Someone want to help me with repl.it/Bbtv/0 and repl.it/Bbtw/0? Both return different outputs, and the C output is the correct one. (Translated from C to JS.)
 
So....
Explain to me which is which?
oh wait nvm
@ՊՓԼՃՐՊՃՈԲՍԼ Any idea as to what a[52514] does? I'm baffled.
 
Creates an array of length 52514.
(Thanks to quartata for telling me that!)
 
Oh.
That's weird.
Is that the desired digit count, or something?
Only 15k digits are made
 
1:20 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ I'm not too sure either... cs.ox.ac.uk/jeremy.gibbons/publications/spigot.pdf is where I got it from.
 
@ՊՓԼՃՐՊՃՈԲՍԼ Hm. Maybe I could make sense of the maths.
52514 apx. pi ^ 9.5
hmmmm
> `printf`
> If successful, the total number of characters written is returned. On failure, a negative number is returned.
That's what h is
console.log returns undefined, afaik
 
Oh... darnit!
Good catch!
 
So, (h?a[b]:f/5) would be "If successful and if not zero chars were printed, return a[b], otherwise f/5"
Thanks ^_^
 
suggestions for a fix/polyfill?
 
a=new Array(c=52514);for(;b=c-=14;console.log(h=("000"+(e+d/f)).length))for(e=d%=f;g=--b*2;d/=g)d=d*b+f*(h?a[b]:f/5),a[b]=d%--g;
My attempt at a direct translation, using your padding zero technique
Not sure if it works
wait
forgot f
d is never defined in the C source
wait I lie
 
1:33 AM
It is, but since it's declared in the global scope, it's predefined to 0.
Same with h.
 
Yeah, I should really learn C.
 
Don't.
It's hardly used anymore iirc
 
a=new Array(c=52514);f=1e4;for(d=h=0;b=c-=14;console.log(h=("000"+(e+d/f)).length))for(e=d%=f;g=--b*2;d/=g)d=d*b+f*(h?a[b]:f/5),a[b]=d%--g;
VM161:2 21
3VM161:2 20
VM161:2 21
2VM161:2 20
VM161:2 19
6VM161:2 20
2VM161:2 21
VM161:2 20
VM161:2 19
VM161:2 21
7VM161:2 20
VM161:2 21
9VM161:2 20
Results from console.log on chrome
OH SHOOT MADE A MISTAKE
 
1:37 AM
0
Q: A 4x4 Challenge

Zach GatesA while back, I created a simple brain game called Enumerate (based on Takuzu). Your challenge is to play this game. Task Solve a game of 4x4 Enumerate. Receive a starting grid via STDIN or command line. Output the solved grid via STDOUT or writing to file. Rules There must be the sam...

 
I think it's working :D
 
@CᴏɴᴏʀO'Bʀɪᴇɴ This doesn't return digits of pi, tho
 
3 mins ago, by Cᴏɴᴏʀ O'Bʀɪᴇɴ
OH SHOOT MADE A MISTAKE
 
Oh nvm
@CᴏɴᴏʀO'Bʀɪᴇɴ CODE PLZ
 
a=new Array(c=52514);f=1e4;for(d=h=0;b=c-=14;h=("000"+(e+d/f)).length,console.log("000"+(e+d/f)))for(e=d%=f;g=--b*2;d/=g)d=d*b+f*(h?a[b]:f/5),a[b]=d%--g;
That doesn't return the result either
It's consoled to the log
You'd have to (a) remove the zero padding part (b) append h to a string
 
1:41 AM
No, it should log the digits.
 
oh
0003141.5926535897934
VM80:2 0005928.335875768815
VM80:2 0008002.038567049946
VM80:2 0002603.199601654043
VM80:2 0001161.4491909277363
VM80:2 0009662.246514936365
VM80:2 0008988.612783784425
VM80:2 0005865.38922090756
VM80:2 000173.6188309484822
VM80:2 0006189.632422508544
VM80:2 0008150.344344050989
VM80:2 0009223.217958908806
VM80:2 0002808.194364243771
VM80:2 0007982.897394857567
VM80:2 0001840.8664678135415
VM80:2 0001140.3869444721183
VM80:2 0003938.563286744113
VM80:2 0007341.45872050646
VM80:2 0006448.7386230114425
I assume it's working, anyhow, by the first line
 
The rest of the digits are off though... Hmm.
 
they are? D:
Maybe f is the precision....
By decreasing the precision, we could get (less digits) for (more accuracy)?
I don't really know what the algorithm is doing
It looks like a nice pseudo-random number generator...
 
2:13 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ I'm not sure of what I think about ~0 compiling to Infinity.
 
@Cyoce :D You read the source code?
 
oh
I didn't think I did that yet o_O
Yeah, I'm moving it to a Math constant
It's going to be msomething or other
Let me do that now, actually
 
ok
 
m% = Infinity
 
2:16 AM
m/
 
Hmm maybe that's better
 
\m/ metal
 
m/ = Infinity
 
And maybe you want to mention Jolf on your profile? I only see "simplex"
 
2:18 AM
0
A: Make the pattern from composition notebooks

LegionMammal978Mathematica Blur[Binarize[Blur[RandomImage[1, {1000, 1000}, ImageSize -> Large], 6], .52]] Quite simple. Creates a random grayscale image, blurs it, takes the pixels above a threshold, and blurs it again. It uses a couple of hand-tweaked values. The result:

 
That thing you did.
And never finished.
 
Who needs Perlin noise?
 
I'm actually redesigning it @El'endiaStarman
It's in my notebook.
 
ahh, okay
 
Your "notebook"?
 
2:19 AM
I was also making an obscure reference to an old movie.
That Thing You Do! is a 1996 American musical comedy drama film written, directed by, and co-starring Tom Hanks. Set in the summer of 1964, the movie tells the story of the rise and fall of a one-hit wonder pop band. The film also resulted in a musical hit with the song "That Thing You Do". == PlotEdit == In 1964, Guy Patterson (Tom Everett Scott), an aspiring jazz drummer, is asked by Jimmy Mattingly (Johnathon Schaech) and Lenny Haise (Steve Zahn) to sit in with their band (including bass player (Ethan Embry), who as a running gag is never named but is always referred to as "the bass player"...
 
XD
@Cyoce Yeah, I keep a few notebooks to write my thoughts down or to prove stuff when I'm bored.
don't judge
 
A paper notebook?
 
I have multiple.
I love 'em.
 
I also have a oneNote notebook
@El'endiaStarman :D me too
 
2:21 AM
I write incredibly slowly and have terrible writing so I type everything
I couldn't imagine having a physical notebook
 
Are you still in school?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ yes
 
@El'endiaStarman That was indeed an obscure reference to an old movie.
 
@Cyoce Are you allowed to type your notes?
 
2:23 AM
They let us bring computers and use them for notes and things
 
DANCE! EVERYBODY DANCE!
4
 
@AlexA. Have you seen it? I've only seen it because my parents had the movie and watched it a couple times.
 
@El'endiaStarman No, but I've heard of it.
 
@Cyoce Well, it's worth noting that maybe half the stuff in the notebook(s) I carry everywhere is writing.
Probably less in the ones I carried before.
 
2:33 AM
nothing to see here, move along
4
 
Oh, now @NewMetaPosts is fast...
 
@NewMetaPosts Who told you you could have an upvote?
 
@AlexA. What were you testing anyway?
 
Science
 
For SCIENCE!
0
A: Best of PPCG 2015 — Call for Categories

Cᴏɴᴏʀ O'BʀɪᴇɴRep Vacuum To the valid answer on a code-golf question whose byte count is shortest, but is not the highest-voted answer. (The award will be determined by the gap between the highest-voted answer and aforementioned answer.)

Any suggestions?
Thoughts?
 
2:49 AM
I'm not a big fan of that particular proposal because usually when a submission is really short but it isn't the highest voted, it's not all that clever. That, at least in my mind, implies that it isn't necessarily deserving of a bounty.
 
@AlexA. me!
 
But it's the best on a . Cleverness doesn't matter.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ you should add a markdown button to your Jolf interpreter like mine has. It's really useful when posting answers.
 
@Cyoce What does it do?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Yes, but being the shortest will get you the coveted check mark. Having an interesting solution will get you votes.
 
2:51 AM
It generates the markdown for an answer
 
@AlexA. Maybe "also uncheck-marked"?
@Cyoce It doesn't work for me.
 
SyntaxError: let is a reserved identifier
 eval.js:53:4
ReferenceError: markdown_gen is not defined
 page.html:1:1
ReferenceError: rawupdate is not defined
 page.html:1:1
ReferenceError: markdown_gen is not defined
 page.html:1:1
ReferenceError: compile_program is not defined
 page.html:1:1
ReferenceError: markdown_gen is not defined
 page.html:1:1
ReferenceError: edit_program is not defined
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I'm not sure what you mean
 
@AlexA. Non-accepted answer that satisfies said properties?
 
2:52 AM
Let is a reserved identifier?
What?
Do you support ES6?
 
It's firefox o_o
 
Oh
I've only tried it on chrome :(
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Why would it be uncheckmarked unless invalid?
 
Why would you use let as a variable name anyway? o.O
 
I don't
 
2:53 AM
@trichoplax I've seen it a lot.
 
@trichoplax If something shorter comes along
 
I respect the right of question authors to never accept an answer, so I suppose there may be many
 
@Cyoce oh my God it looks like your code blew up
 
That always happens when people run my code on something other than the 3 devices I own (I don't know why, I only test it on my mac, but it works on my computers and only my computers)
 
2:55 AM
Fascinating that the markdown button doesn't work, but the page still loads...
 
I'm going to be a little CR on you. Is that okay? ^^"
 
Just as long as it's not permanent
 
We can't afford to lose you
 
2:56 AM
CR is like the dark side
 
But this is the light side of CR: basic things.
const mainbox = document.getElementById('main');
mainbox.focus();
 
Yeeeeees?
 
Your script is loaded at the top of the page. At this point, none of the elements of loaded. So you cannot focus on it, nor get the reference all the time
:26629232 Thank you RegEx Bird
 
:P
 
function codelink_get (){
  var code = rawbox.value;
  linkbox.value = 'https://rawgit.com/cyoce/PlatyPar/master/page.html' + gen_query ({code:code});
  linkbox.focus();
// v-- WHAT IS THAT
	return linkbox.value;
}
 
2:58 AM
> XML is like violence - if it doesn’t solve your problems, you are not using enough of it.
._.
 
I'm lazy
 
Also, since you only use code once, you should just do linkbox.value = 'https://rawgit.com/cyoce/PlatyPar/master/page.html' + gen_query ({code:rawbox.value});
 
@AlexA. That should be Apple's motto.
 
Haha why?
 
There's so much XML everywhere.
 
3:00 AM
Also, your code will only run (if at all) on Chrome and Firefox until hell freezes over :P
 
K
 
function genNum(n,radix) {
	var digits = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
 
what now
 
return 'pies';}
 
return '3.14159...s'?
 
3:01 AM
;} what emoticon is that?
 
Joker-smiley face.
 
@Cyoce You have a const raw_digits, don't you?
Also, constants should be in all caps.
 
@Calvin'sHobbies The real question: is 'pies' truthy or falsey?
 
Pies always contain truth
3
 
^
 
3:04 AM
@BrainSteel Truthy, obviously.
 
^^
 
And now I'm done.
@BrainSteel s/s/es/g
 
@AlexA. Sometimes late answers are shortest.
 
Wow - I thought this answer was trivial, bordering on boring, but it is the most contentious (+7, -5) and has been rapidly swinging between positive and negative net votes.
2
A: Best of PPCG 2015 — Call for Categories

trichoplaxBest title Borrowed from the Code Review categories. "Best" can be measured as a combination of things: Descriptive Intriguing Funny Any more we can think of...

 
> !!'pies'
< true
 
3:08 AM
0
A: Best of PPCG 2015 — Call for Categories

Nathan MerrillMost Difficult: This challenge got only a few (or no) answers because of its incredible difficulty.

+6/-6
 
OK - that's more contentious
...and is hovering neither negative nor postive
 
Hardy tho
XD
I like yours :D
 
Thanks :) So do 7 other people...
 
When do we start making category posts? (@MartinBüttner)
I guess it's only been a day
 
Anonymous
 
3:13 AM
We need to wait until we have enough suggestions. Martin wanted 5 to 10 categories and so far we only have... wait - 40 suggestions?!?
 
@Mego is back!
 
You disapprove of graduation?
 
Anonymous
@Calvin'sHobbies My hopes were raised for a moment and then monumentally crushed
 
Anonymous
I thought we were actually graduating on Mar 1
 
3:14 AM
Oh, 'Next scheduled event: "Graduation"'
 
Anonymous
I blame Geobits
 
> Starts on Mar 1 at 0:00 (in your timezone, that's 16:00 on Monday), lasts 60 minutes. This is a regular event, happening every day.
 
@Mego It's only the optimistic end of Doorknob's graduation prediction graph. At the pessimistic end we may have to wait until September
 
@Mego We are, just 2061, not 2016
 
@ThomasKwa Graduatin' erryday
 
3:16 AM
Megello
 
Following the comments on the question, what kinds of awards could go to a person rather than a specific question or answer?
 
i'm enjoying this new ppcg user style. that zipper-brackets logo was exactly the sort of symbol I was trying to dream up.
 
@trichoplax No, at the pessimistic end, permabeta happens. :P
 
@trichoplax "Most made fun of in chat"
"Most rep gained from questions" :P
 
Anonymous
@Calvin'sHobbies So Alex?
 
3:18 AM
@Calvin'sHobbies So much competition...
 
"Most likely to not be outgolfed"
"Most likely to thank bots habitually"
 
@Doorknob There's no competition for that one. :P
 
Anonymous
"Most likely to be seen in chat"
 
These are like those yearbook "most likely to succeed" things (that also involve graduation)
 
3:20 AM
There's no lower limit to pessimism if you want to be like that :P
"At the pessimistic end, Code Review takes over the entire galaxy and PPCG users are forced to rewrite their entire backlog of answers in readable form"
 
@Doorknob Oh hey, I have one of the "biggest" attendance curves! :P
 
"Most likely to win an award"
 
I am not an active chatter? :(
 
@Calvin'sHobbies I would get a triple gold medal for that. :P :| :/ ಠ_ಠ
 
@El'endiaStarman You're no competition for @NewMainPosts here. :P
 
3:21 AM
@Doorknob Wow. That's why I get so little done...
 
Anonymous
Why is the userscript not working on Meta?
 
@Doorknob TIL I spend too much time in here
 
Just today? :P
 
._.
 
3:24 AM
but that looks ugly
 
@AlexA. You moderate here - you can count it as productive time...
 
@trichoplax I certainly don't use it as productive time. :P
 
Watch as Tatar graduates before us
3
 
3:27 AM
@MartinBüttner Since when is Mathematica free? codegolf.stackexchange.com/a/67796/34718
 
@El'endiaStarman That is shockingly beautiful. Plus I learned a neat trick to slash my energy bills.
@mbomb007 It's free on a raspberry pi - does that count?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ but all caps look ugly and angry
 
@trichoplax Well you need to buy a rasberry pi
 
Good point
 
Even other languages you could run online at a library for free if you have no pc
 
3:32 AM
@LegionMammal978 there is free licence for Mathematica now anyway. — Martin Büttner ♦ Dec 28 '15 at 9:23
 
Anonymous
 
@trichoplax For a PC?
 
@Dennis You'd have to ask Martin... I was just quoting him
By the way, I love the last line of your top answer there
> We should not expect a robber to enter a legal or moral grey area to be able to participate in a PPCG challenge. - Dennis
6
 
hahaha
 
3:35 AM
(Better add the attribution if it's going to get a star...)
 
@Doᴡɴɢᴏᴀᴛ the auto-byte-counter doesn't work on manual <pre><code> tags
 
3:52 AM
@trichoplax A rasp. pi isn't free, tho
 
23 mins ago, by Calvin's Hobbies
@trichoplax Well you need to buy a rasberry pi
 
@AlexA. Quotes don't ping. That's good to know...
 
@trichoplax Quotes will ping. This is a permalink to an existing chat message, which oneboxes and looks like a quote.
> @trichoplax the turtle ate some stars
 
> @AlexA. ah I see - thanks
 
np broseph
 

« first day (1803 days earlier)      last day (1791 days later) »