« first day (2629 days earlier)      last day (2214 days later) » 
00:00 - 17:0017:00 - 00:00

5:00 PM
CMC: Given an array of 3 or more dimensions, reverse it and flatten each element. E.g. [[[1,2],[3,4]],[[5,6],[7,8]],[[9,10],[11,12]]][[9,10,11,12],[5,6,7,8],[1,2,3,4]]
 
@Pavel I still can't decide whether it;s good or bad that it works in hyperlinks too: codegolf.stackexchange.comლ(ಠ益ಠლ)-does-this-work
 
@cairdcoinheringaahing Your chat commands is probably outdated
 
@Adám is this what you mean, ∊¨⌽?
 
I had ṚF€
 
5:04 PM
@Cowsquack yes
 
but that might be wrong depending on "flatten each element"
 
@Cowsquack Yeah, you could do that, but if you take the argument as an actual high-rank array, you can do it in two bytes.
 
@Adám like so? (((1 2)(3 4))((5 6)(7 8))((9 10)(11 12)))
 
@J.Sallé No, that's a deep depth array: 3 2 2⍴⍳12
 
we had the ontario literacy test (OSSLT) yesterday and it's been 25 hours since it was done and there's an instagram OSSLT meme page with almost 18k followers already o_O
 
5:06 PM
@Adám ah, I see. What would be the high-rank array?
 
@J.Sallé 3 2 2⍴⍳12 is a high rank array. ((1 2)(3 4))((5 6)(7 8))((9 10)(11 12)) is a deep depth array.
 
@Adám oh, I just noticed that. Duh >.>
 
Hint:
12 mins ago, by Pavel
There's also ones for /o_o (ಠ_ಠ), /tableflip, and a few others.
 
ಠ_ಠ That's annoying: giving out a bounty doesn't tell you any positive rep changes from that same day, until you regain the bounty amount
 
@Adám still trying to figure out the 2 byter
 
5:10 PM
Announcement: APL Cultivation in 20 mins.
 
@cairdcoinheringaahing That annoys me too
 
oh yeah I need to remember to assign my bounty at some point before tmr lol
 
@J.Sallé I gave you a hint, but there's not much to figure out. APL has primitives for those two exact operations.
 
Random, obvious, piece of advice: don't wear 3 hoodies when inside. It gets hot fast
 
@Adám yeah, but I can't seem to make them do what you asked for >.>
 
5:13 PM
@cairdcoinheringaahing Random question (I got in an argument about this the other day): Can hoodies have zippers?
Or does having a zipper make become a jacket?
 
Yes. I have three zippered hoodies on as I type
 
@J.Sallé What have you tried?
 
@cairdcoinheringaahing ಠ_ಠ why?
 
@DJMcMayhem Would you consider this a jacket?
@J.Sallé My heating's off
 
No. I would consider that a hoodie
 
5:14 PM
@Adám well, at first, multiple combinations of ⌽∊, but they don't work without the ¨, now I'm meddling with ↑↓ too
 
But it has a zipper
 
@DJMcMayhem Ah, I forgot to ask, which side were you arguing for?
 
I was arguing that they can have zippers
 
@J.Sallé flattens everything, but APL literally has a build in for flattening the major cells of an array.
 
@DJMcMayhem I always thought that the prerequisite to be a hood ie was for it to have a hood
 
5:16 PM
^
 
Yeah, but what about articles of clothing that contain hoods and zippers?
 
Depends on it's purpose. Jackets are for outdoors, in rain and such. Hoodies are to keep warm, and are usually not waterproof
 
@Adám I don't think I've ever used it? >.> not for that purpose, for sure
@DJMcMayhem I'd probably just call it a hoodie anyway.
because it has a hood
no hood → not a hoodie in my book
 
@J.Sallé I see, you missed Lesson 9.
 
@Adám I thought I'd submit my APL solution, but is it time to spoil it :P
 
5:22 PM
Add a spoiler link
 
@EriktheOutgolfer It is so basic – go ahead!
 
@Adám ah, yes
 
