« first day (3620 days earlier)      last day (1215 days later) » 

3:05 AM
CMQ: Can I explicitly reference Python's function class without getting the type of a pre-existing function? E.g. fn = lambda x: None; print(type(fn)) outputs <class 'function'> --> that's the class I want to use.
 
@Lyxal So something like print(type(id)) isn't allowed? I don't think so
 
@cairdcoinheringaahing as in I want to compare it to the types of other objects. E.g. type(argument) is function
 
@Lyxal type(argument) == type(id) I think
 
@cairdcoinheringaahing you mean the lowest voted over the last 30 days?
@cairdcoinheringaahing except the arguments may not be built-in functions
 
@Lyxal No, the posts with deletion votes
 
3:09 AM
Erm, I'm not seeing any questions there.
I only saw one
 
HN got to them before you could :P
Take a look at the Recently Deleted section
 
But only one question has been deleted since you asked though
 
@Lyxal 1 question and 1 answer
And this one has recently popped up
 
@cairdcoinheringaahing lel I already VTD'd that
 
3:44 AM
yeah i already yeeted them lol
 
@cairdcoinheringaahing where's that userscript hosted?
@cairdcoinheringaahing where exactly?
oh the queues
 
4:40 AM
@cairdcoinheringaahing I made it, yeah. Any issues with it?
@Razetime If you mean the Random Question script, here (v1.2, I think that's up to date)
 
4:58 AM
thankuuu
so the random button is only on the homepage?
 
5:16 AM
@Razetime Yes, although I can make a version where it's somewhere else if you want
 
5:42 AM
MFW iterating over things like maps etc exhaust the iterable meaning that further calls of list don't show anything.
:(
@RedwolfPrograms instead of linking to the meta post, just explicitly state that the answer has to specify which outputs are truthy and which are truthyn't
Also, you'd want to make the initial answers available pool wide enough to support 90% of languages.
Both practical and eso
 
Oh, good point. Also I now will use truthyn't rather than falsy for the rest of my life
I don't want to make the initial answer pool to wide, so that it doesn't become trivial to use it for every iteration
 
If I can't make def, lambda or print somehow, then I ain't able to use python
and if I can't make curly brackets, then I probably ain't able to use C (and it's family)/Java/etc
 
I'll definitely include common print statements, as well as some whitespace and parentheses/brackets
 
Suggested title: Cut down on byte waste (because you're recycling the previous answers)
Or something about recycling/reuse
 
Oh, that's a good idea
 
5:50 AM
Like Originality is overrated. Reuse bytes instead
If you can't already tell, I'm absolutely great with names
\s
Here's my best and final challenge title idea: Lyxal suggested this challenge title in TNB chat
 
All good suggestions, I'll keep them in mind!
Except maybe the last one
 
aww
 
I don't want to waste the world's greatest name on a simple challenge like this
 
good save
user image
7
 
Hi all
 
6:04 AM
Howdy
 
hello there
 
@RedwolfPrograms sidebar makes a lot of sense
I can keep clicking the random button till I find a good question
 
I'll work on that, should have it finished in about 20m
 
that way it won't disappear
I can probably mod it to do that
@RedwolfPrograms oo great
 
6:12 AM
I'll add a choice between three locations
 
alright
 
6:31 AM
0
A: Sandbox for Proposed Challenges

EasyasPiImplement ASCII -> GSM-7 (SMS) text packing SMS messages can store 160 ASCII characters into 140 characters. It does this by chopping off the top bit from each byte and packing them together. The simplified steps: Convert the string to binary little endian ASCII. Remove the top bit from each byt...

 
WOOOO
@RedwolfPrograms This is the first question I got XD
14
Q: Suggest me a challenge!

Matthew RohI am too bored and want a challenge to solve. But I do not see any interesting challenges, and I am too lazy to search for one. Can you (Well, technically your code) suggest me one? I/O Input: None. Output: A link to a random open(i.e. non-closed) challenge("Challenge" excludes tips!) on PPC...

 
loooool how
 
I have no clue
but that is one of the best coincidences I have ever seen
or your script is sentient
 
7:37 AM
@Razetime clearly it's sentient
 
Probably an ES6 thing
Gotta remember to call Object.disableSentience next time...
 
7:49 AM
@RedwolfPrograms have you tried using jquery instead?
4
 
8:00 AM
@RedwolfPrograms kids these days with their gosh-dang Markov chains, creating sentience willy-nilly without consideration of the fact that we could all die as a result. SMH.
2
 
 
2 hours later…
9:34 AM
Hi. Very sad codegolf.stackexchange.com/questions/216902/… has been closed. Shall I just change it to ask for a function with a list/array/vector of all the strings in it?
 
@fomin the main thing about publishing problems on this site
is that it needs to be very specific and exact
so first, the output should be one specific thing
In this case It would make sense to print out all strings generated
secondly
what are you measuring time with
 
10:06 AM
Printing out all the strings seems worse than making a function that returns a list/array doesn't it?
 
 
1 hour later…
11:08 AM
idk that's for the asker to decide
I don't write fastest code challenges
 
Yeah, it is too much work to judge them.
 
11:33 AM
@Anush there are better solutions, like requiring a checksum without the string being hardcoded
 
11:46 AM
I have edited the question. If anyone is happy with it please vote to reopen. Otherwise let me know what I can do.
2
 
@ASCII-only I was thinking you could ask for an integer n as an argument and it has to print out the nth string. That certainly can't be hardcoded. I didn't think the checksum idea works because of duplicates
I would vote to reopen but I am not important enough
@Razetime but do you answer them :) ?
 
12:06 PM
@Anush no lol
I am not yet good at optimization
 
12:26 PM
@Razetime I think at this point he/she would be very happy with just having the question reopened :)
 
12:46 PM
@RedwolfPrograms I was wondering if there’s a way to exclude closed questions from being chosen?
 
1:03 PM
@Anush hmm... either way, it seems pretty small for differences in speed to be measurable anyway
 
1:13 PM
hecking heck why do i keep getting secret hats
 
1:40 PM
@ASCII-only true. It's tough round here! Instead of reopening someone downvoted it
 
2:07 PM
@cairdcoinheringaahing Yes, there are three or four criteria you can filter by. By default it just picks any non-negatively voted questions.
Oh never mind I didn't see "closed"
Not at the moment, no. I can add a filter, I guess.
 
2:20 PM
I don't think you can filter closed questions in the API, so there are two options:
1. Pick a question, each with an even weight, then try again if it's closed (uses up quota faster)
2. Pick a random page of questions, then pick a random non-closed question from it (will give some questions higher chances of being picked than others)
The current quota is 150 random questions per day, option 1 will decrease it to around 130 (though picking a random _closed_ question would decrease it to around 20).
I think I'll go with option 1 because even a quota of 120 would only be used up if you spent an hour per day looking at random questions, and that's if you clicked it every 30s.
 
@RedwolfPrograms Guess I'll have to up my answering speed then :P
Thanks!
@Anush Keep in mind that not everyone agrees with your views. I think it's a good question, but it isn't yet ready to be reopened
 
2:37 PM
Oh, to anyone who's updating to 1.4, the filterClosed rule is true by default. You can disable it by changing line 18 to false if you want.
 
0
Q: Eye test - How many squares are in this picture?

Domenico ModicaThe picture: Sick of the same old grid where the answer is simply a square pyramidal number? Accept the challenge and write a program that given a positive integer \$n\$ counts how many squares are in the \$n^{\text{th}}\$ iteration of the Harter-Heighway dragon! The sequence of squares of siz...

 
@cairdcoinheringaahing what can be done to make it more ready to be reopened?
 
@Anush I'm writing up a draft which I think should address most of the issues and still preserve the OP's intent (as I read it), I'll drop it in a comment when I'm done
 
@cairdcoinheringaahing that's really great!
You a ccgc angel :)
 
4:13 PM
@RedwolfPrograms Not sure if its an issue on my end, but the Random Question button isn't appearing anymore after I upgraded to 1.4?
 
4:28 PM
@cairdcoinheringaahing should be on the sidebar
 
@Razetime ...yep, there it is :/
 
Did you download 1.4 or S-1.4
Unless I mixed up the download links 1.4 should have the same button location
 
I think S-1.4, but it's "fixed" now (read: I was pointed to where it is)
 
If you prefer the old one you should be able to switch back (or download both :p)
In future versions I'll just make it an option rather than have two versions
 
 
2 hours later…
6:27 PM
0
Q: I don't like curry

userI don't like curry. Help me reverse the effects of this evil question - Make me some curry - by uncurrying functions. Task Given a blackbox curried function, output its uncurried equivalent. The curried function will take a single argument and output either another curried function or a value of...

 
Who
7:04 PM
thinking of using this to solve challenges
which is probably a terrible idea and also futile
interestingly one of the meta operations generates a random tile
which is theortecally useful for the two smokey challenges
 
hi @cairdcoinheringaahing
@cairdcoinheringaahing are you still about?
 
Who
big emphasis on however the fuck i spelled theoretically
the 4chan (stinky!!!) challenge seems simple, but i might have to do base conversion
 
@cairdcoinheringaahing I applied your fix except I chose 5 strings instead of 30 in case I have to enter them into the code by hand.
 
Who
even if i don't, doing anything in taidoku seems like a nightmare
 
if anyone who can could vote to reopen codegolf.stackexchange.com/questions/216902/… I would be very grateful
thank you to whoever voted to reopen
 
7:17 PM
@fomin I am now :P
 
@cairdcoinheringaahing hello! :)
 
