« first day (1873 days earlier)      last day (3266 days later) » 

04:00
"uneval"? haha what
Representation
I know what repr is. Just never heard "uneval"
repr in Python I think
javascript uses uneval
ninjad
GolfScript calls it uneval in the docs
04:01
How many languages have an equivalent of deparse(substitute(x)) in R? x can be defined or undefined and the result will always be the name of whatever was passed, so in this case it would return "x".
@AquaTart It does?
@ZachGates You clearly haven't read Jelly's source code then.
I have not
@Vihan Great, now I feel dirty.
@AlexA. what's wrong with writing "x"?
@Dennis ( ͡° ͜ʖ ͡°)
@Vihan Nothing. But deparse(substitute()) is useful when you're getting the name of a variable passed to a function, for example.
04:02
@Dennis are you working on Jelly docs?
0
Q: The Bridge and Torch Problem

baseman101The inspiration for this code golf puzzle is from the Bridge and Torch problem, in which there are multiple people at the start of a bridge who must all cross it in the least amount of time. The catch is that at most only two people can cross at once, otherwise the bridge will crush under their ...

x for "execute" looks good
@AlexA. I don't see how that could be useful though....
It's used all the time in R.
@Dennis You should start a GitHub Wiki for Jelly. I'd read that
There is one
@Vihan For example, in the plot function, the axes are automatically labeled with the names of the variables passed.
Not my work, but it's there.
@AlexA. oh okay
Yeah Lynn made it
some good stuff in there
04:04
Whoops
@Vihan Lynn's tutorial is quite comprehensive, and there's a list of atoms. I only have to compile a list of quicks, and I'm pretty much done.
Is that level of introspection common in other languages? That is, can you get the name of a variable passed to a function from within the function?
Knowing J first helps a lot though
#1 barrier between me and Jelly: I can't type it.
@AlexA. JavaScript has Proxy and some new reflection stuff which let you do that with some hacks
04:06
@AlexA. It's possible with some effort in Python
lel at "hacks" and "effort"
it's not really necessary to know the "names" of your parameters' source variables in most languages
@AlexA. lel at you
@AlexA. There are two Jelly (software) keyboards that I am aware of
@Quill Sure, I was just wondering which can do it.
@ZachGates I got rekt
04:08
@Dennis really should pull a Dyalog and sell physical Jelly keyboards though.
@AquaTart Jell-A and Jell-O?
A reason JavaScript is the best: ಠ_ಠ is a valid property name
It is in Julia and R as well
and Java
and Python
04:09
@AquaTart just print out the characters and tape it to your keyboard. and set up a key remap thing
@ZachGates wait realy???
@Vihan ಠ_ಠ = NotImplemented
Try it
  File "<stdin>", line 1
    ಠ_ಠ = 1
    ^
