« first day (4017 days earlier)      last day (819 days later) » 

1:13 PM
can i make a challenge about finding the string consisting of all the words whose lengths are prime numbers
so
The quick brown fox jumps over the lazy dog.
becomes
The quick brown fox jumps the
 
something greeting
 
@GingerIndustries something almost goodbye for the night
 
@lyxal Good name for a band: Lyxal and the Night Shift
 
@GingerIndustries jokes on you I can't play any instruments
 
@lyxal you don't have to. just use a kazoo
 
1:22 PM
Don't got kazoo
kazoon't
 
scream loudly
 
It's 12:23am
I don't want to get noise complaints
 
@lyxal use Chrome Music Lab
 
lmaoooooo
its 923pm for me
 
and it's 2:24pm here
 
1:24 PM
@DialFrost jesus what time system are you on? I've never seen one that just uses hours
 
@GingerIndustries on phone. CML is pain
 
lol
 
@lyxal beatbox
 
No sense of rhythm
 
do it anyway
 
1:25 PM
And besides I think I'm like a bicycle
I'm two tired to remain awake
o/
 
@lyxal ಠ_ಠ
 
any comments on my puzzle?
^^
 
I'd tell yall the time here but I can't tell bc the sky is still off for maintenance
 
its like 50 msgs up
 
@lyxal okay now let's start the nuke
 
1:26 PM
@mathcat alright, one sec
 
guys...
 
any suggestions for my puzzle
 
can i make a challenge about finding the string consisting of all the words whose lengths are prime numbers
so
The quick brown fox jumps over the lazy dog.
becomes
The quick brown fox jumps the
copied from ealier msg
 
1:30 PM
@DialFrost ah. this looks good, just make sure it isn't a dupe
 
okey ill go check
 
@DialFrost split by spaces?
 
er u may assume the text has spaces in it
ill change it so no punctation is allowed either
upper+lowercase allowed
 
@DialFrost Wouldn't it be "The quick brown fox jumps the dog"?
 
erm im still working on tat
cuz the dog has a punction with it
punctuation
so its length is 4
actually shld i add punctuation to test cases
make it more intersting
 
1:55 PM
@DialFrost 7:25pm
 
i gave bounty
:)
to anttiP's qns
 
12
Q: Trap the hero in a maze

AnttiPYou are an evil wizard, doing evil wizard business, when suddenly your crystal ball alerts you of a hero on their way to defeat you. To crush their hopes and dreams, you decide to trap the hero in a maze. You could just make a big maze but where would be the fun in that? Instead, you decide you w...

 
my first bounty yay!
 
2:15 PM
@DialFrost if that doesnt work, you could make it a bounty with no deadline
 
lol
ill prob award it to someone (prob ajax) quite soon
ajax managed to make his program work under a minute
pretty optimised
not bad in terms of code size
 
@AaroneousMiller You didn't find another Vyxal ACE did you
@emanresuA Jelly
Husk in second
Vyxal in last (sorry Vyxal nothing personal)
@DialFrost That would be very boring
Ash's first code page in second to last
 
@taRadvylfsriksushilani no comment
 
Well, I'll publish the CnR today then
 
@AaroneousMiller #
 
2:30 PM
@emanresuA APOL?
 
@mathcat drat, foiled again
 
@AaroneousMiller Just a warning, I don't know if Vyxal would qualify for this CnR
Due to the requirements about the language being deterministic
And it also specifies the cop should make the language, so you'd probably just have to make a version of "vyxal" with the subset of features required for the ACE
 
@taRadvylfsriksushilani Vyxal has some commands for RNG, but other than that it's completely deterministic, to the best of my knowledge
@taRadvylfsriksushilani I helped make Vyxal
 
Hmm, I guess that'd count.
 
If you don't think it qualifies that's fine, I'll leave it up to you
 
2:40 PM
It's a bit of an exception under the current rules I guess, but excluding an ACE in vyxal wouldn't be very fun
Just like...answer in "Vyxal but don't use the RNG operators" and I'll be fine with it :p
 
If I get one more upvote on that SO answer I'll hit 1k on SO with 33% of my rep coming from a single answer
 
What!! Oh no!?
 
for a moment I thought it was a rickroll
 
2:50 PM
@mathcat bruh oof its an actual github link
 
> This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
 
0
Q: How should be some mathematical functions that you need to import to directly use without adding the library name be treated as?