@fomin Yeah, that's not a big issue in my view. I chose 30 because that seemed reasonable to me, but you are the one whose actually testing the programs :P
 
@cairdcoinheringaahing cool, thanks. Now I am just hoping the question will be reopened.
the point about the question is that it is surprisingly subtle/tricky to get it to go fast
which hopefully will eventually become clear :)
 
@fomin Well, I've cast a VTRO, so it should come up in the review queues for others to make a call
 
thanks so much
@cairdcoinheringaahing might you try answering the question yourself?
 
7:20 PM
@fomin Np. In the future, if you want to avoid all this, I'd recommend using the Sandbox (especially for non-code-golf challenges)
 
@cairdcoinheringaahing thanks. Sounds like a good idea. I guess I worry it might take months to get feedback from the sandbox
 
@fomin Probably not, fastest code isn't my forte. I usually stick to
 
the chat room needs its own sandbox :)
@cairdcoinheringaahing you could win just by entering :)
it is quite mathy in the end
 
@fomin We have a bot that posts new Sandbox posts into the chat room, and a lot of users regularly check the active ones. My proposals generally don't stay there longer than 2 weeks, unless they're much more complicated than normal
 
@cairdcoinheringaahing ok that sounds good.
can you remember how to find out who has the most points from answers?
I remember there was a nice table you could make
 
