« first day (4263 days earlier)      last day (875 days later) » 

00:03
@thejonymyster The algebra's not hard, but it is tedious
1
Q: Help me automate codegolf solution creation?

KDeckerIntroduction I would assume like most visitors to the codegolf site I have only ever lurked on the site and never actually have submitted a solution. Though, I would like to make a contribution no matter how long it will take me (or my computer) to generate a solution. Would you help me? Challeng...

Looks like Nim will be Language of the Month for October.
00:21
@NewPosts hmm how will we actually solve this
wed need a copilot api or smth
I think there's a neat challenge in there somewhere, but I'm a little confused what it's actually asking for.
given test cases, generate a program that solves the test cases
ig just loop until some random program passes?
Or hard-code, maybe
?
we cant possible have every solution in there
The fact that it takes from existing solutions (?) is weird
00:43
@DLosc sorry :-)
01:00
Sandbox posts last active a week ago: Repeat Values In Array
why is it that german se's new site design is gorgeous but the actual icon is
yawns
ohai everyone
No, do the onebox thing :p
@UnrelatedString Guess chat hasn't updated yet :/
01:38
@UnrelatedString Yeah, I noticed that too. It's kinda ugly.
They should just use the ß from the site design
or like, DE styled in the same way as the site itself
01:56
yeah
either of those would be so good
the eszett on the site design might be a bit tall to turn into the icon but it's worth a try and they could totally pull off site design style de
My first thought when I saw it was that it was an Adobe product
Followed by realizing it was the German language site, and wondering if they went with a like, bright purple futuristic sort of theme
^
bright purple late 90s idea of futuristic
02:30
like some middle school textbook
Why on earth did C++ look at C's undefined behavior and go "yeah that's a feature"
Just seems like such a bizarre thing to do
Accept what is de-facto a bug for what, 20 years, everyone knows it's bad and you should avoid it, and it's just valid 'cause why not
03:35
C++'s improvement over C is classes, right?
and better syntax
0
A: Sandbox for Proposed Challenges

py3programmerHelp! I got caught bunking!code-golfrandomexcuse-me Oh no! My English teacher just caught me bunking! Quick! I need an excuse to get away! Okay, that was too frantic. What your task today is simple: create a (wacky) excuse-maker, using an arrays, taken using a way convenient for you, a a is a l...

03:57
why is it that i don't seem to be capable of submitting programming assignments any earlier than 10 minutes before the deadline
but i always get them in at that point
in school?
i actually just had an assignment to implement a bare-bones shell that i put almost all of off until the deadline and couldn't do by then
but the course has a "slack hours" policy, so naturally i spent 48 of 72 occasionally working on it but not really then by hour 72 i just finished it anyways
i used to finish all my assignments in a single period, even if there were, like, 7 of them
i had like half the assignment left and my power went out the moment i got into it but after four hours i went to my mom's house and it just happened
@py3programmer do i look like an employed person to you
04:17
@UnrelatedString what is the name of your shell? psh? perhaps a shell?
hah
i think i might already be violating the class policy on discussing assignment details so i'll not answer that
actually no i'll check that because this is a publicly available part of the course
actually have i ever mention what university i attent
not that it matters because my name is out there lmao
anyhow i've got some other shit to do rn
05:13
@py3programmer "better"
05:29
what?
05:42
At least C has a function for printing
At least its syntax makes sense and its operators aren't overloaded cursedly
At least it has cursed bits rather than being cursed bits
even C++ prints
cout>>"Hi"
or is it cout<<"Hi"
thats confusing
06:07
its <<
06:19
tbf c++ also has those
it just doesn’t want you to use them
or specifically that the rest is pervasive
also templates and various edge cases of implicit class stuff are cursed
strange
what kind of language doesn't want people to use it
CMQ give a prime with the longest sequence of increasing digits in it. E,g, 12345 or 642345 (these are not prime)
Oh I think I found it
@graffe LOL
9012345678901
06:41
btw one of the biggest primes i know is belphegors prime
1,000,000,000,000,066,600,000,000,000,001
graffe jumped out?
what an animation
@mathcat you're not trying, you left in a space between else and[
 
1 hour later…
07:59
@py3programmer it is cool!
08:19
the jumping or the prime?
@py3programmer hes replying to ur prime msg, so obviously the prime lol
graffe jumped out again
wdym by jumped out? u mean left the room?
i can still see him in the room
Well giraffes are tall you you can still see them in the room even if they are some distance away
do you see a bar with our pfps on the right
i saw his jump out with his pfp fading
08:32
@py3programmer yep
no hes literally still here
i can see his pfp rn
wait now he is
@RadvylfPrograms undefined behaviour is basically illegal code that the language can't be bothered to detect
for instance, any out of bounds array access is an error on your part. C(++) puts the onus on you to get it right, while, say, Python wastes time checking every access, even if your program is correct
09:07
@py3programmer it's my phone. Just assume I will be back soon :)
09:24
very strange
@py3programmer yep
09:47
Hi guys
I tried using objective-c on TIO
but it didn't work, am I missing something
 
