« first day (1765 days earlier)      last day (3079 days later) » 

10:00 PM
He didn't say that was bad, just that using eval was wrong...
 
@ev3commander (No, that's actually the "output the current time". ;))
 
Technically my 0-byte Rotor answer would have been valid.
Although I suppose you would have to include the byte count for the boilerplate on the input :P
 
There is absolutely no way I'm interpreting Minkolang with Minkolang. o.o
I mean, it's possible...
 
@El'endiaStarman It'd be pretty easy in Vitsy. :D
 
10:01 PM
@VoteToClose Also the one about the ppcg logo
 
'X'=([1m]
 
@VoteToClose Without using any self-evaluation or eval tricks?
 
([] is if.
 
Plus, I can make objects of instructions.
 
10:02 PM
@VoteToClose Still self evaluation
He wanted a full-blown interpreter.
 
@VoteToClose that link was the comment (it saves 5 bytes :D)
 
I'm not sure how he was going to test the answers of course...
 
@ev3commander Hi
 
@quartata 'X'=([] means if 'X' do [].
 
@SuperJedi224 Hiiiii
 
10:03 PM
That would be one part.
I would just do "m" for every instruction, map lines to it.
Pretty damn simple. xD
 
That's still self-evaluation.
Imagine writing it without having an interpreter, just the design.
 
-.- You're not listening.
When you call 'm', you go to a line number. I'd write the interpretation according to the line number.
 
@ev3commander I'm currently updating the thread necromancy game leaderboard
 
@ev3commander Nah, dude, that's perfect. :D
 
10:05 PM
Oh, I see.
The challenge is still strange though because in most languages it would just be if char equal to this do this char
It was flawed because it couldn't be stand-alone
Anyways...
2
A: Sandbox for Proposed Challenges

quartataGrocery Store Micromanagement You are an employee at the hip new grocery store Half Foods, and it's the day before Thanksgiving. Since the store will be packed with customers rushing to get their turkeys, pumpkin pies and/or lentil loaves, the store needs a traffic manager to send everyone to th...

THOUGHTS
PLS
 
DONT THINK
 
@flawr THANKS
 
@quartata That's an interesting name for a grocery store
 
> Half Foods
lal
 
10:09 PM
@SuperJedi224 Yes.
@AlexA. I also included a vegetarian-sensitive Thanksgiving option just for you <3
 
<3<3<3
 
@quartata Your challenge has an error, it is already after thanksgiving.
 
@flawr Yeah, I know..
 
@AlexA. You are veggie?
 
Just pretend we're back in time.
 
10:10 PM
@flawr Yes
 
combine your challenge with the time travel one
 
@SuperJedi224 Animusic is incredible.
 
@El'endiaStarman Yes it is.
 
What the hell is wrong today, I think I was the first to answer this challenge but did not get any votes so far =(
 
Anonymous
I fixed permalinks... Now I get to go back and redo all of them on all of my answers
 
10:12 PM
@quartata Add another example that shows what happens to the (currently last) example?
 
Does anyone object to posting this challenge?
 
Anonymous
@flawr gopher it
 
Good.
Thanks=)
Mr. Sad/angry penguin.
 
@El'endiaStarman OK
 
@flawr No objections here
 
10:14 PM
@El'endiaStarman done
 
@Calvin'sHobbies Danke!
 
are we really bowing down to this communism of banning stealth pings???
 
Added another one
@Optimizer I know you're joking, but stealth pings have officially gone beyond the "joke" level.
They're a serious issue now.
 
@quartata Excellent.
 
@El'endiaStarman I wonder how Minkolang will do on this one?
 
10:16 PM
@quartata no they have not. they are not even being used as much as they were when they were brought into this chat by the likes of Alex!
 
@quartata Horribly, probably.
 
(I might be wrong but alex is the first one i remember to be using them)
 
ASCII art is kinda hard.
 
How can one single person decide this???
 
@Optimizer I think it was Phi and Doorknob that first figured out they were possible. I was probably the first to annoyingly abuse them though. :P
 
10:17 PM
@flawr re stealth pings?
 
@flawr Decide what?
 
All four blue people agreed, actually
 
@flawr What makes you think only one person agreed on this?
 
and since when are we deciding policies based on just blue people's decision?
 
@Optimizer lmao
@flawr Remember, the mods have their own private room.
 
10:18 PM
@Optimizer Since the first episode of the Smurfs?
 
It's a bit glitchy, but I got this:
 
I wouldn't be surprised if they voted on this there.
 
@MartinBüttner ?
OOH
 
@MartinBüttner ooooh fancy
 
10:19 PM
SHINY
NOW TELL US THE SEQUENCE
 
@MartinBüttner Woah...
 
> NOW TELL US THE SEQUENCE
 
@MartinBüttner space invaders?
 
10:20 PM
 
Okay okay...
 
@MartinBüttner YES
 
yess
 
ook
 
you have 15 seconds to tell us
 
10:20 PM
Given N, find the lowest base b where N has a square number of digits. Arrange those digits in a square matrix, transpose it, and convert back from that same base.
 
O_o
 
> O_o
 
o_O
 
That's complex.
 
10:21 PM
Interesting.
 
@El'endiaStarman Stars from the starman
 
@El'endiaStarman No, it's all in the real number system actually
:P
 
@MartinBüttner Noooo, I was just about to guess that
 
Almost as strange as Confidant Numbers.
 
@Doorknob ;)
 
10:21 PM
@ThomasKwa Legit?
 
@ThomasKwa lmao no way
What made you think of this?
 
@ThomasKwa 10/10 good troll
 
I wonder what sort of other transformations of the matrix would yield... like reading it along diagonals or antidiagonals.
 
I didn't sarcasm obviously enough
 
10:22 PM
@MartinBüttner Why would anyone do that???
 
I would have guessed it, except this chat box was too small to contain the guess.
 
@MartinBüttner Ooh! Ooh! Invert it!
 
Invert, you mean?
 
@quartata ummm
@flawr because it gives a funny plot? :)
 
Well, inverting over reals would give lots of stuff that isn't digits
 
10:23 PM
@AlexA. spelling is difficult
 
inverting over the finite field would work, but what if the base isn't a power of a prime?
 
Oh wait... I misunderstood this
 
@ThomasKwa Scale and translate to make them fit into the same range. Oh, and round/truncate too.
 
@ThomasKwa well, converting back from the base would still be well defined.
 
@ThomasKwa o u don't no complex digits?
 
10:23 PM
Compute the QR decomposition! (Or LU or SVD or Cholesky or whatever the hell you want=)
 
@AlexA. It wouldn't make a lot of sense, that's for sure.
 
0
Q: Count the number of sides on a polygon

flawrCount the number of sides on a polygon The polygon-side-counting robot has decided to travel the world without telling anyone before, but it is crucial that the process of polygon counting is not stopped for too long. So you have following task: Given a black and white image of a polygon, your p...

 
@MartinBüttner Lowest positive base?
 
yes
greater than 1
 
Ok
 
10:25 PM
You could just round the resulting numbers and take only the real part I suppose.
It would be kinda boring though.
 
@MartinBüttner Arrange columnwise or rowwise into a matrix?
 
1
Q: Count the number of sides on a polygon

flawrCount the number of sides on a polygon The polygon-side-counting robot has decided to travel the world without telling anyone before, but it is crucial that the process of polygon counting is not stopped for too long. So you have following task: Given a black and white image of a polygon, your p...

 
@AlexA. doesn't matter as long as you convert it back the same way
 
Hm yeah
 
Ooh! Ooh! I thought of something that makes me not sound like an idiot!
 
10:26 PM
^ that wasn't it
 
haha
 
Make a matrix out of the sums of the diagonals?
 
Wouldn't that just be a vector?
 
if the side length is N, there are 2N-1 diagonals. how do you arrange the sums in a matrix? (not that it's not possible, but it's not uniquely defined)
 
^
 
10:27 PM
You'd fit it into a matrix of the same dimensions
Pad it with 0s
 
Reading order or anti-diagonals?
 
Anonymous
There, done with my edit spree
 
@flawr so your challenge comes down to detecting lines?
 
@El'endiaStarman It would include both, I believe.
 
so, is this a permanent suspension we are talking about?
 
10:31 PM
Lemme see.
 
(do mods even have that kind of power?)
 
OMG I FOUND A PATTERN
 
@TanMath Perhaps=)
 
@CᴏɴᴏʀO'Bʀɪᴇɴ reverse-square?
 
@ThomasKwa YEAH
I think
 
10:32 PM
@Optimizer What, for stealth pings?
 
yes
 
No, not permanent.
 
reversing rows and columns gives funny plots too, but not quite as nice as transpose
 
I'm here because I heard that somebody ruined stealth pinging.
 
Anonymous
KoS could make for a "permanent" suspension
 
10:33 PM
Well, hmm. If you have a 3x3 matrix, and you end up with five numbers, do you arrange them like
1 2 3
4 5 0
0 0 0
or...
1 3 6
2 5 0
4 0 0
?
 
@AlexA. Did anyone complain about it anyway?
 
@PhiNotPi Yep. See pinned message.
 
@El'endiaStarman Oh I see what you mean.
Reading order.
 
@flawr Complain about what?
 
I thought you were talking about which diagonals...
 
10:33 PM
@AlexA. About stealth pinging
 
Hey, does anyone remember how to do "smallest number that satisfies this function" in APL?
 
@flawr That it was annoying?
 
Anonymous
Tbh there's no good reason to do a stealth ping
 
@quartata gotcha
 
Anonymous
I hate it when I words backwards get
 
10:34 PM
Sorry for the confusion.
@Mego hue hue
 
@AlexA. I think it was used a few times for fun, but without anybody getting really annoyed.
 
I feel you bro
 
More recently it was being abused and annoyed at least a few people.
 
@AlexA. Yeah
 
Anonymous
@ThomasKwa Thanks for catching that oops I made in the permalink
 
10:35 PM
I think this is a good thing, really.
It was never all THAT funny.
 
@AlexA. I keep hearing that "it annoyed a few people" Can you link to those messages where this annoyance was conveyed?
 
@Mego np
 
@Optimizer Just look at Sock's recent messages
 
meh sock
 
10:36 PM
@Optimizer I don't know which messages in particular; I wasn't in the room at the time.
 
that was probably sarcasm/trolling. If it really annoyed, the owner should complain
 
The owner of what?
 
@Optimizer I meant the user Sock.
 
10:37 PM
isn't that a sock of someone?
 
Anonymous
23 hours ago, by Optimizer
STOP IT GUYSSS
 
@Mego Wow.
Optimizer has dementia.
 
1 min ago, by Optimizer
that was probably sarcasm/trolling. If it really annoyed, the owner should complain
omg, did someone here take me seriously for once ? :D (that too at the wrong time)
 
Anonymous
10:38 PM
23 hours ago, by quartata
@TanMath Please stop over-using stealth pings.
 
It got way worse today.
 
I think the capital letters and three s should be enough of a proof that I was not serious.
 
Anonymous
23 hours ago, by Alex A.
Use sparingly
 
Anonymous
23 hours ago, by Doorknob
waves trout around vaguely menacingly
 
@CᴏɴᴏʀO'Bʀɪᴇɴ so how is that working out?
 
10:39 PM
3 hours ago, by Sock
I am so tempted to stealth ping....
4 hours ago, by Sock
stealth ping!
4 hours ago, by Sock
stealth ping!
 
@MartinBüttner I had a bit of a false lead
 
oh, btw, I've already stealth pinged now, so I am off to sleep.
 
Though I'm on to a new thing
 
23 hours ago, by TanMath
did the stealth ping work?
6 hours ago, by Stefnotch
tempted to make a shortest stealth ping to message adder challenge
 
Anonymous
10:40 PM
The fact that Dennis banned them implies that Dennis was getting annoyed with them too
 
6 hours ago, by Stefnotch
Does this stealth ping work?
 
@quartata how are these annoying? I can also point out most of your messages.
which will be annoying.
almost all of the time this chat room is off-topic anyways, blaming stealth ping is simply wrong.
 
Stealth ping adds no humor.
 
At all.
They're merely annoying.
 
10:41 PM
No one is blaming stealth pinging for the room being off topic.
 
Anonymous
Dennis banned them and a mod pinned them, which means 1 or 2 mods thought they were annoying. Plus 15 stars, so 16 people minimum agree with them being banned.
 
It's a bug.
 
@quartata so does carrot
 
@Mego He pinned it himself, but it was an agreed-upon decision by all four mods.
 
Anonymous
Stealth pings add nothing to the room except annoyance
2
 
10:42 PM
@Doorknob And the fifth would probably agree. :P
 
@Optimizer I find carrot annoying too. But the stealth ping is actually harassing.
2
 
I tried out a few more transformations for that sequence... reverse rows, columns, rotate left, right, read along diagonals, antidiagonals... most of them are not much more interesting than reversing bits. reading along antidiagonals looks similar to the transpose, and reading antidiagonals from the end as well, but that has a lot more linear parts.
 
Anonymous
@Doorknob Mmkay. So unanimous by mods, plus between 13 and 16 other users (depending on who starred it)
 
@MartinBüttner Hm.
 
@quartata The whole "carrot" thing would be much more annoying if this room were actually on-topic
 
10:43 PM
@MartinBüttner what was the original again?
 
transpose
 
oh yeah I remember
 
@Doorknob T_T
 
@MartinBüttner ... such as how it is now! Except usually, that's not the case :P
 
Anonymous
^ is a common way to express agreeance with the above message in text-based chat. carrot(\..+) is a humorous way to do it
 
10:44 PM
Idk, it's pretty annoying anyway, despite the room being off topic. :P
 
I like how you guys define your annoyance boundaries. wow.
 
Maybe something element-wise
 
Anonymous
@Optimizer Welcome to PPCG, where people get annoyed if you don't explain exactly what annoys you in the most pedantic way possible
12
 
Like change the base of all the numbers or something
Much less interesting obviously...
 
Anonymous
And for the 360-noscope-meta, I get annoyed by pedantry
 
Anonymous
10:45 PM
:D
 
What?
 
@Mego Get outa here! =P
 
Hmm...
 
How to convert string to number in python? :P
 
@CᴏɴᴏʀO'Bʀɪᴇɴ int(
 
10:47 PM
"0.01"
...
 
float()
 
Anonymous
eval()
 
"exit()"
2
 
10:48 PM
Alt+F4
2
 
rm -rf /
 
import ast; ast.literal_eval
 
there needs to be a unicode char for a reverse ಠ
 
@MartinBüttner How about something with submatrices? Like take the first digit, remove that row, take the second digit, remove that column maybe?
 
Anonymous
10:48 PM
eval("1") == 1 and eval("1.5") == 1.5 and eval("1+2j") == complex(1, 2)
 
46 secs ago, by Sp3000
import ast; ast.literal_eval
 
Anonymous
@El'endiaStarman Yeah but that's so many extra bytes
 
^^ Much safer.
 
@El'endiaStarman This is the way to do it
 
doesn't need to be save in codegolf
 
10:49 PM
If you don't know what the number is
 
Anonymous
Who needs safety when you have bytes to shave off
 
safe*
 
@quartata try it out and post some plots? :) ... I'm heading to bed for now... might look into turning this into a challenge tomorrow.
 
