« first day (1903 days earlier)      last day (2942 days later) » 

1:00 PM
basically, if you want to do str.charAt(5), its O(n)
 
Eww
 
@NathanMerrill No, of course not. :-P
 
for a good reason
 
@Geobits Ewwww.
 
all of their strings are UTF-8
 
1:00 PM
Breaking up text into lines is painful, so there is the (para strings-and-picts...) struct.
 
@NathanMerrill Ditto with R7RS.
string-ref is O(n) in R7RS.
for much of the same reason.
 
It takes up strings and picts and arranges them into a paragraph.
It puts up spaces between seperate strings. That excludes punctuation at the start of the string.
It aligns text to the left.
The (frame pict) function wraps a pict in a frame.
So you can distinguish individual picts, for example, quotes.
 
wait. What if I represent UTF8 text as a list of UTF8 characters
then str.get(4) is O(1), right?
 
The para struct has an option, #:align 'center, that centers the text.
Yes, there's also #:align 'right.
The para struct takes up 2/3 the width of the slide, but you can configure the width using #:width.
Did you remember the hc-append function from the Quick tutorial?
There are six such functions.
vl-append, vc-append and vl-append append picts vertically.
ht-append, hc-append and hb-append append horizontally.
hbl-append aligns text baselines. htl-append aligns single lines.
There is also the (l|r|c)(t|b|c|bl|tl)-superimpose function.
titleless-page is the same size as the body of a titled slide.
Functions exist for basic styling. b?i?t matches t and all the three basic styling functions.
But there's the text function to change the font, size and even the angle.
For Racket code, (require slideshow/code) to stylise it automatically.
Use the code function.
And finally, the colorize function to colorize most things, including text.
A colorize applies to sub-picts that don't already have color.
 
cat
1:19 PM
@AshwinGupta Did you figure out how to install chocolately?
Hey, it's Racket-talk, I like!
 
@ChrisJester-Young I'm finished with basic concepts.
We'll meet tomorrow for practical slides, okay?
 
cat
@ChrisJester-Young I wanted to know, what do you use for inline code documentation? I like Python's docstrings, but it seems like I have to craft a whole 'nother Scribble file just for the documentation
 
5
A: Stable Game of Life

KatenkyoLua, 531 509 488 487 464 424 405 Bytes Who wants a massive submission? \o/ Edit: Improved it, but don't know how to golf it anymore, so... explanations are coming comments added :) Saved ~60 bytes with the help of @KennyLau function f(m)c={}t=table.concat::z::c[#c+1]={}p=c[#c]a={}for i=1,#...

@Katenkyo
"#c>i and-1or i-1" -> "i%#c-1"
 
Alright this stinks. I can't see answer previews and trying to post an answer gets me a CAPTCHA prompt. Has this been happening to anyone else?
 
@Sherlock9 not for me
 
1:29 PM
It might be that my abysmally slow Internet connection isn't loading all of the Javascript... or something. I don't know
 
1:39 PM
Testing link syntax. Excuse me
Alright! Remembered it on the first try!
 
Markdown's link syntax is the worst thing ever invented
 
code-jam today!
 
o_O
I have to put Aggregate a "Friends of PPCG" leaderboard for Round 1a in my TODO list. write write
 
cat
@QPaysTaxes Heads up: Your "serial" votes were not reversed -- thanks for 2k rep :D
 
Hunh.
 
1:46 PM
Does anyone know how to add that leader-board-esque script to a question?
 
Good luck with the leaderboard
I don't think I'll be awake enough in class tomorrow for code jam :D
 
I've seen it done before and mentioned on Meta, just not sure how they did it
 
@Sherlock9 skip? its only 2 and a half hours
 
39
Q: Leaderboard Snippet

Martin BüttnerI've been using a stack snippet for a while to generate leaderboards for my simpler or more popular code golf challenges. I want to share the code for this snippet here so others can use it more easily as well. Feel free to put feature requests and bug reports in answers, or let me know in chat....

 
1:48 PM
@Maltysen Nah, I like that class, and I won't be able to wake up at 8 otherwise
 
