« first day (4022 days earlier)      last day (812 days later) » 

4:00 PM
"there are N possible inputs" could be read as "there are N possible inputs [but possibly more]"
@thejonymyster you can just submit x => (x == 1) in most languages
 
@pxeger Good point, somehow that didn't cross my mind
 
if you scored based on N, it might be more interesting
 
@pxeger I'm not sure how that solves the challenge though
What are your two inputs which output 2?
 
@pxeger Based on max N, you mean?
 
Oh I see
it needs to work for all N
I interpreted it as "pick some N and then write an answer using that N"
That needs clarifying
 
4:02 PM
ah, right, I'll fix that then. Thank you, on it
 
I forgot the derivative of tan x and tried to calculate it myself. d/dx (tan x) is 2.
This is very accurate and correct.
 
Wait so it's an onto?
 
@taRadvylfsriksushilani confirmed: tan x = 2x
 
That's hard
 
@user A what now
 
4:06 PM
A function where every N is mapped to
 
Oh, an injective function?
Wait no
 
I may be using it wrong lemme check
No surjective
 
That's a surjective function I think
Yeah
 
0
A: Sandbox for Proposed Challenges

mathcatWhere is the line Given a grid consisting of + and a constant \$m\$, change all the + to x, where the center of the + is above the graph \$y=mx\$. Considering: The origin is the bottom-left corner of bottom-left +. One unit is the width=height of a plus The center of the bottom-left plus is loca...

 
In mathematics, a surjective function (also known as surjection, or onto function) is a function f that maps an element x to every element y; that is, for every y, there is an x such that f(x) = y. In other words, every element of the function's codomain is the image of at least one element of its domain. It is not required that x be unique; the function f may map one or more elements of X to the same element of Y. The term surjective and the related terms injective and bijective were introduced by Nicolas Bourbaki, a group of mainly French 20th-century mathematicians who, under this pseudonym...
 
4:09 PM
Got a 79 on a calculus test wooo
 
out of 100?
 
I was lucky enough to do single var last year, so there weren't any tests and I cheated on all the assignments lol
That's come back to bite me now D:, but I can probably scrape by with a C
 
Worst I've done on a math test in like...7 years
 
@taRadvylfsriksushilani you probably got 5+ because you calculated the derivative of tan
 
4:14 PM
@taRadvylfsriksushilani Just remember that when you look at the curves of tan c, they get very sec c :P
 
lol
ugh you ninja'd me an a lol
 
@cairdcoinheringaahing sec² c*
 
But that's not funny :p
 
But that doesn't work with the pun :P
 
4:16 PM
I think the joke still works like that
just don't read the ² aloud
 
Besides, if you remember that it's sec, you'll remember it's sec squared
 
"Hey girl, you're looking mighty *checks notes* sick-too-see today"
7
 
Depending on which meaning of "sick", that might work :P
 
ಠ_ಠ
 
Ugh, mathjax has gotten me into the habit of typing \$ instead of $ in my notes :/
 
4:21 PM
do you make notes in latex?
 
It's convenient
 
actually that's perfectly reasonable for a maths course, no need for the ellipsis
 
I would personally prefer something like Kami, except Kami used to glitch a lot
 
@pxeger Yeah :P
But also, my problem sheets in latex as well, which is more of an annoyance
 
@cairdcoinheringaahing better than \$\sec^2(c)\$
imagine your teacher seeing that in an exam
 
4:24 PM
Handwritten latex
 
They'd probably expect it, assuming the question had something to do with derivatives and tan :P
@taRadvylfsriksushilani I have friends who genuinely write maths in a different font to normal text
Like, handwritten, different fonts
 
I used to do that
 
I used to write everything in a different font.
Like, unreadable
 
My English assignments were in big, round letters, while my science and math stuff used to be mostly straight lines, small letters
 
Anyone know how'd I'd find the integral of x/sqrt(x+1)?
 
4:26 PM
i tend to write my variable names in a different font to distinguish them from other things
 
Now I write everything the same way: illegibly
6
 
nd wit da korrekt spillng
 
@hyper-neutrino I write x and \$x\$ differently, and sometimes z and \$z\$, both otherwise it's all the same
 
most people write x differently to differentiate it from ×, don't they?
@cairdcoinheringaahing crossed z supremacy
 
yeah, or at least that's my reasoning for doing so
 
4:27 PM
I'd write × a little smaller
 
i write my normal zs as just three lines but my variable zs with a squiggly base
 
@taRadvylfsriksushilani u-sub?
 
