« first day (1946 days earlier)      last day (2894 days later) » 

4:01 AM
@LeakyNun do you know peg parsers?
 
@orlp What is peg parsers?
 
are*
they're a formalism for specifying a language
PEG = parsing expression grammar
they're really easy to understand and implement
 
I believe I've heard of them
or not
 
you should try to implement them in Python
 
Hey guys
 
4:04 AM
@Sherlock9 hi
try my challenge?
@orlp testcase?
 
My friends and I had an idea for our assignment to make a website that checks webcomics if they have updated today
How best to do the updating? Check a bunch in parallel? Check one at a time?
 
#                        Parsing Expression Grammars
# Based on:        A Recognition-Based Syntactic Foundation
#                              - Bryan Ford
#
# Modified slightly to use equals sign, simpler character escapes and fixed
# "-" at end of character class.

# Hierarchical syntax
grammar    = spacing definition+ eof
definition = identifier equals expression
expression = sequence (slash sequence)*
sequence   = prefix*
prefix     = (and / not)? suffix
suffix     = primary (question / star / plus)?
@LeakyNun that is a self-description of PEG
 
@LeakyNun what challenge?
 
How best to regularly check if the comics in our database have updated without getting too slow as we add more and more comics to check?
 
4:09 AM
Lots of webcomics have RSS feeds
 
@LeakyNun I wrote a PEG parser using that specification, and it can parse itself :P
 
:o
 
everything works just like regex, except / is ordered choice (instead of |) - it will always first try the first option, then the second option
 
@Doorknob That's what I figured but we're not very familiar with RSS
 
on top of that, & matches the next thing, but does not consume it
! is the opposite, not matching the next thing, but not consuming it
 
4:11 AM
@Sherlock9 ?
 
I figured it's some XML thing, but we're not very familiar with XML either :P
 
...
What language
Many languages have builtin XML parsing
 
@orlp Isn't | also ordered choice?
 
@LeakyNun no
there's a crucial difference
compare the regex a*a to the PEG grammar expr = 'a'* 'a'
now let's say I have a string aa
the regex will succesfully match this
the PEG won't
 
@orlp a*+a
 
4:17 AM
similarly
op = "+" / "++"
will never choose the second one, because the first one always matches
 
I see
 
No backtracking in PEG?
 
no
or 'sort of'
every operator is greedy
and / will only choose the next possibility if the first one fails
if they all fail, / will fail itself
 
@orlp try my challenge?
 
@LeakyNun must it be a function or is an expression also ok?
 
4:23 AM
@orlp an expression is ok
 
C, 11 bytes: ' '*' '*'@'
 
Minkolang: "@ "$*N.
not original xd
 
didn't see that
doesn't matter
I solved your challenge :P
 
o_O should probably take out the prints from most of the Python ones then
 
@orlp ok, add the print back in
 
4:26 AM
f(){return' '*' '*'@';}
 
btw
 
@LeakyNun 0/10 no UGL
 
⁹² is invalid
 
@orlp ?
 
4:27 AM
those are still numbers in the source code
they might be superscripted numbers, but they're still numbers
 
No, those are Unicode
 
(the rules are so mixed on that gist I don't even know what's valid or not)
 
ok, I'll change it
@orlp full program
 
Python 3: print(-~ord("\uffff"))
 
@orlp updated
 
4:31 AM
If it's full program then the last one on the gist currently should just be print len(...) since it won't work in Python 3, and JS would need to be changed too (and probably some of the other langs I don't know as well)
 
main(){printf("%d",' '*' '*'@');}
 
Is adding myself to the wheel group insecure?
 
@Sp3000 js has implicit printing
 
Are you assuming REPL here?
 
sure
 
4:33 AM
[vihan@vihan ~]$ vim
-bash: vim: command not found
;_;
 
wat
 
@Geobits Fair point. I don't really think most Trump supporters are irrational or unintelligent. I do think many have been sort of hedged in to supporting him (which can happen regardless of party or election type), but no, they aren't idiots.
 
Pyth, *FCM" @
 
@Upgoat Not necessarily but I wouldn't exactly recommend it
 
4:37 AM
@Upgoat Wheel group?
 
If you're assuming REPL then you should probably state that for JS, to emphasise that it's different (I'd point to this, but +16/-6 and the related comments)
 
@orlp hC"\uFFFF
 
@El'endiaStarman It's one of the permissions groups on Unix-like systems
 
@LeakyNun longer :)
 
Huh. Haven't heard of it before. What's it meant for?
 
4:39 AM
@Dennis Wouldn't .container { width: 95vw; } be better for the wide body userscript?
 
@orlp hC"ÿÿ 7 bytes
 
In computing, the term wheel refers to a user account with a wheel bit, a system setting that provides additional special system privileges that empower a user to execute restricted commands that ordinary user accounts cannot access. The term is derived from the slang phrase big wheel, referring to a person with great power or influence. It was first used in this context with regard to the TENEX operating system, later distributed under the name TOPS-20 in the 1960s and early 1970s. The term was adopted by Unix users in the 1980s, due to the movement of operating system developers and users from...
 
...so....superuser?
 
@orlp Actually, that's 6 UTF bytes with a literal \uffff
 
Super user is something different on Windows though, isn't it?
 
4:40 AM
oh ok ._.
 
Oh no, that's power user...?
Basically admin.
 
Upgoat is on Windows?
 
Mac OS X
 
I figured we were talking exclusively Unix systems at the moment.
Oh right, Macs also have a Unix base.
 
@El'endiaStarman I am on Mac, my server is on CentOS
 
4:41 AM
@El'endiaStarman *Up
 
Gotcha. Likewise, in fact, except that I'm on Windows. :P
 
@El'endiaStarman Actually OS X is based on Darwin, which is based on FreeBSD.
 
@HelkaHomba Thanks, Calvin. ;)
@AlexA. FreeBSD isn't Unix?
 