> To use the leaderboard in your own challenge, simply copy the snippet and search for the global variable definition of QUESTION_ID and replace it with the ID found in the URL to your question and replace OVERRIDE_USER with your own user ID.
 
@Maltysen It's the early hour that's the problem, not the actual class
 
I have almost decided that the people here a lot are bots... :)
 
@Lembik Sounds like something a bot would say
 
1:55 PM
@Lembik No bots here, don't worry. (Except ElectionBot during elections)
 
@Fatalize :)
 
Bots are all in rooms like Beep Boop Maggot.
 
@NathanMerrill I read that recently.. it's very interesting but how can we use it to make challenges?
I feel some part of PPCG should be to show off new languages
 
[]()
 
1:56 PM
Another victim of Markdown's awful syntax
 
I like markdown. I was actually using asterisks to emphasize text long before I learned about markdown :)
 
I'm not sure what would be better (for chat that is). I certainly don't want to use html for it.
 
I wonder what better link syntax would look like
 
maybe we could add a bonus to challenges which is the year the language was invented :)
 
@Lembik Like the Good Old Suffix Vector?
 
1:57 PM
@NathanMerrill Fatalize appears to be only complaining about Markdown's link syntax
 
@zyabin101 what's that?
 
@Lembik Cue people making trivial variations on languages to get the "new" bonus.
 
@Geobits yes.. it wasn't a robust idea :)
 
15
Q: Good Old Suffix Vector

NᴮᶻInspired by an old manual... The challenge I define the ath suffix vector of b as the boolean list of length a with b trailing truthy values. Write a program or function that, given a and b by any means, returns the ath suffix vector of b by any means. Now this may seem trivial, but here is t...

 
anyways, there are almost no imperative dependently typed languages
the only one I could find was one that some students did for a research project
 
1:59 PM
@zyabin101 nice!!
@NathanMerrill Idris?
ah.. changed :)
 
yeah, my bad :)
and the research project only has a half-baked compiler
 
Sorry for the plug for my answers: this answer, this answer and this answer
 
so, on my drive to work today, it was snowing so hard, I couldn't see more than 20 feet, and they only had 1 lane open.
but literally 10 minutes later, it was sunny
and no snow on the ground
 
Does anyone knows how the leaderboard snippet works?
 
javascript
It looks for header tags
 
2:12 PM
changing the id of the question and the user makes it not display the "run the snippet" button
but if you don't it obviously doesn't point to the correct challenge
 
I'm a grown adult and I see cars smiling at me every day
cars are just happy (in general)
 
However there are exceptions
😠
 
2:53 PM
user image
2
 
@FryAmTheEggman Hahahahaha
 
If the next edit description isn't "And another one gone" I'll be very disappointed :P
 
:P
 
@Geobits D:
 
3:39 PM
what is the significance of the name "the nineteenth byte" ?
 
It's like the "nineteenth hole" in real golf.
I think there is a meta post where you can read how this room got its name.
32
A: Let's think of a creative name for our chatroom

dmckeeWell, the traditional generic name for the country club bar is "the nineteenth hole", which suggests The Nineteenth Byte or something like that.

 
haha, right on
 
@ChrisJester-Young Is there also a tennis ball?
 
@flawr No, Racket is not named after tennis racquets, but rather protection rackets.
 
3:48 PM
Rockets would be nice too.
Sprockets
 
Neither rockets nor sprockets are very criminal or otherwise dodgy concepts.
 
Team Rocket sprockets
 
Many Scheme implementations are named after that theme, like Larceny, Guile, etc.
 
OOh, now I get it.
Scheme
 
I have a public world of text, too. :)
 
cat
4:04 PM
@ChrisJester-Young I found that, but it still seems like a lot of typing. I found a function that mimics Python docstrings: github.com/antoineB/racket-examples/blob/master/docstring-like/…
Not sure I'd use it in production, however.
the scheme community loves puns
@Winny nice to see a fellow racketeer in tnb :D
 
