« first day (1807 days earlier)      last day (1784 days later) » 

12:00 AM
While I like Java's system of quotes, it doesn't make any sense for Perl.
There's no difference between a character and a string.
 
String j = 'h' no worky
 
In Perl.
Not Java.
Holy shit:
1
A: Count common Game of Life patterns

Michael KleinHaskell: 2417 characters This took quite a while and there are still a few bugs, but I got several tricks working so it was worth it. Notes: It only accepts the plaintext format, passed to STDIN It takes something like O(n^20) time I assumed that the number of characters in non-comment lines...

A brand new user answered this insanely hard challenge that hadn't gotten any answers in 2 weeks
shower in upvotes
 
cat
@phase @Doᴡɴɢᴏᴀᴛ I see you starred my Mouse-2002 repo; you might be interested in mouse16 which is really indev, but derived, and Python, not C
 
2417 ...
characters ...
 
@BlockCoder1392 So? it's a hard challenge
and it's Haskell
He'll win a bounty too
That's nice
 
12:07 AM
Java would probably have like ovah 9000 chars bytes
 
> ovah
 
cat
@quartata Downgoat is this same Vihan dude, right?
 
Yes
 
@cat ye
 
yes
I got triple ninja'd!
 
cat
12:07 AM
sweet :D
 
3
Q: Hey Stack Exchange, how are we doing?

Alex A.The last time we heard from a Stack Exchange community manager was in March of 2014, when Grace Note came to talk to us about the progress we've made as a site. That was back when code-trolling was a thing, and the community's response to the news wasn't particularly positive given how code troll...

4
 
yassss
notice us pls
 
This is a plea for attention from our mommies and daddies at SE
 
someone pin that
 
nah
 
12:10 AM
shouldn't that be on main meta?
 
no, it's PPCG specific
 
oh
 
^^
Nobody in the greater SE network gives a shit about us
 
but do CM's look around site specific metas?
 
Yes
 
12:11 AM
@AlexA. @Shog9 please take a look at :)
 
Wow, 9 upvotes in 10 minutes with 13 views.
 
10
Q: Hey Stack Exchange, how are we doing?

Alex A.The last time we heard from a Stack Exchange community manager was in March of 2014, when Grace Note came to talk to us about the progress we've made as a site. That was back when code-trolling was a thing, and the community's response to the news wasn't particularly positive given how code troll...

 
@NewMetaPosts You silly billy.
I would turn you into an off topic nonsensical remark but I'd rather have this get more attention :P
 
can anybody crack the code?
 
12:20 AM
GET /htg
 
What chatroom do CM's and such normally populate? chat.meta.stackexchange.com/rooms/89/tavern-on-the-meta ?
 
@Calvin'sHobbies idk, but I don't see a lot of blue there
 
@Calvin'sHobbies A special room that totally doesn't exist that moderators and employees totally do not convene in.
 
I did a GET to /htg. Try it!
 
@AlexA. s/\*.*\*/
 
12:25 AM
change the body inner html to responsETexT
Here's the reslut of GET /htg: pastebin.com/tjujuVJd @NathanMerrill
9001 years later...
 
wow time passed pretty quickly
 
/time set 14000 hey, it's night
 
@BlockCoder1392 I'm confused
why "responsETexT"?
 
Stupid capslock.
responseText
 
I'm pretty sure that's their home page
 
12:38 AM
facepalms
That was get /.
 
regardless, I think the challenge is to decrypt "R0VUIC9odGc="
 
Yup and it's "GET /htg"
Simple atobing
 
ah I understand
ah
there's some C code
on that pagr
page*
 
really?
i got nothin'
 
Today I learned: there are names for derivatives of distance beyond "jerk".

distance=distance/t^0
speed=distance/t^1
acceleration=distance/t^2
jerk=distance/t^3
snap=distance/t^4
crackle=distance/t^5
pop=distance/t^6
lock=distance/t^7
drop=distance/t^8
 
12:44 AM
lol
 
@El'endiaStarman Then I think it's crosby, stills, and nash
 
according to Wolfram alpha, distance^2/t^1 is stokes
 
1:07 AM
@El'endiaStarman lol
 
@El'endiaStarman At first,I thought you were talking about "jerks" as in "bad people". I wish I could derive jerks :P
 
2
A: Best of PPCG 2015 — Now Accepting Nominations!

Martin BüttnerShowcase of Most Promising New Golfing Language [What the title says.] There seem to be quite a few of these new languages that have popped up in the last year. Nominations: Diamond Puzzles! by Dennis - Jelly Nominated by Alex A. Not only is this an interesting approach to the challeng...

