« first day (2353 days earlier)      last day (2785 days later) » 
00:00 - 12:0012:00 - 00:00

00:03
@NewMainPosts Impressive, only 3 hours late
@Mendeleev Oh nice! I just got mine a week ago
@DJMcMayhem whoa
is that a record
@DJMcMayhem That's nothing. The Twitter feed has taken days.
o0
oh i need to write that meta post up
Where are these bots running from? Who made them?
They're feeds, not bots. RSS feeds if memory serves.
00:09
^^ that's also what I heard
This is New Main Posts. codegolf.stackexchange.com/feeds
@Dennis so they are part of the SE core system?
Both the feeds and the chat feature that turns them into messages, yes.
It says "hello I'm bot feed me butter".
@Uriel It's an automated RSS feed, you can call that a bot if you want
00:12
it's software that posts messages
what else would you call it? :P
Hmm
Once again out of things to do
@totallyhuman spamware
I'd play more Factorio, but I have GGNFS on right now and it would kill my CPU
@LegionMammal978 find a weird funky language and answer some challenge
@totallyhuman Problem is, I'm too lazy to execute the first and second parts of that plan
00:14
@totallyhuman I'm doing that right now
preferably one of my challenges
@totallyhuman sorry it's the new Crow Taxi one
aw another downvote
@Dennis is TIO designed specifically for PCCG or as a general purpose online compiler?
tfw you have to write something and don't know where to start
00:20
@Uriel I made it for PPCG initially, but I think it's gradually becoming more general purpose.
00:31
@Dennis for some reason Try It Online <lang name here> doesn't come up well in Google :/
00:48
@Dennis I don't think I'm alone in opening up TIO to test something in Python even if I have it installed locally.
10
@Phoenix Easier to type in than the Python shell, easier to start up than an IDE, handles your infinite loops automatically
@StepHen Really? I just cleared my cookies and tried searching "Try it online" and TIO was the first result
@Challenger5 Yup, Try It Online shows up first for Try It Online
But Try It Online Python brings up nothing for TIO :(
It's like 9th or something
and then it's the TIO homepage, not any of the Python pages
Somehow only the home page is indexed
Clearly this is a bug
00:57
I dunno
@StepHen There's index.html. There are no other pages.
@Dennis Right, that makes sense. Forgot the ##s in the address bar :/
I am sooooo close and yet soooo far from getting this working
f=lambda n:n<3or f(n-2)+f(n-1) is such a great python fibonacci solution except for True instead of 1
would that be acceptable?
takes another 5 bytes to fix it though: f=lambda n:n<3and 1or f(n-2)+f(n-1)
Probably not
b-but int(True) == 1 ;-;
01:19
@totallyhuman True == 1
@StepHen it kind of is
it would be for a lambda
What kind of sequence is 0, True, True, 2, 3, 5, ...
1+True == 2
@DestructibleLemon 2 == True
sorry but that is just how python works
@StepHen nope
that is false
do you even know python?
01:21
Not really :P
I know the concepts and I have programs in Python, but I haven't learned it
True == 1
I'm not sure what else to say... True != 0, True != -1, True != 2, True < 2
so technically i beat every python answer on the fibonacci question
True is stored as 1, it's only a boolean because of type data, same with False and 0
@totallyhuman Except it doesn't look right for humans
But who cares about us, right? :P
the only difference is when you print it
which is why I would say it is acceptable for a function
because function doesn't print
unless it is a printing function
Anonymous
01:29
@Phoenix I do that all the time. TIO is way more convenient than opening a terminal
01:41
so can i post it?
@DJMcMayhem Great! What do you use yours for?
I got mine for $15 on the Steam summer sale
@totallyhuman to be fair, that would be the same as my current answer minus the three bytes for the multiplication
no it's for fibonacci with addition
they don't do the same thing :P
@notjagan ^
oh, you are correct
they just looked so darn similar :P
@totallyhuman anyway I feel like that should be valid
since True and 1 are the same thing really
mm lemme check on meta
21
Q: Should Booleans be allowed where a number is required?

DennisThis is a rather common inquiry in contests that require computing elements of a sequence. For example, consider the following recursive implementation of the factorial function (Python): f = lambda n:n<1or n*f(n-1) This works well for all positive n; f(n) returns the required result as an in...

oh
oh yay it's allowed
posting...
0
A: Fibonacci function or sequence

totallyhumanPython 2, 30 bytes f=lambda n:n<3or f(n-2)+f(n-1) Try it online! One catch: this outputs True instead of 1. This is allowed by this meta consensus.

now tieing with... powershell?
01:57
@Mendeleev Playing games? What else would you use it for?
@DJMcMayhem I give up, I can't get my sqrt bit working
@DJMcMayhem abs is working and I have all the bits and pieces together but sqrt isn't doing what it should be
@StepHen what's this for
@ASCII-only Getting a Taxi solution for codegolf.stackexchange.com/questions/131545/…
@ASCII-only I tried to implement Newton's method and all that and I think I did it right
but it's not right and I can't debug it at all because it's Taxi
pls link
also link to taxi
Link to TIO:
https://tio.run/##1VhLb9pAEL7zK1a59NIiSNtDc0tCG6lS2yhEitSIw2KP7REbL10vIfx6amMb7PVgdjHpQ@KxrO15fvPtMJq/4Hp9I5lOXxGwW5lo9iMI0IMLtoT0xzB9Cwj0281KYRgVy2yz37tFb7aYM87mPEkgDkGxUGIcZgLvU4FXfAoiwCQCter3ckXm/gVL5EJHlKp2BdcrT8gYSrnFzwsWS5WK@5i@c3HnsW9h7ngRxys2niEk7JarmZNu8@HSiIonpJF2kdwqa7tphM/oA@Ops9cy/rUA1e99YpiwJUed3cM1G2uuvAiFz74vnkBJIcNtWqhrZWrKCB6BAsqsXGHzSgVzhY5MsaGOtME2yfsgA7yBdVPso5i0iv4qVwISG@zU78wtqe6V4Kg4byxziwwfqNi5xObbQmicC/S4RhlneMi@neL5oFCDepOwEcylLtBDQ/84W3JJ9NX2sL1Xvhu7PERcp55kbDXCIAAFsQeH0kUCtKsy8uL@fO8Htzunniyhf6s6nGPXiT2KAD/yaTJ5vVp7NzwRrZOU2o0s2gv0AL0Xyw/FyX3AAh6ixz
^^ is my attempt at a sqrt implementation
if I get that working I have the whole thing working, once I glue it together
I have a chunk that works for abs, a chunk that gets the a*a+b*b for Pythagorean, and then I'd just have to do addition and I'd be done
I was bascially trying to implement this: stackoverflow.com/q/14038456/7605753
02:44
I stinking did it
now to finish the job
it's crappy and unoptimal but I don't care
0
A: Sandbox for Proposed Challenges

MegoComplex Dice Rolling Expressions code-golf random parsing string Background I play D&D on a regular basis with some friends. While talking about the complexity of some systems/versions when it comes to rolling dice and applying bonuses and penalties, we jokingly came up with some additional com...

03:21
Google thinks these are pictures of my dad (they're not)
@Mendeleev If that's your last name you might wanna take that down before you can't
@StepHen It's fine, it used to be my username here
@Mendeleev ok just making sure :P
I freaking freaking freaking did it
I want to jump up and down and scream and yell and spam and kill my keyboard
Now I have to golf it and then it's done
9609 glorious ungolfed bytes
04:05
o0 how do you even understand it
I don't know
I'm posting it soon you can see it
then do a fibonacci
it'll be great i promise
@totallyhuman Already been done
i cannot type today
It's trivial in comparison
04:08
then do fibtraction
Listen I need to go to bed soon
@trichoplax @PeterTaylor thank you both for your help
0
A: The Crow vs The Taxicab

Step HenTaxi, 7394 bytes Go to the Post Office:w 1 l 1 r 1 l.Pickup a passenger going to The Babelfishery.Pickup a passenger going to The Babelfishery.Go to The Babelfishery:s 1 l 1 r.Pickup a passenger going to Cyclone.Go to Cyclone:n 5 l 2 l.Pickup a passenger going to Bird's Bench.Pickup a passenger ...

@Mendeleev is it just taking random picture from internet or is this from like photo library O_o
04:29
@Downgoat Yes
:P photo library
@DJMcMayhem You can actually use it for general purpose compute things, sort of like a $15 raspberry pi with 256M RAM
@DestructibleLemon O_o
@Mendeleev ಠ_ಠ why are you posting personal photo library in public chatroom
wtf GTX1080 is cheaper than 1070 on amazon rn
@Downgoat meh it isn't that private, given that one is my profile picture and the others should be unrecognizable to most people here
04:41
:( nvm out of stock
@Downgoat GPU prices are stupid
You will never find a GPU priced at the MSRP.
is 1080Ti that much better than 1080 (in term of running highly concurrent number programs), it's like $200 more
@Downgoat It's a significantly better deal, you get more performance for the price, but it's only worth the price difference for gaming, really.
what is antecedent
Optimally more (cuda) core = better
420 in my rep
05:01
CMC: given a string, for "", "1", "22", "333", "4444", "55555", "666666", "7777777", "88888888", "999999999", output a certain value; for other strings output another certain value
05:38
hi @SEJPM
hi all
obviously someone needs to make a crow programming language now
easy
> fork COW
> change moo to caw
> rename to CROW
pls no
idea: language where the data is exactly one number.
hmmm nah not so great
I think I might make one of those minimalist 2d langs some time
but realistically I won't
05:55
question updated
wait, I just remembered I was gonna make one of those graphics interpreters
does anyone know how to take graphics input in python?
@DestructibleLemon as in a jpeg?
probably a gif or a png
jpeg is bad
3
@LeakyNun C#, way too many bytes: s=>if(!int.Parse(s[0]+"")==s.Length|s.Distinct().Count()>1)throw null;
Output by exit code.
maybe a bitmap actually
cool
now to install a tonne of things
:)
if you don't want numpy
too late
I would prefer gif actually
@DestructibleLemon PIL does all this for you
06:02
@LeakyNun @.len?
I'm gonna make an interpreter for a 2d image lang that prints out the dialogue from the first garfield strip probably
either that or the blender strip or something
@Downgoat what...
I mean a consistent value when I said a certain value
oh
JS: ""::test(/(.)?\1*/)
nah it'll probably print "is it saturday night already?"
Does Q represent amps in a capacitor?
06:12
thats not how capacitors work i think...
amps is a rate, anyway
is it Watts/Volts
can't be volts that make no sense
@Downgoat That accepts, say, "fff" or "44"
a capacitor stores charge at voltages I think
aah
a capacitor stores electrical difference voltage is proportional to that field but voltage itself is not like the electron that are on plate to my knoledge
it stores electric energy
that is... joules
06:16
:| app does not show any joules
wait yes it is Q
Q is charge though
Q = coulombs
but you say Q = joule
app showing in joules too
@Dennis Do you have any intention to add support for MIPS on TIO?
06:20
ok really have updated the question now :)
wait what happens when you have a charged capacitor and you take away the voltage but provide no ground?
what happens to electrical field
@Downgoat boom
app not showing any boom :/
I'm not sure
@Downgoat it stores it?
06:22
O_o it just like keeps it there?
how is possible there is no voltage/force to prevent coloumbs force from pushing out all - electrons on + plate
wait yes why isn't it do boom .___.
should I finish Tomato?
how far are you on tomato
not
but I do want to finish it
there's your answer
06:30
huh ok apparently capacitor just keeps all electric potential for itself and refuse to discharge
does primo still come to PPCG?
2 hours ago, by Leaky Nun
CMC: given a string, for "", "1", "22", "333", "4444", "55555", "666666", "7777777", "88888888", "999999999", output a certain value; for other strings output another certain value
@LeakyNun Ruby: ->s{(s[0]*s[0].to_i==s)??a:?b}
I was hoping for a bit more feedback on codegolf.meta.stackexchange.com/a/13227/194 than I've received so far.Any takers?
06:46
@Downgoat ?
you mean why doesn't it push back into the battery?
nvm I think I see why
Another Question: wtf is a non-polarized capcitor don't capacitors fundamentally work by being polarized?
also
i need help with this language design maybe
@Downgoat, the earliest capacitors were two flat metal plates. Since they were symmetrical, obviously they were non-polarised.
07:08
@Mendeleev does it work for ""?
and why don't you just use 0 and 1 for ?a and ?b?
@LeakyNun have no idea\
@LeakyNun no, but i can;t delete it
The "" case is annoying
@PeterTaylor that's not how capacitors work?
07:33
@DestructibleLemon, it's the essence, but modern capacitors a) don't use flat plates, but roll them up into a small package; b) use more materials than just metal and air. See e.g. en.wikipedia.org/wiki/Capacitor_types
08:11
hi @PeterTaylor
08:29
can anyone explain to me what a meta-tag is and give an example of how one should use one PPCG?
08:53
Everyone asleep?
which talks about a possible meta tag for ppcg questions
not a tag for ppcg meta :)
what is an example of such a thing?
I understand it as just an additional tag that complements the "main" tag with further specifications
ah ok.. thanks
do you think it's a good idea?
Not really. Those timed code-golf questions don't really have anything in common.
I mean we could also introduce a -tag for all challenges that involve the colour red.
08:58
they could have and
for example
I of course don't care but I just don't like to be shouted at :)
which is what has happened the last time I posed such a question
But what benefit would that tag bring?
it would stop people screaming "But it's not a normal code-golf question!"
I think that's it
I suppose people might be able to search for challenges like that too
People complain about everything=)
true!
I don't think this tag is going to happen, as was not accepted either
09:01
Talking of complaining.. codegolf.stackexchange.com/questions/131539/… is not getting much upvoting
can you see a way to improve it?
@flawr Thanks. I mean I don't mind at all as long as people stop downvoting time limited code-golf questions :)
0
A: Sandbox for Proposed Challenges

