« first day (1872 days earlier)      last day (2973 days later) » 

5:00 PM
@TimmyD hahaha
 
Thoughts on this input method?
@NinjaBearMonkey Please revert if you disagree with my edits
 
I don't think it should be a valid input method.
In most cases it implies a snippet in a REPL environment
 
I've always justified it because it looks like CLAs
 
The case of TI-Basic isn't really that special: it has Input and Prompt which are the "normal" ways of taking input
 
True
 
5:11 PM
I think the <number>:prgmA thing you have in there is misleading too
 
Why?
 
I think people who are just skimming are thinking that's like passing the number to the program.
: is like a semicolon though.
 
Yes
TI-BASIC doesn't have subroutines or local vars though, so it's common to pass arguments to subprograms like that.
 
I know.
 
I've done it probably dozens of times
 
5:13 PM
I personally think it would be better if you showed it like this:
1337
prgmA
 
Then again, there's a difference between the convention and the features of the program
If this is ruled invalid I'll need to change like 40% of all my answers
 
Really? I personally thought it was pretty traditional just to use Input
 
@lirtosiast Meta consensus isn't retroactive.
 
...I don't even use Ans when I'm doing non code golf things.
 
@Dennis Oh, good
There have been a few code golf contests on TI-BASIC forums where Ans was the input method
 
5:19 PM
Hm, OK.
 
For example
Wait no!
That one used Input
^ That one used Ans
 
Hey, CJam!
> Runer112
Boy haven't seen that username before
Looks like PPCG has gotten its hooks into other places
 
Can I define a new language if I post a transpiler in chat?
 
Uh... what exactly do you have in mind?
 
gist.github.com would be better
 
5:25 PM
Why not just post the transpiler on Github?
ninja'd
 
I don't have one
 
fix that :P
 
Signing up takes like 5 minutes and then you can actually update it
 
I will eventually
Will it be valid though?
 
I... guess? I mean, the transcript is permanent
It's not exactly the most convenient place to store it...
 
5:26 PM
Lay it on us!
 
I hereby define TI-ALKALINE to be the result of the TI-BASIC program generated by lambda x:b'\xDC\x41\x3F\x41\x3F' + x, where x is the source code as a Python bytes object.
So I can use Ans again.
 
ಠ_ಠ
 
It's like everyone who voted on this site is an @Alex
 
5:37 PM
wait was Ans outlawed? D:
 
It's at +5/-8; scroll up
so it'll probably be outlawed
 
D:
That's BS
I've always used Ans as input even in non codegolf!
 
5:55 PM
4-1 for AlphaGo!
(I'm probably not the first person to say that today... but I forgot to check until now...)
 
Someday I bet we'll learn "Martin Büttner" is just another one of Google's AI projects
No human could be that good at PPCG
 
What is Dennis then?
 
Dennis is a Terminator.
 
i.e. a menace
 
@Zgarb Dennis is the Terminator.
2
 
6:01 PM
@lirtosiast How to make a text version of the program?
 
@zyabin101theHated What?
Write it to a file saved as .8xp, then use TI's free TI-Connect software to transfer it to a calculator.
 
I don't have a TI :D
 
Or upload the file to Cemetech's free tool SourceCoder
 
@MartinBüttner Do you know if the google team was allowed to tweak the AI between games?
 
no I don't
 
6:05 PM
@HelkaHomba I was wondering that too.
I hope not
 
If they configured it correctly, couldn't it update itself between games? I mean, that's kinda the basis of machine learning anyway.
Humans can update their behavior between games.
 
Right. I mean fixing intrinsic bugs in the algorithms/code
 
or updating it to let Lee Chang-ho play the moves remotely instead ;)
 
Hah.
> We seem to be experiencing Internet connectivity issues. On an unrelated note, the computer seems to be taking an inordinate amount of time to make moves.
 
What does squaring a string mean to everyone? A literal square or something else?
 
6:13 PM
concatenating it to itself
 
"abc"**2 == "abcabc"?
 
oh, are you talking programming language semantics?
 
@lirtosiast I am not sure about your version, but mine does have local variables, using the local keyword.
 
in that case, I'd probably expect multiplication to do that
 
@flawr My version is the 84+ (Zilog Z80) series
 
6:14 PM
@MartinBüttner Yep, and yeah; that's the multiplication behavior I'd expect
 
abc
bcb
cba
 
Yours is either the TI-89 (68k processor) or nSpire (an ARM processor), both have different dialects.
Also Ans only works on the 84+ series
 
