« first day (2410 days earlier)      last day (2434 days later) » 
00:00 - 15:0015:00 - 00:00

12:15 AM
@Mr.Xcoder a->(a=>(_,i)->a.head(i).mean).mean
 
 
1 hour later…
1:23 AM
0
Q: code golf addition challenge

SwarazoidSum of two numbers The first line of input contains "t" which is the number of test cases. "t" test cases follow. Each test case is of the form "a b", a and b of type integers and are separated by space. For each pair of a and b read them and print their sum on a different line. Write the code ...

 
Anyone have a hammer for ^?
 
 
1 hour later…
2:32 AM
0
A: Sandbox for Proposed Challenges

geokavelWhat day do I get my sandwich? Given input "Sweet Onion Chicken Teriyaki", "Oven Roasted Chicken", "Turkey Breast", "Italian B.M.T", "Tuna", "Black Forest Ham", or "Meatball Marinara", output a number from 1-7 (or 0-6) representing the day of the week that you get that deal, starting with Mond...

 
 
2 hours later…
4:23 AM
@ATaco APL isn't a golfing language. The newly added primitives have not been added to the character set, even though there is room. (Because backwards compatibility must be maintained.) Also, some obvious (and less obvious) overloading has not been done, and special functionality and system services have long names.
 
(I know, I was making a joke as it's rather brief as it is)
 
4:37 AM
@Mr.Xcoder APL, one byte less than @Uriel: f((f←+/÷≢)¨,\)
 
hello
how do i read a number from stdin in chicken scheme
 
5:13 AM
Make sure I didn't make oops
 
6:10 AM
@NewMetaPosts RIP totallyhuman D:
@Mr.Xcoder A little late, but 2Deorstv, 3 bytes: ĚĄĄ
CMC: Given a positive integer n, output how many 1s are in the range from 1 to n. For example, 13 => [1,2,3,4,5,6,7,8,9,10,11,12,13] => 6
 
6:30 AM
@cairdcoinheringaahing 6 bytes: /`SQ`1
 
Yeah, Maltysen has the optimal solution in Pyth
 
RProgN2, 5 bytes. R.1EL
 
6:48 AM
@caird 2Deorstv, 3 bytes: ;1Ć
 
@cairdcoinheringaahing Does count occurrences automatically cast to string in deorst?
 
@Mr.Xcoder No, ; (concatenate) casts integers to range, then concatenates it.
 
Can someone with Windows 10 try making a zip file and putting another folder in it? I can't
 
o
No windows here sorry
 
o_o I just realised I used the wrong concatenation. The correct version is £;1Ć
 
6:55 AM
Yeah, 3 bytes was way too short
 
Well, at least I'm beating Pyth ;P
 
Yeah, because Pyth is prefix.
If it would be stack based, it would be 1-2 bytes shorter
 
@Mr.Xcoder What memory system does Pyth (and Cthulhu, while I'm asking) use?
 
@cairdcoinheringaahing Pyth uses some kind of stack IIRC. So will Cthulhu, probably
It has something called "lambda_stack"
Pyke, 5 bytes (can probably be golfed?): S`1/`
 
o.O I don't understand how golfing languages don't use a stack. In general, it is shorter.
 
7:00 AM
Yeah, not in all cases
Pyke does use a stack BTW
And so does MATL
Pyke, 5 bytes (much more syntactically correct): S`\1/
CMC: Given a positive integer N, obtain the range [-N,N]
cc @cairdcoinheringaahing
 
@Mr.Xcoder <look of disapproval> The one range built in I didn't want to add. I'll be back with a 2Deorstv one asap
 
@cairdcoinheringaahing You can do it without that though... In the end it's just inclusive range, negate each, reverse and concatenate with a normal range, isn't it?
FWIW I wanted to show you a kind of CMC for which stacks aren't the best.
 
@Mr.Xcoder Can the range be [N, -N]?
 
@cairdcoinheringaahing Mhm... I'd say yes if you show me a way to do it in reverse too
 
@Mr.Xcoder 2Deorstv, 3 bytes: à_ú. Reversed, 4 bytes: à_úŔ
 
7:07 AM
Pyth is 2 bytes without a pure built-in: }_. It means inclusive range from reverse.
 
@Mr.Xcoder Including or excluding N?
 
And this is abusing implicit input, the complete program would be }_QQ
@ZachGates [ and ] mean inclusive.
@ZachGates BTW Welcome back, haven't seen you for a while.
 
Didn't realize you were using interval notation.. it's late :)
Thanks! Good to be here
 
RProgN2, 3 bytes. ]iR
It's also the correct direction.
Because R is implemented funny.
 
:o nice
 
7:11 AM
RProgN2 is a very stack based language, but it takes a relaxed approch when it comes to asking what direction a stack faces.
 
Q: what does Ξ look like on your screen?
 
Three horizontal lines, the middle one is smaller and raised slightly.
 
@cairdcoinheringaahing Three lines stacked on top of each other. Like congruent or Is identical to
Yeah, the middle one is slightly smaller
 
@Mr.Xcoder `_,{_~}%+$``, CJam, 10 bytes
 
Weird, on my phone it looks like a square with a horizontal line through it and the centres of the vertical lines removed.
 
7:15 AM
@ZachGates CJam is like the Java of golf langs :P
 
@Mr.Xcoder CJam is the Python of golf languages, Golfscript is the Java
 
umm... Golfscript doesn't really qualify as a golfing language :p
 
@Mr.Xcoder o.O it has "golf" in the name :P
 
Well I ran out of time to edit, but my final answer is _,{_~}%+$ at 9 bytes
 
@cairdcoinheringaahing Python only loses to JS, Proton and Maybe Ruby... Cjam only wins to golfscript and rarely J
@ZachGates Still nice.
 
7:17 AM
RProgN is only really good at really specific things
Where does it fit?
 
Somewhere in the middle maybe?
 
Still the only one with a valid 3 byte quine :P \n«Ø
 
Why do I count 4 bytes?
oh
 
(That's a newline literal)
 
Yeah ^^
 
7:19 AM
(But it's a little hard to show it)
 
«Ø
Here we go ^
 
Still doesn't show the newline, but w/e
 
@ATaco I know a language with a 1 byte Quine: HQ9+ :D
 
> valid 3 byte quine
It's not valid :P
 
emphasis on valid
 
7:20 AM
@ATaco I never said it was valid
Lol, the latest AHS begins with Trump's election :P
 
if you had learn one of the following, which one would you choose: Husk, 05AB1E, Gaia, SOGL, Charcoal?
 
@Mr.Xcoder SOGL
 
@Mr.Xcoder husk 10/10 it's like the new jelly lol
also I already know 05ab1e gaia and charcoal
 
@Mr.Xcoder SOGL because it's competitive in most non-ascii art challenges, and wins a lot of ascii art challenges.
 
7:26 AM
I already know a bit of Gaia too (and some basic verbose charcoal)... My 05Ab1E isn't really good, but I can do basic things with it
The voters have decided: Husk.
Thanks for your votes!
@cairdcoinheringaahing I will consider learning SOGL after Husk.
I couldn't stand it and I answered my own challenge, after having waited for 1 day and a bit
 
Nah learn RPROGN2
 
Hehe, no...
 
:(
 
I prolly would if I would see any RProgN2 answers but since no one uses it (when you are not around), I don't have any reason
 
7:41 AM
If I write a challenge about regular polygons, would it be more fun to make the input be the number of sides or the name of the object as seen here?
 
@ZachGates It pretty much depends on the challenge, but i'd personally say "Allow Both". Let people choose what input format they want, IMO
 
Everyone would choose n sides, so they wouldn't have to parse the name.. nonahectanonacontakaiheptagon is a mouthful :)
 
Unless the challenge requires manipulating their names, in which case, it's up to you.
@ZachGates Why would you even bother to parse the names? It just adds some fluff. IMO, let them choose. Of course, it's your challenge so you decide though
 
What was the last non-code golf question?
 
@Mr.Xcoder Yeah, it's a pointless addition.
 
7:51 AM
@ZachGates o.O posted already
@cairdcoinheringaahing This one, but it's terrible
@cairdcoinheringaahing The latest "decent" non- challenge is this.
 
@Mr.Xcoder Sure did
 
@Mr.Xcoder That wasn't really a "decent" question. The cops is +4/-3
 
How... you didn't tag it
@cairdcoinheringaahing Well, at least it's not of negative score
 
> This challenge is intended to be solved by using, manipulating, or creating shapes or other geometric structures.
 
1
Q: Calculate the area of a regular polygon

Zach GatesGiven an integer, n, where 3 <= n < 2^32, calculate the area of a regular n-gon with an apothem of 1. For those that don't know what the apothem is: The apothem of a regular polygon is a line segment from the center to the midpoint of one of its sides. Output the area of the n-gon as a floa...

 
7:55 AM
You don't really need to manipulate/create a shape to solve it, so I chose not to tag it. I almost did, though.
 
You can rollback if you want
 
@NewMainPosts Too rich for my blood
 
Also, what case are you thinking of that the digits would be redundant?
 
@ZachGates I don't know of any. Just asking (not sure it is always the case)
 
@cairdcoinheringaahing APL, 9 bytes: ⍕∘⍳+.=⍕∘≢
 
7:58 AM
I wanna solve the new challenge using an interesting formula, so brb
 
@Mr.Xcoder I'm going to say no, since it's a [insert calculus term] with a limit approaching pi.
 
oh ok
IIRC $A=\frac{1}{2}nr^2\sin \big(\frac{2\pi}{n}\big)$
In fact, it's way easier for this challenge
 
@Mr.Xcoder That's pretty unreadable without mathjax.
@Mr.Xcoder Well, but by default, TNB doesn't, so I'd count that as noise if I was a mod here.
 
Can't edit right now. Sorry.
 
At least you should post a non-mathjax version next to it when you write things like that.
 
8:06 AM
@Adám Will keep in mind. Didn't mean to make noise. Sorry!
Here is non-mathjax: A=(nr^2sin(2pi/n))/2, just for reference.
 
@Mr.Xcoder I just added it to the post, but the formula is n * tan(π / n)
 
@ZachGates I know, it's simpler in terms of the apothem.
 
IMO, it's more fun to write a solution for an input of [n, a] where n is the number of sides and a is the apothem. Less fun to golf, though.
 
8:25 AM
Actually beats Jelly DAT IMPOSSIBLE >.<
 
That's Actually possible? :P
 
Morning fellas
 
Morning @Mayube
Zach Gates walks in and says Good Night
05AB1E doesn't have trig functions O.o
 
Neither does Pyke
They're not often needed
 
@muddyfish Hehe, just opened the interpreter... Good to know
But it has Pokemons though
 
8:36 AM
I added a pi and e builtin and I've never them :P
Well what language would be complete without Pokémon?
 
brb making kolmo-complexity involving pokemons
 
Input pokemon #, output name :3
 
yeah pyke can do that just with some offsets others need to compress words
 
exactly
The periodic table would be nice as well
 
8:38 AM
Where can I find some good tkinter projects ?
 
As would getting the date of the next full moon
 
@AlexKChen Google is a great resource. You can also search GitHub.
 
@muddyfish or range(1, 119)
 
Jelly beats Ohm :'-(
 
I created a thing to do Zelda oot romhack tools
 
8:39 AM
@Mr.Xcoder Yeah, I checked that but didn't find anything satisfactory.
 
@AlexKChen Do you mean to work on, work with, or create yourself?
 
@ZachGates Create myself. I prefer to write an applet on combinatorial games/applets or physics simulation, but anything else is OK too.
 
@AlexKChen I don't know what combinatorial games are (does 2048 count?), but they sound cool. Have you ever looked into using other UI libraries?
 
@ZachGates By combinatorial games, I means the games available at Simon Tatham's website. Are they doable in tkinter ? (Also, Sorry I am new to coding don't understand what do you mean by using other UI libraries ?)
Also, I am planning to create a "Graph Simulator" (graph means combinatorial graphs) in tkinter, where you (a) Create Graphs and move them around using mouse (b) Color the edges/vertices as you like and name them (c) Make some edges directed. What should I learn to do it in tkinter ? [cc: @LeakyNun]
 
Another good Python UI library is PyQT. It's more complicated than tkinter or wx, but it has a ton of functionality.
 
8:45 AM
(I have no more knowledge in python than what's taught here: interactivepython.org/runestone/static/thinkcspy/index.html )
 
@AlexKChen not sure
 
Oooh, Gaia beats Jelly even with a two-byte built-in :))) Hehe
 
I'm honestly surprised that some frown upon answering your own question, but have no problem answering in multiple different languages. That's a tad discouraging.
 
@ZachGates Why would one not answer in multiple languages?
 
Also surprised (but only slightly) that people don't seem to like simpler challenges.
@Mr.Xcoder I see no problem with it.
 
8:52 AM
> but have no problem answering in multiple different languages
 
Allegorical. It seems counterintuitive to me.
 
gtg
 
9:12 AM
@ZachGates Because a person actually (no pun intended) has to develop a program in each of those languages after the challenge is posted, whereas answering your own question could say that you've already prepared an answer that will win. For instance, if I posted a question which had a single builtin in one of my languages, I should let other people try to find it, rather than winning instantly.
 
@cairdcoinheringaahing Yeah, I agree that immediately answering your own question with an extremely short answer would be strange.
 
@ZachGates well wait a couple of days or more first
@Mr.Xcoder remember the kolakoski thing you did in 66?
I did in 63 :p
or 62
 
Make your mind up :P
 
9:29 AM
@EriktheOutgolfer Good for you
 
0
Q: Help! My calculator malfunctions!

Kevin CruijssenIntroduction My calculator is behaving weird. Sometimes when I type in an 8 it displays a 2. And sometimes when I type in a 6 it displays a +. Some buttons are mixed up! Could anyone help me determine which? Challenge: Input: List of incorrect equations, with correct results. Output: The two ...

 
9:44 AM
@EriktheOutgolfer Full program?
 
Ok then
 
full program may be shorter
 
@EriktheOutgolfer Full function or lambda?
 
full function
 
9:45 AM
@NewMainPosts I predict brute force answers
 
I predict eval abuse
 
nah it's longer as full program
 
@Mr.Xcoder Who needs eval when you have regex?
 
@cairdcoinheringaahing not that kind
 
Regex solves everything. Even maths
 
9:46 AM
@EriktheOutgolfer Do you use creepy yields?
 
@EriktheOutgolfer why no or why not?
 
no
I don't use 'em
 
@EriktheOutgolfer I had this for 66 BTW
 
and this is my 62 :p
 
9:49 AM
Q: How drastically would vectorisation change Python?
 
python 4
2
 
@EriktheOutgolfer ಠ___ಠ
And I assume this was for 63?
 
yeah tuple saves a byte
 
Python 2 has a really weird syntax... Tuple saves bytes over list
@cairdcoinheringaahing Since it involves vectorisation, Python v4
 
what's the grid span in tkinter ?
 
10:03 AM
Oh god is the OEIS challenge still going?
 
^^Latest OEIS Challenge
(Not by me, though)
 
I wonder how long reddit will let me pull the title of every new post on the site
@AlexKChen nice try, browsers show the URL on mouseover ;)
 
and I'd recognize gXcQ anywhere
 
@AlexKChen ಠ_ಠ
 
10:11 AM
@Mayube I recognize it by dQw4...
 
Anonymous
2 messages moved to Trash
 
rickroll is getting old
 
Okx
I believe the reddit ratelimit is 30/minute or 1/2 seconds
 
well it looks like this is only fetching new posts every 3 seconds or so
 
10:17 AM
Yay, answered the OEIS challenge... I wonder how Husk wasn't used.. yet
 
Wrote a new tip for golfing in Python (Which I might have found out about at work)
 
I wonder what the best way to store all this data would be
I imagine MySQL would get too cumbersome very quickly
How's mongodb at storing large quantities of data?
 
Okx
why do you need to store it?
 
PostgreSQL is good for large quantities of data
 
@Okx Because I wanna play around with large amounts of data, for the heck of it, really
 
Okx
10:21 AM
seems very practical
 
I mean I have a fairly hefty server sat around doing nothing but hosting my portfolio website
only has 2tb storage though
 
10:36 AM
just doing some lil benchmarks on average post rate right now, looks like about 1.25 posts per second
 
@Mr.Xcoder It wasn't even released on PPCG when I posted that challenge, and people started to only use practical languages after a while, because golfing langs got rid of really short byte counts
ಠ_ಠ Is that challenge really that old?
 
10:55 AM
@cairdcoinheringaahing Husk was released in July IIRC
 
11:11 AM
I can't find the "works on my environment" rule on meta. Can anyone link it if you know it?
 
11:24 AM
Honestly maybe it's better that I don't read through these reddit results i.imgur.com/woB0ddN.png
 
-1
Q: Write program that can run in many languages,But same output

Nadeen UdanthaChallenge: Write code that can run in many language interpreters/compilers,But same output must be same. For example: (C & Python) main.c.py: #if 0 print "Hello World!" """ #endif #include <stdio.h> int main() { printf("Hello World!"); } #if 0 """ #endif C: gcc main.c.py -o main.exe m...

 
11:50 AM
@OlivierGrégoire Is this what you are looking for?
 
12:22 PM
after 2 minutes of scraping and storing reddit posts, I have over 50MB of data, which means in about 40 minutes I should have 1gb
 
12:45 PM
@Mr.Xcoder that's indeed the spirit, but not what I was expecting. Looks like the any locale is what I'm closest to in terms of needs. Thank you anyways! :)
 
