« first day (2509 days earlier)      last day (2334 days later) » 
00:00 - 21:0021:00 - 00:00

12:13 AM
1
Q: Electron Configuration

MD XF In atomic physics and quantum chemistry, the electron configuration is the distribution of electrons of an atom in atomic orbitals. For example, the electron configuration of the neon atom is 1s2 2s2 2p6. (From Wikipedia) Challenge Your challenge is to take a number representing the atomic ...

 
You know having a ISP that is 2 guys is nice, no worries about net neutrality :P getting 20-40 megs so good internet
 
Megabits or Megabytes?
 
bits
also a 7ms ping
just got 10 sec ping to dota
 
I get 100Mbps in Australia, it's ridiculous.
 
*google
@ATaco wow
aussie with wifi
 
12:19 AM
Nah, Ethernet.
 
@ATaco same difference
but my internet comes from my neighbors mountain and down 7 miles to a tower in the local town
 
12:37 AM
so I benchmarked by hackintosh (1300 USD) and the mac with equivalent benchmark scores is $3300 O_o
 
this is your reminder that winterbash is T-23 hours away
 
@Riker :D
 
@LeakyNun the hype is real
 
@ATaco now that you've said that in public, the authorities are going to be there and put you back on IP via sheep courier.
 
12:58 AM
0
A: Sandbox for Proposed Challenges

Bruce ForteCharacteristic polynomial Tags: code-golf, linear-algebra, math, matrix The characteristic polynomial of a square matrix A is defined as the polynomial pA(x) = det(Ix-A) where I is the identity matrix. Your task for this challenge is to compute the coefficients of such a matrix, for this you...

 
1:31 AM
0
A: Sandbox for Proposed Challenges

caird coinheringaahing If you're going to downvote, explain why first. Otherwise it's a waste of a vote, and will be ignored. It's Meta, the vote has no effect without a known reason. Regular vectors A regular 2D shape is a shape where all interior and exterior angles are equal, and all sides are the same length,...

 
 
2 hours later…
Anonymous
3:43 AM
Requesting feedback on this
 
6:11 AM
AnyDice (if anyone other than me) was wondering is a programming language by our definition
It can detect primes, as it has both looping, and the ability to calculate modulo (all division is integer division, so by producting it back out and subtracting you get modulo)
 
Anonymous
@LyndonWhite Yeah, but full-program submissions require hardcoding the input (which is valid for langs like /// with no other input method) which isn't great
 
Anonymous
I guess that means the Discord dice-rolling bot I wrote is also a programming language
 
I don't think that matters at all.
Many languages are awful for full-program submission.
Which is why we allow function arguments as a standard input form
 
Anonymous
It slightly matters, because even though we allow hardcoding iff the language has no other acceptable input method, people don't always realize that, and will complain
 
It rather bothers me whenever a question goes against the default input output methods. I feel like there is almost never a good reason for it.


https://codegolf.meta.stackexchange.com/questions/2447/default-for-code-golf-input-output-methods
Users complaining on answers they they are not full programs, doesn't bother me at all. Its just someone being wrong on the internet, and people normally take it with good grace when they are pointed to the meta post.
 
Anonymous
 
Anonymous
@LyndonWhite I'd rather just avoid having to constantly point people there. Feel free to use whatever (valid) language you want, but be aware of the consequences :)
 
@Mego Speaking of which, is Tymora Open Source?
Because it really needs a comment syntax and I could write that.
 
Anonymous
@Pavel Not yet
 
Anonymous
I need to hide my shame until I finish cleaning up the code
 
6:49 AM
0
A: Is this number a prime?

Lyndon WhiteAnyDice 68 bytes function: p A {loop N over {2..A/2}{if A/N*N=A {result:0}}result: 1} I was wondering if AnyDice counted as a language for PCG.se purposes, and it turns out it does, usage: TryIt output [p 333332] outputs 0(100%) output [p 333331] outputs 1(100%)

 
Anonymous
 
Anonymous
I swept the bad stuff (mostly) under the rug
 
Finished my submission for the APL trains thing
Still not convinced it works perfectly, though
 
 
1 hour later…
8:36 AM
I've got a question... I'm keen on writing a programming language, just because I can (well, I don't think I really can atm, but I think I'll learn a lot by attempting to do it).
So: does anyone know of a language which uses normal commands like Java or Python or whatever, but uses them differently? Not useful, but simply hard to use and stupid... For example for("Hello, World!") is the print command
alternatively I was thinking about writing a Trump programming language, but as there already is one I suppose that would be quite lame
 
and well for the last part: I mainly know Java, but started learning Python and I suppose that is better for implementation of an interpreter compared to Java?
@LyndonWhite I know, I already submitted a TrumpScript answer here ;)
 
