« first day (1909 days earlier)      last day (2949 days later) » 

Anonymous
9:08 AM
@Sp3000 Oh, I didn't think about Bubblegum... Crap.
 
GL breaking hashes
 
@quartata I forgot to mention: in the offline compiler you can use the -h option to search for functions:
>> matl -h determinant
Zn  matrix or vector norm / determinant of square matrix
    1--2 (1);  1
    norm. For second input 0 and first input square matrix (or
    scalar): det
 
Anonymous
@Sp3000 So what you're saying is, if I manage to do it, you're gonna give me a 500-rep bounty :P
 
If you manage to do all TIO languages as of today, then sure I'd probably give more than just a 500 bounty
 
Anonymous
I'm gonna have to learn a lot of langs :/
 
Anonymous
9:13 AM
Well actually the Bubblegum may not be so bad
 
I'd recommend starting with Bubblegum, Cinnamon Gum, Shapescript... and then just plain crying
 
@Mego The imperative isn't a full sentence without an object, I believe.
 
How so? I can't imagine any way to do Bubblegum without some hash colliding
 
With present tense, the object can be implied, but I don't think the same applies for imperative...
 
Anonymous
@Sp3000 LZMA compress the number and use comment trickery to ignore it in other langs?
 
9:16 AM
You can't just add to the LZMA and have Bubblegum not taking the comments into account for decompression
 
Anonymous
Right...
 
@Mego Or... you can try to do the most langs possible, completely missing some of the langs. But doubt that's what you want.
 
Anonymous
And the 256-to-96 decoding would cause extraneous bytes
 
Anonymous
So yeah it would have to be a hash collision
 
There's no fun if Mego gets to skip Bubblegum :P
 
Anonymous
9:20 AM
I dunno, skipping Bubblegum would take the problem from "find a collision for SHA-256" to "do weird and cool things to make languages play nice together"
 
Anonymous
Cinnamon Gum would pose a similar problem
 
Anonymous
I probably won't attempt anything like that, but it would be cool to see an all-but-gums answer
 
@Mego What are you attempting?
 
9:44 AM
0
A: Sandbox for Proposed Challenges

Martin BüttnerRegex Golf: Verify a Sudoku Solution code-golfregular-expressionsudoku Write a regex which matches any valid sudoku solution and doesn't match any invalid sudoku solution. The input is an unrolled version of the sudoku, i.e. there are no line delimiters. E.g. the following board: 7 2 5 8 9 3 4...

 
@VTCAKAVSMoACE To make a versatile integer printer working on the most possible langs available on Try it online!
@Quill monring
 
hello!
I wrote a new blog post on JS! yay!
Read JavaScript's type system on http://418stat.us at http://418stat.us/2016/04/javascripts-type-system/
 
10:55 AM
> If I wasn't around, my human would end up losing dozens of balls every day. - dog
> They'd also constantly be getting attacked by squirrels and mailmen. It's so frightening, I don't even want to think about it. - dog
 
@EasterlyIrk??? What happened? I woke up to your messages.
@Quill very nice explanation on your blog post! If you don't already know, the Boolean wrapper is always truthy (being an object). So it's not strictly equivalent to a boolean.
 
11:12 AM
It
It's a wrapper type anyway, a truthy comparison should return the primitive value
Thanks for the compliment :D
 
11:59 AM
0
Q: Find the sum of all odd squares that are smaller than 10,000

ThomasA simple challenge, requiring the program to output the sum of all the odd square numbers, smaller than 10,000.

 
12:55 PM
This is looking a lot nicer this morning:
 
@Geobits Trying to reconstruct the solar system in S³?
 
Not exactly. That would be boring ;)
 
2
Q: Tips for golfing in MATL

Stewie GriffinMATL is a golfing language created by Luis Mendo. MATL has proven to be highly competitive, often beating submissions in other golfing languages such as Pyth, cJam and Jelly. What are some useful tips for golfing in MATL? (As always, one tip per answer, please!) For the record, MATL can be te...

 
@Quill Lost me at "JavaScript isn’t a silly, nonsensical language designed for the mad hatter and his tea party" :P
 