1:15 PM
@Mayube That's a terrible idea.
Reddit is vast.
Compared to all of Stack Exchange. SE is tiny.
You will run out of hard drive.
 
@wizzwizz4 you're not my supervisor
 
@Mayube Well, so long as your internet is not charged by the TB...
 
I misread anyway, an hour of scraping and I'm at 750kb
 
Non-competing isn't a thing any more. — Shaggy 2 mins ago
Huh?
I can't seem to find anything on meta
 
62
Q: Let's allow newer languages/versions for older challenges

Martin EnderI've been thinking for a long time that our non-competing policy for newer languages (or language versions) is harmful. Just for context, we currently require all answers which require implementations that are newer than a challenge to be marked as non-competing. At the core there was a good inte...

 
1:24 PM
@wizzwizz4 eh my main concern is finding a convenient format to store them
 
oh
so I actually win the challenge :D
 
also note that I'm not saving all comments and everything, literally just new posts, saving the date, subreddit, poster, title and url
 
@Mayube Store it in a flat database. :-p
 
@TuxCopter correct me if I'm wrong, but in your answer shouldn't the two ns be indented one space to the right?
 
The circled 0s are non-monospaced in my monospace font for some reason so they are probably misaligned, I'll try to fix it
 
1:31 PM
@wizzwizz4 probably gunna use mongo
 
