« first day (3835 days earlier)      last day (1008 days later) » 
00:00 - 19:0019:00 - 00:00

12:00 AM
Works hard in school, gets accepted to Stanford or someplace, makes an account on several sites on the network and gets 10k+ rep there, gets a PhD in exchanging stacks, becomes relative of someone who works at SE, gets hired, reaches out to other company and offers to be a corporate spy, does corporate espionage to disguise search for longest-lasting flag, gets data, posts data online, goes to jail, comes out of jail to see all the rep on MSE
@cairdcoinheringaahing They don't have any flags afaict
@user Forgot the last part: ragequits after seeing that you didn't get all that much rep on MSE after all
 
12:21 AM
lol just got my lecturer to make fizzbuzz a task in this week's workshop
very cool
 
12:33 AM
me when I just reccomended tio.run to the workshop and they say 'very cool and helpful'
 
I heard the same when I recommended tio.run at work
 
I can't imagine anyone would turn around and say "Nah, that's shit" tbh
The only complaint I could see would be "Why would we use that when we already have a functioning IDE?"
 
The only actual problem is that it's getting old pretty fast
 
i use TIO for teaching because i don't mind the fact that it's frozen in history because i don't use any language features that didn't exist in like python 3.5 and my C++ code works with C++03 lol
i just find it really convenient, especially the Input field where I can just throw some input and not have to insert it or pipe from a file
 
Yeah, that's definitely true
 
12:38 AM
repl.it had that too but i also found repl.it rather clunky and it kept breaking when i was trying to use it lmao
 
Plus the fact that ARGV is shell-safe, so you don't have to bother with quoting and shit
 
true!
i keep running into weird issues where sometimes i quote shit and then it gets bash eval'd or something and doesn't do what i wanted
 
Plus for C-likes you don't need to search for necessary arguments to run gcc on a quick experiment code
 
the main reason I use TIO is if i taught locally, ppl with different systems might run into system-specific issues
TIO runs the same for anyone, anywhere, so if my code works on my computer, it'll work on yours (assuming no random UB or whatever)
 
Right (various people trying the same code over and over will result in cache hits anyway)
 
12:41 AM
(true)
 
No disrespect to ATO / Vyxal's interpreter / Bubbler's Rust one / other online interpreters, but TIO is clearly leagues ahead, aside from the no new updates or languages
 
what is your opinion on my interpreter (for JHT/vyxapedia) :p
i personally think it looks rather weird for a coding environment but i was just too lazy so i just threw materialize css at it
 
It's light mode, so it's awful :P
 
fair :P
also i just query TIO's API cuz i'm bad and don't want people to ACE my server because i was being stupid :p
 
Although it is a pretty good interpreter, once my eyes stop burning :P
 
12:43 AM
the main reason i use it is the alt-enter key combination thing lol. which saves me a considerable amount of time. although even for things i don't have memorized, the thing i'm most proud of is the search page which i could use alongside TIO itself to save me some time
 
@cairdcoinheringaahing 99% of the reason people make their own online interpreters is no more updates on TIO, so they do serve their purpose. (ATO has Python 3.9 and Vyxal has Vyxal, etc. Also allows for language-specific support)
Mine isn't, and I'm still fixing the hot mess caused by introducing web worker :P
 
@cairdcoinheringaahing duh. If Dennis was still adding languages to TIO, I wouldn't have to host my own interpreter
 
@lyxal A dedicated Vyxal interpreter would still be nice, especially with A username's VvLight
 
"VvLight"
well done
good spelling
 
Vylight, whatever
 
12:52 AM
-1, must be VVVVVVLight
 
Is Unfold a list ready to post?
Can someone who hasn't visited the Vyxal chat room before please go there to test out the bot's welcome message?
 
@user Looks good to me
 
1:08 AM
Aight, posting in a minute
 
0
Q: Unfold a list using a function

userTask Haskell's and Scala's standard libraries have an unfold function that builds a list from an initial state s and a function f. This is done with the following steps (explained in an imperative way to be simpler): Apply f to s. If the result is empty, we're done building the list! Otherwise,...

 
Çß;¥/“”¹?
[[{'arity': -1, 'chain': [{'arity': 1, 'call': <function <lambda>.<locals>.<lambda> at 0x7f172d609b00>}], 'call': <function create_chain.<locals>.<lambda> at 0x7f172d609b90>}]]
how is this only one chain
i legit don't see why this shouldn't work
i'm sure there's an obvious reason and i'll feel really fucking stupid after like always lol
 
