« first day (2354 days earlier)      last day (2482 days later) » 

12:19 AM
Quick question: If I want to talk with another user in private (e.g. collaborate on the unusable programming language challenge), is there a way to do that inside of PPCG?
 
not unless you have super administration powers
 
Anonymous
12:38 AM
@Challenger5 The only way to do that would be to encrypt your messages to each other, but that's frowned upon because it defeats the purpose of a public transcript
 
1:14 AM
0
Q: Number Named Regex Groups

fireflame241Using named matching groups is often easier to understand than numbering groups but takes up more bytes. Given a regular expression as specified below, your program or function must convert named groups to numbered groups. Task These specifications are based on python 3's re module. A named gr...

 
1:38 AM
0
A: Sandbox for Proposed Challenges

GravitonThe redundant boolean Classically, booleans are one bit; true or false, 1 or 0. Trailing zeros would just be redundant. For example, 001 means the same as 00001 or just 1. The 32-bit boolean Given a truthy/falsey value, output the equivalent 32-bit boolean. Example i/o Input >> Output truthy >

 
 
1 hour later…
2:53 AM
Are there any questions on ppcg about Brain-threory?
 
0
Q: Pinter 7.C.4 - Groups of Permutations of R

dharmatechHere is exercise 7.C.4 from A Book of Abstract Algebra by Charles C. Pinter A is the set of all the real numbers x ≠ 0, 1, 2. G is the subgroup of SA generated by f(x) = 2 - x and g(x) = 2/x G has eight elements. List them, and write the table of G. Solve this using a computer program. ...

 
@WheatWizard That's a hilarious typo.
At first I thought it was a new esolang you made
 
Too late to edit, oh well
I have typed brain so many times my fingers must've just snap to brain.
 
Brainbrain
 
Anonymous
4:05 AM
@Dennis Challenge accepted
 
4:41 AM
@DJMcMayhem I looked at the link and thought it was a braid theory Brain-Flak derivative for like 2 minutes
 
@WheatWizard I don't know why but this came to my mind after opening the link. Maybe because of similar figures/images??
https://codegolf.stackexchange.com/questions/102078/help-me-untangle-these-wires
 
@officialaimm I think that is a question on Brain-Theory, thanks
 
@WheatWizard nice Brain-Flak derivative :P
 
5:22 AM
hi
 
hi
 
I found my first conspiracy theorist today
 
Neat.
 
6:04 AM
It was at the doctor's. They were my nurse o_O
 
6:29 AM
I got an Ikea Markus chair today
Reviews say it's great for tall people
I'm tall-ish (6'0") so it should be good
 