Indeed
If your language is simple then something that roughly parses it, and then builds a string of python code, and then calls `eval` on it.
Then yes python is simpler.
but like it doesn't hugely matter.
Basically every main stream language has a parser package (be it PEG, or a ParserCombinator, or something like Bison or ANTLR, that generates parser code).
And any language can dump out a string and trigger an external compiler/interpretter on it, fairly simply.
 
@LyndonWhite you mean like creating a different file with the parsed python code in it? roughly like java .class files? I was thinking about it simply interpreting it without the need of eval?
I guess I know nothing... Either I dump my plans or it'll be a huge mess :D
 
Make a mess, that is how you learn?
 
8:46 AM
true
I was looking a bit into the javacc, but I couldn't quite get it to work... So my biggest problem will be writing a parser I think... Tokenizing is easily understandable, but defining the right grammar... Not so much
 
Sidethought: I guess a homoiconic language (see en.wikipedia.org/wiki/Homoiconicity) would be advantage (neither python nor java is such)
Look into PEG for writing a parser. (if you were functional I would suggest looking at a Parser Combinator instread).
 
advantage of python and java is me knowing them
and thanks for calling me non-functional :P
 
ahaha
PEG almost certainly exists as a python or java package
 
what is peg short for? I only get German search results... ^^
 
8:52 AM
thank you very much
 
 
2 hours later…
10:28 AM
Is this answer is valid, or should it be deleted (because this is not code-trolling)? It's similar to this. Not to mention that it will probably fail for irrational solutions and (because double is larger than int) most moderately-large roots.
When will this be deleted? (because the review says it should be deleted, so I think it should already be deleted, why not?)
 
10:52 AM
0
A: Sandbox for Proposed Challenges

MatthewBath Letters If you have a small child in your house, you may have come across foam bath letters. These can be moistened and stuck to flat surfaces such as tiles and the side of the bath to make words and messages. The range of words and messages is somewhat limited if you only have one set tho...

 
0
Q: Cases variations of a string

gbattezFor any String that is composed of lower cased alphabetical characters, make a function that returns a list of all of it's variations, empty strings returns empty list Test Cases "" -> [] "a" -> ["a", "A"] "ab" -> ["ab", "Ab", "aB", "AB"] "abc" -> ["abc", "Abc", "aBc", "ABc", "abC", "AbC", "aBC...

 
Do you think downvote on sandbox questions need a reason? (like, "I think this is not a good challenge" or "it is missing the details ......")
 
@user202729 Just because the automatic review thinks this answer should be deleted, doesn't mean it should. I think it's an interesting answer, personally
 
So the only purpose of the review is to post a comment on the answer?
 
Hm, just now reading the comments. Fair points, but I'd still prefer if we could find a way to save the idea
I thought it was automatic, could be completely wrong, however
Apologies for jumping to conclusions
 
11:21 AM
[Chat mini meta] Do answers that assume integers are infinite and perform bitwise operators on them valid? (in reality they will only support a small range, e.g., C/C++/Java/Javascript/whatever languages without big integer) What about that language actually have builtin biginteger/bitset?
 
@user202729 I'm okay with it as long as the same bitwise trick would work for any arbitrary number of bits.
 
Do we have meta consensus?
 
 
1 hour later…
12:58 PM
So, it turns out that null >= 0 in JavaScript...
 
@EriktheOutgolfer So the "non-competing" mark is not used for anything now?
 
well, not by default
 