SyntaxError: invalid syntax
Python 3?
I read this interesting blog post about using hasOwnProperty in objects
:|
I am running out of reasons to support JavaScript...
04:10
You had any to begin with?
ಠ_ಠ
yes, see above
> "Python" > "JavaScript"
< true
._.
@AlexA. meh. something something job security
JavaScript had some good design ideas. That streak sadly ended when it came time to design scopes
@AquaTart that's been fixed with let
> JavaScript had some good design ideas.
hahahahaha
04:12
ಠ_ಠ
Fun fact: JS was literally created in 2 weeks
It shows
HA, rekt
lets not insult languages
@AlexA. I kinda like the way they handle functions. Boy, did they screw everything else up though.
04:13
@Quill Nah, we totally should.
@Dennis hau
insulting languages only ends up insulting userbases using those languages, and isolating those who don't fit your outlook of preference
> U.S.
@AlexA. hau?
> guillemet
04:14
@Dennis Wait, this is just the Option key
@AlexA. By pressing weird waterslide thingie, apparently.
Or Option key.
Weird waterslide thingy is best waterslide thingy
I always wondered what the option key was supposed to look like.
Options
04:16
@AquaTart I'm 99% sure it's a waterslide.
it looks more like an escalator if anything
@Dennis Makes sense now that I look at it
Oh, cool. TIL Java actually supports cp437 as an encoding.
llama@llama:~$ pyth -c '.(c`rRvh`.!.nZ.MlZ.u+NY@LGjs-vPP`/v.O.Hl^G4yl.dtsP_OZ+syyll.dslllG@ss`M@^St.PF.DlGuyGl`NlNev_`*FhMr.B*F+BTNyyylN_iF.e`W!kb_*BhTtTl.nlCBN.Ey*.n~hZ.nZkCvjk%=hZ*LNS=Nh~tZZ'
Doorknob
WHAT HAVE I DONE
04:21
O_o
@Doorknob -1 no potato
@Doorknob looks like you've written a perl program but you're running it with the pyth interpreter
Way too many letters for Perl.
I still don't understand why Perl is such a popular target for language bashing
Here that is
@AquaTart because it's syntax looks like a half-random assortment of ASCII characters?
04:25
@Vihan What about it
OK sure golfed Perl does
@AquaTart Because it's utterly unreadable for people that didn't learn it. When you look at Python code, even if you don't know Python, you usually have a pretty good idea what it does. That's not true with Perl.
in Tavern on the Meta on Meta Stack Exchange Chat, Feb 29 at 0:48, by tchrist
@Doorknob Seriously, I enjoy probing questions from talented learners of perl. My company has about two million lines of perl in production.
re: Perl and maintainability
I always thought it as decently readable but that's probably because it was burned into my brain at a young age
@Vihan: You can now execute code blocks on the stack with x
@ZachGates :D cool
04:28
@Doorknob I feel so bad for them. I made the mistake of putting Perl code into production at work and ended up translating it to Python once requirements changed and the scripts had to be modified.
Python is more readable for sure
python is like the most readable language, I don't think it's fair to compare it to perl
@Vihan I'm going to implement an operator to execute code blocks in a new stack, and then the operator you suggested
I don't think you can make python unreadable
in Tavern on the Meta on Meta Stack Exchange Chat, Feb 29 at 0:50, by tchrist
And those are as far removed from what you think of as bad-programmer perl as storm-battered sheaves of wheat are from a luxuriant Viennese pastry, or random paint splatters are from a Renaissance masterpiece.
tchrist has a way with words :P
04:30
I don't know what he means but it was quite poetic
in Tavern on the Meta on Meta Stack Exchange Chat, Feb 29 at 0:39, by tchrist
All great cathedrals have their flying buttresses and their gargouilles, their crypt and their mystery.
@AlexA. I guess I can see the issue here. You can do production code in python and get away with only understanding it partially. You have to really really know Perl to use it in production correctly
I don't conider that a bad thing
For a while I really knew Perl. I had been using it in production for a few years. My mistake was choosing it for a new system.
@ZachGates you should add a command line option which prints the entire stack, that'd be useful for debugging programs
Honestly the only proper way to learn Perl is the Camel Book imo
04:34
Camel Book?
It's just too intricate to be picked up by SO snippets and bad web tutorials
You're right. I've been thinking it, but keep getting distracted. :P You're more than welcome to open a PR
I have O'Reilly's Perl in a Nutshell
Is that the camel book?
@Vihan O'Reilly's Programming Perl. Larry Wall actually wrote it
Larry wall?
04:35
It's usually called the camel book or the camel bible
@Vihan creator of Perl
oh okay
@ZachGates any idea why {Ø}x doesn't work?
@Vihan Damn, yes. Will fix
@Vihan It's because of this
@ZachGates I'm sorry but I don't know python so I don't know what any of that code does :|
@Vihan Splits the code at that operator, regardless of whether it's in a string, block, etc. I messed it up; will fix
ah, okay.
04:43
@Vihan Actually, no. I disabled loops within code blocks
so I'll have to find a workaround, then :/
@Vihan I'll re-allow it. I think I just disallowed it for my benefit. I forgot haha
What's a GoghObject?
@Vihan The base class for my custom strings, integers, floats, arrays, and code blocks
okay
04:50
i.e. GoghString, GoghBlock, etc.
GoghPher
That would be a good pun if "Gogh" were pronounced "Go" ):
Classes should be named after subject matter. Sunflowers, etc.
It's a shame it isn't, really. There's not many "Gah" puns
It isn't? I thought it was like Van Gogh.
04:51
am I doing this right?
@Planner.toapprove
def _if_exec(self, ttots, stos, tos):
@AlexA. Gogh is pronounced "Gah" with a guttural sound
@AlexA. Most people pronounce that wrong.
@Vihan Unindent your second line
it isn't, I don't know why SE did that
Is that third-top-of-stack?
04:52
@Geobits My life is a lie
@ZachGates yeah, I am getting two code blocks and the TOS
@AlexA. We knew that ;)
@Vihan Yeah, that's right. Don't forget to modify the storage globals
@Geobits ;-;
@ZachGates yup, I think I did that right
04:53
Nice!
@AlexA. I know that's supposed to be a cry-face, but I always see a jowly, beady eyed little man instead.
@ZachGates GoghdDamnIt
2
so isinstance(ttos, Frame) checks if the ttos is a code block?
@Geobits Perhaps like how Peter sees ಠ_ಠ as an owl.
@Vihan Yep. You could also use ttos._is(Frame) (I made a builtin method _is for all GoghObjects)
04:54
@AlexA. I see that one as a crying baby, soo... :P
okay, I'm taking my reference code from here:
@Planner.toapprove
def _execute_instack(self, tos):
    for block in tos:
        if isinstance(block, Frame):
            self._request(block)
        else:
            self._push(block)