@El'endiaStarman Yeah I got confused because I thought you were talking about the "power user" mode on Windows
@El'endiaStarman Technically only Unix is Unix
FreeBSD is a Unix-like system
 
halp, how host file
 
4:42 AM
@Upgoat Welcome them in, ask them if they want anything to eat or drink, etc...
 
Downvoted and closed as unclear
 
@Upgoat UpUpDownDownLeftRightLeftRightBAStartGoat
2
 
halp
 
can't find goat key
 
4:43 AM
what does all this stuff even meen
 
@Upgoat it means you have routed vihan.org to yourself
 
oh no
that sounds bad
 
you done goof't
so when you ping vihan.org you basically ping localhost
 
I think phase could help you if you're having localhost troubles
@Upgoat Sounds like a question for your doctor
 
4:44 AM
@Upgoat that's NSFW
 
@MarsUltor Well, I'm only really familiar with Python, but that isn't necessarily the best for a Web service
 
@Sherlock9 Web service?
 
@MarsUltor That would push the side bar off the screen. I made it so that the wiki had the same size as in the editor IIRC.
 
@orlp ...
 
@MarsUltor The assignment is to make a Web thing with a database for our database class
 
4:45 AM
@Sherlock9 Hmm
 
Oh!! @Sherlock9 was it you who asked me to add them to the Steam group?
 
I've used node for that
 
@AlexA. Yeah
 
I was traveling and missed a bunch of chat pings
 
I added you on Steam
 
4:46 AM
PHP would work as well
 
Quick poll: Best cooking spice?
 
@MarsUltor Yes. I am not familiar with Node nor Ruby on Rails and only tried PHP once or twice
 
@Sherlock9 ai node && mkdir thing && cd thing && npm init && npm install sails
Then done
 
@HelkaHomba Salt. Used in everything, works with everything (in moderation)
 
4:47 AM
Sails handles everything :P
 
@HelkaHomba Definitely depends on the dish
 
Output is slightly wrong due to a bug though. :(
 
@orlp is spider fyi to others
 
@MarsUltor Hax
 
4:47 AM
@HelkaHomba shh and star
 
Also, I'm not sure what any of that does
 
@Sherlock9 >,> ok, besides salt
 
Oh whoops that's oh-my-zsh, plus ubuntu/zsh
 
@AlexA. garlic(powder) works in lots of things
 
basically install node, create a folder, open terminal/cmd in the folder, npm init, npm install --save sails
 
4:49 AM
Is garlic a spice?
 
can I use neovim with a remote file? I really despise having to use nano >_>
 
@AlexA. garlic powder surely counts
garlic itself, idk
 
I greatly prefer fresh garlic to garlic powder. I don't really use garlic powder.
@Sherlock9 Group invitation sent!
Sorry for the delay
 
@AlexA. lemons + garlic + cornish game hen = amazing
 
Lemon and garlic is a powerful combo. Add a little fresh cracked black pepper and you're in business.
 
4:51 AM
Cloves, because that's what brought the Old World to Asia, and they're from Indonesia :D
 
the most powerful combo is still tomato + pesto + mozzarella
 
Nutmeg for the same reasons as above
 
Cardamom is tasty tasterson
 
TIL Anders Kaseorg did Euclid as well
 
( ͡° ͜ʖ ͡°)
 
4:54 AM
The Dutch and the British traded one of the spice islands in the Banda Islands (a smaller archipelago in the east of Indonesia) for New Netherlands and New Amsterdam
 
@MarsUltor TIL Anders Kaseorg existed
@Sherlock9 love nutmeg
 
@HelkaHomba He's like a goat thing that answers here occasionally IIRC
 
Or a weird cow thing with blue horns?
 
@HelkaHomba So did all of Europe :D en.wikipedia.org/wiki/Nutmeg
 
4:56 AM
@MarsUltor ಠ_ಠ goats are not weird
 
@MarsUltor Euclid as in what?
 
@Upgoat Why transitioning
 
@MarsUltor Ohhh. I'm running Windows
 
@Sherlock9 IDK if you're allowed to do that though
 
4:57 AM
@MarsUltor I'm moving to a self-hosted server to a remote VPS to run my server.
 
> to a self-hosted server to a remote VPS
 
MATL, 6 bytes: YPXkWW
 
It was self-hosted?
 
my previous websites/server was hosted by a mac mini on the far corner of my desk
 

« first day (1946 days earlier)      last day (2894 days later) »