« first day (2351 days earlier)      last day (2506 days later) » 

3:00 PM
@StepHen Is this challenge going to be doable?
and how is this a koth?
 
@WheatWizard I dunno, I was originally thinking it would be rock paper scissors or something simple like that
Except that any function calls you make will be screwy
@WheatWizard The controller first overwrites all of the functions with something, then runs the KotH
 
@StepHen rps would be a bad idea, there is no real skill involved so there isn't much advantage to getting access to the buiuiltins
 
@WheatWizard I'm open to ideas, I need to write up a Sandbox for it still
 
I think this might be better if you just disable all builtins
no one is going to use them since they don't know what they do
 
Make it so you can't use eval nor exec...
 
3:03 PM
@Zacharý Those are builtins so they would be reassigned anyway
 
@Zacharý No, they just become undefined behavior
 
Depends on the python version for exec I think.
 
It might be more interesting as something like "Find the length of the list with no builtins"
where "no builtins" means no builtins
 
@WheatWizard for i in list: counter += 1, or do you mean no reserved words
 
@StepHen length of list might not be the best task, its just an example
I just don't see a reason why this should be a koth
 
3:05 PM
@WheatWizard Doesn't need to be, that's what my original idea was though
 
It feels like it may be better if you just give a task and make it code-golf
 
@WheatWizard and language specific tags don't go well together
 
They go fine if you have a reason
trust me I've asked about 4 of them
 
ok, maybe a series of tasks or something, with no builtins
(except print)
 
Here's one I did in python
 
3:08 PM
@WheatWizard Wait, you don't need parens for tuples? I've been lied to
 
Yeah, don't need parens for tuples in certain cases.
 
0
Q: Pointer Problem

Prashant JoshiFreinds I am studying pointers in C. I am puzzled, how the **ptr got the value of a[0]?? As I know *ptr means value at the address of ptr. Also &ptr means address of ptr. So **ptr=p means **ptr should store the address of p in it. But this does not happens. Why??

 
@StepHen I've done so too.
 
3:31 PM
1
Q: Peaceable coexisting armies

Wheat WizardIn the game of chess, there is piece called the queen that may attack any other piece that is on the same, row column or diagonal. In chess their are typically two sides, black and white, with each piece belonging to one of the teams. Pieces may not attack pieces belong to the same team. You...

 
^ there's no good formula on oeis ^^
 
0
Q: Language-Specific Boilerplates to Formalise Submission Validity (in atleast some languages)

VisualMelonI'll try to keep this short... see these (relatively recent) questions for some background: 1 2 3 Disclaimer: I really hate 'untyped anonymous lambdas', and if we must have them, then we need some rules, but I think they don't make sense, and I think this is one formal way we can kill them forev...

 
On PPCG, do you flag an answer if it in no way answers the question?
 
3:48 PM
@musicman523 Yes, flag it for deletion as not an answer
 
@StepHen The help text on "Not an answer" says This was posted as an answer, but it does not attempt to answer the question. It should possibly be an edit, a comment, another question, or deleted altogether. In my mind this means it would be something like not even an attempt to answer the question, like not even code at all
This is the answer in question if you wanted to look
 
@musicman523 Flag it with a custom flag not "not an answer"
 
@WheatWizard That was my plan but I wanted to make sure that it should be flagged first. Thank you!
 
4:23 PM
Flagged? Yes. Downvoted to -5 before the user even got to read the first comment? Maybe not.
9
 
-1
Q: Make a Quiz Parser

ckjbgamesYour task is to create a program that will take an input of multiple 4-choice questions (A, B, C, D) in the format shown below, display each question (format also shown below) and its 4 answer choices, get the user's answer to each question, and, at the end of the quiz, output their score as a pe...

 
Not that I go on meta that often, but that's the first meta consensus I've read that's ever made me feel icky
Not because it doesn't make sense for languages where it's necessary (like Haskell)
 
alright i added stuff
0
A: Sandbox for Proposed Challenges

totallyhumanFibtraction - Fibonacci with subtraction Introduction The Fibtraction (as I call it) sequence is the Fibonacci challenge but instead of adding numbers, you subtract them. The first few numbers of this challenge are: 1, 2, -1, 3, -4, 7, -11, 18, -29, 47, -76, 123, -199, 322, -521, 843, -1364.....

 
But because you get answers like this for languages that aren't meant for currying in
 