he is very good
a lot of those people don't seem to be here any more
the last 30 days column is also completely empty!
I need to pose more fastest-code challenges! It looks like you hardly have any any more
there used to be more
 
@fomin Yeah, around Nov 2019, a very popular user/moderator across the site was "fired", which many users objected to. 3/4 of our mod team stepped down, a lot of users suspended activity etc. full story
 
@cairdcoinheringaahing yes I heard. I don't know where they went
are they being slowly replaced?
 
@fomin It'll be nice to have some non-code-golf challenges around here :P
 
I can make them as fast as people here can answer them :)
 
7:28 PM
@fomin We had an election for new mods a few months ago, and most other users who suspended activity just left and got on with their lives. We've had a steady income of new users since then tho
 
who are the new mods?
 
thanks. Is 4 a normal number?
as in did we have more before?
@HyperNeutrino I didn't know you were a mod :)
 
For a community of this size, I think so. We've had 5 before, and I think we had 3 when we first began
 
cool. Maybe I will add a bounty when the time comes to attract more attention too
 
7:32 PM
Plus a lot of the higher rep users make an effort to moderate when/what they can (VTC/VTRO/VTD, flagging etc.)
 
ah interesting. Yes I guess the people who can vote to reopen are not all mods either
 
aha. I just need to get there with fastest-code questions :)
one thing I noticed is that people seem to forget the answers are judged per language
so they don't want to answer as they don't know C
I am not sure how to address that
 
