« first day (42 days earlier)    last day (15 days later) » 

3:40 PM
Doorknob has unfrozen this room.
 
thank ye
 
3:57 PM
\o/
 
4:45 PM
@quartata What is the recommend way to install PCRE? (on ubuntu now)
 
aptitude install libpcre3-dev is what I did I think
 
Haha, yeah I just got that
I should wait longer before crying for help, haha
Well hey, the uncompressed mode I was hoping to add is already there, haha
I should have just used TIO
 
Wait, it is?
I never added that
What do you mean?
 
Wait a second...
Oh, I forgot that I made local commits, haha
 
5:06 PM
@quartata Would you be against using a library like docopts? I used it for V and am very happy with it so far
 
No, that's fine.
 
OK kewl
 
5:26 PM
@quartata What's a good sample program to test?
 
Run python3 tests.py to make sure things aren't on fire first
Then I'd try fHello, %s here!Cinnamon Gum
 
Ok, things are definitely on fire. haha
 
What failed?
If you have the fork on GH I can look
 
Just some silly typos.
I don't understand what's going on
 
Myes?
 
5:38 PM
Here, let me commit so I can show you
 
execute is kind of regex hell, I know. I'll add comments
 
I'm not even touching that yet. I'm just messing with main
 
Most of the regexs are just of the form (?<![^\\]\\)<char> so that I know they aren't escaped
@DJMcMayhem Oh, all right
So what's going wrong
 
I made a minor change that shouldn't change any logic, but it breaks the tests
Alright, check out this diff
That shouldn't break anything?
 
> mode = string[0]
The variable name is misleading
It's a bitstring
You need chr I think
 
5:42 PM
Oh. doi
@quartata Do any of the scripts call cinnamon-compressor.py at all?
Or is it just for human use?
 
No. cinnamon-compressor is a utility for the user to use
 
OK. I wanna rename it so that tab autocomplete works better
haha
 
Oh, sorry :P
You could rename it to just compressor if it really bothers you, I won't mind
 
So string is a bitstring... Does that mean execute expects a bitstring?
 
Nope, execute takes a regular string
decompress returns a regular string
ew, just noticed this: "".join(map(chr, decompressed_code))
I'm not sure why I did that...
 
5:50 PM
hahaha
 
Actually i don't think I did that. I think that was from the original Bubblegum
 
Dang it Dennis.
 
He's the one who made beautiful things like this:
s = [[10, r + 32][r < 95]] + s
I still don't know what that does and I'm scared to change it
I guess it's his way of doing a ternary?
So s = ([r + 32] if r < 95 else [10]) + s?
 
That sounds like a good summary of most of the code I have seen from dennis (since I see his golfs more than his regular code)
@quartata Yeah, but + s
 
His regular code is more or less just golfed code but with whitespace.
 
5:54 PM
Alright, so I've extinguished all the fires, but now when I try to run fHello from %s!Cinnamon gum, it prompts me for input, then prints b'#
WTH?
Oh wait, nvmd
 
Yeah, you have to CTRL-D
Since it'll only take ! input if STDIN is exhausted
 
So, now I'm getting a traceback
It seems like it's trying to eval the input
 
Oh, crap. That should be in quotes in the docs
 
Single or double?
 
either
It uses ast.literal_eval
 
6:01 PM
Ok, so this is really weird. If I remove the trailing newline, it says Syntax Error: EOL while scanning string literal but if I leave it in it says SyntaxError: unexpected character after line continuation character
 
Wha?
 
¯\_(;_;)_/¯
Do you want me to push so you can see?
 
I have to eat but then sure
 
OK, I just pushed
I'm probably done for now. Let me know if you figure it out
Oh, and you will need to pip install docopt
 
6:21 PM
It works on mine so it must be something in your changes
Right off the bat this has to be a problem:
> code = str(string) if args['-u'] else decompress(string)
I think you meant str(string[1:])
But that wouldn't cause this I don't think
@DJMcMayhem
 
Ooooh, yeah that makes sense
 
 
1 hour later…
7:32 PM
@DJMcMayhem make sure to add your dependency to .travis.yml
 
@quartata OK cool, I'll make sure to do that. I've never used YAML before, but I'm sure I could figure it out. I'll probably submit the PR sometime later today
 

« first day (42 days earlier)    last day (15 days later) »