flawrRank Correlation Coefficient The usual correlation coefficient (in 2d) measures how well a set of points can be described by a line, and if yes, its sign tells us whether we have a positive or negative correlation. But this assumes that coordinates of the points can actually interpreted quantita...

2 hours ago, by Leaky Nun
2 hours ago, by Leaky Nun
CMC: given a string, for "", "1", "22", "333", "4444", "55555", "666666", "7777777", "88888888", "999999999", output a certain value; for other strings output another certain value
@Lembik I don't particularly like and I think banning built ins is usually a bad idea, so I think I'm the wrong person to judge this :)
@LeakyNun Can you post the modified program for your thing?
@Qwerp-Derp oh, I didn't modify the code
I just added some lines to debug
09:12
Oh
But can you still give me the program?
I've already given you
I might write it in a faster lang
Gist?
@Qwerp-Derp ?
19 hours ago, by Leaky Nun
@flawr ah ok :) The problem is that some languages have integer factorization builtin
@flawr so that would not be very interesting
@flawr and to answer your comment... I assumed you were golfing so you could fit in some more sophisticated factorization code
Hi does anyone want to help me with language design for a 2d graphical lang? that is sromg based?
09:29
Is there an efficient way to calculating $a^2 = b^c$, where you're given $a$ and $c$?
I might incorporate that into my algo for this so it doesn't calculate every term
hmm
well, you'd want a few quick optimisations
first check that c is even
wait thats not right ecks dee
forget I said that
check that a and b are the same parity for a small efficiency boost
@Qwerp-Derp log(a^2) = c * log(b) therefore b = exp(2* log(a)/c)
@Qwerp-Derp Does that mean 2*log(a) = c*log(b)?
I'm a step behind...
@trichoplax yes
@Qwerp-Derp you can use binary search if you need arbitrary precision
yeah so I made a contribution right?
09:42
SGDQ 2017 is over!
So is UFED-iST 17
What is that?
No clue
...
/o_o
Am I supposed to know what those abbreviations are about?
09:48
Summer Games Done Quick, it's a charity speedrunning event
10:02
Catchy
10:50
@Qwerp-Derp did you solve your $log_b(n+b)>1$ problem yet?
@DestructibleLemon heh, I was thinking the same not long ago
11:03
I hate anonymous downvoting :(
I liked that challenge
but 140 bytes might be too little
@KritixiLithos the haskell answer is already pretty close
just misses one of the test cases
so at the least people could try to beat 10 minutes plus 16 seconds
@KritixiLithos so really the question is specifically, can you factorize 1751952685614616185916001760791655006749 in 140 bytes
an question to which I don't know the answer, I have to admit
@KritixiLithos which factorization algorithm were you thinking of?
I wasn't thinking of any one, I was just thinking of ... Java
got you... Is there a lot of overhead when writing a Java function?
@KritixiLithos in case you haven't read it codegolf.stackexchange.com/questions/6671/…
lambdas are quite short, but many builtins in Java require long import statements
11:11
got you
the haskell answer is now way under 140
so it would be interesting if java can fit
please give it a go :)
The third example doesn't jive: (2*2)mod5=4
... I haven't considered approaching yet, the Haskell answer seems like magic to me
@veganaiZe hi!
so 2* 2 = 4
and 4 mod 5 = 4
what is unclear?
@veganaiZecan you explain what the problem is?
Isn't "mod" the remainder after division?
@KritixiLithos it is implementing this en.wikipedia.org/wiki/Pollard%27s_rho_algorithm
@veganaiZe yes. So is the problem 4 mod 5?
what do you think that should be?
11:22
I understand the remainders, for normal division; I don't comprehend how 4/5 (.8) relates to that.
it's not done like that
@veganaiZe have you read en.wikipedia.org/wiki/Modulo_operation ?
@veganaiZe basically, find the nearest multiple of 5 smaller than or equal to 4 and then see what is left
in this case the smallest multiple is 0 and there is 4 left
nice! thank you
no problem
00:00 - 12:0012:00 - 00:00

« first day (2353 days earlier)      last day (2785 days later) »