« first day (1828 days earlier)      last day (3017 days later) » 

10:00 PM
I'm making a language called "oration" where your program can suffocate if it doesn't breathe often enough.
2
 
@MartinBüttner butterfingers
 
@MartinBüttner oh no
 
@quartata ono*
 
@PhiNotPi rare pepes
@PhiNotPi I do wish there weren't so many stack based languages.
 
10:03 PM
Why?
 
I don't know, I just feel like there's other memory models to be explored.
Stack based has been done to death by now.
 
I'm not making another stack based language.
 
I don't use stack based languages because stacks confuse the hell out of me.
 
 
10:04 PM
Oh then you'll love my new queue-based language
 
In principle they're quite simple, but that doesn't mean I can figure out how to use them effectively.
 
@quartata I only made two. One was for lolz, the other is a turing-tarpit.
 
Mine's a Turning tarpit
 
@AlexA. Really? They're one of the more intuitive ways to do things for me, actually.
 
@flawr \o/
 
10:05 PM
@Doorknob FWIW GolfScript is really readable
Especially with the multi-char instructions like rand
 
@Doorknob :O
 
CJam is less readable.
 
@quartata lel because a Rotor turns?
 
@quartata I know. (I am a former GolfScript programmer. Ahh, I remember the days when GolfScript was the shortest there was...)
 
