« first day (1917 days earlier)      last day (2928 days later) » 

7:00 AM
@QPaysTaxes I know
But how do you want it to replace grammars?
The entire grammar?
I mean, the biggest issue would probably be what groups to drop
As in, Cheddar needs to drop :'s and ='s etc
as in, when Cheddar scans foo: bar (variable bar with type foo) it just returns [foo, bar]
Hmm
So I should make an EBNF class that parses EBNF? as in use new EBNF('foo = string | number') in the grammar property?
I think I should be able to do it
but the thing is, how do you want to use it?
grammar: 'ebnf stuff here'? (implicit EBNF when it's a string?)
@QPaysTaxes Yeah, but people may want EBNF for just specific tokens as well
@QPaysTaxes In Rennet you can as well
@QPaysTaxes My idea is subpatterns translate to RennetSyntaxReferences
@QPaysTaxes No
You define a R_COMMENT
I definitely need to change that to use a normal grammar
Just it's not urgent
Basically, it lets a language access subexpressions
JS can't exactly access SYNTAX.foo when it's inside SYNTAX's definition
Plus, it allows recursion
Hmm, IDK whether to define EBNF as a language
@QPaysTaxes But aren't the more complex EBNF's supposed to return expressions?
Example from Wikipedia:
 program = 'PROGRAM', white space, identifier, white space,
            'BEGIN', white space,
            { assignment, ";", white space },
            'END.' ;
That parses the entire program
 
Anonymous
7:31 AM
sees avocad meme reference on starboard, sighs
 
Anonymous
Can we as a community grow up and stop using that stupid meme? It's getting to the point where it's essentially spam.
 
Anonymous
@QPaysTaxes If someone got chatbanned for constantly referencing that meme (or, in your case, both of those memes), I wouldn't cry mod abuse eleven
 
Anonymous
Electronic spamming is the use of electronic messaging systems to send unsolicited messages (spam), especially advertising, as well as sending messages repeatedly on the same site. While the most widely recognized form of spam is email spam, the term is applied to similar abuses in other media: instant messaging spam, Usenet newsgroup spam, Web search engine spam, spam in blogs, wiki spam, online classified ads spam, mobile phone messaging spam, Internet forum spam, junk fax transmissions, social spam, television advertising and file sharing spam. It is named after Spam, a luncheon meat, by way...
 
@Mego There's a fine line between spamming and a meme
I mean, the meme is used fairly often
 
Anonymous
I'd argue that, if a significant portion of a user's messages refer to a specific meme, that's spam
 
7:35 AM
But it in no way impairs normal conversations here
@Mego Yes (depending on your definition of significant portion)
 
Anonymous
Having to ignore everyone whose message history consists of almost entirely memes does impede conversation
 
My definition = around 5-10%
 
Hello
 
@zyabin101 Hello
 
Anonymous
Apr 25 at 21:51, by Easterly Irk
http://www.keepcalm-o-matic.co.uk/p/keep-calm-and-eat-avocad/
 
7:40 AM
D: That's not accurate to the meme - s/eat/juic/
 
 
@MarsUltor brb making "Keep Calm and Juic Avocad"
 
@zyabin101 Pls don't onebox, Mego may not react kindly, plus it's not relevant enough to merit a onebox right now
 
Anonymous
@MarsUltor There's no chance that I will be annoyed by anything zyabin does in here
 
Anonymous
@QPaysTaxes That sounds like a question for foss.se
 
Anonymous
7:52 AM
 
Anonymous
Someone may have already asked
 
Anonymous
Night Q!
 
Anonymous
I'll see if I can find an answer for you
 
Anonymous
3
A: Adding feature to an Apache v2 package

bmarguliesYou should comply with the terms of the Apache License. If you copy AL-licensed source code verbatim, you should keep that license on that source code. if you make a derived work, you can change the license, but you have to comply with the terms of the license. All that you need to know can be fo...

 
Anonymous
Yahtzee
 
Anonymous
7:58 AM
Basically, so long as you a) note that the included code is owned by the copyright owner and not you, and is licensed with the Apache License, and b) include the Apache License with the included code, you're fine.
 
Anonymous
This is why I just MIT-license all my code that I'm not developing commercially - I really don't care what people do with it, so long as I get credit for creating it
 
8:30 AM
Oh my days
My parents looked for a credit score site and they found this.
 
