« first day (2421 days earlier)      last day (2637 days later) » 

00:01
In fact in the comments I said that
@Dennis is making a trivial edit OK to fix your vote (when you hit the wrong button)?
@Christopher2EZ4RTZ Do you have the french formatting script..?
@ATaco idk
i just have big taco script group
0
Q: Reversible program

iBugObjective Write a program that outputs some printable ASCII characters. The trick is that if the program is reversed byte-by-byte, it must output the same thing in the reverse order, byte-by-byte, too. Rules No standard loopholes. The program must not be a palindrome, nor can it be 1 byte in ...

...Did you enable everything?
00:16
@NewMainPosts Charcoal can do this :P
yay I have 2 bytes
@Christopher2EZ4RTZ not a suitable place to ask that
I find my solution very to the spirit of the challenge.
Quick question about this challenge: https://codegolf.stackexchange.com/questions/142794/draw-my-contours
Is it okay (in general) to create a function that takes an array of ints as input for challenges like this?
@JonathanS. Generally speaking, yep.
Thanks! :)
00:28
Oh, the OP also posted an RProgN2 answer! I love seeing people using it!
omfg my brother is so fucking loud
I swear I'm half deaf in my right ear by now
@ASCII-only Idea: Compile to BF and then use BF -> C compiler and then use C -> LLVM compiler and then use llc to optimize and compile
... Then write BF
@Downgoat :|
Which BF
00:34
@ASCII-only idk if would work though as BF don't have typical memory model
:I I was using len 2 base 250 literal instead of len 2 string in jelly
fail
00:48
@HyperNeutrino +1
:P
the contour problem was fun in Jelly
good exercise for higher level students in JHT IMO. Probably suitable for level 2-3+ or something like that
@Pavel RProgN, 6 bytes. ~]L1T+
Have I said I love C?
01:09
C IS AWESOME
int*f(s,v)int*v,s;{for(;--s;)v[s]+=s+1;} should work
is it bad that I made a language that transpiles to java simply to avoid writing java code
@ConorO'Brien No
In fact that's not good enough
At least transpile to Groovy/Kotlin/Scala if not bytecode directly
I need to use java and generate good java
AP CS class
int*f(s,v)int*v;{for(;--s;)v[s]+=s+1;} also works.
01:13
ah nice
I was skipping the first element, fixed for 0 byte cost. int*f(s,v)int*v;{for(;s--;)v[s]+=s+1;}
@Sp3000 Is your name Sppppppppp... run length encoded?
7
Nah, Futurama
@Sp3000 wait who are you?
@Sp3000 oh right, I've asked before
01:21
@Christopher2EZ4RTZ he's Sp3000
@ConorO'Brien Write Kotlin. Kotlin transpiles to Java
too complicated
Lesson_17_Activity_One
"Enter the Scores:"P
0 @sum
0 @size
Ii @input

W :input -1 C= {
    :input @+sum
    :size C+
    Ii @input
}