1:54 PM
Anyone now here play Elite: Dangerous?
 
2:06 PM
@LegionMammal978 I play Elite if that helps...
 
Elite: Dangerous is the new one, right?
 
@wizzwizz4 the one thing I regret about pulling all this data is reading through it afterwards...
I'm scarred for life
 
52 mins ago, by wizzwizz4
@Mayube That's a terrible idea.
I tried to warn you. :-p
 
I thought you were warning about the data size
 
2:11 PM
@Mayube I just provided one reason that it's a bad idea. That doesn't mean that there don't exist other reasons.
But that problem occurs whenever you interact with user-generated content.
 
there uuh.. there's an atheism subreddit that has a bot post a reminder every day to remind people there is no god
 
@Mayube Does the bot make an argument for the case?
Or does it just assert?
 
automoderator just posts every day "It is [date] and there is no god"
I didn't read through the selftext
also now that I'm storing selftext as well the data is way bigger
in 20 minutes I've almost reached what took an hour and a half before
 
@Mayube There's probably an implied "still no evidence of".
 
probably
 
2:16 PM
Though it depends on your definition of "evidence" I suppose.
 
it's on /r/DictionaryAthiesm, in case you wanted to look at it :P
 
wow
> Your post has been automatically removed because participating in a subreddit community is not a component of atheism.
lol
 