@EᴀsᴛᴇʀʟʏIʀᴋ Upvoted. I love it.
Also, Keep Calm-o-Matic allows you to have your poster on lots of products!
Posters, mugs, T-shirts, hoodies...
 
9:07 AM
I'm thinking of putting a bounty on my quipu question
Doesn't feel right that I have the best answer on my own question right now. Especially since none of the golfing languages have weighed in
Any comments?
@VTCAKAVSMoACE Magnificent XD
 
/* free all space used by graph */
   void
   graph_destroy(Graph g)
   {
       int i;

       for(i = 0; i < g->n; i++) free(g->alist[i]);
       free(g);
   }
can someone explain to me why this does the job to free all space used by a graph?
where alist[i] is the pointer to the first row of the adjacency matrix
 
0
A: Sandbox for Proposed Challenges

AverroesSpiral text Write a function or program that given a text with one or more characters in it outputs the text as a square spiral. The first letter of the text must be the center of the spiral and then all the characters must follow a clockwise spiral pattern as follow, striping all white spaces: ...

 
9:23 AM
nevermind, got it
 
Bas
9:34 AM
void
graph_destroy(Graph g)
{
Yikes
 
@Bas I know.. too lazy to reformat lol. Found it on a website
 
Bas
@JesterTran I don't think I could take people seriously who format their code like that, let alone copy their code and re-use it in my projects
 
@Bas lel
 
Bas
void
a_function()
{
System.
out.
println(
"Hi world"
);
}
Making Java more fun to read than it already was
 
I'm horrified
 
9:52 AM
this is perhaps a naive question.. but how can you produce something like cdn.worksheetfun.com/wp-content/uploads/2013/03/… programmatically?
and could it be an interesting codegolf?
 
As ASCII or an image
 
@muddyfish hmm.. well what you really want is a pdf or ps file isn't it?
I am all about making challenges that might actually be useful :)
@muddyfish are there obvious formats that convert easily to pdf and will still look nice?
 
Well I'd generate an image and embed it in a PDF
Image
Those work perfectly
 
isn't that wasteful in some way.. I mean that's a lot of data in an image
 
Yeah
 
10:00 AM
and it doesn't scale well
 
No but you could use a high quality image
Why PDF specifically?
 
no reason. just some vector format seems to make sense
any sensible format for printing documents would do
I don't think images are normally used are they?
 
I mean, why not in a CSV file?
 
oh.. that's not very pretty
the layout is part of the challenge
 
They're easily opened in excel and printed
 
10:02 AM
the idea is to make something genuinely useful
 
It would seem like you would have 2 challenges in one to me though - multiplication tables and image formatting
 
right.. but the first is so trivial I thought it would be ok to merge those
 
The formatting would have to be well specified so it isn't closed for being opinion based
But even asxii arting a multiplication/addition table would be interesting imo
Unless that's been already done
(Also my lang could do it in 6 bytes)
D]Um*P
 
10:25 AM
RUNNING: 'D]Um*P'
Missing arg to Duplicate: 2, evaling input.
BAD EVAL
 
11:03 AM
wtf ?
what just happened to my avatar ?
ok did anyone else just see this ?
 
@Agawa001 It's okay on my machine.
 
i think i v been hacked for merely one minute
 
 
1 hour later…
12:08 PM
Should the power operator be RTL?
 
@MarsUltor which language is this?
 
@KennyLau Cheddar
 
I see
 
@muddyfish yes.. I was wondering exactly how to do that.
@muddyfish maybe I should allow an image.. what do you think?
 
12:35 PM
I wonder what the highest-voted non-edited answer is here at PPCG.
 
298
A: Write a program that makes 2 + 2 = 5

FlonkHaskell I just love how you can throw anything at ghci and it totally rolls with it. λ> let 2+2=5 in 2+2 5

 
"write code to produce the highest voted question you can" :)
 
SELECT TOP 1 Id AS [Post Link] FROM Posts WHERE LastEditDate IS NULL ORDER BY Score DESC
 
@ECHO "If you upvote this question, I will pay you 5 internet points."
 
What's more, it can't be edited (except by a moderator) because the question is locked.
Second highest and third highest and fourth highest are all also locked.
 
12:39 PM
O.O Haskell is a scary language. Jeez. And I thought that Java answer where you edited your own language instructions was bad.
 
@Doorknob Q_Q___
 
why are we locking them if that's not on the meta consensus?
or is that not relevant
 
How is a trigraph answer the second most voted?
 