@cat tnb?
hi, by the way :)
 
@Winny The Nineteenth Byte.
 
ah, thank you
silly me
 
@cat I was about to learn some scheme at some point. But now I'm trying to haskell.
 
cat
@flawr I should probably learn Haskell at some point, but I wanted to learn a Lisp, and Racket is really nice, not just to learn :P
 
4:18 PM
I'm away from my world of text. Tri to not dun mess up!
 
i have yet to become comfortable working with xml, html, json, and http with racket, however :(
every time i do it, i wish for python
 
@cat As far as I can tell Haskell is quite nice too. But I think that is generally a trait of many funcitonal languages=)
 
but then i need to spin off concurrent tasks, and i go back to racket :)
 
say i want to demonstrate that an answer is wrong. to do this i would like to copy-paste a series of commands and their outputs from my terminal. what is the proper way to paste this output in the comments of an answer? just like a link to a pastebin post?
or is there some sort of stackexchange feature i should use?
 
4:33 PM
if you search for a synonym of a tag, then it should auto-tag the synonym
 
pastebin services don't typically retain their content as long as SE retains its threads
 
@ardnew Really?
You can usually specify the duration.
 
I don't see the appeal in functional languages
I'm all for functional functions in languages
but requiring everything to be functional makes simple problems hard
 
And hard problems simple.
 
which is why I argue for functional functions
 
4:39 PM
@MarsUltor @Downgoat and other Git users - please try out aliases/.ganything. It has some Git aliases and I need it reviewed.
 
because then you get the best of both worlds :)
 
I think the problem when making a not so functional language with functional elements is that they become way less efficient.
Pure funcitonal languages allow for qutie good optimization in the compiler/interpreter.
 
theoretically, if functional functions only call other functional functions, it should have the same available optimizations
 
you're suggesting imperative language compilers are unable to support the same optimizations on functional constructs that functional language compilers support?
 
I'm not actually sure, but it makes sense to me
 
4:44 PM
@ardnew Yes.
I'm by no means an expert but that is about what I've read so far=)
 
well i don't know enough to disagree, but my knee-jerk reaction is that sounds silly
 
functional languages can be optimized because they don't have side effects
for example, if I call a massive function, and it returns the value 1
then next time I call that function with the same parameters, it won't actually execute it
it'll just return 1
(memoization)
compilers simply can't do that, due to side effects
 
Good job! :P
 
@Downgoat It was using another's premise :P
 
What? I tried to make nice things=(
@zyabin101 How is this messing up?
 
4:50 PM
9
Q: Do functional programming languages have more opportunity to do compile time optimization?

GulshanI was reading the book "Functional Programming for the Real World". It started with comparison between imperative and functional programming languages. And it stated how 'values' and 'expressions' in functional programming is different from 'variables' and 'functions' of imperative programming. F...

 
@flawr I'm just joking.
 
Good=)
 
@zyabin101 so wait this is global? so anyone can edit?
 
@cat But with you right here, I'm a racketeer, let's fly... (how does music symbols to indicate lyrics?)
@cat Same
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Yup, excluding grey areas in a few places.
 
4:54 PM
@zyabin101 oh. kay
 
These are owner (darker grey) and member (lighter grey) areas.
 
oic
I thought that was grey :/
 
But if you want to write in a member area - I'm announcing an appointment soon.
@CᴏɴᴏʀO'Bʀɪᴇɴ Ah, it's grey. Thanks
 
Hmm, two mysterious letters - TU - appeared in an owner area. Is that a bug?
 
4:58 PM
I don't see that.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ okay, now look in grey areas in my world of text.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Click one of the green plus signs to move to an area where I will hopefully explain this.
 
Green characters are internal links to places in the world of text.
 
5:03 PM
that's cool
 
Blue characters are external links to places anywhere on the Internet.
This includes SE chat rooms.
@HelkaHomba Did you see my world of text?
 
I'm following the arrow down and I see nothing >_<
 