"Most promising" meaning what
 
Most likely to outgolf Pyth? (when done)
 
I was just about to say something like that.
 
darn
i was going to propose this
26
A: Shorten an already short mathematical expression

Cᴏɴᴏʀ O'BʀɪᴇɴEmotinomicon, 48 bytes / 13 characters I do it, not because it is short, but because it is fun. Try it here. You'll have to copy+paste it into the textbox. 😼⏪🆙😦✖😎😿➕😨😼🆙😄⏩ Explanation: 😼 ⏪ 🆙 😦 ✖ 😎 😿 ➕ 😼 🆙 😄 ⏩ explanation 😼 ...

because its such a fun lang
but it has to be golfy? @El'endiaStarman
 
1:17 AM
@Seadrus There was a discussion on this last night, in fact. I think the general consensus is that the language must have been designed at least in part with golfing in mind.
 
oh
 
Minkolang sorta qualifies, but I'm not planning on nominating it.
The next language I make, yes.
 
hm
 
wait you're talking about Emotinomicon?!
WHY U NO PING MEH @SEADRUS
 
1:31 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ is 👯 a command?
 
... I don't think so. It can be. Why?
 
On a different subject, I've thought of the line "to sleep, perchance to dream" fairly often over the past few weeks, usually before going to bed. Finally Googled it and it turns out to be from the "To be, or not to be" soliloquy and is about suicide. Well then.
I've been trying to figure out where I read or heard that line with little success.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Just a neat character
 
huh
@El'endiaStarman o-o
 
Suffice to say, I was taking it more literally.
 
@El'endiaStarman Watched Frasier recently?
 
Nope, didn't know of that.
 
@BlockCoder1392 kinda fuzzy
 
true dat
but
blame bitmap
 
1:45 AM
use png
 
anybody here a javascript guru?
 
me
@CᴏɴᴏʀO'Bʀɪᴇɴ ... I opened the .ico file. Zoomed to 500%, and snipped.
 
I'm wanting to store a grid of objects
each object will have an (x,y) pair
x and y are positive/negative integers
 
@BlockCoder1392 Why make an ico in the first place? Favicon can be png
 
therefore, I need to use an object to store them, correct?
 
1:47 AM
@Calvin'sHobbies blame favicon.cc
 
@NathanMerrill me too
 
if so, is there a standard way to do it?
 
@NathanMerrill I think.
 
@NathanMerrill 2d array
 
negative indicies?
 
1:48 AM
As long as you don't need to use array built-ins, I think it works
 
@NathanMerrill So you want a 2D array or a hash where (x,y) tuples are the keys? Both have advantages
 
doesn't matter
 
var a = {x:7, y:-7}; var b = {x:4, y:-9}; var c = [a,b]
^ try that?
 
both are essentially O(1) access
@BlockCoder1392 that's not what I want at all
var a = {...stuff...};
var b = {...stuff...};
// Store a at (5,6)
// Store b at (-4, 3)
// Retrieve object at (-4, 3) should return b
 
Oh
i misunderstood
 
1:51 AM
the best way I can think to do it is an object with keys of x+","+y
but since I'm not well versed in javascript, I thought I should ask here
 
var width = 10, height = 6;

var grid = new Array(width);
for (var x = 0; x < width; x++) {
	grid[x] = new Array(height);
  for (var y = 0; y < height; y++) {
		grid[x][y] = 0; //initial value
  }
}
 
var a={sa:2,sad:"213cxsdAS"};var b={bdgahs:3,bnameee:"bobb"};var c = {-4,3: a, 5,6: b}
 
@Calvin'sHobbies but arrays can't handle negative indexes?
 
Oh wait
 
1:54 AM
> a=[0,1];a[-1]=3
> a[-1];
< 3
 
@NathanMerrill Then you can use objects as keys, e.g.
var points = {}
points[{x: -1, y: 4}] = 9
alert(points[{x: -1, y: 4}]) //prints 9
 
what?
you can use objects as keys?
can you use arrays?
probably, an array is just an object
 
The array is stringified
 
> a={};b=[0,1];a[b]=3;
> a
< Object { 0,1: 3 }
 
1:58 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ Ah, right
 
I'm ok with stringification
that code looks the cleanest
thanks
 
If you know the bounds of the values you could map each grid cell to a unique int and use the ints as the keys. Probably faster than strings but less convenient
 
@NathanMerrill Just integers, right?
 
I do know the bounds, but I'd prefer to keep things clean
I'm not worried about runtime right now
I write clean code first, efficient code second
 