1:08 PM
@Geobits How is it silly/nonsensical?
 
@Geobits <face of disapproval>
 
@CᴏɴᴏʀO'Bʀɪᴇɴ ಠ_ಠ
 
It's just not my cup of tea. Debating it won't get us anywhere. I'll just say that any type system that needs the amount of articles online defending it as JS seems to probably has a few issues.
 
I found your face of disapproval. :-)
 
@zyabin101 thanks
@Geobits Nobody's saying that JS is perfect.
 
1:12 PM
@Geobits But you shouldn't be doing [] + {} in the first place
 
0
A: Sandbox for Proposed Challenges

FatalizeGotta eat the bytes like groceries A word is said to be edible if the sum of the decimal values of each of its constituent byte is a prime number. For instance, edible is an edible word because 101 + 100 + 105 + 98 + 108 + 101 = 613, which is a prime number. EDIBLE is also an edible word, since...

 
is anyone here acquainted with J?
 
In case you guys didn't notice, my original comment had a face at the end indicating that I wasn't quite serious. Yes, I don't like JS typing, but also, I was simply making a joke.
 
@Geobits for Red Queen confirmed
 
Off with his head!
 
1:15 PM
I responded in kind with a face as well
:P
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Do ... do I need to run a virus scan after reading this message?
 
@TimmyD sYe, ropablby
 
Don't bother. The latest updates haven't added this one yet.
 
Either I installed Google Analytics wrong, or nobody has visited my blog ;-;
 
So we're not even at a zero-day vulnerability. More like a -1 day.
 
1:17 PM
@Quill I read it, but on mobile.
 
@Quill Is Google Analytics that live? I thought it took a while to report.
 
Ah, that'd make sense
 
@NewMainPosts Porpised tip: remember your L clipboard.
 
1:37 PM
@Geobits Heyyy, you too hacked the inputs to allow negative velocities! :P
 
0
Q: Kolmogorov complexity Chad Gadya

Yossi GilIntroduction Chad Gadya is a famous cumulative song in Aramaic and Hebrew, sung in cumulation of the sedder. The lyrics can be found, e.g., here (blue text). The challenge is to write a program, in any programming language, that produces the song, each verse in its own line. The program takes n...

 
1:49 PM
Morning
 
@Xanderhall monring
 
@Xanderhall It's nearly 4pm where I live. Not sure how to greet you
 
Wikipedia is not helpful here. "Afternoon is the time occurring between noon and evening. The specific range of time this encompasses varies in one direction: noon is currently defined as a constant 12:00 pm, but when afternoon ends is dependent on when evening begins, for which there is no standard definition."
 
@Fatalize I would say 4PM is either early evening or late afternoon
really personal preference
 
4pm is definitely afternoon for me.
 
1:54 PM
I say evening when it starts to get dark
 
Evening is when I get off of work and am back home. Otherwise, it's still afternoon.
 
Which I find generally depends on how late one has one's lunch or supper
 
even then, if I say good morning it's weird cause it's afternoon for me, and if I say good afternoon it's weird cause it's morning for him
 
I'm used to time zone weirdness
 
Evening starts around 6-7, or around sundown.
 
1:55 PM
So I'll go with “Hello”
 
Does 11:55 PM still count as evening?
 
Quick, we need a program to output good {insert time period of day}
 
I personally would say 11:55 PM is "night", which starts around 9 pm or so.
 
@MarsUltor I generally say any late time is evening, because 'good night' implies that you're leaving.
 
1:57 PM
Also, it's currently 11:27 AM here
 
@El'endiaStarman Yeah, but good night usually implies someone is going to sleep
 
@El'endiaStarman We should make surveys: "Which time do you consider morning, day, evening or night?"
@Xanderhall 16:57 here.
 
Evening/night depend mainly on season here. Sunset varies over a few hours and all...
 
@Xanderhall Stand back! I know Python!
 