@NewPosts @user I think "converting a base 5 number to base 10" should be actually "converting a number to base 5", and the same for a few more sentences
 
1:24 AM
For anyone who likes seeing people do stupid things: it's ~2:30am here, and I've just started watching The Shining, after which I'm going to go to bed :P
 
hmmm. sounds like a great idea
 
Glhf
 
One good thing is that I've already seen it, so I know what I'm in for :P
Completely unrelated, I can't wait for my 5 month stay up in an isolated Colorado hotel with my wife and child :P
 
1:47 AM
sus
 
amogus?
 
You can’t be a father, gay, and have a wife
@Bubbler Thanks, I’ve done that
 
posted on July 30, 2021 by Quintec

The Rules In this game, each round, every player faces off against every other player in a round robin format. In each match, players pick 3 positive integers that sum to 360. Let's sa...

 
@CodidactPosts Codidact's first Koth
CMP: Favourite movie? Or, if you don't have a favourite, what's a movie that you can watch on repeat no issue?
 
2:05 AM
I don't watch movies, so I wouldn't know
hi redwolf
 
I'm currently learning about the internet
what are you doing?
 
Shopping for clothes, school starts in a few weeks
 
@lyxal I have to say, I've never really got that. I love movies, and can watch 5 or 6 in a day, easily
 
@cairdcoinheringaahing I can handle 2x40 minute episodes back-to-back, just not a single movie
 
2:09 AM
I don't watch movies because I don't have any of the streaming services to watch them on :p
 
yeah that too
besides, why watch movies when you can binge undertale gameplay?
 
Movies IMO are such a unique experience when done right that there's truly nothing else
 
I just played a game of monopoly with my family, with some custom rules I designed, and completely and totally lost due to some bad luck near the end >:|
 
Lol
get good at rule design
 
I don't mean going to the cinema and watching the latest movie that's come out from Marvel or Adam Sandler or whoever (although I do like doing that from time to time). I mean the truly experiential feeling of watching a movie that's basically art
tbf tho, I'm definitely biased as I love movies :P
 
2:13 AM
posted on July 30, 2021 by AndrewTheCodegolfer

