« first day (2442 days earlier)      last day (2384 days later) » 
00:00 - 19:0019:00 - 23:00

12:24 AM
 
1:10 AM
-5
Q: Attempting to Solve an 8x8 Hexadecimal maze - start at 73 - follow path to F0

K.Ayer![Hexadecimal Maze][1]][1] ![1]: https://i.stack.imgur.com/K8iKW.png

 
Anonymous
1:41 AM
 
VSCode is now by far my favourite editor.
Friendship ended with SublimeText 3, VSCode is my best friend now.
 
2:53 AM
@Mego Haskell, 44 bytes: p x=[n|n<-[2..x],product[1..n-1]remn==n-1]
Ah heck, the back ticks around rem disappeared
 
Anonymous
@Sherlock9 Yeah :P I'm not a fan of list comps
 
This is golf, my friend :P
 
@Sherlock9 I wonder if a similar approach can be achieved using Coconut.
 
@Sherlock9 A backslash will usually escape a backtick.
 
Usually
 
 
1 hour later…
4:05 AM
Sorry I didn't see your messages until just now
@Pavel Let me try that soon
 
4:16 AM
@ATaco Thanks for the tip
@ATaco Also 44 bytes in Haskell: p x=[n|n<-[2..x],and[n`rem`m>0|m<-[2..n-1]]]
 
@Sherlock9 I should learn haskell
 
0
A: Sandbox for Proposed Challenges

fireflame241Who's going? Can you help me? If Abe goes, then Beth and Diana go. If Beth goes, then Catherine goes. If Catherine goes, then Diana goes. If Diana goes, then Ezra goes. Only three people go. Who goes? Challenge Given a list of several pairings of people, such that in each pairing the second pe...

 
@Riker You should learn coconut instead.
 
4:39 AM
You should learn both
 
Or learn ARBLE!
 
@Sherlock9 Coconut, unlike Haskell, had usability in mind.
 
@Pavel I didn't say he should learn Haskell first
It's just one of those things one should eventually learn in programming, in my opinion
 
I suppose. Lisp, C go into this category also.
 
I can write Lambda Calculus, I don't need Haskell :P
 
4:45 AM
Although, IMO, F# > Haskell
 
Fair enough
 
Anonymous
5:17 AM
@Pavel Haskell is plenty usable!
 
5:28 AM
@Mego the design philosophy is to make code that does as few things as possible
 
Anonymous
@Pavel That's good design. YAGNI + cohesion
 
Anonymous
@Dennis Semi-random question that I don't remember if you've said the answer to it: what subject(s) do you teach?
 
Has anyone used Kotlin before?
 
@ATaco yes
@Mego math
 
Oh hey, it's already on TIO :P
 
Anonymous
5:36 AM
@Pavel I meant more specifically :P
 
0
A: Sandbox for Proposed Challenges