@MartinBüttner Man, you know I can't Mathematica...
 
there are other languages that can do plots ;)
 
10:50 PM
@Mego Please use eval on your server, I'd love to "try out your language" :)
 
Really? I don't think so.
 
Like Python and matplotlib...
 
@MartinBüttner All of which I suck at
I'll try it with Octave
 
Plotting something simple like that is pretty easy with matplotlib.
 
@El'endiaStarman ?
 
10:52 PM
import matplotlib.pyplot as plt
plt.plot(x_coords, y_coords)
plt.show()
 
@El'endiaStarman Oh, I haven't heard of this library.
 
@Sp3000 is that what the kids are calling it these days?
 
Anonymous
@Sp3000 ∞<stuff here>∞ runs through eval. It runs in a virtualenv, so you can't do much damage, and any damage you do can easily be fixed by me just redeploying :P
 
Anonymous
@quartata Sage uses it for plotting
 
@Mego Interesting.
 
Anonymous
10:53 PM
Side note: Sage is probably your best bet :P
 
I mostly use TI-BASIC for this kind of stuff, actually.
I don't think it has the capabilities to do what I want here though.
 
@Mego I briefly worked with William Stein on Sage!
 
@quartata what? someone said TI-BASIC?
 
TI-BASIC :D
 
@ThomasKwa Excellent demonstration of the cocktail party effect. :P
 