Looks like I'll be getting Fanatic before gold code-golf :p unless I can get +20 answer score by the end of today
 
1:31 PM
0
A: Sandbox for Proposed Challenges

Comrade SparklePonyElections are Challenging This is a series of challenges in which two people, 1 and 2, are running for office. People deterministically vote in certain ways in the fun and exciting world of 1 and 2, which can lead to a series of possibilities for the candidates to do things such as figure out ...

 
1:55 PM
3 hours ago, by user202729
Do you think downvote on sandbox questions need a reason? (like, "I think this is not a good challenge" or "it is missing the details ......")
(again)
 
2
Q: Duck, Duck, Josephus

workoverflowGiven an Integer array: Start from the first number Jump forward n positions where n is the value of the current position Delete the current position, making what was the next position the current position. Goto step 2 until there is one number remaining Print that number Rules The array wra...

 
2:14 PM
@MartinEnder I did consider that, but index-based variants of already posted challenges are starting to get enough...?
otherwise, that's a good first post
 
Isn't it problematic that sandbox challenges need to be constantly posted in chat, otherwise people will forget it? / Should we use thing?
BTW... tags for this challenge?
 
0
A: Sandbox for Proposed Challenges

user202729Intersection of two triangles code-golf math geometry Given 4 points on the 2D planes A, B, C, D, calculate the area of the intersection region of the triangles OAB and OCD, where O is the center of the plane, having coordinate (0, 0). Algorithms that runs in constant time complexity (in terms...

0
A: Sandbox for Proposed Challenges

Stephen LeppikModulus Sum code-golf I call this sequence "the Jesus sequence", because it is the sum of mod.</pun> For this sequence, you take all the positive integers m less than the input n, and take the sum of those n modulo m. In other words: n-1 Σ n mod m m=1 For example, take the term 14: 14 ...

 
Anonymous
@user202729 It is a problem. One with no easy solution within the SE ecosystem, unfortunately.
 
@Mr.Xcoder When are you going to undelete your Python answer? :P
 
@HyperNeutrino It is undeleted for... like 15 minutes?
 
then it's just not loading for me :p
weird. I'm getting your edits but not the undelete
oh right because undeletes don't give the update bar so pressing f a million times won't help :p
 
19 mins ago to be precise
 
ok then :p that would mean that I didn't reload the page for the past at least 20 minutes :p
 
2:46 PM
o.O You really like the challenge don't you?
 
no it just took me a long time to get my python answer to work :p
BTW the next OEIS sequence (polyominoes) doesn't appear to be too hard (at least compared to all the other graph-theory ones); after I get the hole checking utility done I should be good to go for posting a solution :P
 
Which answer are you talking about?
 
answer, or sequence?
 
Isn't that the same thing?
Answer, anyway.
 
2:58 PM
14 mins ago, by HyperNeutrino
@Mr.Xcoder When are you going to undelete your Python answer? :P
 
^^ I meant the one mentioned here.
 
it's already undeleted, just that I didn't reload the page: codegolf.stackexchange.com/a/150452/68942
 
You know, ḷ/ is shorthand for 1ị$. (something I learnt in JHT)
 
oh huh. interesting
oh right I haven't been in JHT for eternity :p
 
3:03 PM
Also... why must you keep the intermediate values just to discard it later? L’$¡ works for -1 byte.
 
hm good point. idk I think I was trying to save some bytes there but I don't know what I was thinking either
 
Taking the list from stdin may save more bytes.
No it won't.
 
You mean for my Python solution or still Jelly?
 
Jelly. BTW it seems that the $ after ḷ/ can just be dropped.
 
It can't. I might be able to get rid of all of the $ using a link separator
 
3:09 PM
Oh yes, + F is v + F(⍵), not v + F(v).
But you can still use ḷ/ for -1 more byte.
 
yeah I have 9 now
anything shorter would probably start becoming Erik's solution :p
 
and -1 byte thanks to yourself. / Oh, I didn't see Erik's solution.
 
yes :p occasionally i manage to golf things by myself :p
 
How does ... work here?
Oh nevermind, I just got it
 
I have a solution for the next OEIS sequence but no language to port to...
we're nearing 300 answers so there aren't enough languages left (also partially because i don't know that many languages :P)
 
3:14 PM
What question are you guys talking about?
 
No other version of Python ?
 
Fortran?
@Mr.Xcoder Yes.
Use Java 6 seems to be abuse of Java... although I have to drop diamond generic in my latest answer.
 
Pls help me golf this (if anyone can). It is quite nice IMO
 
I might use Java 6. caird didn't complain so I'm assuming it's fine :p
 
Be careful with features newer than Java 6.
 
3:16 PM
Yeah. What significant things are there?
I know I can't use lambdas
or ...
 
Just download the compiler to be sure. But... if we keep on abusing Java like this there won't be any left.
 
We're close to 300 anyway
 
well we're reaching 300 and we have java 1, 2, 3, 4, 5, 6, 7, 8, and 9
so
we should make a rule that you cannot use Python or Java if the sequence is easy :P
 
ಠ_ಠ
 
that way when we get around to the really difficult sequences, user202729 or I can still have languages left to use :p
unless user202729 knows a bunch more languages. idk
 
3:18 PM
shh just don't tell totallyhuman
 
I don't, for sure :P
 
This one is easy... at least with the naive algorithm.
@HyperNeutrino Well I don't.
 
Yeah. I'm using the naive algorithm because I don't know of a much better way, but otherwise it's just recursion :p
@Mr.Xcoder yes :P
 
@HyperNeutrino What didn't I complain about?
 
Information: In 150 first sequences 9 and 8 are used, and for 151-300 9, 8, 8 (WRONG!!), 7, 7, 6 is used.
 
ovs
3:20 PM
@Mr.Xcoder 63 bytes
 
abuse of Java having 18 million versions
@user202729 I think one of those Java 8 answers is actually convertible to 5+
but idk
 
@HyperNeutrino Yeah, that's fine with me :P
 
@cairdcoinheringaahing ok :p
 
Actually only 9.
 
@ovs Thank you!
 
3:22 PM
@user202729 ehh I'm only off by 2000000x :P
 
@Mr.Xcoder What's wrong?
 
He used ALL the python versions ಠ_ಠ :P
 
@HyperNeutrino You also used 3 of them :D
He used 3 too
 
well yeah but for actual hard sequences ಠ_ಠ
 
Well yeah :D
 
3:27 PM
:P
 
@ThePlasmaRailgun I believe they're talking about this one codegolf.stackexchange.com/questions/133754/…
 
@Poke That's correct.
 
@HyperNeutrino I was about to solve this in Jelly but then I realised I was filtering the lists of "delays" the wrong way :/
 
3:29 PM
Every time I look at that challenge I want to vote to close
 
@Poke Why? What's wrong with it?
 
but I feel like there isn't enough support to achieve that
 
which one, advent 8?
 
Yes
 
For the fibonacci one you can at least remove common characters that are needed by other languages. For the oeis one I definitely agree with what you're saying here. That challenge is going on 11 pages of answers at this point... Might want to just close that one at some point — Poke Nov 17 at 15:34
 
3:30 PM
oh you mean you want to close OEIS not advent 8 :P
 
yeah the oeis one
sorry
 
I thought you were talking to me :/ Sorry!
 
no worries :P as a general rule though I respond to pings with replies :P
neutrinoisms ¯\_(ツ)_/¯
 
@Poke Eventually, I'm going to get one of the mods to lock/close it, but most likely after the chain has ended (if it ever does)
 
I'm sure it will eventually.......maybe......
 
3:32 PM
When Nie, user202729, Hyper and Giuseppe, (and perhaps me) get bored :P
 
the next sequence is significantly more painful in Java because I can't use imaginary numbers for easy rotation
 
@HyperNeutrino When you and user202729 go away from PPCG for a week, then it'll die :P
 
@cairdcoinheringaahing lol sure :P
 
@cairdcoinheringaahing so if that doesn't happen, you have no plan for it
 
unless everyone somehow stays away from difficult sequences
 
3:33 PM
@cairdcoinheringaahing And the next sequence is hard.
@cairdcoinheringaahing Why locking?
 
@Poke I mean, what's wrong with a challenge having a bunch of answers? "Hello World" has a bunch of answers too :P
 
@HyperNeutrino Lynn's metapost answers that
 
@HyperNeutrino Go implement it...
 
@Poke If it gets way too big, then I'll ask for it to close, but I'd prefer that it ends first
 
the winning criteria doesn't make sense
 
3:33 PM
@user202729 but map isn't a thing either (in Java 6) :P
 
it definitely does...
 
it'll go on forever until people lose interest
 
then by that logic all answer-chaining questions don't make sense
 
there's nothing you can do to improve an answers chance of winning
 
@HyperNeutrino I just used Java 6, and it does have map. (iirc?)
 
3:34 PM
i agree
 
@Poke Or we get a really difficult sequence. It's almost died 3 or 4 times
 
really? hm
I thought map was a stream thing which is a java 8 thing but I don't know
 
@Poke Yes there is. Give very hard sequences
 
@Mr.Xcoder that just means the person before you wins
 
@HyperNeutrino The source code ones end quite quickly, but not because of the challenge
 
3:35 PM
the next person can pick an easy sequence. it's out of your control
 
There is nothing you can do to improve an individual answer's chance of winning, which is I think you take issue with, but overall you can increase your chances of winning by producing more answers.
 
yeah that's a shit argument
 
that's highly subjective
 
At some point I do remember I had the power to make myself win because the person after me chose a hard challenge and nobody else was close to solving it :P
 
that's how you win a raffle
not a competition
 
3:36 PM
@Poke ¯\_(ツ)_/¯ People find it fun
 
@user202729 I'm talking about the map function not Map<T, U> in case I miscommunicated :P
 
@cairdcoinheringaahing i also find popcons fun
as do many people
 
@Poke I mean, free rep and glory, so why not?
 
but let's not get into that
 
@Poke I find good popcons fun. I find good raffles fun.
 
3:38 PM
the definition of good as it relates to popcons or raffles is subjective as heck
this community has proved that
100 times over
 
I feel like this discussion is completely futile, since it involves a lot of subjectivism. Could we just move on now?
 
All I can say is that I didn't expect it to get so many answers. After Hyper saved the challenge once, I didn't think that it would happen again. Blame Hyper for it getting out of control :P
@Mr.Xcoder Seems good to me
 
@cairdcoinheringaahing hey Be Nice ;p
 
That being said, anyone up for some JHT?
 
Not right now, I have to go write a math contest in 10 minutes :P
 
3:41 PM
@Mr.Xcoder I'm free
 
@cairdcoinheringaahing I also save the challenge for some times...
 
I should work a bit too. Math exam tomorrow. (it's quite facile so I don't really bother to practice much, though)
 
@user202729 Yeah, of course, it wasn't restricted to Hyper :P
 
How do you define "saving the challenge" though? :P
 
And IIRC Christian Siever once. Anyway...
 
3:42 PM
@HyperNeutrino Posting an answer with less than 24 hours until the deadline
 
oh ok
hm I wonder how many times the challenge has been saved in that case
SEDE time? :P
 
<Graham's number> times.
 
4:05 PM
less than 8 hours til winterbash I can't handle this pressure
 
You
4:27 PM
Hi everyone, You're here
I'm also here
I'm You
This might sound weird, you know
huh that was boring
 
Anonymous
@You Please don't make noise.
 
You
Okay
 
Corollary to Dennis' Law (You can't outgolf Dennis): The moment you stop to brag about how you've outgolfed Dennis, he has outgolfed you.
3
I kid. That's an impressive solution
 
4:43 PM
@cairdcoinheringaahing For what it's worth mode was added on August 15th
 
4:55 PM
well then it's not outgolfing dennis :p
 
@H.PWiz You had to ruin it, didn't you? :P
 
5:23 PM
..I wanted to clean up my APDE sketchbook, so took a couple of apps and moved them to a new folder. It didn't seem to have deleted the originals (I checked thrice), so I deleted the copies and moved the originals again. It didn't work though, and after a refresh the originals were gone. Who caches file lists?
on the matter, what's a good file explorer that's not ES file explorer?
 
6:09 PM
TFW an answer makes you feel like you only knew half of the language's syntax, when you thought you knew it reasonably well... Wow, super impressive (the use of inout, assignment in a tuple and tuple indexing for avoiding redundancy... just amazing)!
 
6:34 PM
@L3viathan In Aceto is there a command line arg for using regular 1d coding? Also you should add a command for taking all of the input, and putting each line of input on the stack as a separate element so that the first line is on the top. Sorry, thats a lot
 
@dzaima os?
oh, android
I've used the stock one happily
 
6:56 PM
@dzaima I'm using something called "File Manager +", package name com.alphainventor.filemanager
 
7:36 PM
Hello, World!
 
o/
haven't seen you in a while
 
true true, i've switched from participating to lurking
 
it's all good
 
haven't seen you ever
10/10 username
 
life kinda caught up on me, am working as blockchain expert nowadays
 
7:37 PM
ah cool
 
thought i'd drop in and say hi
only to leave and probably never return again :D so hi
 
lol
 
Anyone up for a game of Contact/Spyfall/Codenames?
 
can't atm, sorry
 
@Riker Random question: Do you get given 'homework' when homeschooled? And what happens if you don't hand it in on time?
 
7:50 PM
I am currently doing 2 outside classes, so yes
the rest of it, not much 'homework', I just have generic house punishments
i.e. more chores n stuff
 
Figure i should tell you people that over here i am giving out 2 copies of getting over it just ping me to be enter the drawing
 
8:13 PM
Can someone explain this to me?
 
@Pavel stupid type casting
 
@Pavel when you do the comparison of <int> == <string>, since the first operand is an integer and the second isn't, php tries to cast it to an integer
note that you can do 123 == '123'
if the string is not a number
the result is 0
rather than an exception like in java
 
that's damn weird
 
APL's prefix ! is really annoying me :/
 
echo (int)'foo'; should result in 0
 
8:28 PM
Notice that if you remove the quotes and test ($i == true) it works as expected.
 
@AdmBorkBork it's PHP
what do you seriously expect
it's like javascript but with less redeeming features
 
Huh. You changed your profile pic.
 
@AdmBorkBork winterbash
yesterday, by Riker
winterbash is coming
yesterday, by Riker
prepare yourself
 
so what happens at winterbash?
 
Put On Hats
 
8:42 PM
@LeakyNun have you not done it before?
huh ok
 
Is that anything like Toribash?
 
it's quite fun
@KSmarts .. no
 
@Riker is it the same every year?
 
you do things, get hats that you can put on your avatar
@LeakyNun it's been going for like 4-5 years
but new hats each year
 
That reminds me, I need to change my profile picture to get ready for winter bash :P
 
8:42 PM
the best part are the secret hats
@cairdcoinheringaahing yep
 
@LeakyNun The hat on DJ's cat is from last years bash IIRC
(In his profile picture)
 
3 hours to hats :o
 
@cairdcoinheringaahing yeah, my old cat avatar's hat and scarf was from 2015
@Pavel ikr
 
I should get a more hat-compatible profile pic
 
Hmm, should I go back to my puppy, or go for a different pet (cat/guinea pig)?
 
8:45 PM
@cairdcoinheringaahing guinea pig obviously
 
winterbreak for me is starting soon
that means, more time with you guys :P
 
Same
 
yeah I think most people start on friday
 
I'm waiting for DJ to reply to the previous message (from his autoping) :P
 
@cairdcoinheringaahing wait, he has one?
 
8:45 PM
@Riker Nope, I start next Friday. My school hates Christmas :P
 
RIP
 
@cairdcoinheringaahing Sorry, I was in the car :P
@cairdcoinheringaahing Correct
 
Q: This or this?
(For winter bash profile)
 
The former
 
^
cats > guinea pigs
 
8:59 PM
@Riker that is incorrect
 
@Pavel you sit upon a throne of lies
 
00:00 - 21:0021:00 - 00:00

« first day (2509 days earlier)      last day (2334 days later) »