2:01 AM
> a={};b=[0,1];c=[0,"1"];a[b]=3;
> a[c];
< 3
 
Opinion poll: Would it be an improvement to this question if I added a rule that you must support parentheses?
 
Are there answers?
 
its in the sandbox
@JAtkin adding parenthesis makes parsing significantly harder
 
2:07 AM
Exactly
 
your challenge isn't about parsing
unless there are statements you can't represent without parenthesis, I wouldn't add them
 
Ok - fair enough
 
@NathanMerrill All statements can be represented by a series of NAND gates.
And simplified by DeMorgan's law
 
now, that said, somebody should make a "simplify this boolean expression"
yeah, I definitely don't know why there isn't a challenge on that
goes and starts writing
 
20 minutes until I can Melee Netplay :D
 
2:13 AM
 
4
A: Is 0x9B (155decimal) a special control character? Why is it missing from ascii tables?

Assaf LavieCareful, friend. You have come across the ASCII symbol of the beast. It is not to be displayed, transmitted or encoded in any way. Those who even dare to discuss it on Stack Overflow will soon find their internet connection has been termi

How did that not get deleted?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ But you need parens to group things. Like a AND b is (a NAND b) NAND (a NAND b). Can you rewrite it with the form x NAND x NAND x NAND ...?
 
@Calvin'sHobbies eer
piss
My mind is dead atm
 
2:27 AM
se senpai hasn't noticed us yet
@AlexA. You mean the Teacher's Lounge?
 
bans quartata
 
Oh right.
Yeah, I don't know what Alex is talking about.
There's no such thing
looks around nervously
 
Anonymous
user image
4
 
C is more like an ancient arquebus that backfires in your face 10% of the time
Also Perl is still incredibly useful wtf
Lost it at the PHP one 10/10
 
Anonymous
Molotovs are incredibly useful if you need to set stuff on fire a lot
 
2:34 AM
the mathematica one
where did you find this
it's perfect
 
Anonymous
My gf sent it to me
 
Anonymous
5
A: Sandbox for Proposed Challenges

MegoImage Blending Given an image in plain PPM (P3) format as input, for each pixel p in the image, replace each of the following 4 pixels' red, green, and blue with the floored average value of the respective channels of all 4 pixels: p itself The pixel located at p's location when the image is f...

 
Anonymous
^ any more feedback?
 
Anonymous
Taking suggestions for a better title :P
 
Anonymous
codingame.com this looks cool
 
2:42 AM
@Mego I thought you were referring to the molotv
 
Anonymous
@CᴏɴᴏʀO'Bʀɪᴇɴ That's only on Tuesdays
 
@Mego Oh, silly me.
 
Do we have a "diagonals of an array" challenge?
I've been looking for one, and can't find it.
 
Anonymous
@ThomasKwa Explain?
 
I rofled at the C# one
 
2:53 AM
@ThomasKwa We have a language-specific tips question, but I don't think we have a challenge.
 
@Mego [[3,1,4],[1,5,9],[2,6,5]]=>[[4],[1,9],[3,5,5],[1,6],[2]]
 
Disclaimer: I have terrible memory.
 
Hmm, what would CJam and Pyth be if they were weapons?
 
Pyth would be a swiss army kinfe
too much overloading
 
@Maltysen I agree
"Lisp is a shiv which comes in many forms. Anyone who uses this is probably crazy and dangerous."
 
2:56 AM
This is true
Not even a joke really
 
Hmm
 
relevant:
 
I think the Prolog and the PHP ones are the best
 
I think I need to learn Lisp
 
Anonymous
2:57 AM
CJam would be an overcooked grenade
 
Why?
 
@ThomasKwa If you learn any one LISP variant, learn Clojure
There's no point in torturing yourself with Common LISP
 
Noted.
 
Anonymous
Because if you don't get it out fast, it'll blow up in your face (read: Dennis or Martin will FGITW you)
 
Scheme is nice but not practical
 
2:58 AM
Oh, I was also thinking of learning Pascal. Should I?
 
God no
 
On principle, I will never learn a language where curly brackets are used for comments.
 
What's a good language from the 80s or earlier to learn?
 
I mean, it has to be the devil's work.
 
@Dennis IIRC scheme uses semicolons
 
3:02 AM
@ThomasKwa Perl
 
Anonymous
@ThomasKwa C
 
^ but you probably know it already
 
perl or riot
 
I don't know C, but it's already on my list.
 
@ThomasKwa that should be at the top
 