Super ChafouinPrime ant The "prime ant" is an obstinate animal that navigates the integers and divide them until there are only primes left! Initially, we have an infinite array A containing all the integers >= 2 : [2,3,4,5,6,.. ] Let p be the position of the ant on the array. Initially, p = 0 (array is 0...

 
@Mego That causes beautiful control flow, not a more usable language.
@ATaco and it's slow AF in tio
No one knows why
 
As I've noticed...
Which compiler is Dennis using?
 
Idk, cat /srv/wrappers/kotlin
 
Is there a tag for time complexity golf?
 
5:38 AM
It compiles to like 4 different languages.
@Challenger5 Yep,
 
@ATaco kotlinc with no options
 
@ATaco Thanks
 
(I don't actually know what it defaults to)
 
JVM
I think
 
5:40 AM
¯\_(ツ)_/¯
 
Ceylon has the same issue by the way
 
I could host it on a-ta.co...
Jesus christ the command line compiler is just generally slow as all hell.
 
5:59 AM
0
Q: Make a Bit Continent

Challenger5Let's imagine we have a matrix of bits: 0 1 0 1 1 0 1 0 0 1 0 0 1 0 1 0 0 1 0 1 1 0 0 0 1 0 1 1 0 1 0 1 0 1 1 0 0 1 0 0 1 1 0 1 0 0 0 1 0 1 1 0 0 1 0 We want to set some of the bits in this matrix such that it forms a contiguous blob of 1s: 0 1 1 1 1 1 1 0 0 1 0 0 1 0 1 0 0 1 0 1 1 0 0 1 1 0 ...

 
6:43 AM
That is so satisfying
 
Nice
Figuring out how to actually get upvotes on answers is still an unsolved question for me
There's this but the only reason it got upvotes was because it was posted a few seconds after the challenge
Maybe 10~30 seconds
 
Anonymous
@Challenger5 From my experience, make Tetris.
 
@Mego Unfortunately, no-one else can win that particular challenge
 
7:03 AM
@Mego The part of that with the most upvotes was Part 1, which was CW. The one with the second-most upvotes was for Part 2.
So I guess I only have to make a metapixel, some rules, and some circuitry to get 449 upvotes?
Still hard, but much easier than Tetris.
 
Anonymous
@Challenger5 The upvotes scale down with the parts. I think the part I wrote (the current "final" part) has the least upvotes.
 
Is that just lazy people reading and +1'ing the first few parts but getting bored?
 
Anonymous
Almost certainly :P
 
So the upvote discrepancy between parts is a measure of how readable that part was
 
Anonymous
More of a measure of how much the reader had to read before the part
 
7:11 AM
*Relative to the number of upvotes on the part
 
Anonymous
Oh, maybe
 
Anonymous
I think also how visually impressive the various parts are reflected on the voting
 
Anonymous
Also the part about the newer language got less votes because it went up a bit after the rest of the parts, due to muddyfish not being available when it was his turn to post
 
@Mego I'd say good images are part of readability
 
7:47 AM
@cairdcoinheringaahing ... it's pretty easy
I really want to try but I'm (not really) a perfectionist
So I'm trying to ask for advice on how to make it as small as possible
Now that I think about it I should ask on the forum
 
Anonymous
8:13 AM
You know, it's pretty insulting to the people who spent a year and a half on a solution when you say "I could easily do better"
 
@ATaco you're supposed to wrap your string in double backticks if it contains backticks (and triple if it contains double etc.)
 
does`it`really`work
huh TIL
 
9:00 AM
0
Q: Make a list continuous!

Chelsea G.Take an input list L containing positive integers, and insert the least amount of integers into the sequence, so that you make it a continuous one. Example: L = 4 2 6 1 Out: 4 3 2 3 4 5 6 5 4 3 2 1 The input and output formats are optional. Test cases: L = 1 Out: 1 L = 10 4 Out: 10 9 8 7 6...

 
 
1 hour later…
10:02 AM
@MartinEnder You found it, finally
I was 100% sure it already existed
 
 
1 hour later…
11:26 AM
0
Q: Recursively concatenated partial sums of [N] with M iterations

Chelsea G.Take two positive integers N and M and create the concatenated partial sums of [N], with M iterations. Output the result of the last iteration. Definition of the concatenated partial sum: Start with a number N and define a sequence X = [N] Append to X the partial sums of X Repeat step 2 M time...

 
11:56 AM
0
A: Sandbox for Proposed Challenges

NeilZoom box drawing characters Here are some sample box drawing characters: ╷ ┌┴┐ ╶┤ ├╴ └┬┘ ╵ How do we zoom them? Well, we need to triple their size. The result looks like this: ╻ ┃ ┃ ┏━━┻━━┓ ┃ ┃ ┃ ┃ ╺━━┫ ┣━━╸ ┃ ┃ ┃ ┃ ┗━━┳━━┛ ...

 
@ASCII-only Nice idea with the reduce [1,2,3]/(+) :P I implemented it (took 2 lines, about 30 seconds to type it), so I just hope I didn't screw it up because the only way I have of testing it is getting it onto TIO :P
 
@HyperNeutrino yay
 
It's just this:
def __rmul__(self, other):
    return list(reduce(self, other))
 
@HyperNeutrino but why can't you run it yourself
 
@ASCII-only Chromebook, and there are so many files that I effectively can't do it.
 
12:05 PM
you should get Cloud9
 
(The reason why Enlist is in one file is so I can work on it using TIO#Python3 :P)
@ASCII-only what is that
 
Online IDE (well Docker container so more like a VM)
 
I use it for Charcoal
But you need a credit card for verification purposes now
 
rip
does it cost anything tho
 
12:10 PM
Nope
 
or I could get a remote desktop thing between my laptop and my chromebook
yay hm
Any more suggestions for operator overloads for functions?
 
* for composition maybe? or +
 
* for repetition, + for composition. Already exists :P
 
12:17 PM
hmm | and & should do something but IDK what
 
& is argument binding.
Works similarly to Cheddar
and hm | looks like it could be used for something...
 
@HyperNeutrino Charcoal?
 
wtf
yeah no I'm tired lol
@ASCII-only What do you think would be interesting/useful/golfy behaviour for this?
anyway gtg for now o/
 
12:34 PM
i said code golf out loud and my friend thought i said toad golf so i'm only only saying "toad golf" now
 
incredible
 
Any suggestions for what | should do for function-argument or function-number or function-function?
whoops gtg lol
 
@Riker You are welcome to join the chat room if you do and have any questions.
 
12:49 PM
@HyperNeutrino maybe execute both functions on the parameters and return an array of the results?
 
Anonymous
1:00 PM
@HyperNeutrino f|a should lazily execute f(a)
 
Anonymous
Man, even I don't fully understand the Haskell code that I write :P
 
'morning everyone o/
 
1:19 PM
@AdmBorkBork aw man... someone bumped this to 5 stars. Unlucky
 
@Mego Sorry, what do you mean by lazy?
 
Anonymous
@HyperNeutrino Rather than immediately executing f(a), it should return something that doesn't compute f(a) until it has to.
 
Hm. That would probably require a complete redo of part of my interpreter, which might be a good idea anyway lol. I'll think about it though!
So wait, if I do f = (...); a = 10; x = f|a; a = 15; then when I do print(x) later on, does it print f(10) or f(15)?
 
@Poke Dangit
 
i suppose i could remove my star
oh wait nvm
 
1:26 PM
Nah, it's fine
 
i think there's a time limit
 
yes there is
 
Anonymous
1:49 PM
@HyperNeutrino That depends. Are arguments pass-by-value or pass-by-reference?
 
Anonymous
If they're by-value, then a should be bound at the time of definition, so f(10). If they're by-reference, then the update to a would be visible through the reference passed by f|a, so f(15).
 
@Laikoni Well done :D
 
@StewieGriffin Some ideas: can it be that you have some setting that automatically replaces " by (typographer double quote). Were you typing on the mobile? Text prediction will surely mess with the code
 
2:10 PM
@HyperNeutrino Wait, how does that work?
 
@Mego same as Python and Java; it's pass-by-value mostly but calling the object's functions will affect the parameter itself.
@cairdcoinheringaahing ? It means that [1, 2, 3] / (+) will reduce [1, 2, 3] over addition, which makes /(+) golfier than sum()
 
@HyperNeutrino Yeah, but assuming you're writing Python, list(reduce(*args)) should raise a TypeError
 
I'm not though?
 
Anonymous
@HyperNeutrino So it would be f(10) for your example, but something like a.set(15) would make it f(15).
 
like I'm not using *args...
@Mego hm okay. that makes sense. I'll look into getting that done, thanks!
 
Anonymous
2:12 PM
Glad to help :)
 
@HyperNeutrino So what language? Proton?
 
:)
@cairdcoinheringaahing I am using Python but I'm not using *args...
 
@HyperNeutrino I was using *args as an indicator of arguments. Trying to apply list to the result of a reduce should throw an error IIRC
 
No it wouldn't
wait
yes it would I'm dumb
rip I got confused because all the other ones (map, filter, etc) return an iterable ._.
0/10 me
 
Although, it depends on the starting value given to reduce
 
Anonymous
2:15 PM
@cairdcoinheringaahing It depends on the output of reduce. For example, list(reduce(list.__add__, [[1], [2], [3]])) works fine.
 
@Mego Usually real analysis, measure theory right now.
 
Rip. I've never heard of those. D:
 
Anonymous
@Dennis Interesting, thanks! I can't believe that I haven't asked you in the multiple years that I've known you on PPCG.
 
2:21 PM
@cairdcoinheringaahing How many generations do we simulate?
 
@AdmBorkBork Theoretically infinte
 
Anonymous
@cairdcoinheringaahing Ooh, another use for VarLife :P
 
I would clarify that point in the text, then, that the simulation is to keep running until stopped by user input.
or an interrupt or whatever
 
@Mego If you can do that in GoL, I will give you a 100 bounty
 
Anonymous
Lemme write some Cogol code real quick and run 3 Python scripts :P
 
2:24 PM
ಠ_ಠ That takes the fun out of it
 
Anonymous
Well, the Cogol compiler is in Java, so I guess 2 Python scripts and 1 Java program
 
Anonymous
I wonder if Golly would be a valid "language", using the VarLife ruleset (extended to support all Life-like rules) as the "program"
 
Is Cogol designed to generate the starting config of GoL given a program?
 
Anonymous
@cairdcoinheringaahing No, Cogol compiles to QFTASM, which is assembled into a VarLife ROM.
 
What's VarLife?
 
Anonymous
2:27 PM
The rest of the computer is added by a static pattern with slight tweaks (extending the ROM bus)
 
Anonymous
449
A: Build a working game of Tetris in Conway's Game of Life

El'endia StarmanPart 2: OTCA Metapixel and VarLife OTCA Metapixel (Source) The OTCA Metapixel is a construct in Conway's Game of Life that can be used to simulate any Life-like cellular automata. As the LifeWiki (linked above) says, The OTCA metapixel is a 2048 × 2048 period 35328 unit cell that was cons...

 
@Mego Yeah, I tried reading the posts, but couldn't understand most of it :(
 
Anonymous
VarLife is like GoL, but where each individual cell can have a different rule
 
Anonymous
 
Anonymous
Specifically, for QFT, we used 4 different rules in VarLife: B/S (null space), B1/S (wires), B2/S (also wires), and B12/S1 (logic gates)
 
2:31 PM
crap __rdiv__ isn't a thing
 
Anonymous
@HyperNeutrino You're looking for either __rfloordiv__ or __rtruediv__
 
@HyperNeutrino Neither is __div__, assuming you're talking about Python 3.
 
yup
yup :| I needed __rtruediv__. Now I'm conflicted on whether to get it pulled and working or stop bugging Dennis for today :P
 
Anonymous
Do both :P
 
?
you mean hack his computer and pull it myself? /s
 
2:35 PM
I can't wait for Dennis to implement user profiles (I think that's on the todo list), cause then I can stop bugging him with pulls :P
 
yeah same :P
 
Q: What does my profile picture look like to you guys?
 
not the new one (and when I click on the chat icon it's mostly grey)
 
A bunch of words because your profile picture is blocked
 
so, much like LeakyNun's then?
 
2:39 PM
Does it look like a dog?
 
CMC: Given three positive integers x, y, z, return the smallest x + ay where a is a positive integer such that x + ay divides z. Assume there exists such a.
 
why not just return the smallest a
 
because I'm mean
and because that way I use the newest feature of Proton :P
Example: 5, 3, 10 => 20
 
positive? so a > 0?
 
2:41 PM
yes
 
@HyperNeutrino ...you didn't abandon it?
 
I said I did but I like the spec so I'm just remaking parts of it as time passes
 
20 divides 10?
 
whoops
I got that backwards
I meant such that z divides x + ay
 
in that case, 10 works
 
2:43 PM
I have a 30 byter in Proton though a mathematical approach may be better
@Neil no (10 - 5) / 3 is not an integer
 
Hey
 
oh sorry I got confused
 
python 2, 49 bytes:
x,y,z=input()
a=0
while(x+a*y)%z:a+=1
print x+a*y
 
nice
how about this:
x,y,z=input()
while x%z:x+=y
print x
36 bytes
 
2:45 PM
My tablet is broken and I'm here for help (I know, I know. Here's not the place for that but I just don't know anywhere else in mind, XDA isn't that familiar)
 
I was just trying to write that, but as a recursive lambda
f=lambda x,y,z:f(x+y,y,z)if x%z else x
 
but actually you'd need to do x+=y first because a > 0
 
@Nobody What do you need help with?
 
see the a > 0 part is breaking most of these answers
because 20, 3, 10 will give 20 but it should give 50
 
@Neil I think that can be f=lambda x,y,z:x%z and f(x+y,y,z)or x
 
2:47 PM
Can I flash a ROM (.zip) with Odin? I have TWRP installed and did a wipe, but it doesn't get the USB with the ROM)
 
The Proton feature I'm using is undocumented as of now because more bugfixing
Also sympy broke bitwise
 
@HyperNeutrino PowerShell, 45 bytes -- param($x,$y,$z)for(;($b=$x+(++$a)*$y)%$z){}$b -- Try it online!
 
Someone ping me please
 
@cairdcoinheringaahing ping
 
2:50 PM
but why?
 
Oh, hah, that's almost the exact same as Erik's Python answer.
 
which is probably invalid
 
Your should be valid, just start a=1 instead of a=0
 
Oh, hah. I'm stupid, and I downloaded the source when the binaries are right below.
oh dammit heimdall
 
@AdmBorkBork sure
but does yours do that?
 
2:53 PM
Yeah, the ++$a starts $a at 1
 
3:04 PM
0
A: Sandbox for Proposed Challenges

streetsterAlphabet rain Forgive me if this is a duplicate. The Task: The basic premise is to print out the input string but repeat each character, vertically, based on it's (1-indexed) location in the alphabet. Anything that falls outside of A-z would only be output once (the first line). This is cod...

 
@Nobody The hastebin in your profile info is wrong
you need to change [f] to [if]
and [ef] to [eif]
 
oh
ok
idc now
 
@HyperNeutrino JavaScript (ES6), 50 bytes (nonrecursive): (x,y,z)=>[...Array(z)].map(_=>x+=y).find(x=>x%z<1)
@HyperNeutrino JavaScript (ES6), 30 bytes (recursive): f=(x,y,z)=>(x+=y)%z?f(x,y,z):x
 
3:21 PM
How do I mount my USB on TWRP
its not working ughh
 
4
Q: An expanding array

ArnauldGiven two positive integers p and q, your task is to return the array A created by applying the following algorithm: Start with A = [p, q] and d = 2 For each pair (x, y) of consecutive numbers in A whose sum is divisible by d, insert (x + y) / d between x and y. If at least one matching pair wa...

 
I'm waiting (AKA working) here for a frustrating 1 hour
 
3:43 PM
1
Q: Those annoying grasshoppers

Alex K ChenThe problem #6 of IMO 2009 reads: Let a 1, a 2, a 3, ..., a n, be distinct positive integers and let T be a set of n-1positive integers not containing a 1+a 2+a 3+...+a n, A grasshopper is to jump along the real axis, starting at the point 0 and making n jumps to the right with lengths a 1...

 
@NewMainPosts 'Those annoying New Main Posts'
 
4:22 PM
From now on, this is my explanation for all my code golf answers
 
Haha, the interpreter (not including custom types) for Verbosity fits in under 3000 bytes :P
 
:P nice
 
@cairdcoinheringaahing eww, sorting by oldest
 
4:40 PM
@AdmBorkBork Huh?
 
my french teacher's pronunciation is very cringy imo
 
@HyperNeutrino For example?
 
she pronounces six, dix, huit, etc with a short I
I don't think short I is even a thing in French
also she pronounces "tout" more like "tu(t)" than "too(t)"
 
"Short I" means like pin, right?
 
4:43 PM
So is it supposed to be like ee?
 
yes
"six" should be pronounced like "cease" not "sis"
 
@NewMainPosts 4 upvotes before being posted here makes it the inverse of a bad challenge
Ergo, it is a good challenge!
 
@cairdcoinheringaahing I clicked your link, but it didn't work because the comment isn't on the first page when sorting by active. I needed to sort by oldest and then refresh your link to see the comment. Thus, "eww" since sorting by oldest is (IMO) no bueno.
 
@AdmBorkBork Huh. I sort by votes while on old posts
 
I sort by oldest because OEIS
 
4:46 PM
@HyperNeutrino Wait, you mean Ceaxe, not Cease, right?
 
no it's an s sound
 
@HyperNeutrino How long until I have to accept an answer on that by the way?
 
Oh. Weird
 
Yeah, I can see sorting by oldest on something like an answer-chaining challenge, but in general? blech.
 
Why is it an x then?
 
4:46 PM
@cairdcoinheringaahing about 4-5 days
@DJMcMayhem the french pronounce x like an s or like nothing, at least at the end of words
 
29 secs ago, by DJMcMayhem
Oh. Weird
French is weird
 
It's not much more weird than English... they're both weird, you're just used to one :P
5
 
That's true
Today, on discord's development team is full of comedians:
 
@DJMcMayhem yeah, all of their patch notes are quite humorous
 
0
Q: Reverse-ish a string!

Comrade SparklePonyYour task: write a program/function that when given a string, outputs/returns the string in reverse-ish. Example: 1) Input Hello, World! 2) Number unique characters in input. (Input string separated by pipes (|) for readability) H|e|l|l|o|,| |W|o|r|l|d|! 1 2 3 4 5 6 7 8 9 10 3) For ...

 
5:12 PM
@HyperNeutrino ninja
(in case you wanna delete)
 
what the fuck comments can't be used to fill character spaces anymore?
 
5:24 PM
seems reasonable (although in fact I don't know if it's so that it encourages humans to write longer answers or to prevent spambots writing short answers, where in the latter case it's not)
(what isn't reasonable is suggested edit limit >=6, I've often faced such a situation)
 
5:41 PM
On a related-to-discord note,
 
RIP
 
6:13 PM
@Mr.Xcoder interesting find
 
Yup thanks
 
> Everyone has a test environment. It's just that some people have a totally separate environment for production.
14
 
@AdmBorkBork so you're saying my 1337 screennames are worthless?
i should have sold them while i had the chance :\
 
~*~*xXxPoke3327xXx*~*~
 
I have "Poke"
and others
sad days
 
6:29 PM
@isaacg Thanks for Pyth's wonderful built-ins
 
6:57 PM
CMC: Create a bijection between (-inf, inf) and [0, 1]
 
@HyperNeutrino Thanks for the edit, I knew about it but I thought it is not compatible with the userscript :)
 
ah ok :P
CMP: Features you want added to Enlist (focus on numbers and lists, like Cthulhu) that might make it beat Jelly for some challenges
 
@HyperNeutrino Map a function over pairs of adjacent elements.
(in a list)
 
00:00 - 19:0019:00 - 23:00

« first day (2442 days earlier)      last day (2384 days later) »