yeah, but trying to "allow it in one language" is a rather bad idea
 
4:40 PM
Currying in Java may be a bit unorthodox, but that's hardly the worst practice encouraged by code golf.
 
I know it's a bad idea
To limit it
I'm not disagreeing with it, I'm just saying it looks gross.
 
the real problem is that the types are implied, but I've been outvoted on that
 
I was gonna say
There's already enough ire for untyped lambdas
 
I mean, I can golf off 20 bytes off of that code by picking a different input type
 
4:44 PM
Oh? Which one?
 
IntList from eclipse collections
 
That's bringing in an external library, is it not?
 
well, yeah. But you don't need to import it because its the input type
 
But you do have to have it as part of the project.
 
true, but that doesn't affect the byte count
 
4:46 PM
It affects which language you submit it as.
As far as I understand, anyways
 
no, it doesn't. We allow other libraries in the same language
 
0
A: Sandbox for Proposed Challenges

caird coinheringaahingCheat at code golf code-challenge The standard loopholes are a set of rules that answers must follow, lest they be downvoted. However, on this post, you are not allowed to downvote answers that use a standard loophole. Because that's the point of the challenge! Your job is to find 3 things, an...

 
We other libraries?
 
I was just editing it :)
 
You can't just write import things.stuff.IntList and have it work
or whatever the path is
 
4:49 PM
@cairdcoinheringaahing That's.... A terrible idea. I'm sorry, but no
I don't think a challenge saying go break the rules on a different challenge is a good idea
 
So no, I wouldn't consider Java + Eclipse Collection to be the same as just Java
 
bah, meta is not conclusive
the post that is conclusive is marked as a duplicate of the inconclusive one
12
Q: Can I write a golfing library?

cat(This might be a duplicate of another question but all of its answers were vague nonanswers, and I can't find it again, so here goes...) I like python3 and I'm quite good at it; it's rather verbose so when I make long scripts I have a tool script I import that contains lots of shortenings and pr...

11
Q: Is a code golfing library legitimate?

Ari B. FriedmanMy read on the current state of meta.CG opinion is that the use of libraries is acceptable and that the library call should count in the character count: Use of built-in functions and libraries in Code Golfs Using libraries in solutions And from this discussion I conclude that there isn't real...

@Dennis can we reverse the duplicate-ness?
@Xanderhall anyways, the top answer on the first post, indicates that it is the same language
just that it needs to be included in the header
 
@NathanMerrill That's what I said, just not in the right way obviously.
 
maybe close the other as a duplicate
 
You'd have to submit the answer as Java + Eclipse Collections
 
4:59 PM
@Xanderhall then we're just talking semantics, because I thought by saying "to be the same" you were meaning the "same language"
 
-3
A: Sandbox for Proposed Challenges

caird coinheringaahingCheat at code golf code-challenge The standard loopholes are a set of rules that answers must follow, lest they be downvoted. However, on this post, you are not allowed to downvote answers that use a standard loophole. Because that's the point of the challenge! Your job is to find 3 things, an...

 
Also
 
@NewSandboxedPosts a bit late
 
that was not that delayed :)
 
I love this answer
"This whole thing will turn into 'Who can write the best library'"
 
5:00 PM
right, but it's already turned into "who can write the best language"
 
Exactly
That's my point
 
i think somebody's already done that :P
 
Also, there's already a standard loophole about 'limited' languages
 
@NathanMerrill 13 mins after me
 
@cairdcoinheringaahing I've hit upwards of an hour and a half
 
5:04 PM
Yeah, 16 minutes is fine
 
54
A: Loopholes that are forbidden by default

isaacgUsing a non-free language on a Cops and Robbers challenge Most (currently all) cops and robbers challenges consist of two parts: A cop submission, where a user posts some secret property of a program, such as its output, a scrambled version of the code, etc. Then, other users, the robbers, try...

 
Especially since the meta feeds are generally slower
 
This post specifically applies to Cops and Robbers
 
@NathanMerrill Done.
 
thanks
 
5:09 PM
I love Mathematica
 
