12:10 AM
1

Challenge Given a string input, output the demolished version of it. The Process P r Pr r o o o g g g r r r rogr r a -> a -> a -> a -> a -> -> -> -> -> m m m ...

@HyperNeutrino that is full version of emc and applies to all things, not just photon, but most of the time we talk about rest frame w/ p = 0 so we simplify

oh ok that makes sense
wait if p=0 then that becomes E^2=mc^2 but isn't it just E=mc^2

crap should be `e=(mc^2)^2+...`

12:51 AM
It was a good day when I found out that Pythagoras's Theorem expands into n many dimensions.
`sqrt(x^2 + y^2 + z^2)` is much easier than `sqrt(sqrt(x^2 + y^2)^2 + z^2)`

> `sqrt(...)^2`
... someone just made a web in electron and calls it faster
that's a browser inside of a browser

@Downgoat Vivaldi

1:10 AM
@ASCII-only vivaldi is electron?

@Downgoat Yes what else would it be

not electron?

@Downgoat :| how do you have a not electron HTML/JS browser

I need to get a presentation done, is there anything particularly intresting that happened in the last two weeks or so in technology/science? You'd think it would be easier to come up with a topic but I'm kinda stuck ._.

1:24 AM
Ooh, thanks
IDK why I didn't think of that, I just went to HN.

@Pavel :|

¯\_(ツ)_/¯

1 hour later…
2:55 AM
>_< definetly did not just `rm -rf ~` again

you are officially the worst at UNIX
8

lmao I did the exact same thing before:
Mar 3 at 1:55, by Downgoat
I have created a directory named `~`
Mar 3 at 1:56, by Downgoat
totally did not do `rm -rf ~` :|

hooves pal
looks into getting a prosthetic hand or thumb

how would I control I do not have the muscles in place

@Neil fwiw it's not really meaningful to think about the relativistic mass of a photon

3:03 AM
Just a reminder I moved `/` to `/www` on a-ta.co

3:52 AM
@Downgoat Brainpower

@Downgoat why do you feel the need to apply the `-f` flag whenever you use `rm`?

@Pavel because otherwise 100000000 confirmation prompts

@Pavel because otherwise 1000000000 confirmation prompts

Anonymous
@Downgoat Those confirmation prompts are there to keep you from doing stupid things like `rm -rf ~`

4:17 AM
@ASCII-only ^

@Pavel still you shouldn't need to have to press enter through a few hundred of those if you know exactly what you're doing

Then yeah, add `-f`. It's there for a reason.
But if you're doing `rm -rf ~` you clearly don't know what you're doing.

Anonymous
@ASCII-only It's well-established that he doesn't know what he's doing with `rm`

@Mego I know :P
@Downgoat This is why you don't use commandline

Idea: global config for preventing files from being modified without a flag simmilar to `--no-preserve-root`
Could also work on `chmod` and such.

4:54 AM
Doing file manipulation in unix scares me.
Ever since `mv / /www`

5:15 AM
@ATaco :| what

0

There is an old, popular riddle: Find an english word with 8 letters that, taken away one letter, creates a new valid word. Repeat that until there is no letters left. Example solution: starting staring string sting sing sin in I Write a script that, given a file with words*, outputs one...

> May the smartest solution win.
...

6:03 AM
That's a hilarious GitHub project

@DJMcMayhem Oh god
:| apparently this guy worked for 60 hours over 10 months
For some reason I don't believe the number of hours

@ASCII-only Wow. Just wow.
That is possibly even worse than my first game attempt (python, literally everything was an if statement).

@Gryphon ... It can't possibly be worse than everything being an if statment

@ASCII-only True. My code was shorter though. And actually ran. At a reasonable speed.
Well reasonable

@Gryphon The one I linked to 1. runs at normal speed (60fps) 2. isn't that bad, the one DJ linked to is horrible
@Gryphon well if it's a way simpler game then of course it's shorter >_>
@DJMcMayhem Wait what. This is not possible. It's shorter than Charcoal D:

6:53 AM
@ASCII-only Please tell me that Charcoal doesn't have Zalgo recognition builtins

@cairdcoinheringaahing No lol

@ASCII-only huh? Are you sure you're responding to the right message?

@DJMcMayhem Yes.
Charcoal was 15k? lines last time I checked
And it's nowhere as full-featured as a Terraria clone >_>

Oh
You're talking about source code size
I thought you were talking about a CMC or something