@AlexA. yes. (It's actually a paradigm apparently)
 
10:06 PM
How to read command line arguments with python?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ sys.argv I believe
 
sys.argv
ninja'd
 
sys.argv
 
nailed it
 
gg
 
10:06 PM
@Doorknob GolfScript, then CJam, then Pyth, then Seriously, then MATL, then Jelly.
 
@AlexA. Seriously was never the shortest
GolfScript CJam Pyth pl for like 2 days Jelly
 
@Alex One of those should not be in that list
 
@Sp3000 Oh sorry, I forgot: CJam can't do anything.
@quartata Lol @ pl. Has it even been used on the site?
 
@quartata thanks
 
Seriously?
 
10:08 PM
How do I read a file in python? :3
 
@Sp3000 No, for kids
 
MATL + Python = RATLsnake
7
 
:O
 
open(file, option)
 
@CᴏɴᴏʀO'Bʀɪᴇɴ open
dammit
 
10:08 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ pythonforbeginners.com/files/…
 
@Sp3000 option?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I have a very helpful resource for Python programming
 
You guys are much closer
 
You need to close it too though, unless you do something like with f as open(file, "r"): ...
 
@Doorknob they actually recently extended it to include more languages than just python
 
10:09 PM
@Doorknob That is a really cool website, I've heard about it before.
I think you should post this in stackoverflow
most people there do not seem to know about it
 
I think bing.com has more languages
 
ಠ_ಠ
get out
 
@CᴏɴᴏʀO'Bʀɪᴇɴ eg 'r' for read, 'w' for write
 
@flawr hahaha
 
@GamrCorps ¯\_( ͡° ͜ʖ ͡°)_/¯
 
10:10 PM
Default is read though
 
Add support for multiple typefaces.
 
@AlexA. yes
 
NASA actually responded to my email I sent about a program for breathing :3
 
For real?
 
10:14 PM
no way
 
@Doᴡɴɢᴏᴀᴛ lolwat
 
proof it
 
nevermind, it was an automated response :( "The Public Communications Office at NASA Headquarters is the authoritative source for providing a response to your inquiry" So I have to send another one
 
gg
nasa senpai has not noticed you
 
Is there a Wildlife SE?
 
10:17 PM
 
dammit
 
ninja'd
 
> proof it
 
but that's for "outdoor activities, excursions, and outdoorsmanship". Not wildlife
 
What's your question?
 
10:19 PM
Outdoors if you want to see wildlife, Biology if you want to understand it, and Worldbuilding if you want to use it to take over the world
 
@Doorknob "How fast can a Panda run?"
 
Python search ɪɴ sᴛʀɪɴɢ?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ re.find
 
11 mins ago, by Doorknob
http://google.com
 
10:20 PM
@Doorknob "biology researchers, academics, and students"
I'm not a biology researchers, academics, and students
 
11 mins ago, by Cᴏɴᴏʀ O'Bʀɪᴇɴ
You guys are much closer
 
@Doᴡɴɢᴏᴀᴛ A panda is biology, no?
 
@Doᴡɴɢᴏᴀᴛ I'm not a puzzle enthusiast or a code golfer, but I haven't been kicked off PPCG yet...
 
@trichoplax suspended
you shouldn't have said that
 
great, there isn't a [panda] tag so I don't know what to tag it
 
10:22 PM
@Doᴡɴɢᴏᴀᴛ is there a bear tag?
 
[zoology]?
 
@Doorknob Think he means as a secondary tag
 
@quartata Pandas aren't bears!!!
:P
 
@quartata a what
 
Yup, python is WAF
 
10:23 PM
> Family: Ursidae
@Doorknob bro do you even tag
 
@Doᴡɴɢᴏᴀᴛ ok wait why can't you just... look this up?
 
@Doorknob I tried:
> A giant panda’s running speed varies with age and topography. According to our years of tracking and observation in the wild, on flat ground without any obstructions, giant pandas run slower than a human jogging. However, in a bamboo forest, it runs several times faster than humans do. This is because in a dense bamboo forest, a panda’s body can pass through any part of the grove as long as it can get its mouth through, whereas humans cannot. Yong Yan'ge
 
@quartata Wow. I was so wrong. And now I can't even remember who angrily told me that they aren't bears years ago...
 
@quartata How do I actually obtain the matched string from a match?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ If you just need substrings, then "abc".find("a") works (similarly, .index).
 
10:24 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ re.find returns the result
@Sp3000 There's that too
 
@Sp3000 thank you.
 
Conor's question was pretty ambiguous though
 
@Doᴡɴɢᴏᴀᴛ "as long as it can get its mouth through" - does this means it eats its way through at human running pace??
 
@Sp3000 Python is too weird for me to ask clear questions
 
Well, example input/output helps :)
 
10:26 PM
I don't know what I'm doing yet.
 
0
Q: How fast can a panda run?

DowngoatPandas are going extinct, mostly due to habitat destruction. This leads me to the question: How fast can an average adult panda run? (more specifically Giant Panda)

I really hope this doesn't get closed ><
 
maybe if more pandas learned kung fu they wouldn't be extinct
5
 
@isaacg Two things about Pyth: a.) y u make d the variable both for zero and for mapped item? b.) The fact that the map predicate comes before the thing being mapped over means you can't use K etc. (auto-assigning variables) within the mapped thing and reference them in the predicate because Pyth thinks I'm trying to assign them from within the predicate. :(
 
@Doorknob You should use the Pyth chatroom
 
too much effort
 
10:31 PM
I was wondering the same thing! — GamrCorps 32 secs ago
ಠ_ಠ
 
@GamrCorps ಠ_ಠ
 
ಠ_ಠ
 
wait what
 
lol
 
I want to split a string by a list of separators: separators = ["!",".","?"], Hello! Hello. Hello, hi? => ["Hello!", "Hello.", "Hello, hi?"]
How do I do this in python? I googled it.
 
10:32 PM
try splitting on a regex
 
I DON'T KNOW HOW TO DO PYTHON REGEX
 
import re
 
it's literally regex
 
something like re.split(string, r"[!.?]")
 
re.split(r'(?<=[!.?])', blah)
 
10:33 PM
STOP TYPING FASTER THAN ME
 
I was close
 
python regex is stupid
 
@CᴏɴᴏʀO'Bʀɪᴇɴ y u repl
 
10:34 PM
@Cyoce ... what? There's nothing specific to Python regex that I can think of
 
It's not PCRE, is it?
 
Their way of handling it is stupid
 
> There
 
@AlexA. No but it should be
 
10:34 PM
 
PCRE is perfection
 
Regex should be builtin to the language, and then test, match, replace, etc. should be methods of a regex object
 
> they're
@Cyoce ew oop
Why not just string =~ regex
 
10:35 PM
@quartata .NET regular expressions are pretty boss though
 
I love how every program (including big commercial ones like Safari) uses PCRE, but no one respects their license.
 
I got a notification and an email about the Discord meeting
 
@mınxomaτ They have a license?
 
Why did SE just notify me saying "a chat event is happening very soon" when it is two hours from now...
 
@Cyoce That's kind of how it works in Julia.
 
10:36 PM
@Doorknob same
 
@GamrCorps That's a good question ¯\_(ツ)_/¯
 
@AlexA. and JS
 
@GamrCorps That is soon. Sooner than, like, a day.
 
How much time until UTC midnight? Hour and a half, right?
 
but not sooner than one hour
 
10:36 PM
@quartata yes
 
Oui
 
mkay
 
go'i
 
I absolutely hate python
5
 
UTC midnight ~= Pro Bowl kickoff time (helpful for Americans who watch football [today only])
 
10:37 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ uh why are you using compile
 
@CᴏɴᴏʀO'Bʀɪᴇɴ try re.split(regex,str)
 
@Doorknob THE GUIDE TOLD ME TO
 
@ETHproductions I don't watch football so not helpful
 
@CᴏɴᴏʀO'Bʀɪᴇɴ python does everything the naive way
 
@CᴏɴᴏʀO'Bʀɪᴇɴ ew
 
10:38 PM
@GamrCorps That's what the first line is
@quartata I KNOW
 
huh
thats weird
 
er what version of python is this
 
@CᴏɴᴏʀO'Bʀɪᴇɴ oh put a space at the very end of the regex
 
I forgot to thing the stuff
 
10:38 PM
hau cud u
 
@Doorknob why does that work O_O
 
Well I think we can all agree that @CᴏɴᴏʀO'Bʀɪᴇɴ has the weirdest bugs while learning new programming languages.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Splits on any space that has a !.? before it.
 
It's mostly because he's using Windows
 
@quartata I started learning python on my friend's linux or whatever
 
10:39 PM
Also if that's what a character class looks like in python I'm so happy I don't use it
2
 
What are the angle brackets doing in perfectly good regex
 
@quartata That's a positive lookbehind and it's in every regex flavor ever
well... maybe not
It's common, anyway
 
not in JS :D
 
10:40 PM
@JS ಠ_ಠ
 
@Cyoce s/:D/D:/
 
@Doᴡɴɢᴏᴀᴛ unnecessary g flag, not golfy enough
 
@Doorknob Why on earth do you need a look behind for this it's just [!.?]*
 
@quartata He doesn't want to get rid of the punctuation
 
The four JS people in the room cringe and cry silently at the abomination that is JS regex
2
 
10:41 PM
^ :(
 
@Doorknob oh
 
> You have fully used your vote allowance for today
 
At least they handle the regex type well
 
0
A: Sandbox for Proposed Challenges

PhiNotPiAnything but stacks language-design Stack-based languages are, like totally, all the rage these days. From GolfScript, to CJam, to MATL, it seems like stack-based languages are popping up everywhere. But now, it is time to push forward and explore new memory models. In this challenge, you ...

 
@Cyoce I love when people use the wrong smiley ಠ_ಠ
 
10:41 PM
@Doᴡɴɢᴏᴀᴛ whaaaat
 
> Image not found
 
@CᴏɴᴏʀO'Bʀɪᴇɴ access denied
 
ugh lemme fix that
 
Maybe you should use a sane image hosting service like imgur
 
10:42 PM
^
 
Or better yet, stop posting screenshots of text
 
@Doorknob My screenshot device usually uploads to imgur, but sometimes it doesn't
 
@CᴏɴᴏʀO'Bʀɪᴇɴ sub
 
@CᴏɴᴏʀO'Bʀɪᴇɴ re.sub
ninja'd
 
10:42 PM
@Doorknob I'm too lazy to copy.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ it's literally less work
 
@quartata WHY PYTHON WHY
 
Does JS use replace instead of sub?
 
I think so
 
I'm speechless.
 
10:43 PM
@quartata yep
 
@Doorknob Select all, copy, select portion I want, copy, paste versus press two buttons, click, copy, paste.
 
There are a lot of ways to do regex wrong
But I don't think I've ever heard a more wrong way
 
@CᴏɴᴏʀO'Bʀɪᴇɴ ... what is wrong with you Windows
 
@CᴏɴᴏʀO'Bʀɪᴇɴ lolwat
 
@Doorknob I have prntscrnr.
 
10:44 PM
Just select and copypaste
Why do you have to select all
 
on urxvt it's just Alt+Esc Vkkk Enter
copies to primary X selection
 
That's what I get.
 
@Doᴡɴɢᴏᴀᴛ If we were allowed to choose which side the hinge of the box is on, Japt would be 13 bytes rather than 17.
Of course, Pyth would probably be 11...
 
@ETHproductions My suboptimal Pyth would be shorter if the hinge were on the other side too
@CᴏɴᴏʀO'Bʀɪᴇɴ ew mouse and menus
 
10:45 PM
@Doorknob I know. There's no button way to do it on windows >:|
 
2 mins ago, by Doorknob
@CᴏɴᴏʀO'Bʀɪᴇɴ ... what is wrong with you Windows
 
@ETHproductions Yes, but I can't rotate my box unfortunately.
 
I hate how the newer versions get rid of the mouse when you prntscrn :/
 
^
wait there's a builtin replcae method for the strings
Y U NO TELL MEH
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Use a sane console like ConEmu.
 
10:46 PM
you could have figured that out by Googling "python string replace"
 
@mınxomaτ Python console.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ So? ConEmu can access any CLI program, including python.
 
somebody kill me
 
BANG
Oh gosh I seem to have killed everyone
 
reloads shotgun
 
10:52 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ To do what? Quick Edit makes Mark automatic when you click (you still have to hit Enter to actually copy) and makes right-click Paste too.
 
3 hours ago, by Doᴡɴɢᴏᴀᴛ
user image
 
@Doᴡɴɢᴏᴀᴛ LOL
 
I finally wrote another challenge
 
0
Q: Squares in the Squares

AmporaGiven input of a positive integer n, write a program that completes the following process. Find the smallest positive integer greater than n that is a perfect square and is the concatenation of n and some other number. The order of the digits of n may not be changed. The number concatenated ont...

 
Oh yeah, forgot that existed.
Thanks @NotDoorknob
Wait, how did I just misread NotDoorknob as New Main Posts?
 
11:17 PM
Regarding the whole 0-byte 05AB1E thing, how did someone anticipate that particular challenge?
 
:27238263 The smallest square is 2304. Is that valid/intended?
 
Yes
Oh I see what you're saying
 
2304 is the concatenation of 23 and 04 and is a perfect square, so its process contains 2 elements: 23 and 2304. Thus, the program outputs 48.
 
@Ampora Yeah, I'm basically wondering if the number concatenated to n can have leading zeroes.
 
11:22 PM
Yes
 
I've never had any meta questions go this long with literally no activity:
0
Q: Chat Onebox Raw Text File Links

VoteToCloseOftentimes, while testing code or linking to raw GitHub, I find myself wishing that raw text or program files would one box. For example, the link: https://raw.githubusercontent.com/VTCAKAVSMoACE/Vitsy/master/examples/MathTest.vt should one-box; I want the person with whom I'm working to be abl...

 
@Ampora I'm confused. Shouldn't the output be 2?
 
They're usually closed within seconds. D:
 
See the test case of 1337
 
/facepalm
Still, it wouldn't hurt to make that information a bit more prominent.
 
11:23 PM
One step has been changed for clarity, double-checking now.
 
I'm also thinking the output should be 2 and not 48.
 
I'm dumb
It should be 2 and the question has been updated accordingly
 
I wonder, under what circumstances is the output larger, smaller, or equal to the input?
 
@Ampora Another question. Can the r_k be zero?
Like 10 -> 100 -> 0?
 
Yes
 
11:29 PM
Chat mini-challenge: find the smallest positive integer for which input=output.
2
 
I'm trying to think of some golfing languages that were created between the first wave of these langs (GS, CJam, Pyth) and the most recent wave (TS, Japt, MATL, Jelly, etc.), but all I can come up with is Retina. Thoughts?
 
Math challenge: Prove that the sequence converges for all n, or find an input for which it doesn't.
 
I'm assuming you've already looked through the language list meta post.
 
More or less. Double checking now.
 
We should really make a timeline.
 
11:31 PM
Working on that, sort of
Brachylog, I guess?
 
@ETHproductions TS?
 
golfish?
 
@Doᴡɴɢᴏᴀᴛ TeaScript :P
 
@ETHproductions ohhh
 
@Calvin'sHobbies Maybe...
SnakeEx and Snails and Grime for the 2D regex language challenge
But most of these are not used often, AFAIK
 
11:34 PM
@Doorknob Those are good points. Mainly, they're mistaken decisions from early in Pyth's history.
 
Pip, Fourier(?), Element, Bubblegum...
But many of these are not currently maintained or used. [citation-needed]
Golfish makes the list as well
Here's a basic timeline:
Wave 0: APL, J (languages that are not designed for code golf, but happen to be good at it)
Wave 1: GolfScript, CJam, Pyth
Wave 2: Retina, Gol><>, Pip, Brachylog
Wave 3: TeaScript, Japt, ESMin, Jolf, Vitsy, pl, Minkolang, MATL, Jelly
 
Don't forget Simplex! @CᴏɴᴏʀO'Bʀɪᴇɴ LimpSex. c:
 
The distance between Golfscript and Pyth is much greater than the difference between Pyth and any of the later ones.
 
@ETHproductions GolfScript predates PPCG.
I think.
 
IIRC the sport of code golf originated with Perl
 
11:47 PM
Yup, GolfScript was released in 2007.
 
o-o Really?
 
> Dec 13, 2007: GolfScript released!
 
I barely knew how to computer in 2007
 
GolfScript predates Stack Overflow! o_O
6
 
07 was 9 years ago, holy cow...
@Dennis That website looks like *199*7.
 
11:52 PM
Nah, 1997 was worse. I never noticed the bird though.
 
Not much has changed since 1999
 
@mınxomaτ Ah, the good, old times when every other web page you visited had a recommended browser in the footer (and blatantly refused to work as intended with all others).
 

« first day (1828 days earlier)      last day (3017 days later) »