@MarsUltor Yeah, so I don't say "Good night" when greeting someone at night. :P
 
1:59 PM
(Flying: tap tap tap python! tap tap tap)
 
@zyabin101 Woohoo! New data center in Texas.
 
@El'endiaStarman "Hello and good cheer! What brings you here this fine evening?"
 
Wait, forgot to add parens around the print statement. tap tap tap
 
@zyabin101 I've hardly ever forgotten those parentheses for a couple years now. :P
 
@El'endiaStarman On the other hand, I use PyPy a lot, so I "forget" them very often
 
2:03 PM
I hope in the next version of python they add something else that will be forgotten by approximately 99% of developers for a few years.
 
@Geobits braces
 
>>> from __future__ import braces
SyntaxError: not a chance
 
Oooh, that'd be a good one. I'd love to hear the smug pythonistas talk if that ever happened :P
 
But the best idea would be to change PEP8 slightly/change indentation rules slightly
 
What is true in C? 1? 21? 32? 41?
 
2:04 PM
I dislike Google Forms' new look, forced into all forms, and I... just don't want to use the improved Straw Polls. I'll use Instant.ly SSI.
 
Positive integer?
 
(wai did they merge ;_;)
 
@JesterTran 1
 
@MarsUltor anything else is false?
 
pseudo-braces don't seem that difficult - s/}// and s/{/:/
@JesterTran 0 is false
 
2:05 PM
@MarsUltor what is 42?
 
C booleans are basically actually 0 = false and 1 = true
 
@JesterTran The answer to the question of life, the universe, and everything.
 
@JesterTran Neither
 
I haven't Ceen in a while, but I thought anything non-zero was true.
 
@MarsUltor if (!integer data type) { printf("ok\n"); }
 
2:06 PM
> Ceen
lol
 
wait, my bad
false is 0, true is any other number
 
At least they have the survey builder.
 
@zyabin101 It seemed like the appropriate tense :D
 
@MarsUltor so true = $\mathbb{R} - \{0\}$?
 
@JesterTran Yes
 
2:08 PM
@MarsUltor thanks
 
@MarsUltor Thanks. Lol @ "It is debatable if this sort of shortcut is worth the three characters it saves"
 
@MarsUltor The last line is why I do sometimes do something like if total != 0 because it would be confusing otherwise.
 
2:23 PM
Cool survey
 
Where are the results?
 
@TimmyD Ah, I forgot: Instant.ly doesn't provide results publicly. But I can announce them in chat.
 
Boo. -1 points for Instant.ly
 
3 respondents later, 2 of them consider 05:00-09:00 morning.
11:00-16:00 are considered day the most, and everyone chose 17:00 as evening and 23:00 as night.
 
"Morning" means two things to me: it's technically 12:00 AM to 11:59 AM, and it is in practice after one gets up from bed, which would be after 5-6 AM in general.
 
2:33 PM
Day means the sun is out. That's reinforced by "daylight"
It changes depending on what time of year it is. During the summer day is much longer than it is in the winter
 
Yeah, "day" encompasses morning, midday, and afternoon.
 
For me anyway. It also changes depending on where you live relative to the equator.
Sometimes I get up early in the morning to hunt, while the sun is not out. I wouldn't say that I got up at night to go hunt.
 
dear hivemind... there's a regex answer somewhere on PPCG where someone used a rather massive regex to verify the validity some 2D input grid. something like checking a tic tac toe solution or finding a connect 4 winner. could also be part of a javascript answer or something. try as I might, I can't find it. does anyone know which answer I'm thinking of?
 
@Rainbolt Hunt? A block of ice? Now that I gotta see!
 
@MartinBüttner You did on this one
 
2:39 PM
yeah nothing quite as crazy as that
I think it didn't require any fancy regex features beyond what JavaScript provides
 
@zyabin101 17:00 isn't evening to me at all right now, since the sun doesn't set for three hours after that here. In December, sure, 17:00 is evening, since the sun sets less than an hour later.
 
@Geobits There is the "Other" option.
 