10:55 PM
@MartinBüttner The end of the bonus is in sight.
 
@quartata Oh, you mean Martin's sequence. Yeah, that would be a pain on a calculator
 
Anonymous
@AlexA. Neat! My Cal 3/DiffEq prof also worked with him
 
anyone know the shortest base conversion in python?
 
import base
base.convert(num, base1, base2)
 
that's it, really? cool
 
10:57 PM
(</troll>)
 
oh
;-;
 
I wish, though.
 
@anOKsquirrel there's also builtin bin
 
yeah
@ThomasKwa any base
 
Anonymous
def digit_to_char(digit):
    if digit < 10:
        return str(digit)
    return chr(ord('a') + digit - 10)

def str_base(number,base):
    if number < 0:
        return '-' + str_base(-number, base)
    (d, m) = divmod(number, base)
    if d > 0:
        return str_base(d, base) + digit_to_char(m)
    return digit_to_char(m)
 
Anonymous
10:58 PM
Not the shortest, but that's the code Seriously uses
 
ew
I'll just use cjam
 
Anonymous
Any thoughts on this?
 
Anonymous
3
A: Sandbox for Proposed Challenges

MegoBernoulli Numbers The Bernoulli numbers (specifically, the second Bernoulli numbers) are defined by the following recursive definition: Where denotes a combination. Given a nonnegative integer m as input, output the decimal representation of the mth second Bernoulli number. You must have at...

 
@anOKsquirrel Converting to base 10 from base 2-36 can be done with int, otherwise you might as well do it by hand (except binary, oct and hex)
 
4
A: Sandbox for Proposed Challenges

quartataGrocery Store Micromanagement You are an employee at the hip new grocery store Half Foods, and it's the day before Thanksgiving. Since the store will be packed with customers rushing to get their turkeys, pumpkin pies and/or lentil loaves, the store needs a traffic manager to send everyone to th...

 

« first day (1765 days earlier)      last day (3079 days later) »