@zyabin101 Yeah, how did you make the gray boxes and links?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ 3 or 4 days early, but I"M BACK!!!
2
:P
@CᴏɴᴏʀO'Bʀɪᴇɴ wtf
 
@EasterlyIrk why? :D
@EasterlyIrk it's @zyabin101's thing.
 
5:06 PM
@HelkaHomba In the menu, certain things can appear if you have access to them.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ convinced mom to give it back, but I have to go through every answer and make a list for her showing what I did.
 
There is the Make an area owner/member only option.
 
@EasterlyIrk Why?
 
so i can skip the "this is called microsoft word, you write text in it. this is a computer, you play TF2 and nethack on it." lesson in middle school next year
 
When you claim a world on an URL like yourworldoftext.com/~zyabin101/, you can configure access to these options.
 
5:09 PM
cool
 
To get a ~world, just register on YWOT.
 
@EasterlyIrk :D
you play tf2?
 
ish
used to
not anymore
@CᴏɴᴏʀO'Bʀɪᴇɴ did you write horny instead of here in that text thing?
 
GTG BAI
 
BAI
@EasterlyIrk >:| no
 
5:11 PM
BAI
@CᴏɴᴏʀO'Bʀɪᴇɴ somebody did
 
Who destroyed my box? :(
 
lol:
"so if you can't understand this video, you need to learn americanish"
 
5:20 PM
If she's kidding then haha but if she isn't then oh god.
 
bah, I found a better version
but I can't edit/delete
 
If you want to post another I can delete the other one for you if you want
 
I'M BACK
 
the channel has a bunch of other great videos
 
5:24 PM
@zyabin101 welcome back!
 
trying to make the WoT work autonomously from my browser
 
trying to setup auto live stream nethack game
 
Web of Trust?
 
World of Text
 
5:28 PM
isn't there an extension for that?
oh
 
hey we could set up a KotH in WoT
 
@NathanMerrill So apparently she's going to wreck John Cena.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I don't think it has an API.
 
@zyabin101 I know. I'm hacking it in.
 
5:30 PM
Has anyone in here been to every continent? strawpoll.me/7379545
 
@AlexA. have you seen her running out of gravity?
 
What. Also she wants to go to prom with Donald Trump.
 
^
@HelkaHomba no
 
@AlexA. and is pregnant with his baby :)
 
5:32 PM
wtf
10/10 very disturbing
 
And is "trouser fluid." o_O
 
wtf
lots of wtf
 
Ooh, someone's visited 5
 
Me. Never Antarctica or South America.
 
@HelkaHomba I've been off of the North American continent only once and it was to visit the UK.
 