6:49 AM
Is there anyone online who attempted ProjectEuler question 14 (longest collatz sequence)?
(I'm not looking for spoilers, I already got it correct, I am just seeking someone to discuss possible optimisations, if possible)
 
yes (i think)
 
How long did your solution take? Mine took 11 seconds
 
<- doesn't time solutions
 
...
wait, I'll create a new room for discussion to avoid spoilers in the main chat
@ASCII-only I sent you an invite
 
 
1 hour later…
8:09 AM
Hi.. if you follow the TIO online link from codegolf.stackexchange.com/a/131666/9206
how do you actually specify the input to that code?
or alternatively, where is the output?
 
@Lembik main = print (r y x)
 
Okx
Can I double check that in a stack based language, instead of taking input and printing, you can take an element from the top of the stack as input and leave an element at the bottom as output, right?
 
@Okx hmm...
I would use a function instead
7
Q: What exactly is "on the stack"

Socratic PhoenixSo, there's a community consensus that functions from stack based languages can leave their output on the stack. This question is about an edge case for that. Suppose the correct result is some value x. Also suppose that that you are working with a stack based language that has an unlimited well ...

 
@ASCII-only sorry but.. do I have to change what is there to see the output?
 
24
A: Default for Code Golf: Input/Output methods

Martin EnderFunctions in stack-based languages can leave the output on the stack Mostly for completeness sake. This is the de-facto standard for CJam and GolfScript and probably other stack-based languages.

 
8:18 AM
@ASCII-only can you get any output?
 
Okx
@LeakyNun So, do I just call it a function?
 
@ASCII-only All I see is "True"
 
@Lembik yeah
 
what do you see?
 
just replace current main= with main=print (r <your value of y> <your value of x>)
 
8:23 AM
@ASCII-only ok thanks
 
9:10 AM
user image
3
youtube go home you're drunk
 
@betseg +1
 
9:22 AM
@Dennis BF interpreter in APL, so should be trivially translatable to J and therefore Jelly.
 
0
Q: Conways's Game of Life: Most entropy generating starting pattern

PhilippeGeneral rules The universe of the Game of Life is an infinite two-dimensional orthogonal grid of square cells, each of which is in one of two possible states, alive or dead. Every cell interacts with its eight neighbours, which are the cells that are horizontally, vertically, or diagonally adjac...

 
@betseg fav'd
 
9:50 AM
2
Q: Find the nearest biquadratic number

MayubeA biquadratic number is a number that is the fourth power of another integer, for example: 3^4 = 3*3*3*3 = 81 Given an integer as input, output the closest biquadratic number. Here are the first 15 double-squares: 1, 16, 81, 256, 625, 1296, 2401, 4096, 6561, 10000, 14641, 20736, 28561, 38416, ...

 
Okx
10:01 AM
(without linking to meta) what's the current stance on features added after a challenge was posted?
I completely do not understand this edit made to a post by ser2059810... puu.sh/wG3Xc/23ab5151fd.png
how they changed # to **
 
@Okx I imagine it's the same as it always was; it makes the answer non-competing
 
Okx
martin did make a meta post saying 'let's change this'
 
@Okx Wasn't that about languages created after the challenge, not features added?
 
Okx
oh?
His title was "Let's allow newer languages/versions for older challenges", which implies that it does include features added
 
@Okx ME told me that policy has indeed changed. You're Go!
 
Okx
10:13 AM
i don't really like how the non-competing policy is changed. imo it's too subjective
 
10:27 AM
0
A: Sandbox for Proposed Challenges

J_F_B_MAn order of primeness code-golf primes sequence number-theory Introduction In a recent question the concepts of super-primes were explored. A super-prime is a prime whose index is also a prime. 2 is not a super-prime, it's index is 1 3 is a super-prime, it's index is 2 5 is a super-prime, it...

 
@flawr :-D
-1 no conv :( — flawr 5 mins ago
 
Okx
thank you bbc
 
10:45 AM
> Supplied by the National Cyber Security Centre
 
@betseg Of course, you didn't expect anyone at BBC to know what Regex is did you?
 
the people who make the website?
 
@Mayube Well, they were involved in designing a computer and a version of BASIC, so...
 
@LuisMendo a loooong time ago, wouldn't surprise me if the people involved in that no longer work at BBC
@betseg so.. not BBC?
 
Okx
11:07 AM
this regex crossword is fun
 
I can protect questions now, but I don't see how I'd end up doing that
 
We don't often need to protect questions on PPCG - having lots of short answers isn't a problem here... You can use it if a challenge attracts a lot of spam or invalid answers though
 
11:27 AM
@Okx I'm only missing 4 characters
 
Okx
aw you're closer than me
 
oh wait 2 characters
hmm, is \- just a literal hyphen?
 
Okx
yes
 
They posted it a while ago... I remember solving that regex crossword;
 
I think I'm done
now to compare to the answer and see how wrong I am
woo I got it
 
Okx
11:29 AM
done
 
oh @Zacharý I saw some of your MY answers around, and I was wondering why doesn't MY have implicit input/output?
 
Because MY is supposed to be so syntaxless that not even implcit input/output is available.
(And I was too lazy at the time of creation)
 
Okx
regex crossword spoilers- puu.sh/wG6yo/a9e1c66a7b.png
 
@Okx yup!
 
Okx
made it in ms paint lmao
 
11:33 AM
did you actually finish the puzzle or did you give up? :P
 
The way I'm going to implement loops in MY will just showcase my laziness.
String -> Function -> Loop
 
@Zacharý are you ever going to add a codepage and encoding or are you going to keep it intentionally abstract?
 
I will add a codepage eventually, after I get all the one-byte commands done.
 
Okx
What's MY??
 
A language
 
11:39 AM
3
Q: House of cards (version 1)

Carlos Alejo Version 2 coming soon. Simple challenge: given an integer, draw a house of cards with the given number of stories. If the number is negative, draw the house upside-down. Examples: Input: 2 Output: /\ -- /\/\ Input: 5 Output: /\ -- /\/\ ---- /\/\/\ ------ /\/\/\/\ --...

 
MY is my programming language.,
*chirp* You going to kick a bird? *chirp*
(Did that for the pun, not the noise)
 
> empty program prints hello world
booo
 
Which language?
 
yours
oh no sorry it's not an empty program. just any no-op prints hello world
 
I'll keep FF at that.
I also have a legit solution for the hello world challenge.
0
A: "Hello, World!"

ZacharýMY, 73 bytes Here's the hex: 07 24 21 21 28 26 0A 24 21 28 26 0B 24 20 20 28 26 0B 24 20 20 28 26 0B 24 21 28 26 04 24 21 21 21 21 28 26 02 25 28 26 09 24 20 20 20 28 26 0B 24 21 28 26 07 25 21 21 28 26 0B 24 20 20 28 26 0A 24 28 26 02 25 21 28 26 I didn't want to update my old answer, becaus...

 
11:46 AM
@Zacharý can MY add numbers and test prime?
 
It *will* be able to add numbers.
I'm going through the commands by arity.
It has a monad for primality testing.
 
so the hello world is invalid
because it is not considered a language
 
@Zacharý what is a monad?
 
@Uriel neither is #;
 
Okx
Why do so many languages tend to use python? Pyth, 05AB1E, Jelly, MY
 
11:47 AM
@flawr a monad is a function that only takes 1 argument
 
Sympy & numpy.
 
@Okx because it's really easy to build character-based interpreters in python
 
I would use D, but the static typing is hard to work around.
 
I have yet to find a need for either sympy or numpy with braingolf
 
@Mayube ah I see, is this term frequently used? (I've just been very confused because of Haskells monads which are quite different animals.)
 
11:49 AM
MY's monads are pretty much APL's monads.
 
although I'm also working on porting braingolf over to node, main challenge there is node doesn't have fancy arbitrary size integers like python
@flawr Nilad = no args, Monad = one arg, Dyad = 2 args etc etc
 
Oh yeah, that too. Arbitrary size integers are probably the main reason.
 
Use a 2d language and you can have triads
 
@Mayube I've never heard those terms being used :)
 
@totallyhuman you can have triads in a 1d language too
 
11:50 AM
Or MY, MY will have triads.
 
CJam's ? is sort of a triad
 
@totallyhuman a triad = function with 3 arguments?
 
Not the way most golf langs work
@flawr made it up but yeah
Like jelly cannot have triads
 
I already had that term made up though, I was going to use it for MY from the beginning.
I just like APL's monad/dyad terminology.
 
Because dyads take arguments from the left and right
 
11:52 AM
in braingolf, functions take arguments from the stack, so you could easily have a triad
 
Ye same thing in ,,,
 
@Mayube I just googled those terms, and found no results except for codegolf.SE and @Dennis' github account.
 
@Mayube Yeah, but they aren't called that in Stack-based langs (MY's an exception)
 
@flawr I think they were coined by Dennis when he made Jelly
Literally just googled monadic and got wikipedia and dictionary.com results
 
Monads/Dyads? No, those are APL. And why would Dennis have coined triadic? Is it for ??
 
11:54 AM
It seems monad is usually used with the meaning I had in mind, and not for 1-argument-function.
 
it comes from the fact that languages break down into "atoms" and niladic/monadic/dyadic etc are descriptors for atoms
Monadic may refer to: In logic and mathematics, a predicate, a relation or a function having an arity of one is called monadic In category theory, an adjunction is called monadic if and only if it is equivalent to the adjunction given by the Eilenberg–Moore algebras of its associated monad In chemistry, monadic is a synonym for univalent == See also == All pages with a title containing Monadic Monad (disambiguation)...
a predicate, a relation or a function having an arity of one is called monadic
 
Actually, I want to program MY in Fortress, but it was in very early alpha when it got axed :(
 
0
Q: Is it a Chen prime?

OkxA number is a Chen prime if it satisfies two conditions: It is prime itself Itself plus two is either a prime or a semi-prime. A prime is a number where it has exactly two divisors and those divisors consist of itself and one. A semi-prime is a number which has exactly two prime factors. Yo...

 
Okx
1 minute :O
 
man we're just really into "is this number part of this OES sequence" challenges these days aren't we?
 
11:58 AM
@Zacharý Actually, APLers usually say monadic and dyadic [functions]. Marshall, who came recently from J says monadics and dyadics.
 
Okx
well it just happens to be in that OEIS sequence
i didn't get the idea from the OEIS
 
@Zacharý Also, APL allows "triadic" and "quadadic" "functions" in the form of operators.
 
@Mayube Considering there's an entire OEIS sequence named after the god mod Dennis, yeah, we're into OEIS.
 
@Zacharý I'd say that would be more of an argument that OEIS is into us
 
No, someone suggested that from PPCG.
And one of my challenges that I thought ... "there is no way that this is an OEIS sequence" ... was an OEIS sequence.
 
Okx
12:03 PM
there is no way 1 4 2 4 1 4 6 5 3 2 9 is an OEIS sequence -> Is an OEIS sequence B49384 49384th powerset of the positive integers repeated by themselves
that was just a random series of numbers and a completely false story
 
What about a sequence where a(n) = number of n's prime factors
 
@Mayube Definitely an OEIS sequence.
 
would start as 1 1 1 2 1 2 1 3 2 2 1 3 1 2 2
yeah, but which one
 
Is OEIS down or something?
 
looks like it
 
12:11 PM
>.<
 
damn
 
nmad
 
@totallyhuman What?
 
There's no way 1 3 1 1 1 4 1 1 1 5 1 9 1 2 1 6 1 5 1 4 … is an OEIS sequence.
 
@Adám What is that?
 
12:15 PM
@Zacharý Can you figure out the next term?
 
1
 
@Mayube Right. And the next?
 
> You are crawling too fast. Come back in a few minutes.
 
Okx
First 1000 elements: Try it online!
 
@Okx oh nice, wonder how high you'd have to go to hit double digits
 
12:16 PM
Is any one else getting that message on OEIS?
 
@Zacharý yep
 
@Okx hmm, highest there is 13
 
Okx
10 is the 1024th element (2^10)
it looks like there's new maximums at each power of 2
 
@Adám the last one should be 3
and then 1 5 1 8 1 9 1 7 1 9 1 3 1 2 1 3 1 8 1 ...
 
12:21 PM
@LeakyNun Yes, my bad. Blame rounding.
 
so what is it?
 
@Zacharý Interspersed with ones, yes. But not in OEIS, I'm sure.
 
wait but why the 1s?
 
@Mayube It is an integer sequence. There's no "why"!
I find A091967 incredibly hard to run on TIO.
 
12:27 PM
K how about this sequence, what comes next?
`130 167 178 178 179 182 183 190 202 206 207 231 247 270 270 354 388 402 423 634 684 772 964 1169` I bet this one isn't on OEIS
 
Okx
oeis.org/A001222 we have the prime divisors
and it's a dennis number :O
 
1222 isn't a dennis number
 
Okx
isn't it?
oh wait
i thought there were 4 twos
:P
 
How about: 0 8 10 13 32 12 6 7 27 9 9014 619 37 39 9082 9077 95 97 ?
 
Okx
nope
 
12:30 PM
0, 1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1
 
Does every ppcg question get tweeted
 
yes
there's a bot
it's probably better than NMP too
 
@Mayube Where?
 
@Zacharý and that's a dennis number
 
12:33 PM
@Mayube Wait, so SE tags become twitter hashtags. Hm, what if the title contains @?
 
@Adám dunno
OEIS-A000007 is definitely the best one though
n^0
 
Okx
I think OEIS needs a redesign
 
How so?
 
Okx
Make it look nicer, make it able to generate more terms using JS
 
@Okx Some of those sequences would take forever to generate.
 
Okx
12:37 PM
I only said make it able to
but some would probably have to be blocked or something
 
Just impulse-bought this, no regrets
 
Why do they need a dang OEIS sequence for a(n)=n???
 
@Zacharý is it not a sequence of integers?
 
OK, not on OEIS, but you may be able to find it: 16 6 6 43 37 3 51 41 …
 
12:40 PM
a(n)=PPCG UserID of PPCG post number n
 
Okx
great sequence
 
31 28 31 30 31 30 31 31 30 31 30 31
 
Okx
@Zacharý oeis.org/A007395 i like this one more
 
Quick somebody find the all 42's sequence
 
12:44 PM
 
Okx
oeis.org/A010866 this one is my favourite
 
Okx
@totallyhuman almost oeis.org/A040420
 
there's an all 5's sequence too
 
OEIS is weird.
 
12:48 PM
5 12 19 26 33 40 47 54 61 68 75 82 89 96 103 110 117
 
jeez
I was actually going for "the day of the year that each sunday in 2003 fell on"
 
@Okx oeis.org/A017042 The next one is the same sequence, squared
 
There might not be an all 42's sequence D:
 
Okx
12:50 PM
oeis.org/A017044 then bisquared or whatever
 
Ugh. Clearly it is impossible to catalogue them all.
 
it keeps going all the way to (7*n+5)^12
 
Okx
then it goes 7*n+6
 
yep
then has some weird mathy stuff
then moves on to 8*n+4
 
@Mayube yo cQuents is good at those, :(7$+5)^12 is literally the code for it
 
12:52 PM
Decimal value of binary number whose n-th 1 is followed by n^2 0's
 
Why are there even constant OEIS sequences in the first place?
> The all 1's sequence (A000012) is an example of a constant sequence. Others include A000004, A007395, A010692, A010701, A010709, A010716, A010722, A010727, A010731, A010734, A010850, A010851, A010852, A010853, A010854, A010855, A010856, A010857, A010858, A010859, A010860, A010861, A010862, A010863, A010864, A010865, A010866, A010867, A010868, A010869, A010870, and A010871.
 
Oh noes they stop at 32
 
1
Q: Finite Element Grid I

P. SiehrIntroduction Don't worry - no knowledge in mathematics is needed. It is possible to just skip the motivation part, but I think it is nice if a puzzle has a background story. Since the title contains the number I there will be more puzzles of this kind, if you like them. Feedback is highly apprec...

 
We need to make an effort
To submit constant sequences up to 42
 
Nah, just 42.
Any progress on an OEIS language?
 
12:59 PM
I'd make one if no one else is going to
The harder part of making it is writing an oeis scraper though
 
I'll just add OEIS bultins to braingolf
 
Use the b <insert number here>.txt files.
 
And the size of the whole database
lol
oeis.org/A031214 :o too meta
21
Q: An OEIS Lookup tool in Python

DowngoatI'm from PPCG so I was making an esolang and I decided to write it in Python. Eventually it went from an esolang to an OEIS (Online Encyclopedia of Integer Sequences) lookup tool. I'm very new to Python. Essentially this program takes an OEIS sequence number (e.g. 55 for sequence A000055) and t...

 
f=lambda n:[[int(j)for j in i.split(" ")if""!=j]for i in urllib.urlopen("https://oeis.org/A"+str(n)+"/b"+str(n)+".txt").read().split("\n"‌​)] that should help
 
@Zacharý ""!=j can just be j
 
1:07 PM
But those only go up to 10000
 
And then of course manually input some of the ones that would be needed alot.
Then we could say that the upper integer limit is 10000
lambda n:{a:b for a,b in filter(lambda x:x!=[],[[int(j)for j in i.split(" ")if j]for i in urllib.urlopen("https://oeis.org/A"+str(n)+"/b"+str(n)+".txt").read().split("\n"‌​)])}
Oh shoot, A0...
 
Also the language isn't allowed to access the internet
You need to have it downloaded
You have to ship the whole oeis with the interpreter
 
@totallyhuman AKA ... RIP
But ... we could reasonably acheive it by shipping the needed OEIS sequences with the interpreter (due to the meta post about new languages not being non-competing)
 
Mm that's even more cheap and dirty though
 
That's code golf for you!
 
1:18 PM
mm i'd rather not deal with the downvotes that would come with it though
 
I wanna donate to OEIS
 
Yeah, but it wouldn't really do all that well...
 
help em out
ugh PEP8 gives a warning for using tabs instead of spaces
 
Yes
Good thing too
 
Better then other languages, which error on any occurrence of a tab in your program.
 
1:29 PM
?? Why would you use spaces over tabs?
 
Because Fortress.
Or <insert other language that doesn't use tabs>
 
the only language I can think of that should reasonably differentiate between tabs and spaces is Whitespace
 
@Mayube why would you not
 
Tabs take less key presses, use less bytes, and can be configured for each user, so that somebody who prefers 2-width indents can have 2-width, and somebody who prefers 8-width can have 8-width.
 
Unless of course you only use one space.
 
1:37 PM
still doesn't address the 3rd point
 
What can address the second point is Python. Python allows you to use any amount of spaces.
 
if I write a python file and use 4 spaces, and I'm collaborating with somebody who prefers 2-width indents, and they change them all to 2 spaces, and I change them back etc etc...
 
0
Q: Greek Syllabication (Simplified)

koita_pisw_sou### INTRO ### Let's say you write a passage and you are close to the end of the line wanting to write down a large word. In most languages, you just leave some blank and move to the next line, like a sir. Example - English: blah blah blah blah blah blah blah blah blah blah blah blah bl...

 
Here's a very simple OEIS-language (uses internet, I might fix that) bitbucket.org/zacharyjtaylor/oeis-language/src/…
 
I believe for the language to be used here it has to not access the internet
 
1:49 PM
How does one do language syntax highlighting on SE?
nevermind, found it
 
I know ... I'm fixing it to where I would be able to download the sequences I need.
 
@HelkaHomba you upload in 4k? o_O
 
Hey, does anything bad happen if you forget to close a file and/or forget to close a url in python?
 

« first day (2354 days earlier)      last day (2482 days later) »