@Geobits Oooooooh, wrecked.
Correctly spelled wrecked? Wait, is that good or bad?
@ZachGates what does the for block in tos and self._request(block) do?
for (var block in tos)
that's the js equal
04:56
well I know that much
@Geobits Yu deside
11
Q: Worldbuilding Site Design Updates: March 15

Kurtis BeaversThank you for all of your feedback and patience while we made design updates. Below are a list of updates and planned updates. Logo Based on the community's discussion, we've made some adjustments to the logo: we added a halo, saturated the colors a bit more, and made the world a bit larger...

WB is graduated? And it was in November? Huh.
Forget about our design, I'm still waiting for out Community Ads...
I know... I want to see how the voting goes on the sandbox bully :D
05:00
;-;
downvote in advance
That's okay. I try not to take downvotes personally ;)
Feb 26 at 6:24, by Geobits
user image
that one?
haha
I just think that isn't really friendly towards new users
Not that exact one. Different text.
I have a few versions on my desktop at home.
ohhh, I thought "bully" was an abbreviation for "bulletin," as in "community bulletin," the sidebar thing...
that makes a lot more sense
05:02
nice work
I didn't draw it. PD clipart for life.
"the community bully is helpful"
I thought it was Police Department clipart
(removed)
Y'all should learn RETURN!
I updated the README commands and added some examples.
@MamaFunRoll does it do basic arithmetic?
 
1 hour later…
06:32
Thanks anonymous bold text
You're welcome...
@Quill 0/10 bad cross-browser support. FTFY
nice
IDK what Chrome uses, so put appearance there just in case.
Wait a sec, Chrome uses -webkit, so appearance is there so it still works when it is standardized. (probably never)
07:07
We should have a hub with comprehesive info on the builtins and tips for golfing in all golfing languages in the region.
I call it the golfdocs.
Look, a random person - P. Maxime - is pretending to be my Mystery Man avatar's brother. But his avatar is a bit different.
Here is the actual Mystery Man avatar, for reference:
@zyabin101theHated Apparently there's no point/people don't want one, because searching [tips] is a lot easier.
@MarsUltor Builtin information is often a bit succinct. Just a command and what it does, with no usage examples. Golfdocs will provide usage examples.
@zyabin101theHated Golfdocs = [tips] in PPCG.SE search bar
Some languages may also provide transpilations to other languages, and they'll be provided.
@MarsUltor But the tag is about tips for golfing, it does not include information about builtins. Golfdocs will provide both tips and builtins.
@zyabin101theHated Well, sure, if you can get everyone else to agree.
07:21
One positive argument is that everyone can edit the docs, because they will be hosted on GitHub! :)
You just send a pull request, and the review team will check it and possibly merge the pull request!
@zyabin101theHated I know, but I tried that a few weeks ago, and everyone said there's no point
 