UC%#222+5en~; 22+ is 2+2 and 5e is = 5.
guess the lang :3
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Jolf?
 
12:45 PM
nope, jolf is prefix.
 
Then idk ¯\_('_')_/¯
 
Reng @_@
 
12:48 PM
HAIIIIIIIIIII
 
HAI
 
hera hera hera hera hera hera hera
 
#randomcommentoftheday
@CᴏɴᴏʀO'Bʀɪᴇɴ go golf that js code you made for the mayan numbers and post it
 
@EᴀsᴛᴇʀʟʏIʀᴋ maybe
I'm @ school so I won't until I get home
 
okai
RRFTD:
(<=[!.?:])
what that do
 
12:52 PM
"R"?
 
@EᴀsᴛᴇʀʟʏIʀᴋ What language/flavor?
In normal regex it's just <= + one of [!, ., ?, :]
 
python
okai thanks
my brain doesn't function correctly early in the morning
 
it needs a <= before?
@MarsUltor lol
 
@EᴀsᴛᴇʀʟʏIʀᴋ ?
Well, more accurately, the regex captures <= + one of !.?:, starting from anywhere in the string if you're using .search
 
Today's infographic: The Van Life imgur.com/gallery/j7D6Grz
 
Using .split.
ohhhh
@MarsUltor no, the <= is a modifier in python
python lookbehind
 
@EᴀsᴛᴇʀʟʏIʀᴋ That's ?<=
All modifiers start with ?
 
So that would check if the last matched character is one of !.?:
 
<=!
<=.
<=?
<=:
 
<=>
 
I feel like there should be "anti-close votes" that would cancel out close votes, like downvotes to upvotes or something
 
its only after the fact
 
1:06 PM
ik, but why not during?
 
idk
 
In the interests of having high-quality content on the site, close votes should count for more than open votes, and they do.
Suppose 5 people want to close the question and 3 people want it to remain open.
Under the current system, the question would close.
Under your proposed system, the question would remain open.
 
I didn't say anything about the worth of the open votes.
 
How is an "anti-close vote" not an open vote? O.o
Maybe I'm not understanding.
 
1:14 PM
worth. i.e. half a close vote
timeline:
close vote (1)
close vote (2)
open vote (1.5)
close vote (2.5)
close vote (3.5)
open vote (3)
open vote (2.5)
close vote (3.5)
close vote (4.5)
open vote (4)
close vote (5) -- CLOSED
idk, something like that
 
Right, but that keeps low-quality content on the site longer.
 
But don't you agree that there (is/are?) some content closed prematurely?
If people think X is off-topic, yet people think it is on-topic, they should have some say in whether or not its closed
 
Likely. But I'd much rather have the balance tipped that direction.
 
XD
@TimmyD True. I guess the system is pointless, because if there are enough people who think they want to reopen it, voila.
 
1:20 PM
Yeah - in your example, just shift up the timings a little bit and you only need one more open vote and it'll reopen.
 
Besides, everyone should either be Helka or use the Sandbox. :D
 
ohai
went to bed, back now
 
I sometimes do challenges w/out sandbox, and my best challenges are thus
 
1:35 PM
People say jquery is dying now that modern browsers have better support for native JavaScript features. But when I want to read an article about Magic: the Gathering that has a billion images in it while I am at work, nothing beats $('img').hide().
 
@EᴀsᴛᴇʀʟʏIʀᴋ HAI
I absolutely forgot about Nested Programs 43 mins ago.
The Nested Programs Loop in the End challenge is cancelled.
\o/ @RenderSettings you're back!
 
1:56 PM
@EᴀsᴛᴇʀʟʏIʀᴋ hey
 
@zyabin101 silly question. do you do that for everyone, or am i just special?
 
@RenderSettings The latter.
 
<3 luv u 2 bby
 
ven
get a byte, you two!
 
I'd like to elicit input on having this proposed challenge be a pop-con instead of a code-golf.
 
2:10 PM
Huh. I just got the Civic Duty badge on politics.se. Seems fitting.
@TimmyD Would you be asking for static images as it is now or animations?
I imagine most results would end up being very similar. That would force the voting to melee FGITW, most likely, since many people hardly bother looking at the code for image-based popcons.
 
I'm wondering that myself. Animations would move it more to pop-con, but would also exclude more languages.
 
Also, the code to generate an image with simply-split rectangles probably isn't all that exciting or creative unless golfed.
Just my two cents :)
 