logiclike the Float.pow function in kotlin, in normal cases, which the pow function is not a part of since it is an extension function, you do it by doing, kotlin.math.abs for instance, should import directives be compulsory for code golf submissions? (like a string of imports such as import javax.swi...

 
0
Q: Is there a code golf for code efficiency (speed) instead of bytes?

phdstudentQuestion in the title. Is there a code golf for code efficiency (speed) instead of bytes?

 
2:52 PM
ninja'd
 
lmao
 
again
 
@PyGamer0 linux deletion denier
if linux still exists why is my computer windows
 
I said you must clarify the robbers challenge
 
I'm working on it
 
What is "δ" in 05AB1E?
 
how about checking the docs
 
3:39 PM
oh they fixed the ignored/watched display on the main page so it actually looks good again
nice
 
Challenge idea: Given a grid filled with + and slope change all the plusses, whose center is above the line y=mx as an x.
Considering the width and height of the plus as a unit, and O is the bottom-left corner.
Example:

Input:
+++++
+++++
+++++
+++++

2

Output:
xx+++
xx+++
x++++
x++++
+++++
^ Feedback?
 
@thejonymyster ah your computer is windows because your a Microsoft employee :p
 
https://dzaima.github.io/paste/#0rVd5V9NYFP8/nyIGlRZKpbh3Bvd937e2YmgDRNskpkFaFY8gKmsuiMoYxxlxnBkXXEFHUcdz@vJF7jeZl6ZNmrQuxzM9h3P67u9313d730XMKLKqsdl8lknKKaFN4TsFtpXlLhZmCi8XROJcS93ShcsWLV@8YsnKwKrg6tbmtfXxeOFzYTqunV3XI6havluUFT6b6ujsOn0mTV6dzyXPtUuZ/Uc3Hzh0/PD2vfvWH9y0Zeu2HTt3kYkTxzYe2bBnd@FRYa6x4dKF3pOnYolQuKkt@tPPa8hj8onMk2dklkyTIXKPGGSMTJI@8oi8JzPkNblPBskdMkpukMvkCflAnnMVITfSmMkceUCGyV2ik5ukPy6Rp@Qz@UjekhfkIRkhv5LbBMgAjo/huI7jkzg@hfq/aPSh0Y/GFTQG0LiKxjU0rqMxiMYQGsNojKAxisYYGjoagHAT4RbCbYQphF8Q7iAYCHcRfkW4h/Abwu8I9xGmER4g/IHwEOFPhL8Q/kZ4hPAY4QnCU4QZhGcIzxFeILxEeIXwGmEWYQ7hDcI7hPcI8wgfED4i
I'm not sure if this is valid interpreter.
 
wdym correct?
 
0
A: Sandbox for Proposed Challenges

logicD'Hondt method the D'Hondt method is a method for allocating seats in parliaments. Given the Amount of representatives the district you're calculating for is given, and the total amount of voters, and a map or dictionary of every party alongside all the votes they got, you will be asked to give t...

 
3:54 PM
Um, I have a python problem.
 
@mathcat what is it?
 
Given a nested list like [1, [2, 3], [4]]
 
@mathcat don't we all
 
can you get an item, by passing the list's indices as a list?
 
3:56 PM
@mathcat i don't understand
 
e.g. list.function([1, 0]) would give 3
like list[1][0]
 
oh, I will solve
 
me too
 
lambda f:f[x[0]][x[1]]
 
no
the list is ragged
it's depth could be more than 2
 
3:58 PM
I will solve, but i'm lazy
 
def function(lst, indexes):
    return eval(f"lst{''.join(map(lambda x:'[' + str(x) + ']', indexes))}")
 
@BgilMidol wrong
 
why?
 
@mathcat shouldn't list[1][0] give 2 for that example?
 
oh yeah
 
4:02 PM
lambda f,x:__import__("mathcat").senitro("do the recent task").(f, x)
 
lol
 
@BgilMidol gives an error to me
 
@mathcat what error?
 
sudo bestpip install mathcat
 
Int is not subscriptable
 
4:04 PM
?
 
oh working
thanks
 
it's hacky though
 
for now it's okay I think
 
4:17 PM
@mathcat Try it online!
 
nice, but can I also set arr [some pos] to something?
 
@mathcat try f = lambda x, y: x[y[0]] if len(y) == 1 else f(x[y[0]], y[1:])
 
noice, but I need to be able to set something at that position
 
def function(lst, indexes, setval):
    return exec(f"lst{''.join(map(lambda x:'[' + str(x) + ']', indexes))} = {setval}")
 
How have we still not gotten this right
 
4:29 PM
0
Q: For lambdas that is, how should we input them into tio.run?

logicfollowing the meta codegolf stackexchange post, I've stopped using declarations for lambda functions, but one problem this creates is that since you're only inputting the lambda body and not its header, you can't run it in try it online. What would be your suggestions to solve this? can we ignore...

 
Windows: Most common, but kinda sucks in a lot of ways
MacOS: Pricy hardware and lacks some freedom
Linux: Not evil but very ugly and lacks compatibility with lots of stuff
Chrome OS: Only good for cheap laptops
iOS/Android: I'm not writing code on a screen that tiny
If only we had a small, secure, nice looking OS with extremely good hardware and application support
 
@taRadvylfsriksushilani phones boot quickly (well they never shut down
 
But we can't even manage to get good support for linux after decades
@user I only gave them gray since when you do shut them down or update them, it's kinda inconvenient
 
Because no corporation owns it and there’s a million distros
 
4:32 PM
@taRadvylfsriksushilani so you want Linux but it can run Windows apps?
 
@taRadvylfsriksushilani isn’t chrome os the same once you shut down?
 
@user I'm sorry once you what
 
@GingerIndustries i think they want more appa for linux
@GingerIndustries shut
 
Linux needs something like a Microsoft, that runs it on hundreds and hundreds of computers and makes sure any compatibility issues are fixed, and keeps graphic designers on salary so they can make it look good
 
Ubuntu kinda like that
 
4:33 PM
But they're too Microsoft
And Ubuntu still manages to be ugly and have bad compatibility
 
But people are just so used to mac and windows and linux doesn’t advertise
 
@user Chromebooks boot up almost instantly
 
@taRadvylfsriksushilani because they’re not enough like microsoft (not that being a big bad corp is good)
@taRadvylfsriksushilani mine takes half a minute :(
 
@taRadvylfsriksushilani ubuntu gets closest to what you want
 
@user And yet they already do the bad-Microsoft-things, like centering things around profit too much
We need an OS made by a non-profit company
 
4:35 PM
@taRadvylfsriksushilani well do you have any suggestions?
 
What do you expect them to do? Profit is why they exist
 
That can take care of advertising and testing and UI/UX, but that doesn't have to be overly bad
 
@taRadvylfsriksushilani yes
 
y'know actually
we're kinda in an Alexander Graham Bell-type situation here
 
Remember that Non profits aren’t always good tho
 
4:36 PM
cough cough collegeboard
 
My mom volunteered at one and the head gave herself and her right hand huge salaries
 
we've got all the parts for a good-looking, well-built Linux-based distro but we just haven't put it together
 
@taRadvylfsriksushilani :(
 
Windows feels kind of...idk, bloated. An OS should be kinda small IMO. It's the base that your apps run on, not the whole entire computer.
 
@GingerIndustries good looking distros exist already
 
4:36 PM
I kinda think we should start from scratch honestly
Windows and Linux both have decades of compatibility stuff they have to deal with, and have security and other issues that can never be resolved, ever
 
@taRadvylfsriksushilani what? No don’t take away my preinstalled microsoft todo and solitaire what would i do without them /s
@taRadvylfsriksushilani have you considered that this is hard
 
Lots of applications? flatpak/snapcraft + some sort of APT gui
Good design? plenty of desktops to choose from
Price? Free
Just works? this is the hard part but I think it can be done
 
Any software will get compat issues eventually anyway, best to stick to linux
@taRadvylfsriksushilani like really hard
 
@taRadvylfsriksushilani these are kinda unavoidable consequences of making an OS
 
4:38 PM
I disagree
 
methinks it's about as good as it's gonna get
 
^
 
Unfortunately, for practical reasons, I do too
 
I’m hopeful about linux support getting better but it probably won’t change much
 
Linux has massive compat issues despite existing for decades, so anything new is virtually guaranteed to fail unless all of the major companies were backing it and there was enormous incentive for app developers to port things to it
 
4:40 PM
Also the boot time isn’t a huge issue imo, but small linuxes exist already
 
I don't want things to be small for boot time reasons, but for security and simplicity reasons
 
Security?
 
Yes. The less code, the fewer bugs can hide in it.
 
Ah
 
Bloated, rarely used features are more likely to see less scrutiny and harbor really bad vulnerabilities
 
4:41 PM
How many issues does unix have compared to linux?
 
Unix?
Does that still exist?
 
I’m sure someone’s got an os that’s close
 
BSD is close to Unix I think
 
MacOs?
 
That's based on Unix too yeah
But I'm p. sure it's not that similar
 
4:43 PM
@taRadvylfsriksushilani specifically bsd right?
 
Not a fan of macos, if bsd’s like that, then imma be sad
 
I've heard bad things about FreeBSD from xkcd
 
Mmm very reliable source
 
@taRadvylfsriksushilani *cough* Vyxal *cough* /s
 
4:47 PM
@AaroneousMiller nah we have tons of code now :p
Lots to places for 🐜 🐛 🐞 to hide
 
Ugh, have to work on a Google FooBar thing
So much graph related stuff
 
what
 
I must've set this reminder last night lol
 
@taRadvylfsriksushilani what you using
 
Chrome OS on the laptop I take to school, Windows + WSL2 on my "good" laptop
 
@PyGamer0 (*talking into earpiece*) theyre onto me, bill, what do i do
 
5:09 PM
@taRadvylfsriksushilani when profile swap starts?
 
I think we've decided not to do it
or at least, if we do, I won't be part of it (and don't know when it will start)
 
5:24 PM
0
Q: One pair or fewer

Wheat WizardGiven a list of positive integers give the longest contiguous sublist which contains at most 1 pair of identical items. In the case of a tie return any of the solutions. This is code-golf so the goal is to minimize your source code with answers being scored in bytes. Test cases [] -> [] [1,2,3] ->...

 
5:43 PM
@taRadvylfsriksushilani how about a username swap
 
I think we might try something like that in a separate room or something, as a game to guess who's who, but a pfp or username swap here would be annoying and probably not very funny for people not participating
 
lol yea
username AND pfp swap, at the same time (and the usernames and pfps dont match)
AND you pretend to be someone else
AND ratio AND you fell off AND...
 
5:59 PM
metasmoke.erwaysoftware.com/posts why a lot of Help Microsoft talk to a person?
 
6:14 PM
because microsoft impersonation scams are very popular because most people who aren't that tech savvy use windows and it's also much easier to attack
also i think it's also just the most popular OS even ignoring how likely the person is to fall for the scam so it makes sense to attack that OS
 
Test 1 passed!
Test 2 passed!
Test 3 passed! [Hidden]
Test 4 passed! [Hidden]
Test 5 passed! [Hidden]
Test 6 passed! [Hidden]
Test 7 failed  [Hidden]
Test 8 passed! [Hidden]
Test 9 passed! [Hidden]
Test 10 passed! [Hidden]
I hate everything
 
no.
don't
@taRadvylfsriksushilani I swear that's my line!!!
I already planned of printing cups
 
Dec 24 '21 at 19:22, by Redwolf Programs
Y'know what I hate? Things that test your code against hidden test cases, except that the non-hidden test cases only cover a small subset of the behavior
 
@mathcat with I hate everything
And a friend gave me an idea of mass printing bottles with a little hole
and it says I hate everything
 
my cs 241 course has three test types
there are public tests, release tests and i can only get the result using a token (12h cooldown, 3 charges)
and then on top of that there are even more secret tests. rip
 
6:22 PM
How can I run the flask app locally?
It says: No module named vyxal
 
code?
@taRadvylfsriksushilani when P3?
 
In a while I'm busy
 
\o @Slate
 
o/ @pxeger
 
@Slate o/ how goes being a bird? :P
Plenty of seeds I hope?
 
6:37 PM
I believe the preordained reply is "honk."
Seeds supply is doing well enough, I'd say!
 
6:47 PM
Grr I'm still failing test case 7 after fixing like three possible bugs
I'm 100% sure it's not a bug on my part, too, is the awful part. Every time this has happened it's been bad specs on google's part
 
... I just got votelimited for the first time in six months.
 
I wonder what happens if you submit while failing a test case...
 
7:10 PM
Okay, figured out the problem
Turns out I'd made an assumption when implementing the pathfinding algorithm that you can normally make, but that you couldn't here
 
Wait, what's the thing you're doing?
 
A Google FooBar challenge
 
Hm
How did you get into it?
 
I googled "dependency injection" lol
 
Mayube apparently got in by googling "python try catch"
 
7:17 PM
@taRadvylfsriksushilani what's that?
 
mumble mumble google mumble challenge mumble hiring
I don't really know
 
@taRadvylfsriksushilani ...what
 
It's a bunch of programming challenges
I think it has something to do with google's hiring but I don't really know
 
well okay but how do you "get into" it?
there's something I'm missing here.
 
by googling something Python or Java related
 
7:21 PM
uh
one sec
 
oh well i never use google so rip
 
@GingerIndustries It probably doesn't do it for any python or java related search though lol
@hyper-neutrino Well, I guess google assumes people who use DDG or Bing wouldn't want to work for google in the first place
 
Hm, got it
The animation's kinda cool
(Pretty sure you can do it with CSS though)
 
Huh, cool
I have an invite link it gave me, though I think it's only good for one challenge
 
Oh no, I only have a week to finish
Whatever will I do?
 
7:25 PM
It's not really clear about what it invites the recipient to do exactly
 
@taRadvylfsriksushilani this feels like a strange method of hiring people tho
 
If anyone wants it, ping me
 
They're immediately ruling out non-programmers by making you use shell commands to enter the challenge
 
psst hey! you! wanna come work for an international megacorporation that knows everything about you?
 
7:26 PM
bit strange
 
@emanresuA It gets longer too lol
 
username did you get it by just spam searching random stuff
 
I'm on level 5 and it's 22 days
 
@taRadvylfsriksushilani ping
 
@hyper-neutrino Nope just searching "dependency injection" like redwolf
 
7:27 PM
(don't click that unless you're aaron)
 
PYTHON 2???
 
shhhhhhhhh google might hear us discussing their secret club
 
Also
13
Q: Constructing Solar Panels from Squares

MayubeI'm designing a new space station for generic super-villain purposes (something something megalaser), but I'm having trouble designing the solar panels. My genius team of scientists can calculate exactly how many square meters of paneling we need to power the station, but the problem is our solar...

 
how long has google been doing this for?
 
It's existed for a while, a few years at least (that's when I first remember hearing about it)
ugh why does it use python 2
 
7:35 PM
I guess does Google use Python 2 internally or something?
 
why would they
 
Too hard to switch, I guess
 
I guess you're doing it in java then
 
Me or emanresu
 
you
 
7:38 PM
No, Python
 
oh
 
Java's worse
 
I stromgly dislike Java
But I've been wanting to learn Python
 
@taRadvylfsriksushilani goomd
 
7:39 PM
Noice
 
what
 
wait what happens if you pass the test
do you fight GLaDOS
 
wait why did i only get 50% on level 2
was my solution wrong or are there multiple parts to this stage
 
Multiple parts
Level 1's the only one with a single challenge
 
ah i see
 
7:42 PM
what happens if you win
 
At level 3 you enter your email address and stuff and then I don't know what they do with that
But it's presumably good
 
well are you going to do it
 
Do what
I'm at level 5
 
enter your email and stuff
oh
 
I guess they put you on a list for potential hiring candidates
 
7:44 PM
i have to finish hw rn but i'll probably speedrun it over the weekend if i feel like it
 
imagine one of us getting hired by Google
that would be something amirite
 
I'm like 16 so I don't even know why I'm doing this lol
 
me using TIO
 
why does python 2 not have list.copy
 
in other news there's now an animation for transitioning to top-down view, how's it look?
 
7:46 PM
every time I have to use py2 I learn something new that's wrong with it
 
I'm watching two movies at the moment (not like, both on screen at once, I watch in parts, alternating), both of which star Ralph Fiennes are are basically exact opposites: Schindler's List and The Grand Budapest Hotel :P
 
0
Q: Inject arbitrary code into a compiler (cops)

ta Radvylf srik su shilaniIn this challenge, cops will invent a (likely simple) programming language, and write an interpreter, transpiler, or compiler that allows you to run it. Robbers will write a program in this language that manages to inject arbitrary code into the interpreter, transpiler, or compiler. Cops Cops sho...

 
@NewPosts Don't want to answer yet 'cos I repcapped today
 
0
Q: Inject arbitrary code into a compiler (robbers)

ta Radvylf srik su shilaniThis is the robbers' challenge. To post a cop, go here. In this challenge, cops will invent a (likely simple) programming language, and write an interpreter, transpiler, or compiler that allows you to run it. Robbers will write a program in this language that manages to inject arbitrary code into...

 
uh
 
What's what?
 
The first is the cops and the second is the robbers
 
oh I'm stupid
 
I'm going over my posts this year to see if there's anything I want to self-nominate for Best Of, and something from this challenge just struck me as really cool:
> it is impossible to choose a consecutive triple of positive integers such that the middle is not coprime with either the first or last
 

« first day (4017 days earlier)      last day (819 days later) »