« first day (2298 days earlier)      last day (1912 days later) » 

12:20 AM
I am the only "blue" user out of 68...
@TuxCopter banned
@DestructibleLemon Did you literally miss the conversation you were in?
@Christopher I'm fairly sure I'm blue, buddy
12:25 AM
You are
Yeah, You are.
@ATaco bug report
12:26 AM
thats not how it works
those are the scores
not the teams
Scores of what?
There's just a lot of Red on the starboard.
Such is life.
So it is a starboard score?
Count of stars on the starboard of each team.
also by coincidence when my message was starred the scores were the same
12:28 AM
Actually, Red increased by one.
(not from my message being starred)
Red users are 98.6% more likely to be starred
hey, sometimes blue was winning bigly
Back when we counted stickies.
Must not abuse stars
12:34 AM
@ATaco not just then
we were winning bigliest at that time but it wasn't the only time
shit not google bar
Do you think it would be a good question to ask for a function that diagonalizes against a language? That is, you could write a function in Ruby that returns the largest number outputted in golfscript using n characters or less.
12:50 AM
@xnor Nice. Would you care to share it here or in another room?
not google bar
What about google foo
@Christopher I wanted to ask before, Did you make the game '2048 Sandbox'?
'Cause, I mean, its maker is named 'Calvin's Hobbies'
and who's 'Calvin's Hobbies' If its not you
It may be Helka.
Oh wait
right Calvin is helka
12:56 AM
I believe Helka's IRL name is Calvin.
I think so. I remember "hearing" that somewhere.
Ah no it isnt
His name 'Calvin's Hobbies' was inspired from the comic 'Calvin & Hobbes'
I thought his name was actually Calvin though?
12:59 AM
Like that would make sense but I believe Helka's real name is Calvin.
(I thought his IRL name was Helka)
(but is it)
Anyways I have worried if I make a new bot account while I'm chatbanned, the bot will be deleted as a sockpuppet
Is that the case @mods
(I don't have to worry now but meh I'm just curious)
@HyperNeutrino en.wikipedia.org/wiki/Calvin_and_Hobbes (yes this was the origin of the tiger too)
srsly android
@SIGSEGV If you don't use the bot account while you're banned I think it's fine
Hm. Interesting.
@SIGSEGV I'd say that just don't try using your bot account while chatbanned because then your bot will probably be chatbanned because mods might think you're trying to circumvent the chat ban that way.
1:14 AM
But I don't have to worry now (yay)
Mods might not notice if your bot account name is not similar but don't try.
@SIGSEGV You were chatbanned at one point?
(Actually twice)
Oh hm. Sorry I never noticed you missing from here.
(One for a week, one for a month)
1:16 AM
Ah. Wait actually I think I remember the month ban.
(Thats why I didn't answer all that mentions)
(I couldn't)
Ah, I see.
So, I'm currently making a challenge
'Builtin, or not?'
@SIGSEGV I advise you to make that in sandbox first.
I'll comment on it detailedly.
I don't actually think its hard tho
Its just checking if a mathematica program is 'Builtin' or not
But I would have to search for some dupes
'Cause it's initially just searching for brackets
1:21 AM
if you would tell me more details, I could review it here.
Ah wait I think its just simple regex I'll pass on this idea
@ATaco Chat Commands bug: ¯\_(ツ)_/¯ has too many backslashes in its right arm. (viewer left)
Oh wait nevermind.
Right because escape strings >_>
1:23 AM
Wait so do backslashes escape things?
I'm happy that an answer in Z80 machine code finally apeared here :-)
Is the meta relay bot still working?
I asked a question on the meta about half an hour ago and the bot hasn't appeared
@SIGSEGV No it isn't
@HyperNeutrino 1. it's getting answered, 2. it's actually easier than people thought it was
1:39 AM
Oh hm? I know PhiNotPi is working on it with a team of people
@HyperNeutrino Yeah
Idea: Linked string, where each element is a char
But since logic gates can be made with normal gliders, it looks like the solution can be like 1000 times smaller than their one
Oh. I see.
1:41 AM
@SIGSEGV Well yeah it isn't exactly easy to make tetris in a golflang either
@ASCII-only Well yeah it isn't exactly easy to make tetris in [any TC language] either
Exactly. Which is partly the reason why it's still unanswered - even without the requirement of using GoL, it would still be among the hardest challenges on PPCG
It doesn't sound too bad in most practical languages
But still significantly trickier than the rest
Yeah, but since it's so complex it isn't easy to golf
1:44 AM
I want to learn how to use the x windows system, most preferably in python.
does anyone here know how to and/or know any good places to learn this?
@DestructibleLemon well all you really need is python bindings and the X11 API documentation
I don't get it
but it seems like there are no up-to-date bindings
@DestructibleLemon well X11 isn't written in Python, so you can't use it directly, which is where bindings come in - they provide a python interface to X11
I can only find this one, last updated 2014
1:47 AM
@ASCII-only approximately how insane would it be to make the bindings if I figure out how to use x 11 in C, for example?
Q: What to do about a fluctuating consensus?

Wheat WizardCurrently on the defaults for IO this answer is does not have enough positive votes to be instated. At press time it has +11-6, defaults are required to have: 5 net votes and at least twice as many upvotes as downvotes. However only a day ago this method was valid (If memory serves it was ...

Yay, only 45 minutes late!
can someone give me an example of this:
A: Default for Code Golf: Input/Output methods

Martin EnderPrograms may take input via command-line arguments

I can think of two things it means
65 messages moved to Trash
Hope I didn't hit any pearls.
@Downgoat Every single Jelly program ever. What's the second potential meaning you have in mind?
@Dennis how is discussion about a primalty test challenge trash?
1:59 AM
@Downgoat Wise and Brain-flak answers also take input via command line arguments
@Dennis Like does this mean gcc codegolfProgram.c -D input="Hello World"
@Downgoat 5+3=8
@LeakyNun It was part of a greater oh my god what should I post conversation, which wasn't particularly constructive as there weren't any ideas.
@Downgoat well yeah brcause functions are valid
@Dennis just because the discussion isn't fruitful doesn't mean that the discussion is trash.
Do you avoid discussions which would not have any result?
Even so, you cannot retrospectively determine that it is trash, after you found that there is no result.
Before the discussion, potentially there could be a result.
2:02 AM
That part alone would have been fine. When there are 50+ messages noising up the room, I won't debate with myself for a minute whether I should move this or that one.
@Downgoat That's not really command-line arguments, as they're not passed to the program. It's a compiler flag.
Should I try jelly
But.. I can't easily understand the syntax.
Did someone invite me to trash?
2:05 AM
@HyperNeutrino That will happen when messages are moved. Sorry about that.
Oh, alright. No worries :)
@LeakyNun (I read that so many times)
@SIGSEGV which part do you not understand?
@SIGSEGV Trial and error
@ASCII-only Oh ok I see
Oh I see why jelly programs were so short
btw, How do you practically make Jelly programs? I can't easily type one from my keyboard.
2:13 AM
@SIGSEGV copy + paste :P
jk, but it was intended to be easy to type from a US layout keyboard
I mainly copy and paste
@ASCII-only It is easy to type with the right keyboard layout.
@DJMcMayhem hi
2:33 AM
Q: Golf a transcendental number

Leaky NunDefinitions An algebraic number is a number that is a zero of a non-zero polynomial with integer coefficients. For example, the square root of 2 is algebraic, because it is a zero of x^2 - 2. A transcendental number is a real number which is not algebraic. Task You are to choose a transcende...

@LeakyNun there's no need to post your challenges here yourself. Just wait for NMP - that's what he's here for.
1 message moved to Trash
3:04 AM
CMC: is n a power of 3?
I'm pretty sure most people won't care, But I fixed Jalapeno's Chaining rules!
@Mego 1
@LeakyNun I assumed you meant "positive power"
Be more clear next time
3:09 AM
Still 43 bytes for non-negative integer powers of 3, change a=3 to a=1
@JanDvorak what?
nobody said "integer power"
@LeakyNun JavaScript (ES6), 20 bytes: f=n=>n<2?n==1:f(n/3)
3:09 AM
@LeakyNun 39: remove the space between n and [
>Negative Powers
@ASCII-only nice
x=xR³3\^rx-Lx< RProgN2, 14 Bytes. Positive Powers.
@xnor what did you have in mind?
10 imaginary internet points to whoever can work out how it works.
3:12 AM
@LeakyNun Please don't ping users to elicit CMC responses, especially if they're not currently present.
@Mego you misunderstood.
@LeakyNun yes
@ATaco generate (3^x, ..., 27, 9, 3), filter out input, check if length is smaller than input.
@LeakyNun Ding ding ding
@ATaco You might want to refactor your language. Programs take unreasonably long time to run.
3:25 AM
But that's like, esolang street cred++.
Apparently it takes Real time: 0.302 s
right, parsing isn't the issue.
The actual delay is in execution.
I suspect the issue is that you use strings too much.
3:26 AM
e.g. is mapping done by strings?
Yep, I come from a Lua Background.
Strings are my lyfe
@ATaco what is this for?
@ATaco strings are slow
The same program as before, with an halt inserted at the start.
I think a majority of the program's slowness would probably come from the amount it redundantly loops.
3:27 AM
@LeakyNun Will n be positive?
That one in particular creates a stack from i - n, then, goes back over and replaces each entry with 3^n, then it goes back through the stack and removes all entries = x.
@Dennis yes
I tried to optimise my turtlèd interpreter once but I made it slower
@ATaco It doesn't seem to be working for me
@DestructibleLemon pls link
I didn't save it
3:28 AM
@DestructibleLemon can I say that your optimization... turtled it?
Probably because it's instantly halting in that particular link.
@LeakyNun In that case, Python 2, 30 bytes.
@Dennis nice
@Dennis how does this parse with the == and <?
A: Sandbox for Proposed Challenges

MegoInfinite Sequence of Unique Random Integers Output an infinite sequence of positive integers, such that, for each element in the sequence, all positive integers that have not yet been output have a positive probability of being chosen, and no value is repeated. For example, if the first integer...

@DestructibleLemon Chained comparison, like in math (e.g., 1<2<3).
I'm going to make a fizz buzz answer in Turtlèd
@Dennis ty
@ASCII-only 0.275 s
@Dennis TIL chained comparison works with ==
Yeah, around the same speed as RProgN
@LeakyNun Works with everything, including in.
3:33 AM
There's also an operators page
@Dennis wat
:37400380 verbose mode (in case you were wondering what it does)
@Dennis wat is dis whichkraft
Huh, did not know it worked with in (or not in).
3:35 AM
@ASCII-only is this stacks (postfix notation)?
@LeakyNun prefix, non stack
@ASCII-only are 0-9 used?
@LeakyNun All printable ASCII is part of a string (It's an ASCII-art orientet language after all)
@ASCII-only ok thanks
@LeakyNun I wrote up the proof
3:40 AM
actually, i think i can use a different result for a simpler proof
the thing about writing fizz buzz in Turtlèd is that you don't have a usable register, and it is incredibly ungolfy to copy a number
if you wanted to just copy a number and then increment it
4:02 AM
I'm testing what I have so far. hopefully it doesn't infinite loop or exceed the time limit
;_; why is my interpreter so bad
ok it took too long
CMC: Output the input
@Arjun JavaScript, _=>_, 4 bytes
@Arjun you mean like simple cat program?
except it doesn't have to print I guess
Yeah, probably
Nice! Is it a challenge on main site?
4:16 AM
@Arjun Charcoal, 1 byte:
Another CMC : Calculate Pi to n digits
I will award a star to the shortest solution in JavaScript
@Arjun Charcoal, 11 bytes: IUVN⟦UGPiN⟧
@Arjun yes
Q: 1, 2, Fizz, 4, Buzz

Beta DecayIntroduction In our recent effort to collect catalogues of shortest solutions for standard programming exercises, here is PPCG's first ever vanilla FizzBuzz challenge. If you wish to see other catalogue challenges, there is "Hello World!" and "Is this number a prime?". Challenge Write a progra...

@Arjun I needed to plug in my charger
4:30 AM
Oo, NP
yeah the least golfy part will be converting the unary to numbers, simply because decimal incrementation requires a case for every digit
4:55 AM
huh, I just made an accidental golf...
there was a gap in the logic, but it happened to be covered
:D how does this even happen
5:08 AM
@DestructibleLemon RNGesus
are you calling my brain an rng
and that RNGesus has dominion over it?
@DestructibleLemon Yes because quantum mechanics
but quantum mechanics isn't random?
@DestructibleLemon How is it not
@DestructibleLemon Would you mind explaining the logic behind this method?
5:23 AM
well, the first part builds a triangle
this triangle will be used for each individual line to get the number
we do this because this is the easiest way to get a list of ascending numbers I think
Ah. Okay.
or shortest I think probably
then we go through and replace lines with Fizz, by jumping three at a time
we place it 3 back because this is the minimum we can
then we go back and do the same with buzz. however, this is where the accidentally golfy thing happens
normally, you would want to move back to get in alignment with the triangles side
Ah okay. Looks like an interesting language, I might learn it sometime
when writing fizzbuzz, you would be out of alignment
I see.
5:28 AM
Yeah the fizzes and buzzes are too far left
you misunderstand
out of alignment as in too far right
however, it turns out that the way it is written I don't need to cover that case because when you move down from a fizz buzz you end on an asterisk anyway
Oh? Hm.
CMC for Python: given positive integer, find first digit arithmetically.
it's slightly hard to explain
Ah okay, I see.
5:31 AM
@LeakyNun So no using lambda x:str(x)[0]?
@HyperNeutrino yeah
@HyperNeutrino that's right
f=lambda n:n<10 and n or f(n//10)
5:33 AM
but its based on the fact that buzz sticks inwards, which would I thought would be an issue, and in fact was something I planned to cover, but forgot, and I thought it might be an issue because it might land outside of a line, but of course the lines are too long for that.
@LeakyNun Also 33 bytes: f=lambda x:x if x<10else f(x//10)
Pretty much the same thing :P
now do it in Jelly
also, we have quite a lot of questions for you in the jelly room
Er yeah, I haven't had much time to do extensive Jelly stuff lately
5:37 AM
@LeakyNun how about them log builtins, huh?
@DestructibleLemon doesn't work for large numbers
@DestructibleLemon too long to import?
Jelly, 9 bytes:
5:39 AM
Oh :(
Wait how so?
Jelly, 8 bytes: :10$>9$¿
@HyperNeutrino there's obviously a shorter method
use the obvious way
@HyperNeutrino btw use instead of `10
5:42 AM
@KennyLau Still arithmetically though, right?
of course.
Hey you changed your name
Did that just happen or am I just really slow
7 bytes: :⁵$>9$¿ but probably still not optimal
5:43 AM
Seems to have just happened
Yeah. Couldn't have been more than 7 minutes ago
SE is very confused about my username
I had this before
and then suddenly it became Leaky Nun again
because Kenny Lau is still in use in math.SE
so they would conflict.
?? well that is strange
nvm, continue working
And I don't see a more obvious method :(
5:45 AM
the answer is 2 bytes
I'd say DḢ but that seems like cheating
Oh wat
5:47 AM
def to_base(integer, base, bijective = False):
	if integer == 0:
		return [0] * (not bijective)
	if bijective:
		base = abs(base)
	if base == 0:
		return [integer]
	if base == -1:
		digits = [1, 0] * abs(integer)
		return digits[:-1] if integer > 0 else digits
	sign = -1 if integer < 0 and base > 0 else 1
	integer *= sign
	if base == 1:
		return [sign] * integer
	digits = []
	while integer:
		integer -= bijective
		integer, digit = divmod(integer, base)
		digit += bijective
		if digit < 0:
			integer += 1
The implementation of D is purely arithmetic.
Oh okay. I see.
Q: Squaring Off (fit to smallest possible square)

AdámIntro Every year, Dyalog Ltd. holds a student competition. The challenge there is to write good APL code. This is a language agnostic code-golf edition of this year's tenth problem. I have explicit permission to post this challenge here from the original author of the competition. Feel free to ...

Seems like it would be possible using æḟ⁵ but 1. not as golfy, 2. i have no idea how
I'm going to try FGITW'ing this in Jelly lol
O_o what does uneval do
5:58 AM
@ASCII-only essentially create a Jelly code that would evaluate to the given array/number/string
@ASCII-only Try it online!
Eval converts a string into an object of some kind, uneval takes an object of some kind and stringifies it.
Ifaik it's a fancy name for toString()

« first day (2298 days earlier)      last day (1912 days later) »