5:20 PM
 
0
A: Sandbox for Proposed Challenges

ETHproductionsDon't step on a crack, or you'll break your mother's back code-golf number Earlier I was walking down the sidewalk in my town, which is made of concrete slabs and looks something like this: Note: not my sidewalk. Photo by Stephen Barnecut - Own work, CC BY 2.5 I decided to try to pace my...

 
5:46 PM
@ATaco MathJax gen is bork, complains about "extra open brace or missing close brace" when I use environments
@totallyhuman Standard TI-84 Plus FTW :D
 
@LegionMammal978 Post the text you're plugging in?
 
@Zacharý \begin{align}\end{align}
Or any other environment
 
Does this site support environments in the first place?
 
Yes
It was working just fine
But then it randomly started borking
 
Site? (I know it's something to do with ATaco, I can't remember it exactly)
 
No clue.
Does anyone know if there is a Latex for "⟦"?
 
5
Q: LaTeX code for "white square brackets" 〚 and 〛

heboy Possible Duplicate: How to look up a symbol? How does one make the symbol for a blackboard bold kind square brackets ,something like [[.The symbol being talked about is used for containing formulas whose truth values are being talked about in propositional logic. Thanks and regards An ...

 
6:08 PM
Thanks
 
6:44 PM
(FYI) I'm here for quick notification if any issues arise around my challenge.
 
-1
Q: Quickly Prove Me Wrong!

SEJPMIntroduction This is the evolution of this previous challenge which was about checking satisfieability of normal formulae in conjunctive normal form (CNF). However, this problem is NP-complete and watching algorithms finish is just boring, so we're gonna simplify the problem! Specification Inp...

 
awesome. the preview catched the short moment where the vote count was -1.
 
looks like it was undownvoted
 
@LegionMammal978 yep, but sadly the bot catched exactly the wrong moment :(
 
How do the golf-langs tend to do with three or more inputs?
 
6:58 PM
command line args
 
Oh, forgot about that.
 
thank you autocomplete
 
that's... um... what?
assuming the editor is basing that off strings used before, why were those strings used before?
 
I have no idea where those strings are from.
 
Looks like a key. Calculate the entropy and we'll know if it's compressed / crypto data or some encoded blob.
 
7:12 PM
@mınxomaτ You said that you deal with huge quantities of data daily
How huge?
I kinda forgot
 
Depends.
 
@Lembik can you recognize the algorithm? :)
 
@mınxomaτ Also, to answer your question from earlier, I don't appear to have been accepted to the 16-qubit beta test.
 
Oh well
 
@orlp not yet :) Well it looks familiar
but it's very fast!
and generally awesome
 
7:25 PM
@Mendeleev did you still have a question about cisco equipment?
 
@ThomasWard Yeah
I have a 3602i access point running IOS
It keeps dropping its Gigabit Ethernet connection
I have logs of it and everything, do you know anything about these?
 
is it jacked into an ASA or some other equipment?
 
Please define ASA.
 
@Lembik I did take some shortcuts, not the full computation is reduced, so it slows down for bigger inputs
 
It's connected to an unmanaged switch. I have a WLC on the network
 
7:27 PM
@Mendeleev ASA is the Adaptive SEcurity Appliance. Usually Cisco backed networks are CISCO firewalls.
@Mendeleev expandAcronym("WLC");
 
@orlp but not by much!
 
@WheatWizard are you here?
 
@orlp there was soooo much complaining about the time limit
 
@ThomasWard This isn't actually a Cisco network. It's my home network. The router/firewall is pfSense in a VM :P
@ThomasWard Wireless Controller
 
7:28 PM
It's supposed to coordinate my APs.
It works pretty well with the two 3602e's I have, but not the one 3602i
 
@Mendeleev I'd check the connection between the wireless controller and the access point, your controller should have more than one NIC.
 
@ThomasWard It's a VM
 
@Mendeleev I don't know much about Cisco access points, unfortunately, we just switched to Ubiquity access points here.
 
It's the virtual WLC
 
@Mendeleev same question - it has a virtual bridge to the physical port doesn't it?
 
7:29 PM
@ThomasWard I wanted to use those, but my dad has Cisco experience-ish so he decided to go with something he already knows about...
 
@tuskiomi Yes
 
@Lembik you should explicitly mention that it's to prevent bruteforcing
 
@ThomasWard It's connected to the vSwitch, it also has a virtual service interface that's disconnected (as per the setup guide)
 
@Mendeleev your dad needs a reality check. It took me twenty minutes max to configure my Ubiquity APs with a cloudkey. CISCO equipment, especially access points, are painful.
 
@orlp I will do that next time
 
7:30 PM
@WheatWizard can you hop over to this chatroom?
 
@Mendeleev i can't really help as much with the Cisco equipment though, not access points anyways
 
Already there
 
sorry :/
 
The vSwitch is connected to a GBe NIC which is connected to a 24 port switch that is wired up to a lot fo ports
@ThomasWard Thanks anyway
@ThomasWard ikr
 
@Mendeleev you could always register at Cisco and then use their community support forums for further assistance
they're usually good with helping generally (license or not)
drifts back into the shadows
 
7:31 PM
@ThomasWard I had to get a Cisco account to download the lightweight image. Why is the process so painful?
@ThomasWard Thanks
Will try
 
@orlp in any case.... thanks so much. You are an awesome question answerer :)
 
