« first day (1916 days earlier)      last day (2945 days later) » 

2:00 AM
e.g.
prefix = Nonterminal("prefix", Sequence([Optional(Choice([AND, NOT])), suffix]))
is the same as
 
prefix = ("&" / "!")? suffix
lines 170-220 turns the structure parsed by the grammar into a proper grammar itself
 
Ok python dictionaries are f*cking op as hell.
@QPaysTaxes op = overpowered, gaming term
@QPaysTaxes =/ true true
@QPaysTaxes well tell that to Java's HashMap.
python dictionaries > HashMap
@QPaysTaxes for starters, python dictionaries are data-types, so the syntax is better
@QPaysTaxes the dynamic thing is big.
 
@QPaysTaxes wow ruby is as unreadable as perl
 
@QPaysTaxes class, but you gotta refrence it like a obj. So hmInstance.get(), etc
 
2:05 AM
@QPaysTaxes why the frown? being unreadable isn't bad
 
@QPaysTaxes yeah that's what I'm saying. Sorry, my programming terminology is bad.
 
@AshwinGupta I think Java is one of the few languages that don't have dict literals.
 
@Downgoat I didn't know that, I thought that it was a special python thing.
 
@QPaysTaxes I didn't say it was the only language
 
Well whatever, I like the literals
 
2:06 AM
actually, this brings up a point: dictionary or map ?
 
@NathanMerrill what do you mean?
 
which is the better terminology
 
@NathanMerrill JavaScript uses map so I think that'll make most people like dictionary :P
 
@NathanMerrill map makes more logical sense to me. Put in the key, get the item. Like (on a real US map) if star represents the nations capital, when you find star you find the city name of the capital.
 
but map often overloads with the function that takes a value and returns another (which is similar to a map data structure, but they are different)
but dictionary (as far as programming goes), is relatively untouched
 
2:08 AM
@QPaysTaxes why do you say it's awful D:
yeah
they are
that doesn't make them awful
awful >< evil
 
@QPaysTaxes that's just what lexers are
Pyth5 has a very complex lexer
 
@Downgoat I'm tempted to eleven that =/= to !=...
 
@El'endiaStarman you should be happy I did =/= instead of =\=
 
@El'endiaStarman As long as it isn't <> :P
 
hrm
I didn't know that
 
2:11 AM
@Downgoat I'd have been even more tempted in that case.
 
Python has built-in infinite recursion protection when you implement your own __repr__
 
@El'endiaStarman can you eleven it back to =/=
 
G = parse_grammar(r"""
expr = factor ([+-] factor)*
factor = primary ([*/] primary)*
number = [0-9]+
primary = "(" expr ")" / number / "-" primary
""")
print(G)
that prints
msg too long
 
@Geobits Ha, I used <> in Python at first as a hold-over from programming in Blitz 2D/3D, then one of my friends was like "Why are you doing that?!", so I started using the proper !=. :P
 
2:12 AM
@orlp Interesting, I wonder why that grammar parses to msg too long
 
@Downgoat Oooh, outside of the 2-minute edit window now, huh...?
 
eeeewwwww python supports <>
 