@DJMcMayhem :/ I can see what you mean now that I reread my message

7:02 AM
Good night o/

2 hours later…
9:01 AM

10:00 AM
My 05AB1E answer is down to 29 bytes! Only two more and it will be half my original answer. `[D¿÷Z#DÓ€gZD<ØŠQ*DŠR!*])øεʒ1›`

@Neil O_o

I could save a byte if I knew a good way to remove zeros from a list

@Neil :| define good

@Neil 0K works on 1-D lists

10:22 AM
@Emigna is it expected that Ó can't handle large numbers like 32659200? But thanks, I'm down to 28 bytes: `[D¿÷Z#DÓ€gZD<ØŠQ*DˆR!*]¯øε0K`

@Neil why `ʒ1›` instead of `ʒ0›` though

that was the old version that used `Š` and `)` to collect results, but then you get a pair of 1s on the stack from the input

@Neil The older prime functions are quite inefficient. I've been meaning to change them to using the newer sieve
Actually might not be useful for this particular command, but it can certainly be done a lot more efficient

@Emigna :| of course, there's no Actually/05AB1E interop
@Emigna Use the fastest one you can find :P

10:38 AM
Haha :)

10:58 AM
ah, `ʒĀ` was what I was looking for

Hello

@Qwerp-Derp Hello

11:13 AM
although, the pair of 1s from the input does mean that the 29-byte version works with an input of [1, 1]

0

Edge Cases are Fun! Your task: write a program or function that when given an ASCII string or integer input, returns it UNLESS: Special cases: Input -> Output 42 -> "Life, the Universe, and Everything" "Hello" -> "Howdy" "Life, the Universe, and Everything" -> 42 ...more soon

I'm not sure if the design is good, my plan is for Ochre (the language) to transpile to Crystal

11:29 AM
> `/edit`

@ASCII-only Fixed

@Qwerp-Derp -1 for prefix