Am I just dumb or don't we have a challenge yet to find a path in a labyrinth?
ie, I give you a labyrinth as a 2D-Array (ie cells that can be entered and those that can't) and you give me a path from 'A' to 'B'
 
@Mendeleev dude, I have an ASA. It's a lot harder to get licenses and stuff for that.
 
@ThomasWard Sorry, I know nothing about ASAs
 
yeah, well, I do.
work >.>
 
7:41 PM
tfw you solve your own challenge in sandbox >.>
wish I could answer ;-;
 
@totallyhuman gotta do it anyways to generate test cases?
 
@SEJPM I do my test cases by hand :P
 
@HyperNeutrino so do I most of the time :p
 
Anyone know about this bug with foobar?


Current level: 3. Challenges to complete level: 2.

Level 1 100% [==========================================]
Level 2 100% [==========================================]
Level 3 33% [=============.............................]
Level 4 0% [..........................................]
Level 5 0% [..........................................]

Type request to request a new challenge now, or come back later.
foobar:~/ me$ cat readme.txt
cat: readme.txt: No such file or directory
 
what is foobar
 
7:43 PM
@SEJPM no it's a sequence on OEIS so...
 
@totallyhuman is it a thing here to just mine OEIS for new challenges?
 
Google thing
 
@SEJPM some times
 
ah ok
 
but a lot of challenges are not sequence based
 
maybe use ?
 
@SEJPM OEIS sequences are normally found after a sequence question is asked.
 
@totallyhuman what do you think i'm doing ><
 
the tag, not the keyword
 
or is that how search works
 
@totallyhuman [tagname] is a tag in searches.
 
PPCG has made new OEIS sequences before.
 
@HyperNeutrino oh my bad
 
7:47 PM
Anyone for a quick contact game? chat.stackexchange.com/rooms/53490/contact
 
I can participate
 
@PhiNotPi oeis.org/A263172. What are the others?
 
8:05 PM
Did PPCG cause this OEIS to exist? oeis.org/A263542
 
Input      Output
1          2
2          -1
11         123
14         -521
21         15127
24         -64079
31         1860498
nice
 
0
Q: Find the numbers coprime to their decimal digits

Mr. XcoderTwo numbers are coprime if their greatest common divisor is 1. Given a positive integer N, your task is to compute the first N terms of OEIS A061116, which is the sequence of positive integers higher than 1 that are coprime to all their decimal digits. Here are the first few terms of the seque...

 
@Zacharý Yes, it's from The Nineteenth Byte.
 
Okay, I didn't know about that one until now
 
0
A: Sandbox for Proposed Challenges

SEJPMEscape the Labyrinth! code-golf Introduction You are stuck in a labyrinth. You only have your brain and a map. Now you need to find a way out, of course your brain doesn't have much memory (or else you wouldn't be stuck!) so you need to optimize your mental code for size. Of course we can't ...

 
8:33 PM
@HyperNeutrino :P
 
8:45 PM
7 messages moved to Trash
 