Nonterminal('expr', Sequence([Nonterminal('factor', Sequence([Nonterminal('primary',
Choice([Sequence([String('('), Nonterminal('expr', Sequence([...])), String(')')]),
Nonterminal('number', OneOrMore(CharClass('0123456789'))), Sequence([String('-'),
Nonterminal('primary', Choice([...]))])])), ZeroOrMore(Sequence([CharClass('*/'),
Nonterminal('primary', Choice([Sequence([String('('), Nonterminal('expr', Sequence([...])),
String(')')]), Nonterminal('number', OneOrMore(CharClass('0123456789'))),
Sequence([String('-'), Nonterminal('primary', Choice([...]))])]))]))])),
 
I have even less respect for python now, I didn't know that was possibe
 
the line was too long, the length was fine
 
2:13 AM
@Downgoat Python 2, no longer in 3
 
@orlp ಠ_ಠ for no prettyprinting
 
Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:16:59) [MSC v.1900 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> 1 <> 2
SyntaxError: invalid syntax
 
@Downgoat not in python 3
 
$ python
Python 2.7.11 (default, Dec  5 2015, 14:44:53)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.1.76)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 2 <> 3
 
only 2
 
@NathanMerrill Sp ninja'd you to saying that
 
bah
ninja'd and didn't even see it
 
@Downgoat And he and I ninja'd you on proving it. :P
 
like a true ninja
 
Nathan's comment's a bit clearer, I should have said "taken out in 3"
 
2:15 AM
@El'endiaStarman such ninja
I googled ninja goat and found this awesome picture:
 
anyways, can we please just convince everybody to move to python 3?
I mean, I know it'd change pretty much every linux distro
but we can deal with that, right?
 
@NathanMerrill ubuntu is python3 now
 
@NathanMerrill I will but I don't want to type python3, it's too long
 
@Downgoat you should try c++
 
@Downgoat just rename it to p3
 
2:17 AM
g++ -O2 -m64 -march=native -fwrapv -std=c++11
 
@Downgoat ಠ_ಠ Your comment is so deserving of this look you forced me to pull it out against my will
 
that's just a starting default lol
 
@orlp as of when? Last I tried an ubuntu box, it was still 2
 
@Sp3000 ಠ_ಠ
@orlp alias cpp=python3
 
@NathanMerrill 16.04 upcoming release
 
2:18 AM
like that?
 
@NathanMerrill I know right?! Cloud9 still has Python 2 as the default...
 
sits in corner liking python2 better
 
@El'endiaStarman is Pytek going to have a package manager?
 
fends off angry code-golfers and python3 propenents
except some golfing
 
@Downgoat Definite yes.
 
2:20 AM
@EᴀsᴛᴇʀʟʏIʀᴋ oh yes, golfing very important. I take back my previous statement
 
and it is in it's annoyaance level.
 
@El'endiaStarman what are you going to call it ppm (Pytek Package Manager)?
 
I'd say Python 3 is better for annoyance level, but yes Python 2 is usually better for golfing
3's getting gradually golfier though
 
@Sp3000 Yeah, python3 is more annoying.
 
2:21 AM
@EᴀsᴛᴇʀʟʏIʀᴋ ??? do you like Python 2 or not????
 
@Downgoat Dunno. Not that, since I think ppm already means something else more common.
 
is there are reason that languages need a built in package manger?
 
@Downgoat I thought that was sarcasm.
 
Should I call Cheddar's package manager CPM?
 
2:22 AM
@NathanMerrill Not technically, but if you want lots of people using it, absolutely.
 
don't get me wrong, package managers are super useful, but is there any reason they need to be integrated into the language
 
should I call it cheesery?
 
YES
And github hit the "what commit?" mode.............
 
@NathanMerrill So you like downloading libraries from github and having to bundle them with your code?
 
@Github gj.. ಠ_ಠ
 
2:22 AM
@El'endiaStarman What about pip ?\
 
> but if you want lots of people using it, absolutely.
 
@EᴀsᴛᴇʀʟʏIʀᴋ I mean less annoying :/
 
@NathanMerrill I'd like to have a package manager integrated into the ecosystem, but it won't be a feature of the language.
 
nope, no take backs
 
@quartata no, I'm saying that if the language gets big enough, somebody will make a package manager.
 
2:23 AM
AII I CAN"T TAKE THIS 15 MIN LATER GITHUB HAS NO CHANGE
brb resorting to .... safari....
 
(That wasn't a takeback though...)
 
@El'endiaStarman Be more specific. If I install Pytek, will it automatically include a package manager?
 
@NathanMerrill Yes.
Not the very first versions though.
 
no multiple votes?
 
2:25 AM
hm. I'm of the opinion that other people can make a package manager better than I can
 
@Downgoat ☑ Worry about other problems first
 
@NathanMerrill I'm a little more......ambitious.
 
@Sp3000 I'm not making a complete manager. Just something to provide a basis for Cheddars core libraries / confi stuff
 
@El'endiaStarman I don't know if its about ambition, to be honest. I'm not saying you aren't ambitious, but it feels like 2 separate projects. I mean, if you had the time and drive, then go ahead and make it, but don't attach it to the language.
let it stand on its own merits, and make it a separate install
 
Separate installs are somewhat annoying though, and you get less consistency if they're separate.
 
2:30 AM
how do you mean consistency?
 
@Downgoat Tillamook
 
@NathanMerrill If the same person or same team makes two products, then they should (theoretically) be held to the same standards, and thus be similar in quality, cross-platform ability, etc.
 
Also we want programs to be able to hook into the package manager and get dependencies. I hate how weird interfacing with CPAN is in Perl
 
Yes, one of the features of TeXMaker (LaTeX processor, basically) that I really like is that it will ask me if I want to install any missing LaTeX packages, and will download and install them automatically if so.
 
already did. :/
Github hates me now. The feeling is mutual.
 
2:40 AM
You are given a list of size N+M, where N is the number of elements, and M is the number of empty spots. You need to sort the list, but you have to do it by moving an element to an empty spot
is there a name for the above?
 
@QPaysTaxes Me: commits Github: okay! Me: checks Github: What commit? Me: >.<
well bai!
taking a break
 
er, I should specify that the empty spots can be anywhere in the list (in the beginning, or in the sorted output)
its really not. If my list is [2,_,4,3,_], it doesn't make sense to store the two empty spots somewhere else
 
You can just use a single empty slot the same way you'd use tmp in any swap-based sort.
 
true, but the challenge is to minimize the number of moves
so simply using a single slot as a swap is inefficient
 
Sure, that makes it different, but I don't know of a specific name for this.
 
2:46 AM
ok.
 
Hello, I come to inquire: does anybody of a decent amount of knowledge in the field of French?
better? ><
 
I'm going to call it slot sort
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Quelle est votre question?
 
@quartata My question: In this, Nathan a répondu, « Mais que ? Il pleut. » he's supposed to say "but what", but my teacher said que was incorrect in this case, and says to instead use "what". What is the proper "what" to use in this case?
I thought you didn't know french
 
2:52 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ I said no such thing
 
@NathanMerrill o_o okai. you go on to commit a crime
 
Quelle is an interrogative adjective. I think quoi is right
 
@quartata merci! :D
 
mais que is like but that
 
2:53 AM
You could ask in French SE chat though.
 
Alright, resume whatever you were doing, sorry >_<
 
I'm just staring at linker manpages with my eyes glazed over
 
sugar glazing?
 
Molasses, I think.
 
"my eyes glazed over"... so Mego is there with you?
 
2:56 AM
Better do a taste test
@Geobits what?
On an unrelated note, has anyone here ever tried blackstrap molasses? It's easily the most disgusting thing I've ever tried
Maybe it is an acquired taste.
 

« first day (1916 days earlier)      last day (2945 days later) »