1 hour later…
08:29
@randomra By 2=%, so you mean applying the stage only to the second line? That's an interesting idea but not good it works at the moment. Limits don't interact with per-line mode at this point, so that configuration would mean something like only processing the second match in each line.
08:58
@MartinBüttner Wow - that's comprehensive!
09:37
@MarsUltor Link?
10:12
Feb 20 at 6:42, by somebody
i have no idea how to make http://codegolf.stackexchange.com/questions/tagged/tips into a github pages + jekyll repo
Why would you want to export those tips? They have their place right here ^^
I know
Yay, first push in ages
@MarsUltor Still haven't done the first push for my esolang :D (I'm lazy...)
@Katenkyo Your esolang? (Also, that isn't an esolang)
@MarsUltor A tape-language using a lua table as a tape (each index can contain either a string/number/table or function ^^) (also, I know, but made me think of esolangs :p)
10:21
@Katenkyo Named?
@MarsUltor Taple
@Katenkyo Taple looks like Staple
@MarsUltor Well, I can't find an other name ^^'
Also, you only can print/play with the tape actually, so it's still a work in progress ^^
10:35
(also, the tape is self referencing, one more thing I have trouble to make bug-free D:)
@Katenkyo Then maybe you should use cloud9?
@MarsUltor Wouldn't it be overkill for a simple esolang...?
@Katenkyo Well, Eridan @ANe is using it for his esolang.
@MarsUltor Didn't know, I think I'll just stick with dev'ing on a my comp/using local git etc until it's done
@Katenkyo BTW, where do you live? All the Americans are usually asleep now.
10:45
@MarsUltor I'm living in France, not far from Nice. And you?
(You might already have said it to me, but forgot...)
@Katenkyo Brisbane, Australia
So that's two people in Europe, two in Australia, and the rest are in America apparently.
@MarsUltor Would love living in Australia for 1/2 years ^^
½? Why so specific?
Because I would also like to do the same thing in America/Canada/Japan and maybe some other places
Oh, found a way to rape the object-part of lua for Taple!
Table, numbers, and string will now inherit each other methods (performing a string.find one a number for instance :D)
11:16
@MartinBüttner I mean the version, how it works now: e.g. remove from every list the second element, although it is doable with retina 7 too, but I see potential in the way limits and % work now
@MarsUltor make that three in Australia :D
@Quill But I was counting you as the seoncd.
I smelt the word Australia through TCP/IP
@MarsUltor oh, right
I thought there was someone else in here
Also, I'm judging based on activity charts on the info page
7
Q: Query to find users from Australia

Hosch250After a discussion of which users were from Australia, I wrote my first SQL query to find out: SELECT u.DisplayName'Display Name', u.Reputation'Rep', u.Location'Location' FROM Users u WHERE u.Location LIKE '%Australia%' ORDER BY 'Rep' DESC As always, please tell me the good, the bad, and the u...

0
Q: Seem to concatenate two strings

Aplet123I've been having fun obfuscating my code lately, but my tricks are getting old. Your goal is to make a program that takes two strings from STDIN, separated by a newline, or you may take them as function parameters(whichever works best for you) and you have to appear to concatenate them and return...

TIL Sp3000 and grc are from Australia, apparently
grc
grc
^ true story
@grc You went out of lurk mode just to say that?
grc
grc
I had just got home and was checking tabs
re-enters lurk mode
12:06
grc is psychic
grc
grc
I have a bot that pings me when I am mentioned on the interwebs
@grc Really?
grc
grc
no :(
12:20
I'm working on a challenge here, and I'm trying to come up with a word for a very simple geometric shape: Is there a simple descriptive word for a room made up of two or more rectangles (the simplest being a L-shaped room)? I'm looking for a word you would use in day to day speach, not in a math assignment.
Compound shaped room doesn't have a nice ring to it.
@StewieGriffin I don't think such a word exists...
@StewieGriffin Not sure if polyomino fits the requirements.
grc
grc
I'm sure EL&U will have a word for you
@grc, good idea =)
12:31
hum... my regex wasn't working when it was [+-*/%%] (where % is the escape character), but works with [+-/*%%]
grc
grc
\-
@MarsUltor it describes the shape quite well, but it's a bit technical...
@Katenkyo @Kat escape the -
@MarsUltor it is actually working with [+-/*%%], it's just that I don't get what's the difference...
grc
grc
- does character ranges in []
12:34
@Katenkyo It's not. It's matching all the characters from + to /. (which is a bad idea.)
@grc Stop golfing your replies ಠ_ಠ
grc
grc
.
@grc Matched
@MarsUltor Oh, forgot that point x).
Corrected in [+%-/*%%] to not have any troubles again :)
13:01
Quick question for the mods: is this policy described here specific to PPCG, or does it apply to all sites?
anyone here plays go or willing to learn?
I'm willing to learn (I hope you don't mean right now because I'm at work)
I kinda did mean right now :P
but later could be cool too, but might be busy then
I keep hearing about how intellectual you have to be to play, and so I want to give it a spin. I want to feel superior too.
(I.e., some of the Go players on BCG are kinda arrogant)
I think some people took "Go is harder for a computer to solve than Chess is." and translated that to "Humans who excel at Go are smarter than humans who excel at Chess."
1
Q: Repdigit Base Finding

TimmyDA repdigit is a natural number that can be written solely by repeating the same digit. For example, 777 is a repdigit, since it's solely composed of the digit 7 repeated three times. This isn't limited to simply decimal (base 10) numbers, however: Every Mersenne number (of the form Mn = 2n-1) ...

@Rainbolt go has a much bigger gametree
both are unfeasibly large to explore for a human
furthermore, someone who excels at something is better than their peers
unless go universally has smarter people, excelling at either should mean the same
13:25
2
Q: Build a simple room in ASCII-art

Stewie GriffinA room can be made up of connected rectangles, for instance an L-shaped room. Such a room can be described by a list of dimensions describing the size of each rectangle. Assume you have two input lists. The first contains the width of rectangles stacked vertically over each other. The second co...

13:42
anyone in here?
thanks Timmy.
Don't you guys get bored of ASCII art challenges?
honestly there are SOOOO many its ridiculous..
There have been a significant number this year.
There are more and challenges, though.
13:51
True
But string/math have more room for variation.
14:10
That was their decision procedure. What actually happened was that the 90km astronaut shot the others dead and left them piled the starting point. He then calmly walked off, finishing over 90km away. The size of the asteroid part is a red herring. — Hugh Meyers 23 hours ago
0
A: Sandbox for Proposed Challenges

Mr PublicReverse an N-Dimensional array code-golf Given an array (or list), containing integers, of n-dimensions, output an n-dimension array with all sub-elements reversed. That is, reverse all elements of the deepest list, then the second deepest, etc. Example: [[[ 1, 2, 3], [ 4, 5, 6], [ 7, 8, 9]],...

@NewSandboxedPosts Wow, horrible recursion
14:42
@MartinBüttner I found a 5-byte cat program! \o/ codegolf.stackexchange.com/a/75597/42545
15:03
Ah nice job. That was sort of what I was looking for yesterday, but it didn't occur to me to use _ mirror. :)
@i?o_ should also work I guess
Is there historical precedence for using @ as the "terminate execution symbol," or is it just the one that's usually chosen?
It seems to come up often.
@TimmyD Befunge seems to use it.
@TimmyD usually $ is chosen as termination symbol in various CS contexts
have any of you played pandemic:legacy?
@Zgarb That makes sense. A lot of 2D esolangs take some inspiration from Befunge.
15:11
@TimmyD it looks like a black hole
which existed long before earth
so, yes, quite a bit of historical precedence
15:34
xkcd alert: xkcd.com
there's also a new what-if, but it isn't as good this week :(
@TimmyD that's where I took it from for Lab and Hex
although seriously: do any of you play board/card games?
@NathanMerrill I play MTG and bridge (though I don't play either as much as I used to).
Never been much of a board game person though.
I don't like MTG, as its PTW
though I do like bridge :)
@NathanMerrill I played MTG quite a lot back in the late 90s, not so much anymore. The wife's family is big into cards, so nearly any sort of family gathering turns into a cribbage or whist or hearts or ... tournament. Friends and I also thoroughly enjoy various board games and routinely play.
15:47
what's tournament?
As in a "hearts tournament" or a "whist tournament"
or a "fill-in-the-blank tournament"
Those seem to be the popular ones, though.
so, hearts plays to 100 points, so play multiple 100 point games?
those are pretty long tourneys :P
Yes. Swapping tables between games. They have a whole system worked out, so that player 3 is partnered with player 7 and sit at table D for game 4, etc.
So, yes, we've played 10-hour whist tournaments over e.g. Christmas.
15:52
@NathanMerrill I've always hated Standard, but Modern, Legacy and Commander can be quite a bit of fun
Most of my decks are Legacy decks because most of my cards are pretty old
Recently, I was introduced to 7 Wonders, and have really been enjoying that.
I've been trying to branch out into some more modern metas
@TimmyD ooh wus dis
@AquaTart I'd stay away from modern for now - It's in a truly terrible state
@KevinW. I have played Modern.
15:54
@TimmyD I got that game a couple of years ago, but since I stomped the first couple of games, nobody will play me
I've been slowly trying to convert all of my decks to Modern
That way I can actually play at FNM instead of just watching
The one thing I can't convert is my Infect deck which sucks
@AquaTart If you've ever done a MTG booster draft, it's that crossed with a civilization-building theme, but you play the cards immediately.
Infect is a pretty viable modern deck though
@KevinW. Mine has Endless Scream which is basically a strictly better Howl From Beyond, but it wasn't reprinted
@TimmyD Hmm
The one deck that I would like to convert but have been too lazy to is Ornithopter

« first day (1873 days earlier)      last day (3266 days later) »