That's a good point.
Yay for having a sandbox instead of downvotes. :D
 
I can do both! :P
 
0
Q: Capture group reference + numeral

Kenny LauFor example, I would like to replace a string by the first capture group, with a 1 appended to it. I would like to do $11 (interpreted as $1 and 1), but this does not work on every flavour. What should I do instead?

 
ven
2:17 PM
@KennyLau that's overly underspecified :)
 
@ven Well... concise is beauty
 
ven
Nope, you're just making this harder for people who want to help you.
 
What information should I add?
 
It seems pretty clear to me
 
Couldn't you just encapsulate the back-reference? ${1}1 or so?
 
ven
2:19 PM
the tool(s) you might want to use
 
@TimmyD oh...
 
@TimmyD yeh that works in all flavors I know
 
Whoa ... I answered a question about regex. Who am I and what have I done with the real TimmyD?
I suck at regex.
 
hahaha
 
2:23 PM
Link pointed to my being bad at regex?
Or the question?
If it's the question, scroll up a handful.
 
the answer :3
 
11 mins ago, by TimmyD
Couldn't you just encapsulate the back-reference? ${1}1 or so?
 
Oh, a generic question, not a codegolf question
 
finally, hai
 
@EᴀsᴛᴇʀʟʏIʀᴋ hai
 
2:35 PM
Puzzle time:
fail
 
?
... we have a close vote review with 3 different reasons...
 
@EᴀsᴛᴇʀʟʏIʀᴋ uh well, if anyone saw it, that probably already gave it away, but just in case you didn't:
 
I didn't see it.
but I see that one.
did you make it?
 
@MartinBüttner I won't say anything :P
 
uh yeah, it's not exactly hard (and wasn't even meant to be a puzzle) but I thought it might be fun
 
2:39 PM
was it edible?
 
thinking about making a graphical output challenge to generate that though
 
Oh, that might be interesting.
 
@EᴀsᴛᴇʀʟʏIʀᴋ what was edible?
 
Am I the only one who doesn't get the puzzle?
Rotated left and rotated right I can't read it
 
maybe stare at it for a bit longer then ;)
 
2:42 PM
There's that evil wink
 
@MartinBüttner That's golden ;)
 
Oh god now everyone is winking. I'm being attacked by the knights who say ;)
 
@MartinBüttner the original image
 
dont worry i dont get it either
;)
 
No! No more!
 
2:43 PM
@Rainbolt no. I don't, and ^^ doesn't.
 
Try winking. It might help ;)
 
Please! No more. I will find you a shrubbery.
 
oh, nevermind, i got it
 
2:45 PM
Ow! Agh!
IT IT IT IT IT IT
 
in hindsight, it probably would have been harder if I had rotated it 180 degrees instead of 90.
 
Bas
@MartinBüttner This puzzle failed my primality test
 
It's the letter at the very bottom that is getting me. I have no idea what letter that is
 
@Bas I didn't know you could test the primality of puzzles. Too bad though.
 
i think i got it
 
Bas
2:48 PM
@MartinBüttner You can't, that's why it failed obviously
 
That makes sense.
 
well, there goes that challenge idea.
 
Bas
@MartinBüttner Trying to provide subtle hints but I'm no good at it
 
What happened to ?
 
2:49 PM
too hard to score
 
because of CJam?
 
It works when you make up a minimalist language everyone has to use where the scoring is unambiguous.
 
@KennyLau 40 questions tagged
 
27
Q: Multiply with restricted operations

xnorGoal Your goal is to multiply two numbers using only a very limited set of arithmetic operations and variable assignment. Addition x,y -> x+y Reciprocal x -> 1/x (not division x,y -> x/y) Negation x -> -x (not subtraction x,y -> x-y, though you can do it as two operations x + (-y)) The const...

 
@KennyLau because of anything?
define token?
it could be almost anything.
 
2:51 PM
> token : any forty characters of valid Java code
 
10/10 perfect definition
wait
I think you mean 44 characters?
or do we just cross out the 44 and use 40 instead.
 
ven
never cross out a 4.
 
okai
holy shit this comment has 80 upvotes
You can save one byte by changing -1+i to i-1 in the title. — mbomb007 Mar 23 at 18:11
and the question only has 57
 
ven
it's listed in the memes page
 
My most upvoted comment has yet to top 100 :(
 

« first day (1917 days earlier)      last day (2928 days later) »