5:33 PM
`I've only been to NA and Asia.
 
I have a neighbor who's been to all. He's a climber
 
@Geobits Go visit Dennis and add South America! :P
 
Although I might visit Europe soon.
 
@NathanMerrill Has he climbed on every continent?
 
North America and Ireland :D
 
5:34 PM
yeah
 
I was supposed to go to Peru once, but it got cancelled :(
 
@NathanMerrill That's awesome
 
that's why he went to antartica
 
New life goal: visit each continent.
 
I'm fine not visiting Antarctica
A friend of mine is a geologist and lived there for a couple months.
 
5:35 PM
Precise ones visited poll - strawpoll.me/7379582
 
Dang, misclicked Antarctica :/
 
@AlexA. I didn't realize that was a point of interest for geologists
 
Apparently ¯\_(ツ)_/¯
 
I guess you could learn about ice levels during warmer ages?
 
5:36 PM
^
And climate change people
@CᴏɴᴏʀO'Bʀɪᴇɴ :D
ohwait been to UK
dangit
 
@NathanMerrill It's the world's bum
 
._.
 
(@Sp3 need some aussie representation strawpoll.me/7379582/r)
@AlexA. Well not always really
 
@HelkaHomba :O
 
@HelkaHomba Who the hell made this lovely map
This does not offend my intellect
 
5:39 PM
oooh, you're right. Whose to say I'm above the south?
 
What continent is Iceland in? Europe?
 
what if south is up?
 
@AlexA. I thought these were actually relatively common in countries that are from "below" the equator :P
 
@FryAmTheEggman Oh
 
@AlexA. it's reasonable for all those people living South of the equator
@DrGreenEggsandHamDJ Yeah
 
5:40 PM
Magnets, man
 
What about Greenland?
 
North America I guess
 
Yeah, it's part of the North American continent
 
greenland is on the north american continent
 
5:42 PM
@HelkaHomba Mom just told me abouts the various world maps in various parts of the world.
 
its not too bizarre
 
@EasterlyIrk are you one of them?
 
@HelkaHomba I guess I assumed that maps were usually oriented the other way because of the magnetic poles and + and - charges. Idk. ¯\_(ツ)_/¯
 
@CᴏɴᴏʀO'Bʀɪᴇɴ no
but grandad is
 
5:44 PM
@DrGreenEggsandHamDJ Zyaan Seeng.
 
@EasterlyIrk good.
 
@AlexA. Didn't Ben Franklin get that wrong anyway?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ youtube.com/watch?v=Ewxny1um1Eo
 
@HelkaHomba Uh, get what wrong?
 
@zyabin101 lol. I'm "Harji Jiboi"
 
5:45 PM
@EasterlyIrk whose with oyu?
 
noone
what?
@CᴏɴᴏʀO'Bʀɪᴇɴ what?
this is me streaming afaik
 
@EasterlyIrk there's a lot of voices
 
oh shit
 
which is yours? :/
 
i didn't know microphone carried.... >.<
was my family
 
5:47 PM
@AlexA. Ben got + and - backwards and now electrical engineering doesn't make any sense.
 
Oic. I really don't know what I heard >_<
 
was discussion on aardvark vs koala vs bunny vs hamster afaik
@CᴏɴᴏʀO'Bʀɪᴇɴ I wasn't speaking at all.
 
There's even an xkcd about it.
 
@EasterlyIrk oh lol.
 
@AlexA. He called electrons negative when arguably calling them positive is far less confusing. (Idk if that matters for magnets...)
 
5:49 PM
^
I realized this was a nethack joke a while ago:
 
@AlexA. According to kjmagnetics.com/blog.asp?p=which-pole-is-north, a magnet's south pole is + and north is - though
 
@CᴏɴᴏʀO'Bʀɪᴇɴ thx for suscribing. :P
 
@EasterlyIrk no prob
 
@FryAmTheEggman o_O
 
Oh, I was ninja'd and didn't know :/
 
5:51 PM
^ The goal of the true ninja is to achieve this.
4
 
That is why it is called ninja'd
 
@CᴏɴᴏʀO'Bʀɪᴇɴ back up
 
metaninjenga'd
 
Meta ninja'd :)
NOOO
 
haha
 
5:51 PM
ninja'ed your faces
 
soooo cool=)
 
Almost got the hat trick...
 
what hat trick?
 
Getting 3 chained ninja'ds :P
 
5:53 PM
does this remind anyone of SO (Or at least what n00bs say on meta)
 
cat
HIS HAIR
is cute
 
Damn. Where I live is predicted to get 4 feet of snow by Sunday. 0_0
 
@AlexA. You may empathize: youtu.be/vVX-PrBRtTY?t=3m26s
 
@EasterlyIrk damn, I actually have some triangle screws I can't remove
 
You can usually get those with an appropriately sized flathead.
 
@aditsu rofl
 
@DrGreenEggsandHamDJ Does underwater breathing include deep sea pressure resistance?
 
That's an excellent question.
 
@HelkaHomba Haha yeah I guess it never occurred to me that the orientation more familiar to me is pretty arbitrary.
 
@HelkaHomba no, only 1 m depth
 
Being able to breathe fire seems like an accident waiting to happen
 
and you wont be fireproof either
these are just the tricks genies pull on you when you make 3 wishes
 

« first day (1903 days earlier)      last day (2942 days later) »