A famous cops-and-robbers challenge whose source shall remain unnamed is brought to Codidact. The Cops You are a cop. You should write a program in a "famous" (has an English W...

 
0
Q: Potential nonzero entries in an irregular sequence

BubblerBackground A338268 is a sequence related to a challenge by Peter Kagey. It defines a two-parameter function \$T(n,k)\$, which counts the number of integer sequences \$b_1, \cdots, b_t\$ where \$b_1 + \cdots + b_t = n\$ and \$\sqrt{b_1 + \sqrt{b_2 + \cdots + \sqrt{b_t}}} = k\$. Since \$k\$ cannot ...

 
me when the internet makes incompatible devices communicate using epic protocols
 
@CodidactPosts That username reminds me of Erik the Outgolfer
 
2:25 AM
0
A: Sandbox for Proposed Challenges

caird coinheringaahingCalculate the square root of a matrix Let \$A\$ be a square matrix that is at least \$2 \times 2\$ where each element is an integer. \$A^2 = A \times A\$ will then have the same dimensions as \$A\$, and will have integer elements. For example, let $$A = \left[ \begin{matrix} -3 & 2 \\ 0 & -1 \e...

 
@SandboxPosts Any obvious issues?
 
2:59 AM
my tutor seriously be using vim rn
vim from terminal on mac
what a gamer
 
3:15 AM
@cairdcoinheringaahing The only issue for me is that there's no generally applicable method to find an integral square root other than brute force
 
3:27 AM
Yeah, that was a concern of mine
 
4:11 AM
0
A: Sandbox for Proposed Challenges

SiddharthYour challenge is to write a method that compresses/decompresses strings. It will get two arguments: the string to compress/decompress, and a boolean. If the boolean is true, compress, else decompress. It can either print the output to stdout or return the data. The twist is that your score is eq...

 
> The twist is that your score is equal to the length of your source code compressed by the compiler.
first of all this is easy to abuse
second of all this feels like a duplicate to me, but I'm not sure
would test-battery be better with a hidden test set?
 
Hidden test case compression is a duplicate of Kolmogorov Complexity Meta Golfer
 
@TheFourthMarshal I don't think so, the compressed output is simply an arbitrary string, not some code that outputs the string
 
4:26 AM
@SandboxPosts vyxal, 3 bytes: Try it Online! ([øD)
 
though some answer can choose to do that by choosing eval as the decompressor
 
@lyxal i don't think the challenge specifies that the compression input will always be ASCII
 
@lyxal Giving 0 and backquoted [øD doesn't give the original string
Also yeah, it's very unclear at the current state
 
4:42 AM
hi
 
 
1 hour later…
6:09 AM
CMC: Make a ascii art triangle
 
VTC as unclear
 
"^" (ployglot)
 
 
3 hours later…
9:01 AM
@user Congrats on 10k!
4
When someone getsonline, any final feedback?
 
@Ausername I'm online. Is the factor always an odd number > 1?
 
Yep
 
Then say so.
 
Yep
Otherwise?
 
You might want to explain (not just rely on examples) how things scale from 3→5 etc.
 
9:08 AM
Ok
Can you include multiline code in tables?
 
Yes, but I think you have to use <pre> for that.
 
That doesn't let you use line breaks or newline escapes tho, so I figured out a new, but uglier way.
 
@Ausername You can add <br>
 
Oh true
Thanks
 
9:22 AM
Mod tools are slightly useless but whatever.
 
@Ausername You've swapped vertically and horizontally.
 
I have. Aside from the fact that I'm horrible at grammar, anything else?
 
@Ausername Maybe edge cases: singe row, single column, single character
 
Ok
Done
 
Looks good to me.
 
9:40 AM
0
Q: Enlarge ASCII art, Mark II

A usernameRelated Given a piece of ascii art and a factor to enlarge it by, which will always be an odd number >1, replace each character with the corresponding ascii-art, resized to fit on a grid the size of the input number: \: Character What to do \ \ \ \A line of \ to the length of the enla...

0
Q: Is it possible to do something with java scanner to make it shorter?

DziangwaI am solving a puzzle at codingame.com and I have to write a code that has at most 200 characters, now it has 772 counting tabs. Is it possible to do something with an input scanner so it takes less characters? The condition alone makes like 180 and don't worry about how a code looks like it's ju...

 
9:56 AM
^ want to see if others can repro this issue
 
Reproed.
 
10:12 AM
@Ausername ^^^
 
10:34 AM
Hm
No clue
 
11:07 AM
Announcement: If you're participating in the APL Programming Competition, don't forget to submit your solutions before UTC midnight tonight!
 
@lyxal @Ausername Thanks!
 
@Adám I've?
What is your autocorrect?
 
I don't have autocorrect on.
Probably an effect of writing the message little by little, leaving it partially done on the clipboard for extended periods, while I write other things.
 
Oh
I often end up with the most random things in my clipboard
At one point I had something about Sashiko Embroidery that I thought was a Vyxal submission template.
 
@Adám when do sign-ups for 2022 problem testing begin?
Because I'd be interested in beta testing the questions again
 
11:13 AM
@lyxal Nice. I'll make a note in 2022 plan that you're willing again this year, so we won't bother asking you.
 
Cool cool
 
Yk the weirdchess thingy? Turns out they posted it in the secret sandbox
 
Lol
Real gamers get emailed challenge specs by other code golfers
 
@Ausername people write bad challenges sometimes kekw
 
11:17 AM
Bad ≠ Completely impossible
 
> I abandoned this challenge idea because after QFTASM was assembled for QFT/Tetris GoL, this challenge won't be interesting anymore, just tedious.
(source: edit history revision 1)
As you can see, hyper deemed it possible
 
I suppose...
 
@lyxal Not omly possible, but boring
 
@user have you been to the sandbox yet?
 
I’m dreading it
 
11:24 AM
Lol
 
Okay, not as bad as I thought , just went there
 
@user fun link for you: codegolf.stackexchange.com/questions/195397/… (10k+)
 
Knew it was you before I scrolled down:p
 
It's how I learned not to skip the sandbox
 
Redwolf made me a userscript, have a look
 
11:30 AM
Link?
 
CMQ: Smallest screen size you've used to access this chat
 
Jul 17 at 3:53, by Redwolf Programs
@Ausername Sandbox Filter: Press Shift + D to toggle showing deleted answers
@lyxal Mobile
 
4 in (this phone)
@Ausername Thanks! (Also redwolf)
 
@Ausername @user pathetic. The smallest screen I've chatted here on is 1.61 inches
 
How?
 
11:37 AM
I have the 41mm model
 
Real gamers use the screen resize thing.
 
but at least you still have the whole keyboard on your computer
the watch keyboard is way harder to type on
 
It has a keyboard?
How do you even...
 
hang on lemme go get a screenshot of it
I'm back on computer now
you tap once to get the white letter, twice to get the blue letter
it's a bit easier than using the default keyboard
This is way harder
 
Nice
 
12:02 PM
@lyxal That's actually a pretty clever layout, though it seems lopsided to require two taps for the blue letter.
Maybe a challenge could be made based on this.
 
@Adám It's by far the best keyboard I've found of all the ones I've tried
so the lopsidedness is a trade-off I'm willing to accept
it also makes typing two of the same character in a row a bit more difficult at first
 
Mar 22 at 22:24, by ChartZ Belatedly
@OriginalOriginalOriginalVI Personally, my brain can send and receive packets, so I don't even need a computer :P
 
because you go to tap it twice thinking "this'll let me have the character twice"
@AaronMiller is your brain a screen?
no
no it isn't
doesn't count
 
@lyxal maybe yours isn't
 
12:26 PM
I could never use a smarteatch, my eyes would not be happy with a screen that snall
 
smarteatch
Mar 22 at 22:27, by ChartZ Belatedly
HAHA, go to the tour and press the Konami code :P
Is this still relevant
And is the code still up-up-down-down-left-right-left-right-a-b?
 
12:45 PM
0
Q: Calculate the (n x "super")factorial

astroideIntroduction Factorials are one of the most frequently used examples to show how a programming language works. A factorial, denoted \$n!\$, is \$1⋅2⋅3⋅…⋅(n-2)⋅(n-1)⋅n\$. There is also the superfactorial (there are other definitions of this, but I chose this one because it looks more like the fact...

 
12:58 PM
@lyxal how do you enable that
 
@PyGamer0 in language settings I think. You have to download it from the play store first
 
@lyxal what do i download
 
you have a smartwatch that has WearOS?
 
@lyxal uhh thats too specific
no
 
then you can't
because that's a screenshot from my smartwatch
 
1:03 PM
oh
 
@NewPosts I think I answered something very similar recently
It's the last element of product scan on 1..n m times
 
@Ausername that is what the sandbox is for, after all
i have some terrible challenges i actually posted that would've made more sense to point out. but unless you have a link you can't find those
 
It was Torian, which is exactly the same except that m=n
Feels dupey enough to me
@Ausername The last two should be b-a IIRC
 
1:19 PM
0
Q: How to ignore first user input in Python

BastoI have 2 input : 1 single number and some number seperate by whitespace : 1 1 2 3 4 5 I want to loop over the second input, i don't need the first input. I did this : input();for x in input().split():somecode() But can I go directly to the second input without doing the input() at the beginning...

 
@NewPosts so tempted to say "use the second input nilad ez" but it's python smh
 
@NewPosts You just remove the stray input(). It's allowed by our default I/O :P
I'm pretty sure it's for some OJ site that happens to support code golf scoring
 
wait you can inline for loops like that?
 
But then why not use golfscript :P
@hyper-neutrino I don't think so, but correct version has same bytecount anyway
 
That moment when it doesn't count as a review task because you were faster than the review queues
 
What does it do?
 
Solves the Torian challenge with 1 arg, and solves superfactorial with 2 args
(Lynn's answer on Torian)
 
 
1 hour later…
2:50 PM
CMC: Calculate (x+y)²
 
Jelly, probably:
 
@PyGamer0 APL: ×⍨+
 
51AC8, 2 bytes:
 
@Adám Interesting approach, I would've thought 2*+ was simpler
 
@Adám i made f ← {(⍺+⍵)*2}
 
2:53 PM
@user That's 2ˣ⁺ʸ
 
Oh, right
2*⍨+ is too long ⍨
 
@PyGamer0 That's a correct and very clear solution. Definitely production code.
@user Or +*2⍨
 
@PyGamer0 Nice interpreter
 
@Adám what does ⍨
 
@Adám My brain parser is crashing on that one :P
 
2:54 PM
selfie; swaps a dyad's arguments or turns a dyad into a monad by repeating the argument
 
@PyGamer0 With 2⍨, it always gives back 2 iirc
 
@user thanks, copied pretty much everything from vyxal (except some things)
 
Otherwise, what hyper-neutrino said ^^^
 
Ugh, super-ninja'd.
 
so ×⍨ means "multiply the right argument by itself"
or rather
×⍨ ⍵ means ⍵ × ⍵ and ⍺ ×⍨ ⍵ means ⍵ × ⍺
 
2:56 PM
Gosh, I'm running out of people that I can teach APL…
 
@Adám Don't you mean...hyper-ninja'd? :]
 
 
@Adám how do i call that
 
@Adám lol, knowing what the funny frowny face does doesn't make us (or at least me) an expert in APL
 
i should change my profile picture to a ninja, so I can be the hyper-ninja
 
2:57 PM
Please do
 
@PyGamer0 E.g. F←×⍨+ and then 3 F 4 or simply 3(×⍨+)4
 
I think he was asking about what you called the symbol
 
@PyGamer0 What's the name or how to use it?
 
CMC: Given the number of carbon in a simple hydrocarbon, calculate the number of hydrogen.
@Adám i meant how to use it
 
Ah
 
2:59 PM
@PyGamer0 Uh, could be multiple numbers.
In the simplest form, it'd be 2+2×n
 
@Adám pretty sure there is a formula
 
@PyGamer0 For those of us who forgot/don't know about chemistry, can you link to the formula?
 
But carbons could have dual or even triple bindings, and there could be branches.
 
@user Adám's answer ^^
@Adám ok simplest form
 
Oh, then APL: 2+2×⊢
 
3:01 PM
changed the question JIT
 
@user 2++⍨
 
51AC8, 4 bytes: ×2+2
 
@Adám Smart
 
@PyGamer0 Can you not increment, then double?
 
@Adám ?
 
3:02 PM
2×(1+n)=2+2×n
 
@PyGamer0 ^
@user There's no MathJax in chat.
 
oh i dont have a builtin for increment (although i will add one)
 
@Adám Well, I have a userscript for it, but I'll go back to code
 
@user You don't even need code. Mathematical formulas are not normally in monospace font.
 
@Adám so it will still be four bites
 
3:04 PM
Surely, Jelly must have increment-double.
 
@PyGamer0 This isn't Jelly, no one's taking a bite of anything :P
 
CMP: What do you need more often, negate or decrement?
 
Negate, but I'm not a computer and don't keep track of this stuff, so don't take my word for it
 
CMC: (2n+n÷3)²+2
 
yuno, 6 bytes: ×8ғ²+2 (multiply by 8/3, square, add 2)
 
3:06 PM
@PyGamer0 APL: 2+×⍨+.÷∘.5 3
@hyper-neutrino Shouldn't it be be 7÷3?
 
oh yeah
then ×7ғ²+2
 
@hyper-neutrino tio?
 
2+2*⍨7×÷∘3 is shorter.
 
51AC8, 7 bytes: 7÷3ײ+2
 
@PyGamer0 Hola, soy tío
 
3:11 PM
@user what does that mean?
 
tio is "uncle" in spanish
 
It's supposed to mean, "Hi, I'm uncle," but I'm sure Google Translate butchered it
 
ғ is a fraction literal and you can do xғy but I made y default to 3 which works quite nicely for this problem :P
 
@hyper-neutrino So a replacement for tio.run could be bob.run, as in "Bob's you're uncle". But bob.run is taken :-(
 
CMC: Make a program that generates cmc's. Format: "CMC: <16 random words from a list>."
 
3:15 PM
How many words?
 
@Adám 16
 
With or without replacement?
 
Is the list hardcoded into the program, taken as input, etc.?
 
@AaronMiller input
 
@PyGamer0 {'CMC:',∊' ',¨⍵[?16⍴≢⍵]} if with replacement, {'CMC:',∊' ',¨⍵[16?≢⍵]} if without replacement.
 
3:28 PM
@PyGamer0 Vyxal , 11 bytes: Try it Online!
CMC: Take a string of space separated words and return a list of the number of characters in each word, e.g. "hello world lol totally not a rickroll" -> [5,5,3,7,3,1,8]
You can assume words are [A-Z] or [a-z] if it makes it easier.
 
jelly, 2 bytes: ḲẈ
proton, 21 bytes: s=>map(len,s.split())
str.split+map(len) would be shorter but unfortunately str.split doesn't work because i am bad
 
@AaronMiller APL: '\w+'⎕S 3 or ≢¨' '∘≠⊆⊢
 
@AaronMiller Zsh: for x ($1)<<<$#x, or if taking implicitly split arguments is allowed, for x;<<<$#x
 
@AaronMiller Extended Dyalog APL: ≢¨≠⊆⊢
 
Mods emeritus looks to be an interesting thing
 
3:43 PM
@AaronMiller Vyxal, 3 bytes: Try it Online!
 
@cairdcoinheringaahing oo i'm looking forward to seeing which ideas they decide to go with for that
 
@AaronMiller Japt, 3 bytes: ¸mÊ
 
At a very basic level, I like the ability to have an indicator that someone was a mod. Not only does it make official meta answers and other mod actions clearer, but it also feels respectful
 
@AaronMiller Scala: _ split " "map(_.size)
@hyper-neutrino Aside from s=> instead of lambda s:, that looks suspiciously like Python o.O
 
@user proton was designed to be quite similar to python (although it uses {} instead of : and indentation) :p
and is interpreted (badly) in python
 
3:51 PM
Ah
 
@cairdcoinheringaahing Wonder if Monica will get a marker.
 
@AaronMiller JS, 30 bytes: s=>s.split` `.map(w=>w.length)
 
4:09 PM
@Adám I'd imagine so. Whether or not you believe SE's account of what happened, they've never denied that Monica was a good moderator on any of her sites. Hell, she was even a mod on MSE, which are handpicked and appointed by SE
4
Also, it'd be unnecessarily adding fuel to a fire that's almost gone out. I'd be very surprised if they didn't
 
@cairdcoinheringaahing I think even awarding her that type of honour could better the relationship between SE and the commmunity.
And thank you for teaching me about the MSE mods. I didn't know.
 
Yeah, if someone's a mod on MSE, you can all but guarantee that they're top of the bunch
 
Monica-level ;-)
 
@AaronMiller Grok, 36 bytes: Try it Online! or 42 bytes with space separated values: Try it Online!
 
 
1 hour later…
5:23 PM
Fun fact: I am writing this on a kindle.
This is so dumb; I should be sleeping rn
 
o/
 
5:34 PM
lol
 
6:20 PM
Are the given test cases the only valid matrices for those inputs, or just possible matrices? If it's the latter, you might want to clarify that
Also, something to validate answers would be good
 
@user I think that a maximum of one solution exists for any given input, but I'm not sure how to prove that. The test cases are valid outputs, but I won't say they're the only valid outputs
@user Not sure what you mean?
 
A program to check if an output is valid for a given input
@cairdcoinheringaahing Oh okay
 
@user Square the output and see if it equals the input?
 
If you don't know if they're the only valid outputs, can you clarify that in case someone does come up with a different (valid) output?
@cairdcoinheringaahing Yeah
Actually, here's one in Jelly
 
6:28 PM
You're just jelly that mine was quicker :P
(sorry, couldn't resist)
 
Interestingly, æ*. (aka matrix power to the half) doesn't work
 
I'm surprised it doesn't throw up completely
You'd think the interpreter would check if the power's an integer
 
Why? It's well defined, but on the space of all matrices, not just integer matrices
 
Oh, TIL lol
Wait, why doesn't it work then?
 
Because there's more than one solution for all matrices
Same way that Given x^2 find x has more than one solution
 
6:32 PM
So it does work, just doesn't give real numbers?
 
Sometimes it does give just real numbers, it just won't always give integers
 
Ah
 
6:59 PM
@cairdcoinheringaahing CMC: Find a square integer matrix (2x2 or larger) such that æ*. in Jelly returns an integer matrix. Matrices which are a constant multiplied by the identity matrix ([[x,0], [0,x]]) don't count
 
00:00 - 19:0019:00 - 00:00

« first day (3835 days earlier)      last day (1008 days later) »