@Adám alright: ⍪⊖
(btw I'd have spoiled it either way)
 
@EriktheOutgolfer Yup; literally "table flip".
 
@Adám lol
 
5:24 PM
@Adám wait isn't called Reverse First in APL lingo?
I see what you tried over there...
 
@EriktheOutgolfer Yes, in Dyalog, officially, though we're not strict about it. I call it flip, as it flips upside down, as opposed to which reverses sideways ( could also be called mirror).
Mirror and flip makes it much more obvious which way the reversal is happening.
 
@Adám I agree.
 
Even our documentation manager calls Splat instead of Log, though I think it looks like a cut-through tree log.
 
@Adám I thought it was used as starbait...
 
5:41 PM
Is it just me or does cpan install tend to take absolutely forever
 
5:52 PM
0
A: Sandbox for Proposed Challenges

l4m2Polynominal -> Integrate Given a rational polynominal with one argument, output an expression with only 1, definite integral, and variables, that equals to it. Reasonable input/output method allowed Samples: TODO: decide scoring (must be related to code length, possibly related to the numbe...

 
6:04 PM
@Adám Personally my vote is on Splat
 
@Pavel Well, "splat" is kind of an antonym of "power".
 
@Adám and, well, logs aren't supposed to "splat" anyway :P
 
Does APL have the kind of Splat (*) operator found in e.g. Python, where [1, *[2, 3], 4] => [1, 2, 3, 4]?
 
@Pavel or ?
 
@Pavel definitely no, but there's no need to anyway
and f(a, b, c, d) isn't a case, since APL has either niladic, monadic or dyadic functions
 
6:08 PM
I'm talking specifically about list splats and not call splats
@Adám Right, is Disclose, I think?
 
@Pavel Yes, or First, if the argument isn't enclosed.
 
in Dyalog it's First, in NARS2000 it's Disclose IIRC and more generally it's Right [Horse]Shoe
 
@EriktheOutgolfer No, in Dyalog it is First and in NARS2000 is Mix. Both those functions causes it to be Disclose when applied to a scalar nested array.
Just like is Mix in Dyalog and First in NARS, with the same effect on a scalar nested array.
I can explain why Dyalog's choice is better after the lesson.
 
6:27 PM
CMC: Evaluate and output an interval notation expression. [5, 9][5, 6, 7, 8, 9], (3, 6][4, 5, 6], (1, 2)[]
 
@totallyhuman Main!
 
You really think?
 
yes me too
 
Yep
 
and by "main" I mean "sandbox" of course
 
6:30 PM
Huh, okay, drafting.
 
6:45 PM
4
Q: Alphabet Histogram

AdmBorkBorkGiven an input sentence consisting of words [a-z]+ and spaces , output an ASCII-art histogram of the letter distribution of the input sentence. The histogram must be laid out horizontally (i.e., the letter key along the bottom in alphabetical order), with a Y-axis labeled 1- and every 5 units. T...

 
@totallyhuman I think you should make the delimiter between the two values be either just space, just comma, or leave it up to the answerer.
 
7:02 PM
0
A: Sandbox for Proposed Challenges

RamenChefSurvival Game: Alien Hunters (working title) king-of-the-hill java Based on Create Your Wolf, but the combat is very different. Somewhere, deep in the heart of the galaxy, lies the planet Oizys. A toroidal planet in the habitable zone of its star, its bountiful land and beautiful oceans make...

 
7:30 PM
In geometric graph theory, the Hadwiger–Nelson problem, named after Hugo Hadwiger and Edward Nelson, asks for the minimum number of colors required to color the plane such that no two points at distance 1 from each other have the same color. The answer is unknown, but has been narrowed down to one of the numbers 5, 6 or 7. The correct value may actually depend on the choice of axioms for set theory. The question can be phrased in graph theoretic terms as follows. Let G be the unit distance graph of the plane: an infinite graph with all points of the plane as vertices and with an edge between two...
 
ಠ_ಠ Stax ruins challenge with it's packed mode. It's a clever way of saving bytes, but it feels like cheating when done to circumvent the rules.
 
7:49 PM
@cairdcoinheringaahing Not really, for most restricted source challenges you want to have controll over what characters are used in what order. packedstax is awful for that.
 
@cairdcoinheringaahing Just being a pedant, you probably meant pedant and not pendant. I don't think you meant you're a necklace. ;-)
 
@H.PWiz if the challenge requests less ASCII characters, packed stax is great. And if it just needs some combinations of characters, adding garbage changes everything easily
 
0
A: Sandbox for Proposed Challenges

Stephen LeppikCount the Matches code-golf combinatorics regular-expression Given a stripped-down regular expression, estimate (rules below) the number of ASCII-only strings that it matches fully (meaning it matches the whole string). You should handle the following: Literals Vertical bars ...|... Captur...

 
Can honestly say I didn't expect so many comments after posting to main, since I had precisely one comment after more than a week in the sandbox. :-/
 
8:06 PM
@AdmBorkBork I can be a necklace if I want :P
 
Holy cow, that Stax answer is short.
 
Damn, too late to edit. deletes comment
@AdmBorkBork Even more impressive: packing it only saves 7 bytes.
 
@Adám J can’t do that. the inverse of prepend 0 just drops the first element
Bummer
 
@FrownyFrog I know. That makes APL slower, but much cooler.
 
At least the non-golflang answers are coming in about where I was expecting (I was guessing that JavaScript/Python/etc. would come in somewhere in the 200-250 range). I like it when I can predict the "difficulty" of my challenges.
Do other people do that? Or am I an outlier?
 
8:18 PM
I try, but usually drastically over-estimate for both golfing langs and non golfing languages
 
Also, @DJMcMayhem, 80 vs 98 :p
 
I know, I know
:P
 
Yep
 
RIP, I haven't even got Curious
 
8:31 PM
0
Q: What are these letters?

0x45So what might be the shortest language for this simple task? Task: You are given an input of type String - the string is a valid hexadecimal number ([0-9A-F]). Convert it to a decimal number and print it to the console. Tests: HEX -> DEC 1 -> 1 98 -> 152 539 -> 1337 1337 -> 4919 F -> 15 Wi...

 
8:45 PM
I just saved a byte in a really cute way in a Python solution: if n is a positive int, then len(`n`)+1 can be len(`-n`)
 
That's pretty cool
 
9:10 PM
@NewMainPosts why string output pls very unnecessary
 
@NewMainPosts Oddly enough, taking input from stdin saved bytes in Jelly there :P
 
@cairdcoinheringaahing How? Isn't stdin always an option per standard I/O rules?
 
@Adám Yeah, but it's not always golfier for Jelly.
 
@Adám The challenge originally forced input via stdin. When it got allowed to take CLA, I tried to rewrite it, but it was longer
 
In fact, it's usually the opposite.
 
9:20 PM
No, it's also an interesting experiment: How many downvotes can you get for a correct answer? — trojanfoe Aug 19 '11 at 7:57
 
@DJMcMayhem obviously we're not the super programmers because of our bad code style :P
 
@ConorO'Brien It is code-only though, so at least some of the downvotes had a valid reason.
 
@Dennis what do you use to sandbox TIO?
 
talk.tryitonline.net might be a better place to get Dennis's attention.
 
9:29 PM
@moonheart08 SELinux
 
TFW you give a blanket to your shivering dog, then immediately start shivering ಠ_ಠ
 
10:40 PM
@EriktheOutgolfer :O
Woah
 
@EriktheOutgolfer Who?
 
dmckee, one of our pro-tem mods, who has left the site for a very long time
 
He's right too, using that approach I can cut 25 12 bytes.
 
10:58 PM
0
A: Sandbox for Proposed Challenges

BillylegotaFile Permissions code-golf Adapted from the UIL - Computer Science Programming free response question "Carla" for 2018 District. Introduction In UNIX-like operating systems, each file, directory, or link is "owned" by a "user", who is a member of a "group", and has certain "permissions" ...

 
11:12 PM
pro-tem?
 
Provisional Temporary
The people that were mods when we were in early beta
 
pro-tempore, i.e. public beta
@Pavel does "pro-tempore" mean that?
no, IIRC "early beta" is private beta, where there are no mods, only SE employees
 
@EriktheOutgolfer I don't think so, but a lot of people seem to say it anyway
At least from what I've heard
 
if I discover such a usage is actually wrong, I'd just stop it, no matter what, although rn I don't have clear evidence
 
I'm really sure it's wrong
 
11:18 PM
pro- [<latin] usually means before, provisional means...something entirely different
and latin tempo means time AFAIK
 
Pro Tempore literally means "For the time being", according to wikipedia
So Provisional Temporary isn't an inacurate translation
It's just not what it stands for
 
it's basically "temporary temporary"
 
11:36 PM
@ASCII-only Is there a better way than Assign(Pop(q), h); to get rid of an element from a list in q?
oh he left, oops
while I'm there, do you know of a golfy way of left padding with zeros in Charcoal?
e.g. zero pad 4 to length 3 => "004"
 
00:00 - 17:0017:00 - 00:00

« first day (2629 days earlier)      last day (2214 days later) »