@ZachGates what is "abc"*"abc"?
 
@ZachGates Add a string s to itself s times. But s is a string not a number, so there is no inherent meaning
 
@MartinBüttner Oh 😐 Thanks. I've already written the behavior haha
@MartinBüttner return sum(map(ord, self)) * sum(map(ord, value))
 
6:17 PM
You could say concatenate len(s) copies of s together
 
btw everyone, I believe we're up next with our election. I think it'll either start next week, or in about 4 weeks. (I don't have any official word on this... just looking at the ongoing elections and other recently graduated sites)
 
Do we need any new mods?
 
Speaking of elections, have we figured out how to celebrate Best Of 2015?
 
@TimmyD Beer and donuts.
 
Boo, beer.
 
6:22 PM
@TimmyD You can replace it with raspberry sirup then.
 
@MartinBüttner What of community ads? :I
 
"abc"**3 == 7471182096 LOL
 
@HelkaHomba don't know.
@TimmyD oh that...
@TimmyD wat.
 
Beer is gross.
 
@flawr I don't think that's how it works :P
 
6:24 PM
I have managed to find precisely one beer that I can tolerate a glass of, Duchesse de Bourgogne.
 
@MartinBüttner That was a serious question=)
 
@TimmyD you're from the US, aren't you? :P
 
I am. But even I don't classify standard US pisswater as "beer"
 
@flawr Maybe not but having the elections is good form (and puts us a step closer to true graduation)
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I never use Ans like that. I always use Prompt
@lirtosiast rofl k
 
6:27 PM
OK, I figured out what behavior powers of strings should have. Each character's ordinal raised to the power (as an array).
 
I feel like people who constantly trash US beer haven't had US microbrews
 
@HelkaHomba yeah, plus, we want Sheriff badges.
@KevinW. I'm choosing to ignore them when making fun of US beer, because then it wouldn't be fun any more.
 
@MartinBüttner Some other users, who raised a lot of helpful flags, want the Sheffy badges. /s
 
I think you're talking about Constable?
 
@KevinW. I'm from Minnesota, which has a fantastic microbrew scene (so I'm told), but they're still eww, beer from me.
 
@TimmyD I'm also in MN (originally from WI) and they both have very good microbrew scenes
 
@CᴏɴᴏʀO'Bʀɪᴇɴ why does oration strip ! . ... and stuff from the end of a line?
 
@KevinW. The only US beers you can get here are Miller and Budweiser. Both are bad.
 
Budweiser is Czech...
 
What?
 
6:31 PM
^^^
 
I thought...
looks like the Czech Budweiser is different from the American Budweiser
 
Anheuser-Busch I thought got bought out by some Belgium company.
 
Both are pretty terrible though
 
@MartinBüttner
We need four X number of approvals from people.
 
0
Q: Make some noise-cancelling headphones

wizzwizz4I am in desperate need of some ear defenders, so I can program in peace. Unfortunately, I don't have ear defenders. But I do have a pair of headphones, a microphone and a microcontroller, so I thought I'd make some noise-cancelling headphones. However, there is one tiny problem. I can't program ...

 
6:35 PM
@Dennis I think I've had Sierra Nevada IPA which was pretty good.
 
They can write a Go AI but they still use the announcer guy to copy the game as it goes with a physical board..
 
Our assistant professor had a pretty good theory about match 4 btw... AlphaGo probably just because so good that it learned the concept of pity.
 
It's punctuation. All good grammar is ignored for parsing.
@AquaTart I use it when making pseudo-subroutines to be called by other programs.
F***ing study hall teacher won't let anyone leave the class and I have to take a test.
 
@MartinBüttner rofl
@CᴏɴᴏʀO'Bʀɪᴇɴ So the regex is unnessacary?
Just replacement?
 
@EasterlyIrk Which regex?
 
6:42 PM
The one in oration that strips punctuation.
I am trying to get it working in a browser.
 
Oh! It's replacement iirc
Can I see your work? :3
 
@MartinBüttner OK, after reading why there are two beers with the same name, I like US Budweiser even less...
 
Not ready yet, skulpt doesn't like regex.
 
What is skulpt?
 
6:43 PM
Needed to remove most of it, and it doesn't work yet.
Skulpt=JS interpretation of python
 
oh, cool
It doesn't like regex?
 
js+python? Count me out :P
 
@EasterlyIrk Why would anyone do that to poor Python?
 