lol wtf
 
"Atheism" isn't the belief in lack of any /[g/G]ods?/ according to atheists.org.
> To be clear: Atheism is not a disbelief in gods or a denial of gods; it is a lack of belief in gods.
 
google literally considers athiesm to be a synonym for disbelief
also I'm literally spelling atheism wrong every time
not intentionally
just it's a stupid word
 
2:27 PM
That doesn't mean an atheist mightn't believe that there is/are no /[gG]ods?/, but that all atheists don't necessarily.
@Mayube By any chance, is that subreddit unpopular?
 
i havent been here for a few weeks, did i miss anything?
 
@wizzwizz4 dunno
 
@betseg There were lots of stars that have now gone.
Something had over 20!
Aug 29 at 18:56, by flawr
user image
Never mind - it's still here.
 
i can look right, thanks
ah ninja'd
 
2:31 PM
2.5MB in 30 minutes
 
@Mayube Fast internet.
 
that's how fast the posts are coming in
I'm not pulling the entire history of reddit posts
just logging all new posts as they come in
 
lol I got 245 rep at math.SE
260 rep now
 
in bash how can i "swap" 2 characters? like, for inputs "foobar", a, b; i want "fooabr"
 
sounds like a job for sed
you feeling alright helka? xD
 
2:40 PM
CMC: Golf this in python as much as possible
r = random.randint(0, 127) + 128
g = random.randint(0, 127) + 128
b = random.randint(0, 127) + 128
 