just found codegolf.stackexchange.com/a/32518/8478 but I don't think I've seen that before, so that's probably not it either
 
@zyabin101 Oh, I didn't do the survey. Looks like too much work, and I just sat back down.
@MartinBüttner Is it a single big regex, or split up? I think there was a regex solution to one of the domino challenges.
 
I think it was a single big regex
 
2:46 PM
Was it bejeweled? I'm not sure how "big" you mean.
 
yeah just found it
that was literally the last result on 8 pages when searching for "javascript regex is:a" and sorting by relevance -.-
 
Oh, I searched 'regex grid is:answer'. Only ten results ;)
 
heh, I didn't want to assume that "grid" was actually in the answer, because I wasn't sure whether the answer even had an explanation
why does this magnificent answer only have 8 votes...
 
Better than assuming it was javascript :P
 
no for some reason I was quite convinced that it was javascript. not sure why though.
 
2:49 PM
Ooooh my search turned up the sed answer further down, not the js one.
 
okay, anyway, just wanted to make sure that my sudoku challenge really isn't gonna be a dupe, because what I remembered seemed like similar kinds of checks
oh right, sorry didn't even click the link because I had just found a bejeweled answer at that point :D
 
@CᴏɴᴏʀO'Bʀɪᴇɴ @El'endiaStarman said blitz was only windows, and you said "ooo nice" in reply.
Q_Q
13 hours ago, by El'endia Starman
@EasterlyIrk Blitz 2D/3D is a Windows-only programming language. :(
13 hours ago, by Cᴏɴᴏʀ O'Bʀɪᴇɴ
@El'endiaStarman oo nice
 
What I meant was that it's windows, so I can use it.
 
Windows is great and does all things.
 
2:57 PM
@TimmyD For a nitty-gritty price of <big dollar figure here>.
 
And with bash coming, it will be able to do even more all things.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ oh okai
I un-retract my :3.
 
@EasterlyIrk "\o/" - Conor O'Brien
 
...
you literally nin'jad me
 
^^
rofl
 
2:58 PM
literally took the words from my fingers
 
Maybe from your keyboard?
 
@zyabin101 Licensing CapEx is not the biggest expenditure in any sort of business.
 
There are lots of things that wouldn't be my biggest expenditure, but I'd still rather not pay for if given the choice ;)
 
Erm, 110 dollars for Windows 10 Home? Okay.
:P
 
I'm not understanding how retail pricing for a Home edition of desktop Windows is factoring into the discussion. I think we're talking past each other.
 
3:11 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ @CᴏɴᴏʀO'Bʀɪᴇɴ @CᴏɴᴏʀO'Bʀɪᴇɴ THERE IS SUCH THING AS PETITE CAPS!!!!
 
@EasterlyIrk @EasterlyIrk @EasterlyIrk SHOW IT TO ME!
 
wtf
there we go
@CᴏɴᴏʀO'BʀɪᴇɴTʜᴇSᴍᴀʟʟCᴀᴘsPʀᴏᴘᴇɴᴇɴᴛ COME HITHER
 
Do they not screw the F up so badly? :P
 
ɪᴋʀ
ғ*** ᴛʜᴀᴛ ғ
:ᴘ
@Downgoat The small caps userscript can just use the css tag font-variant-caps: all-small-caps;
 
I might need some help with the test cases for the sudoku challenge. I can create a board where all rows and columns are valid, but some blocks arent, by taking a valid board and swapping the corners of a rectangle which has this pattern:
a...b
.....
b...a
provided the four corners are in different blocks
How do I create such a board, where the resulting duplicate digits appear only in the 2nd and/or 3rd rows of the affected blocks?
 
3:33 PM
@EasterlyIrk yeah
 