i don't think i cross either
 
@cairdcoinheringaahing in german, you write \times like a dot in the middle
 
Not x vs \$\times\$
@pxeger No, as is "letter x", and "variable x"
 
4:28 PM
@user Not sure how that would help here though
 
u = x+1 -> (u-1)/sqrt(u)
 
@taRadvylfsriksushilani Yeah, didn't think that far ahead lol
 
Split the fraction into two, integrate separately
 
ok i started my chatjax bookmarklet and now caird's backslash-dollarsigns are just normal dollarsigns
 
4:28 PM
Ooh yeah, it's just two polynomials
 
@taRadvylfsriksushilani (2/3) × (x-2) × √(1+x)
 
what do you use for mathjax caird? i'm using the one from the math room
 
oh. do you have a link to it?
 
@cairdcoinheringaahing i.stack.imgur.com/P4Ukj.png
 
4:30 PM
@pxeger Almost, except multiplication should always be denoted as juxtaposition :P
 
Ohh I think I got it now, (u-1)/sqrt(u) is u/sqrt(u)-1/sqrt(u) is sqrt(u)-1/sqrt(u)
 
@cairdcoinheringaahing well, I avoid using × in general, yeah..
 
\$\times\$ is cross product, and \$\cdot\$ is either dot product, or for group theory
 
I will brook no argument :P
 
4:31 PM
@pxeger nice, thanks
 
Can we take a minute to discuss what an abuse of notation nabla dot F and nabla × F are?
 
@hyper-neutrino I dislike this
That variable x is cursed
 
sometimes i write the bottom-left tail with the same curve as the top-left one as well if i'm not lazy
 
I've seen it several times before, I think it's quite common
 
does that make it any better
 
4:32 PM
@user No, they are beautiful, and a great example of operators :P
 
ಠ_ಠ
 
i used to do the thing pxeger does but i got lazy lol
 
@hyper-neutrino So it's a backwards c on one side, then the right half of an x on the other?
 
nabla dot F should have a meaning that lets it equal F dot nabla. Instead it's some kind of fake multiplication ಠ_ಠ
 
i meant bottom right sorry
 
4:33 PM
like Chi?
 
Unless all corners are curved, it's wrong :P
 
@pxeger seems like it, yeah
 
but then how do you distinguish it from chi when you need to write chi?
 
@hyper-neutrino That's pretty reasonable I guess
 
@pxeger That seems like an edge case that won't pop up often (depending on who you are)
 
4:34 PM
(I had to use sock², ssh, curl, and rsync to view that image lol)
 
rsync??
 
Way better than scp
rsync -rt --info=progress2 --no-i-r rust_wolf_x:/home/rust_wolf/unknown.png ~
 
or with scp: scp rust_wolf_x:/home/rust_wolf/unknown.png ~
for single files, why wouldn't you just use scp
 
Because I had rsync in my bash history and not scp :p
I'm going to make a bash alias for rsync + progress2 eventually
 
4:55 PM
@cairdcoinheringaahing I just remembered that I never fixed all of the bugs in my Flipbit reimplementation, so I finished it up now (read: I deleted the reimplementation and re-reimplemented it)
 
@AaroneousMiller Ooh, nice
 
It doesn't have super debug mode yet, though, so I might add that at some point
 
Hmm...I should probably know how to do this, but I'm stuck on the integral of (3x+1)/(x²+x+2)
Ohh wait I think this would involve completing the square
I remember someone saying something about that
 
@taRadvylfsriksushilani Is Floop TC?
 
@taRadvylfsriksushilani You can split the fraction first, I think
Or maybe not
 
5:02 PM
@taRadvylfsriksushilani can you split it into partial fractions?
lemme check if that works
ah no, because x²+x+2 doesn't factorise
 
And completing the square yields \$\left(x+\frac 1 2\right)^2+\frac 3 4\$, which is ugly
 
@AaroneousMiller Yes
ais523 proved that just two of the operators are enough for TCness
 
Since + and @ make an I/D machine
 
Cool. I thought it might be, since my intuition told me that BCT was possible in it, but I value my sanity too much to attempt it.
Also, what's an I/D machine?
 
5:07 PM
@taRadvylfsriksushilani Hang on, I think arctan might be relevant here?
Its derivative is 1 / (1 + x²)
 
Could be nasty integration by parts too
 