so.. generate 3 distinct integers from 128-255?
 
in vars named r, g, b
I feel dumb actually since you can randint the range directly for one
 
random.randint(128,255)
 
yeah
 
2:43 PM
f=random.randint
x=128
y=255
r=f(x,y)
g=f(x,y)
b=f(x,y)
 
^^wat
 
@betseg ooh that's a sexy prompt
 
@Mayube It's powerline
 
but can I do it in zsh?
 
yes
 
2:44 PM
thats is zsh
 
@TuxCopter f=lambda:random.randint(128,255)
 
@DJMcMayhem then you need r,g,b=f(),f(),f() too
 
And then r,g,b=f(),f(),f()
Ninja'd
 
@betseg how can i consistently do fooabr?
 
@betseg having the left prompt changing width is probably annoying tho
 
2:45 PM
partman doesn't have a progress bar when resizing NTFS partitions.
This scares the owner of the computer that you're messing with.
Because they think they've lost everything.
Then they make you trawl through documentation to prove that there's no progress bar. :-/
 
@TuxCopter ^
 
wait how do you have syntax highlighting :O
 
In the next round of "Whose Console Has The Most Colors?"...
 
mine has 16
7 mins ago, by betseg
user image
5 mins ago, by betseg
@betseg how can i consistently do fooabr?
halp ;_;
 