Wish me luck, state testing today!
:(
 
gl!
you got this
 
3:58 PM
@MartinBüttner Couldn't you just generate a valid board and then munge the corners?
 
4:14 PM
@EasterlyIrk How was state testing today?
 
I think he's still taking it?
 
My only regret is that I can star it but once.
4
Hmm. Actually, I guess I could ask Marky to star it if I really wanted to.
Well now my main regret is that you think it was done in the spirit of prickery.
Neither was I. I regret nothing.
 
Windows shuts down again :D
 
ಠ_ಠ at all the chunky peanut butter haters
 
4:27 PM
Also, we should rename ourselves PBCG for Peanut Butter & Code Golf, since we do seem to spend an inordinate amount of time chatting about peanut butter.
 
strawpoll.me/10008879 <-- Marky needs input
 
@Geobits We are apparently all socks.
 
Apparently
 
Is there a strawpoll like site with a sane font?
 
@HelkaHomba brb, creating ZalgosPoll
 
4:30 PM
But then it wouldn't be all whimsical and shit.
 
I'd suggest instant.ly but it requires registration and doesn't display results publicly.
Criteria for a poll site includes "display results publicly" and "everyone can immediately start creating polls".
 
Also a "recreate this poll" button
 
@_@
 
@QPaysTaxes And bar charts, because I love bars.
 
4:34 PM
Smooth salsa shouldn't exist
 
@Geobits the lemon kind or the tended kind?
 
@HelkaHomba Oooh, lemon bars are good too.
 
Fun fact: If a baby is born underwater and stays underwater, it will live the rest of it's life underwater.
 
If it stays underwater, I can't see how that could be anything but true.
 
I'm from Minnesota, where bars and brownies mean two different things. Brownies are more cake-like, whereas bars are either cookie-like or otherwise don't match (like 7-layer bars). Is that a peculiarity to the upper Midwest?
Well, yeah, that too.
 
4:36 PM
@TimmyD That sounds right. I don't think it's a peculiarity to the midwest
 
Lemon bar ^
 
How far can I abuse truthy/falsy? Can I say 0 is truthy and 1 is falsy?
 
\o/ I'm a better golfer than the comp sci teacher!
 
@QPaysTaxes But it saves a byte
 
@quartata I was literally thinking that the other day
 
4:38 PM
@quartata I thought the "generally accepted" consensus was that it depended on what your language considers truthy.
 
OK, main reason I'm asking is because I came across a "blondie" the other day, and was really confused, because that's just another type of brownie.
 
@quartata depends on your if statements meta.codegolf.stackexchange.com/a/2194/26997
 
@QPaysTaxes Not really. He uses Java, and I use JavaScript.
Well, yeah, but he almost beat me.
 
Ouch
With java? It's rare that I come close to the best js answers around here.
 
@HelkaHomba I don't think anyone actually follows that though. I've seen some strange definitions of truthy/falsy
I'll just play it safe.
 
4:41 PM
@quartata I hope they do, because I have been. It would surely be easier to golf functions if I didn't have to make them boolean ones >_<
 
@quartata They should. I always link it in my challenges when the output is truthy/falsy
 
@quartata Call 'em out on it. +60/-3 is about as "consensus" as you can get.
 
@Geobits We alternatively suggested challenges. He eventually caught up on it, and suggested to calculate the intersection of squares, to which he used an external library.
yeah
 
@quartata We close questions at the drop of a dime for obscure meta rules. Answers should be no different.
 
4:42 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ Oh. Well I'm sure even I could find an external library to help with plenty of golfs, but that's not exactly in the spirit of things.
Tell your prof he cheated :P
Then downvote and vote to delete.
 
0
A: Linear Independence

quartataMATL, 13 bytes t!Y*2$0ZnqZSQ Outputs 0 for falsy and 1 or 2 for truthy. Based on Anna's MATLAB answer. Explanation t!Y*2$0ZnqZS t duplicate input ! transpose Y* matrix product, yields X^T * X 2$0Zn determinant q decrement ...

 
@Geobits Well, I had to cheat for one using math.js to have arbitrary precision numbers.
 
ugh 2$0Zn is way too long for determinant
@LuisMendo pls fix
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I didn't think math.js was external.
 
4:44 PM
Isn't it just a standard import?
 
No.
It's a third-party library
 
@QPaysTaxes I added a byte.
Previously I was going to have -1 for falsy and 0 and 1 for truthy.
 
No, you're an idiot.::P
 
@quartata Oh, well in that case Conor is a dirty cheater too :P
 
4:45 PM
Well, I was able to use JS to import it, so it's okay I think
 
I thought 3rd party libraries were fine but counted as a different language, like when people do "Python + numpy" etc.
 
Meh, I don't think anybody would be ok with me finding a random FFT library (for example) and just calling a single function from it instead of golfing it out the usual way.
 
@QPaysTaxes Wait, did it come with the quotes done weirdly?
Huh
 
Those are LaTeX quotes aren't they?
@Doorknob please confirm ^^
 
4:48 PM
LaTeX uses double single quotes? How odd.
 
LaTeX is odd. Even how it's pronounced.
 
Wait, what? It's clearly pronounced like latex, right?
I can't say that I've actually heard anyone say it any other way.
 
Latech :P
 
Lah-tech
 
I have another Haskell question
 
4:51 PM
I'm pretty sure I will never say it that way.
 
With the /x/ as in Bach or loch in some English dialects.
 
Donald Knuth designed TeX and said it should pronounced like "tech"
LaTeX is newer. Not sure what the preferred pronunciation is?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ See the Skype chat with Dog Jesus.
 
@Sherlock9 What does HE know?
@VTCAKAVSMoACE I'm at school. Don't have Skype there.
Did she call me a bitch again?
 
4:52 PM
Dannnnng.
kek no.
 
@Sherlock9 Meh. GIF was created to use a soft G, but heretics still claim that they don't care and use a hard one anyway. Some people just want to watch the world burn.
 
Why does the following code for Bernoulli numbers:
import Data.Ratio
p = product
b 0 = [1%1]
b m | r <- ( b (m-1) ) = ( 1 - sum [ ( p [k+1..m] * (r !! k) ) / ( p [1..m-k] * (m-k+1) ) | k <- [0..m-1] ] ) : r
 
It's "jiff", dagnabit.
2
 
Just letting you know that any error 404 on vintagetrenchcoat.ml now leads to vintagetrenchcoat.ml/vitsy @CᴏɴᴏʀO'Bʀɪᴇɴ
 
throw this error?
Couldn't match expected type ‘Int’ with actual type ‘Ratio Integer’
In the second argument of ‘(!!)’, namely ‘k’
In the second argument of ‘(*)’, namely ‘(r !! k)’
 
4:53 PM
@VTCAKAVSMoACE uh oh
 
inb4 @El'endiaStarman posts
 
@CᴏɴᴏʀO'Bʀɪᴇɴ kek
 
@VTCAKAVSMoACE That's beautiful tho
@QPaysTaxes That's your problem. I'm on IE (IE) and it works fine :P
 
@CᴏɴᴏʀO'Bʀɪᴇɴ hisssss
 
4:55 PM
I have to use it @ school
 
Ewwwww
 
Oh wait, I can select it. You can just barely tell it's selected because of the colors.
 
cringes internally, cringes eternally
 
@VTCAKAVSMoACE sowee
but at least now I can visualize you cringing :P
 
@CᴏɴᴏʀO'Bʀɪᴇɴ creeeeeeeeepy
 
4:57 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ ಠ_ಠ
 
> Programming Puzzles and Code Golf (StackExchange Network): CoolestVeto
 
The text in the contact area isn't exactly easy on the eyes against that background.
 
Your name on SE is currently VTCAKAVSMoACE :/
 
@CᴏɴᴏʀO'Bʀɪᴇɴ dw?
(doing what?)
 
4:58 PM
@zyabin101 Reload the page. ;P
 
@zyabin101 He said brb. Cleary that's Bath Room Break :P
 
Wait, wat
Okay, now fixed.
 
@QPaysTaxes Breaking Ron's Broom
 
@VTCAKAVSMoACE Reloaded.
@QPaysTaxes Be Really Be
 

« first day (1909 days earlier)      last day (2949 days later) »