To be fair, I didn't post them randomly; it was part of something else.
 
@HyperNeutrino I didn't trash your first, only your second and third
 
@trichoplax I was mostly just wondering why I got kicked so I can not get kicked next time.
 
Jim
If you were to write a code-golf challenge disadvantaging the esolangs, of what nature would it be?
 
8:48 PM
@HyperNeutrino I kicked a few people at the end of the face chain. It's the chain that is the problem, not the use of faces
 
Okay. Fair enough.
 
(so being the first is not a problem, but continuing it is)
Just to be clear, the one that I haven't trashed seems a perfectly reasonable response, and part of your conversation.
 
Ah okay.
 
Woah, how long did it take you to develop Positron to the point that it's TIO ready?
 
A few days.
 
nice
 
I may have been spending like 6 hours a day on it...
 
@HyperNeutrino Speaking of that ... I need to implement the MY monads I have left.
 
9:04 PM
What language is it interpreter in?
 
@Zacharý I mean, WSF is on TIO :P
 
@Zacharý TIO ready means runs on command line and can do Hello, World! :P
 
Interpreters in non-compiled languages are easy to update for TIO, according to Dennis.
 
.chomp
 
9:07 PM
@Phoenix yes
 
@Phoenix I hate this ... this happens in D with stdio.readln, it's so annoying
 
@HyperNeutrino Well of course, if it's not compiled he runs the interpreter source every time you run a program, so you just update the interpreter soruce
 
@StepHen exactly. also easy to add things because Dennis built tio well :D
 
@HyperNeutrino Well... changing a file on a server shouldn't be hard on any system
 
9:09 PM
true
 
I wish there was a way the language creator could pull
 
@HyperNeutrino But yes, he's set it up so well it's easy for him to just pull a Github link whenever you want to update your interpreter :P
 
yes :P
 
otherwise you have to bug dennis every time
 
like it's literally just git pull oh look I'm done
 
9:09 PM
@HyperNeutrino * and run the Hello, World! test to make sure the interpreter's working
 
idea: make an operating system using BF
@StepHen true
@totallyhuman idea: just automatically update it ;_;
 
I'll wait until I at least get the arithmetic operations. I know my AP scores now, and I finalized my submission for the dyalog student competition. So, I should get to that soon.
 
@HyperNeutrino I feel as if this has been done before?
 
@Zacharý I wouldn't be surprised, but it seems hard.
 
9:11 PM
@HyperNeutrino I'd assume it'd be much easier to do in a transpiled BF derivative
 
probably
 
that automated a bunch of the BF coding for you and added user-defined functions and whatnot
 
So ... basically adding macros?
 
it's been done before I did it but I did it for the sake of it :P
 
9:12 PM
or just write a C compiler in BF :P and then you can make half of all programs made
 
I can probably modify my D-macro hack to suit BF.
 
@HyperNeutrino BF with syscalls
 
@Mendeleev the purpose though it for it to always compile back down to BF
 
umm
the whole OS, sure
 
function PPD() {
	tempfilename=$(tempfile --prefix=d);
	gcc -xc -E "$1" | sed '/^# 1/ d'  > "${tempfilename}.d";
	touch "$2";
	gdc "${tempfilename}.d" -o "$2";
	rm "${tempfilename}.d";
}
Does that seem hacky to you guys?
 
9:16 PM
what does that do?
 
Adds C style macros to D (the script is in bash)
 
given that it has rm, it looks hacky to me :P
 
If any of you want, I could adapt that to BF instead of D, then use a BF->C transpiler to allow macros in BF.
 
BF->C seems pretty hard though
oh wait
no nvm it isn't
 
C->BF is equivalent to shooting oneself in the foot.
 
9:22 PM
yup
 
So what you're saying is we need a fully-specced C compiler challenge with a 1k permanent bounty on it
 
1k is not enough
 
It's enough. The TETRIS GAME OF LIFE is probably harder.
 
probably
well maybe
 
9:26 PM
Is there a term for making text fit better on multiple lines so the last line is not super short? (not justification) Like a textbox might render as "Porcupines are\nok." because of space constraints but "Porcupines\nare ok." would look better and more square.
 