2:50 PM
@HelkaHomba two bytes shorter: for i in"rgb":exec i+"=random.randint(128,255)"
If I counted right
 
don't need a space after in
 
Oh duh
 
@HelkaHomba Mine. I have a 64-bit display! :-p
 
exec always rankles me. Not pure
 
But it's useful in golf, which is what really counts
 
2:53 PM
@HelkaHomba It's not as if it's an interpreted language...
 
@wizzwizz4 You mean 30 bit? (en.wikipedia.org/wiki/…)
 
@HelkaHomba No, 64. 4 channels, 16-bit each.
 
The question is why would you need more than 24/32-bit
 
RGB..Y? A?
 
@HelkaHomba A.
 
2:55 PM
CMYK, duh
 
@betseg That's on my Paperwhite&trade; display.
 
@betseg Chat mini yellow key?
 
@DJMcMayhem Cyan Magenta Yellow Kromatographic-black.
 
@wizzwizz4 What monitor is this that can become totally transparent?
 
2:58 PM
A see-through display is an electronic display that allows the user to see what is shown on the glass screen while still being able to see through it. It is a technology that has been around for a decade or two, but only as of 2012 was it being incorporated by companies such as Samsung, Planar Systems, and taptl into consumer products like handheld devices, televisions, and other technology as well as building materials such as glass. These screens can be used for augmented reality, a way of enhancing your view of the world with digital images overlaid onto real ones, and other applications such...
Yes! There's an actual Wikipedia article for that.
 
00:00 - 15:0015:00 - 00:00

« first day (2410 days earlier)      last day (2434 days later) »