roflmao
I know.
 
@Dennis s/poor/wretched
 
6:44 PM
But it is for the good of esolangs.
@CᴏɴᴏʀO'Bʀɪᴇɴ your contribution:
\s+(?:um+|alrighty?|sh(?:oo|i)t)\s?(?:[,:]?|(?:[!.?])+)\s*
Explain that regex.
 
@EasterlyIrk You should use Brython instead
 
Remove all filler words.
 
Feb 7 at 20:05, by Dennis
@CᴏɴᴏʀO'Bʀɪᴇɴ s/Python/JavaScript/
 
@Dennis error: python not found in text query
 
@AquaTart Might.
IDK
Maybe when I give up on skulpt, does brython have the re module?
skulpt only has match,findall, and search.
 
6:49 PM
@EasterlyIrk One or more spaces, followed by any one of (um, alright, alrighty, shoot, sh!t), followed by an optional space, followed by (a , or a : OR one ore more of (!, ., ?), followed by an optional amount of spaces.
 
Can I just remove um, alright(y), shoot and sh!t?
 
cooltatnks
 
But it's s/!/i
 
@EasterlyIrk Brython pretty much has everything except for a few small things
 
6:50 PM
I'm investigating a false positive spam complaint from one of our users (ham that was tagged as spam). And I get to the From field ... ★*name redacted*★ [mailto:*redacted*@gmail.com]
 
With stars around it?
 
With stars
 
jeez
I bet he has internal frames in the message too
And 50 MB attachments
 
@mbomb007 I posted the zigzagification challenges
 
@MartinBüttner \o/
 
6:52 PM
One's at +7 and the other is at +0, haha
 
¯\_(ツ)_/¯
 
@TimmyD How can you even make a email like that?
I WANT ONE
 
@TimmyD fortunately this chat room has trained you that stars are meaningless
9
 
the from field is arbitrary afaik. it's fairly easy to spoof emails.
 
TIL Gamestop has terrible customer service.
 
6:54 PM
I learned that long ago. >.<
 
@AquaTart No (thankfully) ... instead, it's all span and div and custom CSS embedded into the message. Not counting the CSS, his signature, just the text alone, is 6kb ...
 
@TimmyD oh dear
 
So I got an email confirmation about an order placed with PowerUp points (that I didn't place). Some vinyl figure being shipped to a Johnny Tang in DC. So, I changed my password, called them up, and they told me that there's nothing they can do about it at all. Cancelled my membership instead.
 
What would an array squared be? An array of n length filled with the initial array, where n is the length of the original?
 
6:56 PM
@Geobits Wow, nice customer service.
 
@Geobits Huh, the people at my Gamestop are pretty nice usually.
 
[[x,y],[x,y,y,x]]
@ZachGates ^
 
I've never had to return anything though...
 
@ZachGates what is [a,b,c]*[x,y,z]?
 
6:57 PM
@AquaTart Sure, the people at the local one are fine. Calling customer service with an issue is totally different.
 
@Geobits Ah.
 
@Doorknob 8/1 \o/
 
haha
 
@MartinBüttner zip([a,b,c], [x,y,z])
 
hm okay, doesn't seem useful to make it consistent
how about [a, a, b, b, c, c]
(repeat each element)
 
6:58 PM
@MartinBüttner Yeah, especially in larger powers
 
that could also be useful for strings
 
Duping each char/elem? It falls apart for powers > 2.
 
El'endia has a chart for this kind of thing for Pytek. One second...
 
a**n would repeat each element in a n times
 
Ah ok, gotcha
 
7:00 PM
9
Q: Zigzagify a Matrix

Martin BüttnerAs part of its compression algorithm, the JPEG standard unrolls a matrix into a vector along antidiagonals of alternating direction: Your task is to take a matrix (not necessarily square) and return it in unrolled form. As an example: [1 2 3 4 5 6 7 8 9 1 2 3] should yield [1, 2, 5, 9, 6...

1
Q: Reconstruct a zigzagified matrix

Martin BüttnerAs part of its compression algorithm, the JPEG standard unrolls a matrix into a vector along antidiagonals of alternating direction: Your task is to take the unrolled vector along with the matrix dimensions and reconstruct the corresponding matrix. As an example: [1, 2, 5, 9, 6, 3, 4, 7, 1, 2...

 
@MartinBüttner That's like what I suggested but zipped and flattened. I like it
 
in Pytek, 2 days ago, by El'endia Starman
[1,2]*2 => [1,2,1,2]
[1,2]*[1,2] => [[1,2], [1,2,1,2]]
[1,2] \each(*) 2 => [2,4]
[1,2] \each(*) [1,2] => [[1,2],[2,4]]
[1,2] * 1.5 => [1,2,1]
[1,2,3,2] / 2 => [1,2]
[1,2] * 1i => [[1],[2]] #rotation!
[1,2,3,2,2,2] % [2] => [1,2,3]
[1,2,3,2,3] / [2,3] => 2
[2,3,1,2,3] / [1,2,3] => 1.666...
Obviously most of these only make sense for arrays of ints
 
arr / int splits an array into n sized chunks in Gogh
Is that what it does in Pytek or is it a slice?
 
7:05 PM
I think it's a slice.
 
@KevinW. Is that what I'm supposed to be learning? I don't think that lesson is sinking in...
 
....currently El'endia is the only person that knows for sure and he's in the mountains
 
@AquaTart It could be the first n/2 elements and last n/2 elements
 
@AquaTart what?
He has left us?
 
Hmm... is there a way to apply a function n times in Pyth? As in, the ? in f?5x -> f(f(f(f(f(x)))))
 
7:09 PM
@EasterlyIrk Uh, yes?
@Doorknob Reduce on +U4x and ignore the right argument? dunno
 
@EasterlyIrk
Also, change the friggin default font from TNR, this Oration, not interrogation.
 
What's wrong with the default font?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ dude the interpreter doesn't even work yet
 
@AquaTart Of the linked page, last link in the h1s
 
no styling until I end the erroring every 1/10th second
 
7:13 PM
@EasterlyIrk So? :3
 
@CᴏɴᴏʀO'Bʀɪᴇɴ
Don't quote xkcd at me.
 
.-. do you have a local testing page?
g2g bai bbll leaving school
 
bai
and no.
oops
who cares
 
@Doorknob What is this for?
Just out of curiosity.
 
Martin's zigzagify
0
A: Zigzagify a Matrix

DoorknobPyth, 24 23 bytes -.n.e_W!%k2b.T.e+m0kbQ0 Q input .e enumerated map (b = item, k = index)... +m0kb prepend k zeroes to b, now we have [1 2 3 4 0 5 6 7 8 ...

 
7:17 PM
Ah.
If it doesn't exist yet "apply function n times" would be nice
.W could do it with a counter variable but mehhhh
 
@EasterlyIrk Doesn't work on Chrome on Android 4.4 ;(
 
@zyabin101theHated It doesn't work at all.
Have you not read the chat.
 
@EasterlyIrk ?
.W?
 
Not that.
Read the message he replied to.
That link.
 
7:24 PM
@EasterlyIrk v_____v
 
It's okay.
 
Fact: in Pyth, h stands for head and t for tail.
 
I forgot how weird Game Dev chat gets sometimes....
I'd quote but
 
QUOTE
 
no better not
 
7:32 PM
ooooh I have a really evil idea
 
oh god
oh god i looked
 
what if I gave output in my Pyth submission as a flat string, 12345
then instead of padding with zeroes I could pad with empty string, and not have to remove them
 
@EasterlyIrk dammit I warned you
 
true
 
@Doorknob Oh nice, that would work.
 
7:34 PM
AW COME ON
my lambda's using k...
 
use a different letter
 
...I was just about to say .e uses k
 
which means empty string is "", and ss.eu_Ghkb.T.e+m""kbQ is the same length
 
@EasterlyIrk Can't.
 
@EasterlyIrk that's not how Pyth works
there's ; but there's no double-;
 
7:34 PM
oh.
 
.e is b and k right
 
yeah
 
bummer
 
oh also s is sum if the array ends up not having empty strings in it haha
 
7:43 PM
If Pyth ever does expand to a non-ASCII character encoding I'd love to see the constants like "" be separated from the lambda variables
Hey @Fatalize the Brachylog room was unfrozen
 
@AquaTart it got frozen for a reason: one person uses this language :p
 
I'd like to help change that
 
7:58 PM
@AquaTart There are two ways that can be read. As a promise to help increase the number by advocating its use and using it yourself ... or as a threat to reduce the number by ensuring they can never use that language again. :D
 
I thought it was clear he meant the latter ;)
 
the biggest obstacle on the way to Retina 0.8 seems to be rewriting the docs...
 

« first day (1872 days earlier)      last day (2973 days later) »