"The average is: " :sum CD :size / + p
much easier
+1 way clearer than in Java
@ConorO'Brien I hate to break it to you
But that is ugly af
01:29
it's an esolang, did you expect a painting
7
oh wow Tetris already has 300 votes in < 2 days O_o
if I wanted to program in a pretty language I'd use D or Ruby
what is :size / + p meant to mean
liek what tf is / +
it's postfix if that helps
:foo is a variable reference
01:32
oh
ohhhhh
that makes a lot more sense
what does Ii @input mean
int input = scan.nextInt();
yeah that is ugly and unreadable af
5 mins ago, by Conor O'Brien
it's an esolang, did you expect a painting
ik :P
huh tetris the question got a huge vote spike :P
D: PhiNotPi's summary answer has a downvote D:
01:35
Your language appears to be implicitely typed, and Java isn't.
@HyperNeutrino IntIn(input)
Hmm.
@ConorO'Brien I = int? i = scan.nextInt()?
@Christopher2EZ4RTZ Maybe you shouldn't ping dennis with random things all the time?
nope
Ii is one command, of the input type
basically what ascii said
I have a rudimentary type deduction system that keeps track of variable types
01:37
ah ok
yo why do all of the Tetris answers have 1 downvote on them
(on an interesting side not, if you were to imagine the above as being prefix instead of postfix, you'd have a pretty good idea of what jolf was when it was a baby)
@HyperNeutrino someone's been hurt emotionally by tetris, obviously
@ConorO'Brien o
2 messages moved from talk.tryitonline.net
@Christopher2EZ4RTZ If you have the edit privilege, sure. Vote count is more important than revision history.
@Dennis But at the same time, what if it's a really old challenge and you don't want to bump it?
Time on the front page is limited. Votes are forever. As long as this happens because of actual mistakes and very infrequently, I see no problems.
@ConorO'Brien Whoops, golfed the byte count. :P
Thanks!
01:52
besides most answers on this site could use the extra exposure :P
@Dennis no problem!
02:14
0
A: Script that outputs a script that prints a given input

HyperNeutrinoProton, 21 bytes a=>'print(%r)'%a Try it online! needs a pull from TIO before this will work online, but you can check the GH repository.

@HyperNeutrino
oh whoops must've forgotten to address that
done
thanks
02:47
@Sp3000 I've watched every episode of futurama and this never occurred to me
>_<
03:08
> Get used to this even-same, odd-changes notion. We will be seeing it a lot ("lot" is a mathematical term meaning you will be sick of it - but that it's probably something that's really important.)
03:49
1
Q: Output with the same number of digits of pi as the length of the code

MD XFYour challenge is to print x digits of pi where x is your code length. Examples: Source code (length) -> output foo (3) 3.14 foobar (6) 3.14159 kinda long (10) 3.141592653 +++++ (5) 3.1415 123456789 (9) 3.14159265 You can use floor(π...

04:07
Is watching Star Trek or Dr Who out of order a bad idea?
star trek, probably not. Dr who is probably fine as long as you're not watching a finale. there's a bit of a story line in dr who but I've skipped around
 
7 hours later…
11:18
CMC: Given positive integers a and b, output positive integers c and d such that c divides a, d divides b, gcd(c,d)=1, and lcm(c,d)=lcm(a,b)
So [LCM(a,b),1]?
@ASCII-only "c divides a, d divides b"
Ah
Is it always possible
@ASCII-only yes it is
11:33
0
A: Sandbox for Proposed Challenges

Ian H.Literally print a Polyglot code-golf polyglot Your Task Write a program that outputs Poly when executed in the first and glot when executed in a second language of your choice. Obviously the first and second language can't be identical. Input None! Output Either, Poly or glot. Rules Thi...

1
Q: Hidden sentences in the license plates

Kevin CruijssenIntroduction: Inspired by both Perfect License Plates and How many points does my license plate give? Just like in the challenges above, me and my little brother had a game of our own with license plates as kids. We tried to create (random/funny) sentences with the (numbers and) letters of the ...

@LeakyNun Test case?
11:50
12,18 -> 4,9
@LeakyNun May we output all if more satisfy the condition?
Ok, golfing my Python 2 approach.. Way too long now
@LeakyNun 119 bytes. Feels too long.
yaaaay my positive reputation is now higher than my negative
@HyperNeutrino what?
oh I understood, nvm
11:59
I mean I'm starting to get upvote notices :P
I don't think 12 is divisible by 9...
@LeakyNun ?
@Mr.Xcoder "c divides a, d divides b"
12:00
oh
> "Another attack in London by a loser terrorist. These are sick and demented people who were in the sights of Scotland Yard. Must be proactive!"
> loser terrorist
lol
@LeakyNun 132 bytes then, still too long, golfing
I think this should work too, for 129 bytes
Is there a Jelly thing for 0 -> 0 otherwise -> 1 like truthy check?
I could do sign(abs(val)) but that's 2 bytes and that's too many
"2 bytes" "too many"
@HyperNeutrino Like 0 yields 0 and anything else 1?
12:05
well yeah if I want to beat jonathan I need to do better than that :P
not not would probably be 2 in most languages
a 15-byte jelly program is 16 bytes too long
3
@muddyfish That would also give 1 for [], {}, (), False ...
no
not not [] == not not 0 == not 1 == 0
12:09
@LeakyNun Is there a Jelly built-in like Pyth's invariant?
not really
:c sad...
CMC: [a, b, c, d, e, f, g, h, i, j, k, l, m, n] -> [b, a, d, c, f, e, h, g, j, i, l, k, n, m].
odd length?
@LeakyNun Always even length.
jelly 4 bytes
s2U[tighten]
12:14
you could just say s2UF lol
oh nice
:P
brb national anthem
6 bytes in Pyth >.>
Anyway, I like the 9-byter more: sC,%2tQ%2
6 bytes: s_McQ2
5 bytes: sC_c2
12:19
:D
predicts 5 :Ds Moved to Trash.
:(:):(:):(:):(:):
CMC: Given a positive integer, convert to binary; replace each 1 with a ( and each 0 with a ) and join with : with a colon at the beginning and the end.
12:23
test case
13 -> [1, 1, 0, 1] -> "(()(" -> ":(:(:):(:"
@Mr.Xcoder 05AB1E, 4 bytes: 2ôí˜
is there a dyad that swaps left and right
(jelly)
darn I was hoping to get a 3-byter but I got ;@2/F instead ;(
@HyperNeutrino try "tack"
thanks!
ṭ2/F still 4 bytes tho :(
CMC: Given a list, apply one iteration of bubble sort from either end.
12:33
test case?
[1, 3, 7, 5, 2, 6, 4, 8] -> [1, 3, 5, 2, 6, 4, 7, 8]
Starting from the left, bubbling up larger values.
The 7 is picked up and moved past the 5, 2, 6, 4 and stops before the 8.
a better example would be:
[4, 2, 3, 1, 7, 5, 6, 8] -> [2, 3, 1, 4, 5, 6, 7, 8]
The 4 is moved past the 2, 3, 1 and then the 7 is moved past the 5, 6.
How do we know what to move?
Nevermind!
@HyperNeutrino PowerShell, lots of bytes -- Try it online!
CMC: Given a list of numbers and a proper sublist, return the cyclic successor of the sublist in the list.
12:38
what
[1,2,3,4], [1, 2] -> [2, 3]
[1,2,3,4], [3,4] -> [4, 1]
@Mr.Xcoder obviously not biased :P
Jelly: iЀ‘ị³
wait in Pyth isn't that just .r
._. no bias lol
12:43
@HyperNeutrino In fact it is .rE
@Mr.Xcoder function is accepted.
@LeakyNun ...
You're right
1
Q: Make two numbers co-prime while preserving the LCM

Leaky NunGiven two positive integers a and b, output two positive integers c and d such that: c divides a d divides b c and d are co-prime the LCM of c and d equals the LCM of a and b If there are more than one possible answers, you can output only one or all of them. Testcases: a b c d 12 18 4...

@Leaky Any suggestions? My Python answer feels insanely long?
12:45
@Mr.Xcoder no :P
@LeakyNun Just in case, do you have a shorter approach in mind?
@Mr.Xcoder I have an algorithm in mind but I haven't implemented it
oh ok... relieved
@Mr.Xcoder try to come up with an algorithm :P
@LeakyNun >_>
@LeakyNun For your second last test case, all of these work: [[1, 30], [2, 15], [3, 10], [6, 5]]
12:49
@Mr.Xcoder good to know
And for the third, 3 2 also works
oh, I intended it to be 6, 15 lol brb fixing
fixed
Ok, gtg now. Bye!
 
2 hours later…
14:30
dunno how anyone manages to learn these esolangs...
for instance, in 05AB1E, where's the command to duplicate the top of the stack?
also, I could use the inverse operation to Ó whatever that is
@Neil D
The list of commands is here
Ó appears to be the prime exponents monad huh
lemme thing about what monad would inverse that
sure, but that list only seems to have Ð to triplicate the top of the stack...
Search for push a, a
ah
and of course push b,a has no space
sigh
yeah the docs are a bit hard to use IMO
14:43
One day somebody's gunna make something legitimately functional in BrainFlump, and I'll be astounded
@Mayube Tetris in BrainFlump? :P
And I think that it's Turing Complete, but proving it's equilancy to brainfuck would be as difficult as coding in it.
well, it took me 32 bytes, but I got there
@Neil You and me both.
14:54
now to wait for the 05AB1E experts to show how it should have been done
CMC: Output the nth term of the sequence 1 -1 -2 2 3 -3 -4 4 5 -5 -6 6 7 -7...
To my knowledge, no OEIS entry exists for this sequence, which is odd.
SOGL, 9 8 bytes: I».»2%⌡±
@dzaima Suggestions for title when I post to main?
@cairdcoinheringaahing Save yourself the pain and don't start down that path.
Finally someone with some math
3
A: Make two numbers co-prime while preserving their least common multiple

nwellnhofPerl 6, 48 bytes {my$g=$^a gcd$^b;{$a*$_/$g,$b/$_}(($a/$g)gcd$g)} Try it online! Hasn't anyone noticed that there's a simple closed formula? With g = gcd(a, b) B = gcd(g, a/g) a valid result is c = a * B / g d = b / B

15:07
@cairdcoinheringaahing do it
@Pavel 0-indexed or 1-indexed?
Your choice
Still need a name
@LeakyNun Will be posted on main literally as soon as I have a name.
@Pavel so abs(n) = ciel(n / 2)? And the sign depends on the parity of n, and the parity of ciel(n / 2)
Yep.
15:13
@LeakyNun but has he proven the formula?
(or can you prove it?)
he hasn't and I haven't thought about it
hmm...I'd rather not use something unproven...
meanwhile Lynn has another non-brute-force approach
-1
Q: Hard-Coding in "One OEIS after another"

KSmartsThis question is about the rules of One OEIS After Another. A comment was made about hard-coding the values of a particularly difficult sequence, for the sake of keeping the challenge going. Peter Taylor claimed that a hard-coded answer must account for at least 1000 terms or else be invalid. T...

@LeakyNun I think I can prove lynn's formula is correct
unfortunately I don't think it will make my python answer shorter
15:19
@EriktheOutgolfer really?
is there a transpose in 05AB1E?
well, python isn't the kind of language that generates a list f(N) = [a, b, c, d, e, ...] where 2**a + 3**b + 5**c + 7**d + 11**e == N
@Neil there is truncating transpose and transpose with filler
@LeakyNun @dzaima @Mayube Posted
@Pavel they had cmc solutions ready?
(also ciel is kinda unclear)
3
Q: Dizzy integer ennumeration

PavelYour challenge today is to output a given term of a sequence ennumerating all of the integers. The sequence is as follows: If we have a 0-indexed function generating the sequence f(n), then f(0) = 0; abs(f(n)) = ciel(n/2); sign(f(n)) is positive when nand ciel(n/2) are either both even or both od...

15:22
@EriktheOutgolfer Yes
then they should post them
@Neil ø and ζ
@EriktheOutgolfer Clarified
@Pavel well, it's actually called "ceiling function (ceil)", misspelling is where confusion arises
Ah.
Crud.
@EriktheOutgolfer Reclarified
15:25
actually that wasn't what I wanted anyway
I wanted something that would take a stack of [[[a1, a2, ...], [b1, b2, ...]], [[c1, c2, ...], [d1, d2, ...]]] and return [[a1*c1, c2*c2, ...], [b1*d1, b2*d2, ...]]
that's jelly's speciality :p
yeah, well jelly just made my eyes glaze over, at least 05AB1E looked vaguely understandable
+\<0Ẹȯ⁸S¤¬
*@2ḶBUz0ZUo-Ç€S
Number of balanced brackets of length n
My friend and I were having a discussion about this and I wrote up a program, for whatever reason, in Jelly, not Python lol
@LeakyNun no Jelly solution?
@Pavel lol
don't want to
15:34
¯\_(ツ)_/¯
@LeakyNun Well, looks like Erik got it anyway
@Pavel alright
and it's 2 bytes over sogl :(
I think the dyadic chain can be golfed
and there's nothing amazing that SOGL had for that challenge really. Well maybe except floor divide by 2
@dzaima it's supposed to be ceiling divide
maybe that's why jelly is longer than sogl...
increment->floor divide is equivalent
15:38
@EriktheOutgolfer oh yeah, once it needs to be ceiling, once floor
@Pavel true
even though in jelly floor divide is :2
but the original input isn't incremented in there
and I don't think you are doing it correctly
like, you should take the %2 of both numbers and if they're different you negate
@dzaima
.. just realized I can remove the 2% completely
yours seems to floor divide the original input and if it is odd negate the result
I ceiling divide ( = pop+1 // 2) the input and negate it input//2 times
yeah that seems to work...maybe my jelly answer is very ungolfed
yay now 7 bytes lol
15:47
@EriktheOutgolfer ...
..dammit.. SOGL does have a ceiling divide by 2 built-in but it's added as an overload for mirror horizontally and since SOGLs input is untyped it doesn't work..
ok probably first time sogl beats jelly in non-ascii-art challenge?
@EriktheOutgolfer as far as I know
my answer currently uses the input twice so asking for the input on the stack won't save bytes :/
I'll try another weapon
because sogl beating everyone in math-related challenge is just unspoken of
Why is Taxi such a difficult language...
I'm trying to solve codegolf.stackexchange.com/questions/142655/draw-my-downslashes using a stack of spaces.
When a character is \, I push a space, otherwise, I pop
Oh, by the way, in case you didn't notice, all the Tetris hype kinda pushed the Tetris GoL question into the highest voted question on the site
pyke ties sogl :p
I then print the stack of spaces, then the character, and then a newline
@EriktheOutgolfer makes sense that something would tie SOGL :p
16:02
However, that doesn't work. When a \ is followed by a /, the / is indented one space too far.
Does anyone spot the problem?
@Luke makes sense - you're adding a space, but not removing it before /
@Stephen While looking through the compiler source, I found that you could replace "Switch to plan X if no one is waiting." by "Switch to plan X a a.", as the compiler only checks the word count. It might save a few bytes...
Lol, +40 in under a minute.
@dzaima How should I fix it? Should I pop 2 spaces when I'm switching from \ to /?
@Luke there are multiple approaches, but the most plausible one I think is (though I haven't checked) is to push a space after \ but pop a space before /
16:09
Hmm, fair enough. That's going to take a lot of bytes though...
huh. I never answered that question
@dzaima huh, that seems to be shorter than my approach I tried before :o (IIRC I had ~20 bytes, that is 16)
@Stephen Oh, you might be interested in the Taxi quine I wrote a few days ago: link
 
1 hour later…
CMC: Given a string of the form "~-~x", return "-x-2"
the string matches the regex /^[-~]+x$/
the output string matches the regex /^-?x[+-]\d+$/
18:12
could anyone try to submit any challenge? I'm getting errors.
Just submit anything and delete it
@Mr.Xcoder could you help me?
@LeakyNun With your CMC?
@Mr.Xcoder no, just submit anything
Submit a CMC basically?
Oh
lambda a,b:a+b.
CMC: Given an array of integers, get the mean of its deltas
no, I mean, to main
because I am not able to submit anything
@Mr.Xcoder Jelly, 3 bytes: IÆm (untested)
18:16
@LeakyNun Submit some s*** and delete it?
@Mr.Xcoder yes
@LeakyNun An error occurred submitting the question.
@Mr.Xcoder please don't in the future
@Mr.Xcoder same here
Welp, PPCG is down D:
18:17
@Riker come on, I'm testing error
@LeakyNun Can't submit anything.
alright
News Update: PPCG is down!
down != readonly
@LeakyNun Doesn't happen to answers though.
18:20
someone ask it in meta
wait, you can't ask questions :P
rip questions
Did you try asking on Mother Meta?
Anonymous
SE shut down PPCG because it's done. Nothing can compare to the QFT answer, so why go on?
Oh, maybe this is our new design. Answers-only.
@AdmBorkBork In this case, they should've waited until November 1st.

:P
@LeakyNun Someone just asked a question >.>
@Mr.Xcoder danke
18:37
0
Q: Evaluate an expression of minus and tilde

Leaky NunGiven an expression matching the regex /^[-~]+x$/, evaluate it in terms of x and output a string matching the regex /^-?x[+-]\d+$/. For example, the string -~x evaluates to x+1, while the string -~-x evaluates to -x+1, and the string -~-~--x evaluates to x+2. We start from x and evaluate the st...

@Mr.Xcoder we don't delete duplicates
18:55
Google PageSpeed ranks my site down because the delivery of a CSS file is not optimized and therefore blocking. That CSS file is hosted by Google though...
@LeakyNun I recommended deleting it to avoid downvotes.
@mınxomaτ That's kinda funny. What css is it?
Garamond font
Fonts aren't css files o.o
Sure they are.
18:58
link?
Google fonts are CSS files that bootstrap the newest release of the font resource.
oh gotcha
but the font is still probably like a woff or something
or otf

« first day (2421 days earlier)      last day (2637 days later) »