0/10 say "Porcupines are awesome" and then it will fit better. But no, I haven't heard of such a term.
 
[#1] The code is strong with this one. Share solutions with a Google recruiter?
:D
 
Congrats!
 
I might have cheated a little on the last challenge to get out of a MemoryError

def solution(n):
return {3: 1, 4: 1, ... 199: 458482687, 200: 487067745}[n]

That's what it gets if it only wants 200 testcases and my computer has enough RAM to do it
 
9:31 PM
HAH
The recruiter is gonna see that and be like "....what garbage...."
 
Taking your initiative :3
Much faster than any other solution given the specs
 
I mean, yeah, but
 
Aw contraire. Precomputation can be a great idea when there are only 200 possible inputs
 
><
Just use a list...?
 
That, yeah
 
9:34 PM
It didn't want solutions for 0, 1 or 2 so I just turned it into a dict
 
@musicman523 I need to get my language up to spec before all the good sequences challenges are gone
@muddyfish why not just n-3
 
@StepHen quiet with your logic
 
Don't forget about the new meta post though ...
 
@StepHen get gud
 
How about just [None, None, None, etc.]
Besides, using n-3 is golfier.
 
9:35 PM
@Zacharý No one really cares if I post it 2 months later :/
@Zacharý But when a language competes with Jelly and no one's heard of it ... then it's cool
because my lang would do the new primes one in 5 or 6 bytes if I had my builtins implemented atm
 
0
Q: Is it a super-prime?

musicman523Background A super-prime is a prime number whose index in the list of all primes is also prime. The sequence looks like this: 3, 5, 11, 17, 31, 41, 59, 67, 83, 109, 127, 157, 179, 191, ... This is sequence A006450 in the OEIS. Challenge Given a positive integer, determine whether it is a...

 
^^ that one
 
Well... I'm going to implement the monads I've documented.
 
0
Q: How to answer old questions

musicman523There has been some discussion lately about old questions that don't adhere to rules that are newer, such as flexible I/O. My question is simple: how should we go about answering these? Here are some ideas I have come up with: Write a new question and close the old one as a duplicate, or freez...

 
Wish me luck ... 32 monads to implement.
 
9:41 PM
I should rebuild all the Ubuntu packages into pacman packages and create a Ubuntu derivative using pacman
 
So that it gobbles up more RAM?
 
Does this calculate the transpose of w? map(list,zip(*w))
 
@totallyhuman because some people prefer pacman to apt
 
@StepHen On the contrary, when you answer an older question you can get badges for it, and it gets new attention, being at the top of the active list
@Mendeleev Any reasons why? Pros/cons? I've never used pacman
 
9:48 PM
@musicman523 It's less confusing, faster
 
@Mendeleev Is it still just another wrapper around dpkg?
 
@musicman523 not at all, it's completely separate
it has an underlying library called libalpm
It uses completely different packages
 
Gotcha. Maybe I'll try it next time I crash my hard drive
 
@musicman523 Read this and this
Seems confusing at first but it's much simpler
 
0
Q: Given a string and integer n, split the string at n characters, and print it together

K Split XGiven a string and integer n, split the string at n character, and print it together Ex) laptop 3 should print lap top laptop 2 should print la pt op (see how it splits the string at every 2nd char) Special cases: laptop 0 should print laptop (since we split at every 0th char, thus none) l...

 
9:52 PM
@Mendeleev It looks like a lot of the options are a lot shorter than the corresponding apt or apt-get ones. That being said, I'm not sure whether I prefer the verbosity or the terseness - I feel like I would forget what means what
 
@musicman523 That's not really what I mean by simplicity. Basically, there's only one tool, not three wrappers around a low level thing.
@musicman523 I recommend trying Arch in a VM
 
Yeah, I might at some point
For now I'm just running Mint
 
@Mendeleev Explain to me how it's less confusing
What could possibly be less confusing than apt install foo
 
@Phoenix sometimes you need apt, apt-get, or aptitude, or manually fix things with dpkg
 
No
 
9:58 PM
It can be confusing as to which tool(s) can perform which tasks
 
Just use apt
 
I'm sure pacman has similar problems
 
Why would you use one of the other ones
 

« first day (2351 days earlier)      last day (2506 days later) »