« first day (1720 days earlier)      last day (3115 days later) » 

2:05 AM
Why do people write stuff like (c >= 'A' && c <= 'Z') rather than isalpha(c) & isupper(c)?
 
They don't know those exist?
 
It's shorter?
 
The more complete code is (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') which is much longer than isalpha(c).
 
I was talking about the case you mentioned, and jokingly
It could be slightly faster, I guess
 
I suppose so. But then why would anyone use the isalpha function?
 
2:10 AM
I think I am going to attempt a string printer in J
 
I've tried learning/using J but I find that I just don't like it very much.
 
It's like APL but with letters right?
 
In some ways
There isn't a one-to-one correspondence between the two languages.
 
I see
 
Personally I prefer APL. I find it more readable and more numerically-oriented.
 
2:14 AM
But how do you type it?
 
Custom keyboard, I've heard.
 
It depends on the environment you're using. I have the desktop version of Dyalog, which has keyboard shortcuts for the symbols. For example, `[ makes ←, the assignment operator.
Most environments also have a point-and-click menu for the symbols.
 
Dennis and I are communicating telepathically.
 
I am on mobile so I cant use inspect element grrr
 
2:22 AM
 
Ooh I think I thought of a language I could use
 
...
 
^
 
I mean... uhh... something less weird. :|
 
2:31 AM
Haha.
 
resists urge to post somewhat offensive meme
well very offensive
 
(Shhh, you're surrounded by mods. :P)
 
This chat gets real weird when I leave...
 
It's always weird. You just get used to it.
2
 
^
 
2:35 AM
I don't know what you're talking about. It's always perfectly normal when I'm around.
 
O rly
 
Rly
 
It's like that odd smell in the room you only notice after leaving for a while.
 
So... you guys smell?
 
it's always weird
probably partially because of me
 
2:37 AM
No, even the dankest of memes are normal in comparison to the collective 19th byte.
 
Alex, you just wasted a perfectly good opportunity to shove all the blame onto someone else.
Now I can only judge by the creepy "I love Dennis" images and come to the conclusion that the weirdness comes from you :P
 
and Martin says you'd make a good mod
hmm
 
Me?
 
yeah
 
Maybe I would, but I'd rather not find out :D
 
2:41 AM
Oct 11 at 18:00, by Martin Büttner
Doesn't sound like much of a nightmare. If I was forced to give up my diamond I'd want him to have it.
 
Aww, where are the "I love Martin" pictures when you need them?
 
Right here
 
Huh. I shouldn't find it strange that you have instant access to these things. But I do.
 
Here's my secret: Google Images search for "love ___" where the name goes in the underscores.
 
...
 
lolwut
 
(The quotes aren't intended to be included in the search)
 
Well fine. Apparently nobody loves me anyway :( google.com/…
 
Geo Bits
 
2:48 AM
Strange. That's definitely me, but I don't ever remember signing up for that site.
 
@Geobits Also, I thought it was Baalzebub? (Or at least, that's an enemy in Nethack :P)
 
According to Google it can be spelled both ways
 
@Doorknob This looks delicious
 
That doesn't make them both equally right.
@AlexA. Hell yea it does :D
 
2:50 AM
Of course. Just like spaces are superior to tabs.
 
Did nethack teach you that one, too?
 
Nope, just common sense. :P
 
Common sense gets a lot of things wrong...
 
314
Q: Tweetable Mathematical Art

Kyle McCormickInteger math can generate amazing patterns when laid out over a grid. Even the most basic functions can yield stunningly elaborate designs! Your challenge Write 3 Tweetable (meaning 140 characters or less) function bodies for the red, green, and blue values for a 1024x1024 image. The input to ...

 
Boom!
 
2:50 AM
That's amazing stuff there.
 
@Geobits Did you take the picture?
Udon?
 
No, I don't typically take food pictures.
But udon was one of my favorite foods in Japan. Can't find a place here that makes a decent bowl :(
Florida isn't much good for Asian food in general.
 
I've made my udon and it was really good. (It was actually my first time having udon so I don't have much to compare it to though.)
 
rip
hey guys
 
@Geobits Washington has excellent Asian food.
 
2:53 AM
u done talkin about udon?
 
NO
NEVER
UDON FOREVER
 
o> quack
 
you missed the most amazing opportunity for a perfect pun
 
@El'endiaStarman Yep, lots of good stuff in that one. I think Martin did five or six for it himself.
 
udon talking about udon?
 
2:54 AM
shortest quine I can do in JS that doesn't indirectly read its own source code is this ((x,a=String.fromCharCode(39))=>console.log(x+a+x+a+")"))('((x,a=String.fromCha‌​rCode(39))=>console.log(x+a+x+a+")"))(')
 
@AlexA. I've heard that, but was never there more than a week at a time. Never found the good local spots.
@Dank Have you checked the various posts for JS answers?
 
they all cast a function to a string
which I think counts for indirectly reading own source
 
@Geobits Let me know the next time you head up here and I'll give you my recommendations.
 
Hmm. I don't have too much reason to visit now. It used to be a nice spot when coming back/forth from Japan. But, I'll let ya know if I do.
 
@Geobits Well don't you drop Minibits off at his mom's place up here?
 
2:58 AM
No, I drop him off at the airport. He loves flying by himself :D
 
:)
 
minibits?
 
Minibits.
 
My kid has been nicknamed, apparently.
 
I have all sorts of nicknames for him.
 
2:59 AM
Well that's not creepy at all...
 
Minibits, Geobytes, Geoqubits, Dijon...
 
Anyone want to attempt this challenge my friend sent me: Make a program that will calculate how long it will take a computer to calculate how long it will take it to calculate (by hand) time passed to read the source code character by character.
 
@Geobits All things I've said in here.
 
@DankMemes He's on the bottom left here: codegolf.stackexchange.com/q/50299/14215
 
@GamrCorps Closed as too broad
 
3:00 AM
@AlexA. $;"uhh"
 
@GamrCorps closed as too meta
 
@quartata wot
 
@Geobits bottom left?
 
Your nicknames for Geobits's kid
 
In the grid of images. Oh screw it:
 
3:02 AM
ohhh
lol
 
That's his downvoting face.
5
 
This was taken in broad daylight at a park, too. His serious demeanor has drained the light from the surroundings.
 
Dammit I was just about to say that too..
 
Either that, or my shutter was set very fast. But more likely the light-draining thing.
 
looks more like this ^ to me
 
3:04 AM
I'm fairly certain that Geobits' son does not look like Barack Obama.
 
^
 
I only rate that meme at 20% dankness.
 
Dammit I didnt mean to caret your post
And I cant delete on mobile apparently
 
yeah
I usually do request desktop site
 
@quartata So you'll forever agree that Geobits' son bears no resemblance to President Obama.
 
3:06 AM
Hmm. I know ChatSEy lets you do it on Android. The mobile site is pretty terrible for chat.
 
^
 
it's a trend with a lot of sites not to have any features in their mobile version
 
SE is clearly more about following trends than being usable.
 
Stats.se is for sure.
 
I am on a Kindle. Not a Kindle Fire, a Kindle Kindle.
 
3:07 AM
@Geobits In what way?
@quartata Kindling for a fire?
 
@quartata Oh good lord. People actually browse on those things?
@AlexA. It's a pun?
 
They do when they forget their phone
 
@Geobits I don't get it
 
Stats, trends, etc... I didn't say it was a good pun. They can't all be.
@quartata In my experience (sample size = me), people just skip chat if they forget their phone.
 
I just went to get a coffee and I wanted to check ony my challenge and then suddenly chat beckoned to me
 
3:12 AM
Kindle :P
do they still give you free 3G?
 
ppcg is like crack for sailcats
 
My Kindle touch still gets it.
 
cool
jailbreak it
then use it as a hotspot
 
Oh wow. Yea, I'll just use my phone for that, too.
 
but it's free
:P
 
3:13 AM
Free and incredibly slow.
 
Well gotta go
 
@Geobits :O I get it now
 
The best puns are the ones you have to explain :(
 
I think that's true, but I might be biased because people often have to explain jokes to me.
 
3:18 AM
aw cmon no one appreciates my dank memes :(
yet I get 2 stars when I say "brb dinner"
 
@AlexA. Stop that
 
this?
 
Stop having people explain jokes to me? :(
 
@ThomasKwa I took you up on the challenge you issued: codegolf.stackexchange.com/a/60864/2867
I golfed off 4 bytes from a 2-week-old, +6 voted answer of yours.
 
That's nuts.
 
3:22 AM
wut
 
wat
 
my explanation of the code probably doesn't make much sense
it assumes that you understand the original
 
|:o
 
nice
 
0
Q: Restaurant Shorthand

Hand-E-FoodGoal Sometimes dinner menus can have long winded names. It's much easier for the waiter to write an abbreviation that unambiguously identifies the dish. For example, given this list: beef burger chicken burger chicken nuggets The abbreviation c n matches chicken nuggets. The abbreviation bu...

 
3:29 AM
Well, it's official: @Dennis golfs Julia now too. He will soon take over the world.
 
The parens are required in the code from my comment, which is 2 bytes shorter. :P
 
@AlexA. ಠ_ಠ
 
ᕦ༼༎ຶ_༎ຶ༽ᕗ
 
@PhiNotPi A crying lobster shaking one fist and snapping its claw?
 
@Dennis Apparently, Julia auto-casts booleans to integers, but not integers to booleans. Not sure what's the logic behind that...
 
3:37 AM
Boolean casting should be the logical choice amirite?
 
@Dennis They're not, I tried.
 
@AlexA. With the code from my comment or the code you used in your latest revision?
 
Parentheses around the if condition are never required in Julia.
If that's what you're talking about.
 
In if n>9 d=1, they're not. In if(d=n>9), they are. (The latter being the code I suggested in my comment.)
 
Wait what
 
3:43 AM
@DankMemes So far, I knew the C approach (no actual Booleans, non-zero integers are truthy) and the Java approach (integers cannot be used in conditionals, 1+(1>0) is a type error). Both approaches make sense to me (although I prefer the first), but Julia chose a weird mix.
 
interesting
make Julia++ where you define it as you want
 
Jules?
 
@Dennis What about Python's "they're pretty much interchangeable"?
 
@AlexA. no, I was writing games for my calculator, and golfing their source code so I could fit more of them on the device at the same time.
golfing is serious business when you've only got 28kB of storage to work with
 
@Dennis I considered this name for a golfinated Julia. :P
 
3:45 AM
lol
 
Why not Juliet?
 
That's already a thing
 
D:
 
Yeah :/
 
\:
is there a Romeo too?
 
3:46 AM
Dude, tofu is good.
 
@El'endiaStarman That works as well, I guess.
@AlexA. APL frowny face?
 
I don't like how python doesn't auto-cast though
 
@Dennis Yes!
@Dennis They do type promotion but not demotion. So logical -> integer but not the other way around.
 
Which is weird IMHO.
 
@AlexA. as food, yes
 
3:49 AM
What else do you use it for?
 
Mattress
 
Clothes?
 
@AlexA. to describe unrecognized codepoints
that show up as a blank square
didn't we go over this already?
 
Oh right
 
@AlexA. wat is dat
 
3:50 AM
Your browser should grow up and learn that APL symbols are necessary
@DankMemes Lady Gaga's tofu dress.
 
rip
 
@Dennis Joules?
 
@ZachGates No
@DankMemes ?
 
rip
 
@ZachGates kg m^2/s^2
 
3:51 AM
Jules Verne
 
Joules Vern
 
@Calvin'sHobbies I know /:
just offering an alternative
 
Jowls Barn
 
wat
how did it get to "barn" now?
 
How didn't it get to "barn" now?
 
3:52 AM
Mini-challenge: draw all 4 variants of the slanty mouth guy, space separated in any order. e.g. `\: /: :/ :\`
 
`\: /: :/ :\`
lol
 
R, 20 bytes: cat("\\: /: :/ :\\")
 
"\: /: :/ :\"(O).
 
Darn cats
 
Barn cats
 
3:54 AM
TI-BASIC 13 bytes "\: /: :/ :\"
actually
not sure how escapes work in tibasic
 
I find it funny how no one is bothering to golf the input string. :P
 
php 11 bytes: \: /: :/ :\
 
Actual cats: Only byte if you pyt them the wrong direction.
@El'endiaStarman I would but effor
 
I think that attempting to do so would be longer than just using it directly. :P
 
Yas
 
3:57 AM
does anyone know how escapes work in TI-BASIC
I actually can't find anything on it
 
@DankMemes Do escapes exist in TI-BASIC? I don't think they do.
 
There is no escape from TI-BASIC.
 
How do you do a double quote then?
 
ah pulled out my calculator and figured it out
double quote
so my entry is good :P
 
@Calvin'sHobbies I have a feeling that this might be a near dupe of the challenge you did where you golf usernames. Do you agree?
 
3:59 AM
0
A: Sandbox for Proposed Challenges

VɪʜᴀɴReverse and Invert your Code quine code-golf Challenge In this challenge. You'll be writing a program / function which will output or return it's own source code, reversed and inverted. First, each character should be converted to it's character code. Then, that should be converted to base-2....

 
@AlexA. It looks similar, but I haven't looked close enough to say for sure
 
deflating the string actually increases the byte count by 2
 
@Calvin'sHobbies Okay thanks
 
'Nother challenge: Shortest code where escaping/unescaping one character in a string (a char that normally has to be escaped like ") outputs "yes" in one case and "no" in the other. No errors allowed in either case.
 
...considering that Minkolang doesn't do any escaping of characters in strings, I don't think I can even answer that. :P
I am considering adding that, though.
It would allow me to do stuff like "|\n|" instead of "|"25*"|".
 
4:07 AM
No more backlog. \o/
 
@Dennis 👍
 
@Calvin'sHobbies Example input/output?
 
@AlexA. White rectangle?
 
@Dennis Nooo, it's part of the APL character set, how can you not see it? D:
Grade up
 
@Sp3000 No input. Output is yes if the character was escaped, or else no if it wasn't (or vice-versa)
 
4:11 AM
APL is just spaces and rectangles on my phone...
 
Can we choose the escaped character?
 
@Dennis >:O
 
I installed a GNU font with full Unicode support once, but it was really ugly.
 
D:
 
4:23 AM
s=""""\""""
print s and'yes'or'no'
@Calvin'sHobbies
 
Nice
(can't you do print""""\""""and'yes'or'no'?)
 
... ah yeah, that would work :P
Alternatively, Gol><>.
(backtick is the escape char)
... is CJam even possible? Not sure
 
y is cheat
 
4:39 AM
Because you don't need a closing quote at the end of the program (I think?)
 
Yeah :P
Less fun, but: print"\n"<" "and'yes'or'no'
 
But n isn't "a char that normally has to be escaped"
 
I thought that included \n, but I guess not
 
I mean like ", ', \. Maybe that's it
 
Ah, k
 
4:54 AM
@Dennis Came across something from much earlier while following a starred message, about automatic type casts between bool and int. It makes sense to me that a relatively safe language (which means one other than C/C++) would cast automatically from bool to int, but not the other way. The value of a bool can always be represented by an int without losing any information. The opposite is not the case, you generally lose information when casting an int to bool.
Only doing automatic casts that don't lose information seems like a sane policy.
 
You've understood the rationale of the Julia developers. :D
 
If I designed a (non-golf) language, I think there would be absolutely no automatic type casts.
 
Oh gross, so 3/4 wouldn't return 0.75 if 3 and 4 are integers?
 
@RetoKoradi I guess. Verbosity annoys me. Even before I knew code golf was a thing, I always tried to keep my code as short as possible.
 
@AlexA. That's actually the case in most languages.
 
4:59 AM
@AlexA. 3/4 is 0 in every self-respecting language.
 
@Dennis ...I guess I don't know any languages that respect themselves. :/
 
Py... Py... Py... hangs head in sadness
 
@AlexA. In the languages you are using, how do you do an integer division?
 
C, Java, Python 2, CJam, GolfScript, Bash, ...
 
@RetoKoradi In Julia it's ÷, R it's %/%.
 
5:01 AM
In Python 3 it's //
 
APL is the exception. APL has built-in magic for floats.
 
@Dennis Magic as in nothing really has a set type except for literals?
 
Nah, that's the usual crap. In APL, can return true even if the numbers aren't equal. It does what you want it to do, not what it should.
 
Haha
 
Never check floats for equality is true for all languages I know. Except APL.
 
5:05 AM
ngn/apl implements it as equality to within a tolerance IIRC
 
IIRC, ngn/apl does it wrong (as you'd except from a JS implementation). Dyalog/TryAPL has all the magic though.
 
Why would that be wrong? I think that's a reasonable way to test for "equality" of floats.
 
When would strict equality of floats ever be useful?
 
^^ only that
 
^
 
5:09 AM
@Dennis Then I don't understand what you mean regarding Dyalog. What magic are you talking about with floats?
 
Floats don't have to be equal to be considered equal by Dyalog. If they're supposed to represent the same number, returns 1.
(Without looking at the source, that's all I know.)
 
(You can't look at the Dyalog source unless you work there. :P)
@Dennis What do you mean they're supposed to represent the same number?
 
Sucky implementation where testing floats for equality is useless: ngn.github.io/apl/web/#code=0.3%20%u2261%200.1%20+%200.2
Built-in magic that guesses what the programmer had in mind: tryapl.org/?a=0.3%20%u2261%200.1%20+%200.2&run
 
@Dennis I always thought that the "don't compare floats for equality" was an oversimplification. While it's certainly true that cases where this makes sense are very rare, there are similar dangers in any float comparison, not only for equality. Take the kind of for loop commonly written by beginners: for (float t = 0.0f; t < 1.0f; t += 0.1f). No comparison for equality in this code. Still just as wrong.
 
Beginners write loops with a float loop index? o.O
 
5:19 AM
@RetoKoradi Well, at least you don't get an infinite loop with <. :P
 
Yep, seen quite a few SO questions where people stumbled over that.
 
@AlexA. In C, perhaps not. But in any language that auto-promotes to float...
 
@Dennis Or languages like R where a lot of people don't even know that there is an integer type.
 
Well, it's kinda late here. Good night, y'all!
 
Good night!
Really though, I rarely see people use integer loop indices in R. It's always for (i in 1:5) rather than for (i in 1L:5L) because that's both annoying and not obvious.
I've pretty much only seen integer loop indices in the R source code.
 
5:27 AM
@AlexA. Want to see some interesting for loops? stackoverflow.com/questions/26536570/…. Not only in the question, but they are still also in the accepted and most highly voted answer.
 
3 votes isn't that high..
 
Well of two answers, one of which has 3 and the other has 0, 3 is the highest voted answer.
 
3 is actually pretty good for these kinds of topics.
 
Yeah, anything above 2 for me on SO is like "whoaaaa I must be a genius"
(I actually have the Unsung Hero badge on SO because I would often be the only answer and have it accepted but have 0 score)
 
@ThomasKwa By the way, I think you are a really good TI-BASIC golfer.
 
5:31 AM
^
 
I only have 6 SO answers with 10 upvotes or more, out of 1100+. I guess I should find more popular areas...
 
My highest voted answer has 8 and the rest have ≤5.
 

« first day (1720 days earlier)      last day (3115 days later) »