@AaroneousMiller ais523 came up with it. It's uses two operators on a tape. I increments at the pointer and D sets the pointer to the value at the pointer
(If I'm reading it right)
 
Ooh, I just looked at it on Wolfram Alpha and the solution is kinda clever
 
@pxeger hell yeah
 
@user that's the wrong integral, it's +2 at the end not +1 (spoiler)
 
5:14 PM
School's cancelled for tomorrow
 
also crossed 7 and serify 1
 
@pxeger oof
 
Not gonna get my hopes up, but we could possibly get snow
 
Solution turns out pretty much the same
 
5:14 PM
@UnrelatedString nah, sans-serif 1 for me
 
@taRadvylfsriksushilani don't you remember what happened last time?
 
Well, we got snow twice last year. The first time was great :p
 
:/
I remember 2019
it snowed at least 4 times I think
 
5:33 PM
@cairdcoinheringaahing speaking of latex formatting and such, i dont know how to format my sandbox. i would copy your comment, but im on mobile and it doesnt look like it works
(plus id want your permission first of course)
 
@cairdcoinheringaahing about the community event - i actually thought of that already but the interface wasn't working yesterday for seemingly no reason because SE bad ¯\_(ツ)_/¯
i don't know what i did differently but it works now ¯\_(ツ)_/¯
 
@thejonymyster feel free. I'll edit it in if you like, just give me 5/10 mins
@hyper-neutrino eh, free flag :P
 
@user Bumping this CMS in case someone didn't see it before
 
@cairdcoinheringaahing please do, thank you, i have to be at work -_-;
 
@user homogenous?
 
5:37 PM
All elements of the tuple are the same
There are a few examples here
 
5:53 PM
@user ez, just reinitialize all variables to be homogenous tuples during compilation
I'll take my rep in the form of brownie points
 
And brownie points are all you'll get :P
Hint: You can match on a tuple type like case String *: rest => ... to verity that the first element of the tuple type is a String, or you can do case h *: rest => (h must be lowercase) to get the first element as the typealias thingy h
 
i'd participate but I'm working on PXLCODE rn
 
@Adám Hm, okay
 
@user18102559 Welcome to The Nineteenth Byte
but You need 20 rep to talk
 
6:20 PM
Anyone here know BQN?
 
Try the Orchard
 
Nvm, ( works
 
Oh my god I'm an idiot
process.stdout.on("data", ...)
 
@taRadvylfsriksushilani ?
 
6:29 PM
@taRadvylfsriksushilani Yeah, that's gonna do a lot of good
 
Is that nodejs createServer?
 
lol, BQN's errors are char arrays
 
@emanresuA Good crack
 
@ThisFieldIsRequired No, something for RTO
It's supposed to handle the program's STDIN
 
6:45 PM
How to golf This
a lot of len(u.split("\n"), I think I can use eval?
 
@Fmbalbuena what problem are you doing?
 
@BgilMidol get the center of the 2D string
@taRadvylfsriksushilani ?
 
OISB 0.0.1, it's working!
 
@taRadvylfsriksushilani I forgot the link
 
6:48 PM
@AviFS Look! Look!
 
@taRadvylfsriksushilani wasn't it working before?
 
Yes, but I've completely rewritten it
 
in Brainf?
 
@taRadvylfsriksushilani what does it stand for?
 
Online Interpreter Shared Back-end
 
6:51 PM
wait a second
Didn't you design it to have it offline because your school blocked tio?
 
no, that's something totally different
 
That's SOCK^2 right?
 
No, the offline TIO link en/decoder
 
can you post the link?
 
SOCK^2 behaves weird on school wifi, due to their anti-streaming software, which seems to think it's a streaming site
@mathcat To the TIO link decoder or RTO
 
6:54 PM
the OISB 0.0.1
is it not online yet?
 
OISB is just a back-end, which other interpreters are built off of. RTO is mine, and a prototype of it is online (but I need to update it, so wait just a sec)
 
oh, ok
I found the link of the repo
 
Okay, a very beta RTO is online now!
It's still very, very prototype
 
@taRadvylfsriksushilani How to suggest a feature request?
 
is the language js?
 
7:02 PM
yeah
We're adding Python tonight
@Fmbalbuena Just ping me here
 
/start/main.js:1
print(6)
^

ReferenceError: print is not defined
    at Object.<anonymous> (/start/main.js:1:1)
    at Module._compile (node:internal/modules/cjs/loader:1097:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:17:47
 
@Fmbalbuena It's JS, you need to do console.log(6)
 
@taRadvylfsriksushilani I'm adding Python to DSO at some point
(Rust-python in wasm)
 
/start/main.js:1
to do console.log(6)
   ^^

SyntaxError: Unexpected token 'do'
    at Object.compileFunction (node:vm:352:18)
    at wrapSafe (node:internal/modules/cjs/loader:1026:15)
    at Module._compile (node:internal/modules/cjs/loader:1061:27)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
 
Fmbalbuena, we've done this before. It's not funny.
 
7:03 PM
@Fmbalbuena Come back when you've learnt JavaScript.
 
@taRadvylfsriksushilani so I have this weird error, every time I press run, it ads the previous output to the current output
 
Sorry
//Fmbalbuena, we've done this before. It's not funny.
console.log(6)
 
@mathcat Yeah, I don't have the front-end written very well yet
 
@taRadvylfsriksushilani Can I help you to implement BF?
 
ok
 
7:04 PM
It's mostly intended to be a run-once-and-close-it-since-you-know-it-works-now type thing :p
@Fmbalbuena Maybe, but it'll be a while before we get to that point and I don't think I'd need much help with that anyway
 
@taRadvylfsriksushilani Github repo?
 
OISB's not in a repo quite yet
 
@taRadvylfsriksushilani link to code?
 
I've still got a dozen or so features to add before even assigning a version number
 
Wait, Github down? Now up down
 
7:07 PM
No.
Yes actually now
 
I've put SOCK^2 through quite the test today. I still can't load any sites larger than a couple hundred kilobytes, but it works great for SSHing and casual web development
 
@emanresuA I got error 500
 
7:20 PM
Yeah, GH just had a glitch.
 
It's still glitching off and on for me
 
@taRadvylfsriksushilani Reminder
 
Seems to be mostly back up
Why does webassembly look like lisp?
 
8:05 PM
The github org for wasm should be called orgwasm
 
@taRadvylfsriksushilani ಠ_ಠ
 
CMQ: Should my websocket reverse proxying be at a path or a subdomain? E.g., rto.run/ws or ws.rto.run?
 
@taRadvylfsriksushilani subdomain
 
I was thinking that too, but now I'm wondering what to do with the path
Should ws.rto.run/xyz also work? Or 404? Or should I use it as a way to specify more information?
Honestly paths and subdomains should not both exist IMO
 
You do sometimes need static hosting sites which need to be on different servers
 
8:11 PM
I think people can use subdomains for scams and stuff too
 
A much better way for URLs to work would be like http:com.radvylfprograms.blog.2021_02_01
 
@emanresuA Would paths not work with that?
 
Putting the TLD and most important information first makes way more sense
 
^
Java uses com.radvylfprograms.blog
 
^^^
 
8:12 PM
@taRadvylfsriksushilani did you mean java
 
Because bank.com.malware.com/bank/balance is way harder to see the malware in than com.malware.com.bank.balance
 
@taRadvylfsriksushilani Side note, if you made the number start with a _ it'd be valid Java
I think / is a better character than . though, I'd like to see https:::com.google.maps
 
I'm thinking I'm going to permanently change my name to Radvylf Programs
 
@user ಠ_ಠ
 
@user Just realized I said "too" here instead of "to", ugh
@GingerIndustries ?
@taRadvylfsriksushilani Like, your actual name?
 
8:14 PM
No lol
Just my CGCC/GH/website
 
Huh, I might repcap today just from answer votes, which is very unusual for me
 
oh wait no I got 4 upvotes on a question
what I meant was repcap without having posted a new question
in Attempt This Online, 5 secs ago, by pxeger
https://staging.ato.pxeger.com has a new UI for copying the formatted post to the clipboard (allowing support for CMC format, and potentially more in future). I'd like your feedback on it, particularly in terms of discoverability and accessibility
 
oh yeah reminds me i actually came up with a possibly alright challenge idea
by possibly alright i mean probably too trivial but i'll let the sandbox be the judge of that
 
@UnrelatedString Unrelated String challenge when??? :P
 
8:27 PM
Bash, 14 bytes: printf "urmom"
Huh, nice
 
i have tried to think of a worthwhile string analogue to this challenge but no luck yet lmao
 
@cairdcoinheringaahing here are two completely unrelated challenges: codegolf.stackexchange.com/q/1364 codegolf.stackexchange.com/q/122896
 
@pxeger Thanks :P
 
lol
 
Tho I'd argue they're related by virtue of both being string challenges :P
Or code-golf challenges :P
 
8:31 PM
@taRadvylfsriksushilani zsh > bash (or, in this case, zsh < bash, because it's 6 bytes shorter...)
 
Ugh, my Jelly answer (which, I forgot I even did) to the first is... blegh
 
@taRadvylfsriksushilani hmm, it always links to ato.pxeger.com even on staging.ato.pxeger.com
 
@pxeger *laughs in HAI 1.3,VISIBLE "urmom",KTHXBYE*
 
DejaVu Sans Mono is 90% of DSO lol
 
@emanresuA cries in 153KB JavaScript bundle...
maybe one day I'll do a full much more minimal rewrite of the frontend
Next.js was just quick to get off the ground
 
8:37 PM
todo: make one of these services and call it GTFO (Ginger's inTernet code golF executOr)
 
DSO has 38kb of code
Of which 22kb is interpreters / interpreter wrappers
 
TIO has 23KB
wow, Google's homepage has 614KB
maybe I'm not doing too badly then
I suppose that includes a lot of malware though, which ATO doesn't have
 
My interpreters are kinda cheating
A lot of them fetch+eval code from the source
 
@pxeger ...yet
but that can be changed
 
(Because automatic updates are nice)
 
8:54 PM
@Adám Added DejaVu Sans Mono to DSO
 
Nice.
 
Also, would you mind testing the BQN errors? (I don't know BQN, could you just give it a few programs that error in different ways and see if you get readable error messages?)
 
Is there a keyboard combo for Run!?
 
ctrl-enter or command-enter
 
Doesn't work for me (FF).
 
8:59 PM
Hm...
 
So, some BQN errors work fine, others seem to hang.
 
Oops, I coded it so keyboard shortcuts only work in the codebox, will change that
@Adám It doesn't hang, some code errors before the code that turns off the run animation
 
0
A: Sandbox for Proposed Challenges

AnttiPQuicksand In this fastest-code challenge, you take a positive integer as input, which represents the height of a sand pile, located at (0,0) on an infinite square grid. For example, if our input is 123, the sand grid looks initially like this: \$\begin{matrix} 0 & 0 & 0 \\ 0 &123& 0 \\ 0 & 0 & 0 ...

 
BQN error formats are confusing me.
@Adám I'm not quite sure how to get the message from a BQN error (format's inconsistent), but I got it to stop hanging and added a notification if the message gets misdecoded.
 
Seems to work now.
 
9:14 PM
Cool, thanks :)
 
9:29 PM
0
A: Sandbox for Proposed Challenges

SpitemasterPlay a chess-like game king-of-the-hill Your task is to build a program that plays chess. However, it doesn't know how the pieces move before the game begins. In fact, each time it sits down at the board the pieces are different! The game This game is played on a 6x6 board, looking roughly like...

 
9:54 PM
Is best of nominations voting starting today or tomorrow?
 
tomorrow
@emanresuA can you vote for yourself?
 
I think so
 
Are there any categories still uncontested?
 
off the charts
And kasas city shuffl
 
We've got about 12 hours left, I'll see if I can find a few more posts to nominate for those categories
 
10:03 PM
@taRadvylfsriksushilani link to nominations?
 
12
Q: Best of CGCC 2021 - Now Accepting Nominations!

Wheat WizardWe have decided the categories for the "Best of CGCC 2021". We're going to go with all 22 nominated categories as users have offered upwards of \$15000\$ rep, so we can include all positively scoring categories. How this will work: I will post 22 Community Wiki answers to this question, one for e...

 
@emanresuA No one wants to do the Kansas City shuffle today, it's too cold out
 
0
A: Sandbox for Proposed Challenges

Unrelated StringWorkout Numbers code-golf sequence I work out semi-regularly, but haven't the faintest clue what I'm doing. On weight machines, I never plan how many reps to do in advance, instead pursuing a dynamic goal based on how much I feel up to: The bare minimum is \$5\$ reps, but I usually do at least \...

 
10:22 PM
Today I passed 1,000 answers. Only a few more to go before a big round-number milestone. ;)
 
Nice! I have ~500
 
462 here
nice
 
> 742 Answers
> ~500
Either you're being very modest, or you've spent more time on code golf than you realized ;)
 
Both
And/or last time I checked was in august
 
Lol, fair
 
10:30 PM
361 for me
 
76 for me
 
@SandboxPosts by the way what i mean by "is this too trivial?" is "this is definitely too trivial but i'm not sure which is the better way to generalize it"
 
10:52 PM
Is this a dupe of this?
IMO "map over each word" vs "operate on one word" is a trivial difference
 

« first day (4022 days earlier)      last day (812 days later) »