1 hour later…
10:50
perhaps @Dennis would know
Imagine Dennis actually replied lol
11:28
lol
@py3programmer Unrelated/ but, perhaps he has not included the correct header?
 
3 hours later…
13:59
We have had cubic and quartic solving challenges but no quintic
I am tempted to pose one unless anyone thinks it's a bad idea
I am aware there is no general formula
What would be your criterion for correctness?
All the solutions will be integers so you have to find them all
I'll just create random quintics with integer roots between -100 and 100
then I guess many people would just iterate over the integers until all solutions have been found
Isn't that 201^5 time?
I would require solutions in less than a minute
to check if a number is a solution, you just need to plug it into the equation and see if 0 comes out, no?
14:08
Yes
But doing that 201^5 times in less than a minute is hard
but why 201^5 times?
you only need to do it 201 times
There are five numbers defining a quintic
Oh I see your point
:)
Silly me
Thank you
can happen to anyone:)
sure!
14:10
:)
Hmm..so I am going to have to have rational solutions instead
but not sure if it has been done: you could extend your challenge to arbitrary polynomials
with only integer solutions
@graffe that is not actually much more difficult, just a little bit more fluff
@flawr how do you get time just guessing as you said if it has integer solutions only?
@flawr good idea! :3
@flawr there are more of them
brb (in a minute)
14:15
Anyone know why objective C doesn't work on TIO?
@graffe do you know about the gershgorin circles?
My suggestion is making a challenge that has a slightly different focus
e.g: Input is an arbitrary polynomial with integer coefficients where all real solutions are integers too. And the output should be all the integer solutions.
That would make it trivial to reason about the correctness
and finding the solutinos itself would be relatively simple, but there would be many ways to approach it
@flawr what stops them trying all integers in the given range?
nothing, but they'd have to find the range themselves
or work with a methdo that works for all ranges
(hence it would have a different focus than your original proposal)
@flawr I just looked it up
@flawr ok
@flawr why do you ask?
with that theorem you can bound the range in which you have to search for solutions
so that would be one avenue to solve the proposed challenge
14:23
@flawr oh cool
Actually if I allow 40 bit integers maybe the original idea is ok
I'd go for arbitrary size integers:)
@flawr everyone complains when I do that!
Although I would love to
Their favourite esolang doesn't support it etc
right I know, but it would be most elegant:)
I agree!
Tell that to the downvoters
@graffe still easy, by the rational roots theorem, just need the prime factors of the first and last coefficient
15:01
i am honestly annoyed by some of my github followers :p
how on earth am i related to hacking/termux?!
@Ginger Looks like any swapping of two characters is corrected as long as it's unambiguous
@pxeger neat
15:22
@Neil this sounds good to me
 
1 hour later…
16:34
0
Q: Print ascending proper fractions using integers up to the given input

paki engUser inputs an integer. Print out proper fractions using all integers up to the user's input, in ascending order. Rule 1: Eliminate equal fractions. Rule 2: Fractions should be in their simplest form. Rule 3: Use "/" as a fraction symbol and next line (\n or \r as convenient) as a separator betwe...

17:31
@thejonymyster hi
I think the downvoters are being to mean to the nice fraction question
It looks clear to me
17:46
Python question:
I have two arrays, a and b
I want to select those elements from b corresponding to truthy elements from a
does [B for A, B in zip(a, b) if A]do what I want?
18:03
So A=[1,0,0,1], B=[1,2,3,4] would return [1,4]?
Yeah, should do the job
thanks
18:23
@Neil In case you're using numpy arrays instead of lists, you can just B[A] (assuming A is boolean)
no, A is actually an array of strings
B is an array of the amount of left padding of each string
I want to know the minimum amount of padding of non-empty strings
 
3 hours later…
21:22
@Neil import jelly
21:38
@Neil That's a single symbol in APLs.
 
1 hour later…
23:05
0
A: Sandbox for Proposed Challenges

TuxystaAbbreviate the inputted phrases Given a inputted string, replace all occurrences of " is", " are", " am", and " have" with "'s", "'re", and "'ve" respectively. Examples Input Output I am I'm She is She's The dog is The dog's I have a dog I've a dog I have been hurt I've been hurt ...

23:27
@graffe its crazy how divided the votes are again. i like the problem, but ive been holding my upvote for a change in rule 3. it just doesnt make sense to me to restrict output that much
also i mentioned it in the comments, but wow i had no idea thats what a "proper fraction" was
@graffe importantly, there is the issue of it lacking a winning criterion, so it should probably be closed for now, but I definitely don't see why so many downvotes.

« first day (4263 days earlier)      last day (875 days later) »