3:03 AM
Don't listen to them
You can run C code with a Perl module if you need to
Perl is best
All you need is Perl
 
C++ is first, actually; then Mathematica.
 
@ThomasKwa ಠ_ಠ why is c++ before c?
 
@Maltysen Why not?
 
I'll probably get lynched for saying this but C++ isn't that useful nowadays unless you need something really fast or you need a library
Java's OOP model is much more sane
 
Mini challenge: remove all prime digits (2 3 5 7) from the input string of digits (0-9)
 
3:05 AM
one second writing pyth solution
 
@Calvin'sHobbies -zjkP210
 
god dammit
Wouldn't use filter be shorter?
 
APL: ~∘'2357'
 
Like split, filter prime?
 
3:06 AM
@quartata idk, that was my <20 second solution
@Calvin'sHobbies -z"2357
7 bytes
 
oh that's even easier
 
^yeah I was being stupid earlier
 
Wait, I thought - did substrings
 
APL is a sniper.
 
Huh, it doesn't
 
3:08 AM
wait @Calvin'sHobbies will it be an actual string?
or can it be a list of digits
 
@Calvin'sHobbies GolfScript, 7 bytes: "2357"-
 
@Dennis Does Jelly have a without?
 
Not yet.
String manipulation is still pretty much non-existent.
The best you could do with Jelly right now is filter: f“014689 (8 bytes)
 
alternative 7 chars: sftPsTz
 
Anonymous
@Calvin'sHobbies Seriously, 12 bytes: 4r`P$`M,#sΣΣ
 
3:16 AM
Using C doesn't save any bytes: -z`C" 5
 
I've been thinking about making a stack based language with 4-bit instructions
 
Anonymous
Can probably be much improved
 
Obviously have to do a lot of overloading
I think I can make it work though
@Maltysen ah so that does work
Not any golfier though
 
@ThomasKwa but P does if I can take as a list instead of as a string
 
That way you don't have to split at the beginning
sftPQ, right?
 
3:18 AM
I was talking about -QP210
 
Oh
 
Anonymous
Another solution for 12: ,#;`≈pY`M@░Σ
 
@quartata Filter is lambda T.
 
oh der
 
@Calvin'sHobbies Jolf, 5 bytes: -im 4
 
Anonymous
3:23 AM
Python: lambda x:''.join([y for y in x if y not in"2357"])
 
Anonymous
I'm not bothering to count the bytes :P
 
Anonymous
Last call for feedback before posting to main (a better title would be appreciated)
 
Lemme think of one
 
@Mego You don't need the []
 
Anonymous
@ThomasKwa What []? For the link?
 
3:27 AM
In the Python you posted
 
No, for the Python.
 
Anonymous
Oh
 
Did anyone send a link for our beta health question to a community manager/ping a community manager in the Meta Tavern or one of their "offices"
I don't want to nag them... but....
 
Anonymous
This is why we have a reply button, guys :)
 
@Mego also you can golf a bit by doing y[condition] instead of if condition
 
3:29 AM
f=lambda s:s and s[0][s[0]in"2357":]+f(s[1:])
 
Anonymous
I'm dumb
 
Anonymous
Prime remover, Seriously, 8 bytes: "2357",-
 
^ that looks to be the optimal algorithm in most languages
 
Anonymous
I forgot I fixed subtraction for strings
 
3:33 AM
@Maltysen Mine's similar, but different.
 
@FryAmTheEggman Fair point - generator seems to beat recursion for stuff like this :/ lambda s:''.join(c[c in"2357":]for c in s)
(even with f=)
 
3:50 AM
this room died
 
Anonymous
attempts cpr
 
You're making out with the room?
:P
 
Anonymous
Nah I use one of those bag thingies
 
Anonymous
Duh
 
Anonymous
3:54 AM
 
Anonymous
Respirator is the word I couldn't think of
 
Do people just carry that around in case of an emergency or something? I wouldn't imagine it'd be on-hand easily.
 
I just realized how annoying pl would be if we ever get another programming language quiz
 
3:55 AM
Bareword strings
 
Basically type whatever you want + pop + Hello, World!
 
Anonymous
@Sp3000 Ambulances almost always have them, medics usually will have one nearby while they're on duty
 
But the ambulance would take too long to arrive! D:
 
Anonymous
3:57 AM
Even an untrained person can give CPR, though the red cross recommends not trying to respirate if you're untrained
 
Anonymous
As long as they know to push really hard and hum "Stayin' Alive", they're set
 

« first day (1807 days earlier)      last day (1784 days later) »