I don't think you really do have to address that. We've more or less moved away from challenges being actual competitions, and so most people will make an attempt to answer a question they find interesting/something they want to try
 
ah ok. So you are not put off fastest-code because your favourite language is slower?
 
7:36 PM
@fomin No, I personally don't answer fastest-code because I don't really get the methods of speeding up code
 
ah ok
what are your favourite langauges?
 
I usually use Jelly or Python (or my own languages), none of which are fast :P
 
I know python :)
it's fast to write the code!
 
which is why imo it's really good for aoc
 
aoc?
advent of code!
 
7:38 PM
A US politician :P
 
ah yes :)
I tried to speed up my python code with cython.. only to realise really quickly I hardly know any C so had to give up.
@HyperNeutrino do you know C?
 
a bit of c++
not a lot, but enough to kinda do things
 
c++ scares me
 
Any language that doesn't use a custom code page scares me :P
3
 
@cairdcoinheringaahing :) I hardly know that that means! Could you explain?
 
7:44 PM
@fomin Golfing languages like Jelly, 05AB1E, Husk etc. often use custom code pages to encode their programs
 
aha! :)
@HyperNeutrino I am currently sitting hoping for my question to be reopened. It's slow and nerve wracking
 
@fomin Are you in a rush?
 
@Adám sort of. I mean eventually it will be 2021 and I will have to do other things
 
Who
esolangs.org/wiki/TaiDoKu
 
it's great there are people in the chatroom. It has been quite dead before
 
Who
7:48 PM
how do you do anything in this
 
@fomin Right, a downside of is that the work load on OP is very high.
 
@Adám yes. I don't mind but I would like to start that work now
so I have ask very kind people to reopen the question first....please
 
@fomin It usually takes a couple of hours minimum to get 5 votes either way
 
@fomin I get it. For the future, I'd estimate at least one week's lead-time for a challenge.
 
@cairdcoinheringaahing thanks
@Adám that's a useful estimate. Thank you.
I'll go and watch TV and come back later
 
8:37 PM
Thanks very much reopeners!
Now hoping someone will answer in Julia
 
I just realised my question finally finished, so I should probably go find out who won that :/
 
9:29 PM
@pppery Do you mind which of your answers I accept on the "quickly! group together" challenge?
 
Morning everyone!
 
9:45 PM
2 minutes 29 seconds might be my fastest time answering :D
 
Mines 0 seconds
Because I sandbox sniped an answer lel
3 answers to be exact
 
@Lyxal Actually, counting self-answering, mine's also 0 :P
 
1
Q: Based Palindromes

Gio DA palindromic number, as a refresher, is any number which reads the same forward as backwards. However, what about palindromes in other bases? Input Any integer b where b > 1. Output All integer base 10 numbers from 0 to 1000 inclusive that are palindromes in base b. The output can either be a li...

 
Nah the adrenaline rush when I answer a new question's the only reason I'm still on this site :P
 
 
1 hour later…
10:57 PM
It seems everyone likes it when my answers have high byte counts rather than low byte counts.
3
Which means for me to win rep, I have to lose
#code-golf-problems
 

« first day (3620 days earlier)      last day (1215 days later) »