@ASCII-only :( But it's easier to transpile with `Ochre` prefix
I could get rid of it

@Qwerp-Derp :|

@ASCII-only My plan is to encapsulate every builtin into a `Ochre` class, and by using the `Ochre` prefix I can link that to the other thing more easily
Because without it then I'd have to create separate "rules" for parsing these functions
Maybe IDK, I haven't started writing the parser yet

11:34 AM
@Qwerp-Derp Good luck on the parser lol

Well all I really have to do is parse and compile, which is easier than interpreting
And the end program is probs going to be faster than an interpreted program
Other than the prefix thing does the syntax look good?

11:55 AM
@Qwerp-Derp Parsing a normal language isn't easy >_>
@Qwerp-Derp I think so

@Qwerp-Derp Is `a |> b(c)` the same as `b(c, a)`?
Also your reduction factorial function is wrong; you should be reducing over `(a, b) -> a * b` not `a + b` :P

12:12 PM
@HyperNeutrino No, it’s the same as `b(a, c)`, the operator you’re looking for is `|>>`, which pipes to the end of the function
@HyperNeutrino Nice catch :P on phone rn, so will fix later

12:51 PM
@DJMcMayhem Oh dear. Someone started porting it to Scala. (check the Issues tab)

I've already lost count of the number of times I've clicked on the Stack Exchange logo expecting it to open the super collider…

@Fatalize Super collider?

1:07 PM
56

I ran into a small usability problem with the StackExchange link on the left side of the header bar. I liked that I could quickly see responses from various SE sites. But it wasn't immediately obvious how to close it. There was no "X" in the upper-right corner and simply clicking on an open sp...

tl;dr the dropdown thing that is now completely to the left

@Qwerp-Derp Oh okay cool! :D

@Fatalize You mean the hamburger icon on the far right?

yes

Yeah, I've gotten confused with that, too. Like, why would I want to go to the SE homepage rather than my other communities?

Who knows why they even moved it to the right

1:15 PM
@Fatalize Wasn't dropdown thing always on the left

@ASCII-only I meant "completely to the right"

@Fatalize deal with it
Oh actually
It's the userscript that's fixing it for me

Having to use a userscript to get a decent top bar is pretty sad

@Fatalize It is :'(

Huh. Mego is bountying that userscript.

1:24 PM
It's almost as sad as using a userscript to get a website design… :p

0

Frankenstein's Name code-golfstringrandom Introduction: Since it's almost Halloween, I was just thinking of some random Halloween-themed challenges. Eventually I was reading through Frankenstein's wikipedia page, and came across the following text: The creature Part of Frankenstein's ...

1:46 PM
0

Find the greatest line code-golf array-manipulation You will be given a 2-D array A of integers, and a length N. Your task is to find within the array the straight line (horizontal, vertical or diagonal) of N elements that yields the highest total sum, and return that sum. Example N = 3, A =...

I wonder how codegolf.stackexchange.com/questions/145222/… got to -21. It's a bad post, yes, but it's not the second worst post on the site.

1

Given a string as input, print a new string with each letter pushed to the right by its respective alphabet index. We all know that A is a slow and Z is a fast letter. This means that Z gets shifted to the right by 25 spaces, A doesn't get shifted at all and B gets shifted by 1 space. Your prog...

@Pavel Can't say I didn't warn him.
brb making Linux distro that comes with Jelly
8

2:04 PM
@Dennis don't even need to fork an existing distro, just fork the installer.
Actually seems really easy
Just need to package jelly into an rpm.

Would a KC regarding a very small set of words with a lot of repetition be well received?
Specifically, print the following:
known knowns
known unknowns
unknown knowns
unknown unknowns

Is anyone here familiar with byte/signal-level audio programming?

2:20 PM
@Dennis Idea: make a Fedora installer that runs the TIO setup scripts, so it has all the langs.

2:33 PM
0

There are known knowns code-golf kolmogorov-complexity string Former US Secretary of Defense, Donald Rumsfeld, famously popularized the phrase "known knowns." Here we're going to distill his remarks into a four-line stanza. Specifically, output this text: known knowns known unknowns unknown k...

@Pavel I reckon its a combination of the language restriction, the "We hate pop-cons" current attitude, and the fact that the task is not even suited for a pop-con style question

@cairdcoinheringaahing well it's not a popcon anymore.

@Pavel Hmm.

2:48 PM
I think a lot of the downvotes (mine included) are due to the language restriction. There's literally no point to having that as part of the challenge specification. And the OS restriction. And the fact that the wordlist is poorly specified.

@cairdcoinheringaahing that was actually changed before the first downvote.

I personally haven't voted, answered or commented in any way on that post. I don't think its a good post, and so am just leaving it alone
@Octave ಠ_ಠ Why is `sombrero()` a builtin?

@cairdcoinheringaahing What does it do

@Pavel Draws a sombrero on a graph
@Pavel Try here

Maybe it's a common drawing algorithm test, like the Utah Teapot

2:58 PM
@AdmBorkBork That'd be kinda easy in Python, and horrible in Jelly :P

One of the reasons I came up with it.

ಠ_ಠ 66 bytes is the best I can come up with in Python

I've got 46 in PowerShell

Any Pythoners know why this fails?

because it's python 3

3:09 PM
ಠ_ಠ Just realised that

@cairdcoinheringaahing Because that's Python 3, you need parentheses around the `print()` function
Ninja'd

You can also save bytes like this, in case you didn't realise

TIO Add a language guesser. Runs the code in every language in which it doesn't error :P
@NieDzejkob Yeah, I was golfing it, and couldn't realise why it wasn't working
Oooh, new challenge idea. Any thoughts? Answer-chaining doing a task (undecided yet, but something to do with Fibonacci) where your code has to be of length `n`, where `n` is the lengths of the previous two answers added together

That's one of the reasons that code-bowling has fallen out of favor

@AdmBorkBork See, I don;t get that. I think using the definition: "Your code must not work if any subset of characters are removed" should be enough to prevent padding?

3:20 PM
Not necessarily. Just put a check in that validates the length of the source code against a magic number. That was one of the methods used a lot in Programming a Pristine World.

@cairdcoinheringaahing A number, usually unexplained, that should be replaced with a CONST or the like with a description. Here, it would be the length of the code.

@cairdcoinheringaahing I think the main problem is that difficulty will decrease with more answers, rather than increase
That's a major problem

3:36 PM
Ugh, can we delete this?
And, for that matter, this

How about an answer-chaining question where you output sequences, and the program length of the next answer is your sequence `a(m)` where `m` is the length of the previous answer's program

Oh is that how they do it. Hm alright

3:50 PM
Well, it's a slightly different variation of [this OEIS challenge] because the bytecounts in my version play a much larger role in the chaining

@Sherlock9 How so? I don't see any difference

The way you choose your next sequence depends on `a(m)` sure, but `m` in that challenge uses the A number from OEIS. My version uses the bytecount of the answer before you
That is the only difference, I think
Hi @Riker o/

o/
oh, downgoat did another rm -rf? lol

@Sherlock9 The A number used is determined by the bytecount of the answer before

@cairdcoinheringaahing Right, but my version uses it directly. You can use any sequence in the next answer as long as the bytecount is correct

3:54 PM
So, if you can use any sequence, just so long as your bytecount is correct, what's the challenge?
And what makes a bytecount correct?

@cairdcoinheringaahing no dupe sequences probably
@cairdcoinheringaahing it being equal to A(m) where m is the length of the previous program and A is the sequence you're calculating

For example, I as the author start with Fibonacci and my code is 12 bytes long. So the second answer must be F(12) or 144 bytes long but some other sequence

@Sherlock9 Any other sequence?

Anything that hasn't been used before

let's say I'm using java: my program to do the natural numbers is 144 bytes long, and goes 1,2,3,4,5,6, etc.
@Sherlock9 why 144?
I understood that A was your sequence, not the previous

3:58 PM
12th Fibonacci number

am I wrong?
ah ok

Although, that does raise the question, can answer-chainings be closed as dupes, given that they all rely on the first answer. For example, if I reposted the OEIS one, but starting with sequence 1, rather than 210, it would be totally different

So you write (in a practical language, probably), the original Kolakoski sequence starting with [1,2]. Here `f(144)` has to be 1 or 2, which means the third answer must be 1 or 2 bytes long
The challenge is in the back-and-forth of the bytecount

somebody is probably going to use 1,1,1,1,1,1 really fast

@Riker Along with all the constant sequences

4:04 PM
sounds like something to be disallowed in the main questino body

@AdmBorkBork Somehow, my Jelly solution is longer than my Python solution (I haven't fully golfed it, but it's at 91 bytes
)

I should note that I doubt I'll actually write this question up

@Sherlock9 Are duplicate bytecounts allowed?

I think so

@EriktheOutgolfer premature Congrats on 20k!

4:11 PM
huh

> 19,958 REPUTATION

I can't be bothered to wait until you get 50 rep

and...why wait for me to get 20k rep?

Notable achievement?
@EriktheOutgolfer anyways, is there a shorter way to get an empty string in Jelly than `“”`?

4:22 PM
@cairdcoinheringaahing ⁶ does it if you don't have six cmd line args IIRC

@J.Salle Nope, `or ' '.`
Returns a space

Oh I see

Although, type-casting might make `⁸` into an empty string...

`“”` would be shorter though wouldn't it?

Ugh, it does, but it requires a space after it to be used in a list
@J.Salle No, implicit type-casting

4:26 PM
Hm, interesting
but if you need a space, then it's the same as `“”` ?

Yep. I think `“”` is the best way to go

@cairdcoinheringaahing Can't you just literal string it for 60-some?

#justsayin

Also, its Jelly, so I could just compress it. (ノ°Д°）ノ︵ ┻━┻

4:35 PM
@EriktheOutgolfer 20k is the Trusted User level as soon as our graduation takes place, so a lot of what you're currently used to

@AdmBorkBork Which reminds me, I'm screwed if they give us a design tomorrow :P
I'd still be able to open/close though \o/
And I'd need another 7k to be able to see deleted posts. I'm not sure if that's a good or bad thing :P

@cairdcoinheringaahing Why is Politics your parent account for chat?

@AdmBorkBork I think I'll be way over that if we ever get a design
like, ≥25k

Very likely.

Where is the page with all the reputation privilege stuff?
I keep forgetting where they put it

4:47 PM

God bless you, sir

@cairdcoinheringaahing It just seems odd, given that you're not active on that site.

Change ^^ to stackoverflow.com/help/privileges to see what they will be (hopefully)

Or puzzling. or movies. or any other graduated site

4:50 PM
I actually am using Puzzling
Good suggestion

@AdmBorkBork I did it before my last suspension because if my main user isn't PPCG and I'm suspended here, I can chat

Huh.

Basically I'll continue to have everything up to tag wiki edits
Well, since for some reason, I do want to continue to see deleted answers, I think I should try to get to 10k. Everything after that can wait

@Sherlock9 I want to get to 10k before "graduation", then I'll try for 20k, but won't care about not getting it in time :P
@AdmBorkBork 48 bytes, and I'm stopping golfing it :P

5:12 PM
ಠ_ಠ I want to remove bytes so much from my program, that I'm rewriting the Jelly string compressor. And @^, not a chance :P

5:44 PM
0

Hunting The Wren Write a program to produce the words to the folk song Hunting The Wren. http://www.youtube.com/watch?v=80n4CW0dE1A "We're hunting the wren." says Robin to Bobbin. "We're hunting the wren." says Richard to Robin. "We're hunting the wren." says Jack of the land. "We're hunting t...

6:18 PM
Is there a name for a function that ceils when positive but floors when negative? So ceil(-9.5) = -10 instead of -9. (I know it can be done with sign and abs.)

Round away from zero
maybe?
Oh, wait, you don't specifically mean just at the halfway point

Right, anywhere. But "ceil away from zero" kinda works

It's like the opposite of truncate

6:49 PM
@HelkaHomba "round away from zero" (wikipedia link)

huh what happens in nethack on friday 13

Q: What's the difference between Mathematica and Wolfram Language?

@cairdcoinheringaahing Several dollars.

Depends if you want a Raspberry Pi or not.

7:04 PM
Q: Do we have a site blog? I don;t think so, but I'm not sure
Also, I love the fact that Jon Skeets last chat message was "I should really go and do some ironing...". It makes it seem as though he's been doing ironing since 2011 :P

He has.

@cairdcoinheringaahing Wolfram Language is a programming language, Mathematica is an implementation.

@Dennis Ah thanks

7:54 PM
@cairdcoinheringaahing yea lemme find the link

8:22 PM
0

Be typically flexible efficiently code-challenge Write a short function that returns outputs of different types. If L is the length of your code and T is the number of different types returned, your score is (T−1)/C. The highest score wins. Obviously your programming language must have a clea...

8:49 PM
@Downgoat Could I write something about brain-flak for that?

@DJMcMayhem sure, definetly. Are you a member of the code-golf publication atm?

I don't have one lawl

Is it bad form to use properties that don't change over the lifetime of the class?
Rather than just a member variable

9:04 PM
What language?

C#
I guess it might matter if the property is called a bunch and always calculates the same thing, but it's nice to not clutter member vars.

@HelkaHomba does C# not have lazy vars?

I'm just trying to remember what exactly a property is in C#. Is that just a straightforward function? Like `return 4` kinda?

IIRC it's a `T foo { get; set; }` kinda thing

@DJMcMayhem Basically like a function with nicer get/set syntax I guess

9:13 PM
Oh yeah
Couldn't you just not define the set?

I can but then `float foo { get { return LongButConstMathExpr; }}` calculates the big expression each time I use foo.

@HelkaHomba could you precalculate it once in the constructor?

```private float? foo_cache;
float foo { get { return foo_cache ?? (foo_cache = LongButConstMathExpr) } }```

@Downgoat Better, but then I may as well use a member var and no property :p

9:43 PM

@flawr that's hardly surprising, it's common knowledge that Weird Al is at the center of a vast global conspiracy

10:04 PM
CMC: Given a PPCG user ID, return time elapsed since the last time they posted an answer.

Just a quick question, how would you learn languages like Jelly or Charcoal? The GitHub documentations are usually a bit vague, atleast for my understanding.

Jelly's documentation was a bit vague at the beginning, but now I think it's quite good
Anyway, for me the doc is the best way to learn. I learnt CJam that way. That, and practice. And seeing others' answers

10:37 PM
@IanH. There's a room dedicated to teaching people Jelly, if you want to learn it. I'd be willing to teach the basics

11:10 PM
Charcoal's docs are better than they used to be, but also I found its code wasn't too difficult to get the gist of

11:35 PM
@IanH. you could try learning one of my languages but apart from divine inspiration you probably won't get anywhere. docs are a problem for me :p

@IanH. Pyth has a goodish documentation: pyth.readthedocs.io/en/latest
:P
but otherwise, just look at example programs or read the source i guess

11:50 PM
Visual Studio is autocompleting `if` to `IFormatProvider`. Every single time I type `if`. ಠ_ಠ.

Anonymous
@Pavel Try disabling Visual Studio in your preferences
2

@Mego wait a second...

seems reasonable to me, I have it disabled in my preferences

CMC: graph florets of a flower but with a random RGB color for each dot

oo I think jolf has a builtin for that

11:59 PM
I know it has the golden angle thing