These are chat archives for liam4/tlnccuwagnf

30th
Apr 2016
Matthew
@matthewr6
Apr 30 2016 00:03 UTC
@/all Ping.
Florrie
@towerofnix
Apr 30 2016 00:03 UTC
@Firedrake969 Pong.
Matthew
@matthewr6
Apr 30 2016 01:03 UTC
@Liam4 Ping.
@Firedrake969 Ponyg
Florrie
@towerofnix
Apr 30 2016 01:42 UTC
@/all By ping I mean a literal ping. Now y'all pls feed ideas <3
MegaApuTurkUltra
@MegaApuTurkUltra
Apr 30 2016 02:57 UTC
A decent automation library
Like Microsoft Flow except as an API
alex
@heyitsmeuralex
Apr 30 2016 06:39 UTC
Proper, non-callback async (es2016) fixes this tho :D
Aaron Esau
@Arinerron
Apr 30 2016 06:54 UTC
64 bytes from @arinerron (127.0.0.1): icmp_seq=1 ttl=64 time=0.051 ms
64 bytes from @arinerron (127.0.0.1): icmp_seq=2 ttl=64 time=0.055 ms
Arthur
@kvackkvack
Apr 30 2016 06:55 UTC
Why are there two grammar.js, one in the parent directory with messed up indentation and one in src/ with fixed indentation?
Aaron Esau
@Arinerron
Apr 30 2016 06:56 UTC
URL?
@kvackkvack
brb
:P
Aaron Esau
@Arinerron
Apr 30 2016 06:56 UTC
Thanks
:P
Uhh... That's really odd
@liam4 pls explain
alex
@heyitsmeuralex
Apr 30 2016 07:46 UTC
@kvackkvack @Arinerron That was an old file; I've destroyed & pushed it away.
Arthur
@kvackkvack
Apr 30 2016 07:46 UTC
Makes sense. :P
Is the recursive join thing the only way to match more than one of something in nearley?
alex
@heyitsmeuralex
Apr 30 2016 07:54 UTC
Liam would know :package:
idek
Arthur
@kvackkvack
Apr 30 2016 07:55 UTC
:P
Arthur
@kvackkvack
Apr 30 2016 09:20 UTC
So you can't escape string characters, right?
Florrie
@towerofnix
Apr 30 2016 10:10 UTC
Yay thanks for destroying that.
Must have accidentally nearleyc'd manually once :P

Is the recursive join thing the only way to match more than one of something in nearley?

Looking back on that code it just flattens out a list of lists (each list having the form [data, list] or [data], i.e.

[1, [2, [3, [4, [5]]]] -> [1, 2, 3, 4, 5]

So you can't escape string characters, right?

Nope, not yet! :P

Like Microsoft Flow except as an API

googles microsoft flow

Ohh, that looks cool
I'll have to experiment with it. Looks like it could be used for pretty handy stuff :P
Arthur
@kvackkvack
Apr 30 2016 10:30 UTC
Yeah, I got the recursive join thing after that. :P Do you have any idea of how you'd implement escaping strings?
Florrie
@towerofnix
Apr 30 2016 10:30 UTC
Copy JavaScript? :DDDD
Arthur
@kvackkvack
Apr 30 2016 10:30 UTC
How do they do it?
Florrie
@towerofnix
Apr 30 2016 10:31 UTC
hm
Arthur
@kvackkvack
Apr 30 2016 10:38 UTC
Would just adding \" to be allowed in SingleStringValidCharacter and making the end a lazy RegExp " match work?
i.e "{1}?
alex
@heyitsmeuralex
Apr 30 2016 11:06 UTC
Maybe make a string interpreter
;)
Then we can haz template strings too
Arthur
@kvackkvack
Apr 30 2016 11:07 UTC
String interpreter?
alex
@heyitsmeuralex
Apr 30 2016 11:07 UTC
Oui
Arthur
@kvackkvack
Apr 30 2016 11:07 UTC
wat is dat
alex
@heyitsmeuralex
Apr 30 2016 11:07 UTC
Code that runs through a string
Looking for stuff
e.g. backslashes
Arthur
@kvackkvack
Apr 30 2016 11:07 UTC
Right, but how would you match the string in the first place then? :P
alex
@heyitsmeuralex
Apr 30 2016 11:08 UTC
What?
Oh yeah.
xD
Arthur
@kvackkvack
Apr 30 2016 11:08 UTC
lol
alex
@heyitsmeuralex
Apr 30 2016 11:10 UTC
Hmmmmmm
Arthur
@kvackkvack
Apr 30 2016 11:10 UTC
It seems like my idea should work though. :P
Few lines down there's strings
:)
Arthur
@kvackkvack
Apr 30 2016 11:13 UTC
I'm not sure I understand that code :P
alex
@heyitsmeuralex
Apr 30 2016 11:14 UTC
Lol
@liam4 might ∆∆∆∆
Arthur
@kvackkvack
Apr 30 2016 11:16 UTC
Oh, wait, I think I do.
alex
@heyitsmeuralex
Apr 30 2016 11:17 UTC
:P
So... Could we just copy that?
Arthur
@kvackkvack
Apr 30 2016 11:19 UTC
Probably.
I'm working on a JS-like programming language that compiles to .sb2 and learning (stealing) from the grammar here, which is why I'm asking. :P
alex
@heyitsmeuralex
Apr 30 2016 11:20 UTC
xD
Why compile to stretch
Also what!?
Arthur
@kvackkvack
Apr 30 2016 11:21 UTC
Because it's hard and I'll probably learn some from it.
Why the "what!?"?
alex
@heyitsmeuralex
Apr 30 2016 11:21 UTC
You don't compile from a good language to a crap one that does nothing m8
:P
Arthur
@kvackkvack
Apr 30 2016 11:21 UTC
It's not meant to actually be used in real programs.
alex
@heyitsmeuralex
Apr 30 2016 11:22 UTC
(Anyhoo, Tosh is cool)
Makes sense
Arthur
@kvackkvack
Apr 30 2016 11:22 UTC
But it'll be fun to do. And to work-around returning functions and all that
alex
@heyitsmeuralex
Apr 30 2016 11:22 UTC
Although, why not just help with tulun
Like moi
Arthur
@kvackkvack
Apr 30 2016 11:22 UTC
Meh. :P
Then I'll have to learn the entire codebase of it
alex
@heyitsmeuralex
Apr 30 2016 11:23 UTC
Not really. It's pretty simple :)
alex
@heyitsmeuralex
Apr 30 2016 11:32 UTC
...to learn
xD
Florrie
@towerofnix
Apr 30 2016 12:26 UTC
I guess I should probably implement arrays.
Oh do arrays already work?
tests
Florrie
@towerofnix
Apr 30 2016 12:31 UTC
speaking of tests
they're all broken? :P
oh yeah
I need to fix that.
Florrie
@towerofnix
Apr 30 2016 12:43 UTC
Fixed tests, woo
Using a generator because I'm too lazy to babelify tests.js :P
alex
@heyitsmeuralex
Apr 30 2016 13:31 UTC
Hoi
Hey
alex
@heyitsmeuralex
Apr 30 2016 13:32 UTC
Liam just move tests.js into dist
;)
Florrie
@towerofnix
Apr 30 2016 14:13 UTC
// This code is automatically generated. Changes will be overwritten.










/* doesn't actually get overwritten */
/* such defeats the purpose of dist */
alex
@heyitsmeuralex
Apr 30 2016 14:15 UTC
What?
Florrie
@towerofnix
Apr 30 2016 14:15 UTC
Built files go to dist.
Oh.
I see what you mean
I guess I could do that.
;p
You mean move it to src and use async/await right?
alex
@heyitsmeuralex
Apr 30 2016 14:16 UTC
Oh, yeah.
xD
Florrie
@towerofnix
Apr 30 2016 14:17 UTC
Okay :P
alex
@heyitsmeuralex
Apr 30 2016 14:17 UTC
Btw I probably broke stuff with my merges
So, like, have a look-see :shipit:
Florrie
@towerofnix
Apr 30 2016 14:18 UTC
ALEX WHY DID YOU BREAK THINGS
alex
@heyitsmeuralex
Apr 30 2016 14:20 UTC
...huh?
Florrie
@towerofnix
Apr 30 2016 14:21 UTC
The only thing I saw break were the tests
which I fixed btw.
alex
@heyitsmeuralex
Apr 30 2016 14:22 UTC
o:cake: make
...
Stupid Gitter mobile
Florrie
@towerofnix
Apr 30 2016 15:23 UTC
Who likes Travis CI?
I don't. It spams me </3
alex
@heyitsmeuralex
Apr 30 2016 15:24 UTC
...aw
With what?
Florrie
@towerofnix
Apr 30 2016 15:24 UTC
jk it's nice
Screen Shot 2016-04-30 at 12.24.18 PM.png
Arthur
@kvackkvack
Apr 30 2016 15:24 UTC
What is it?
Florrie
@towerofnix
Apr 30 2016 15:24 UTC
my email
Arthur
@kvackkvack
Apr 30 2016 15:24 UTC
:P
Florrie
@towerofnix
Apr 30 2016 15:24 UTC
Automagic testing
alex
@heyitsmeuralex
Apr 30 2016 15:24 UTC
Get Hound for pull requests too? Tulun should have fancy ci stuff
Florrie
@towerofnix
Apr 30 2016 15:25 UTC
particularly also on different versions of Node
alex
@heyitsmeuralex
Apr 30 2016 15:25 UTC
Also pls open Travis to me too?
HoundCI eslints for us
Florrie
@towerofnix
Apr 30 2016 15:25 UTC
pls tell how
I never travies b4 :(
alex
@heyitsmeuralex
Apr 30 2016 15:26 UTC
https://houndci.com/ me neither lol
Use Hound too pls
It comments on pull requests
implement that
better than the current string system
alex
@heyitsmeuralex
Apr 30 2016 15:26 UTC
Mm
I found it :package:
Arthur
@kvackkvack
Apr 30 2016 15:27 UTC
indeed.
Arthur
@kvackkvack
Apr 30 2016 16:17 UTC
Shouldn't unevaluated be a keyword?
Arthur
@kvackkvack
Apr 30 2016 16:43 UTC
nearleyc grammar.ne is giving me an error about not being able to parse '"'
Arthur
@kvackkvack
Apr 30 2016 17:15 UTC
Hm, nvm. I must've accidentally changed something. :P
alex
@heyitsmeuralex
Apr 30 2016 17:19 UTC
:P
Arthur
@kvackkvack
Apr 30 2016 17:20 UTC
nearley debugging is hard :(
alex
@heyitsmeuralex
Apr 30 2016 17:20 UTC
Mm
Anyhoo, what does unevaluated mean in Tulun?
I still don't get it
Like it sounds cool but
:(
Z
Arthur
@kvackkvack
Apr 30 2016 17:22 UTC
If you pass x > 3 to a function, it will automatically be evaluated and it will never change during the process of this function - even if the boolean's not actually true anymore.
alex
@heyitsmeuralex
Apr 30 2016 17:22 UTC
...wat?
Ah.
So unevaluated means the variable may change?
Arthur
@kvackkvack
Apr 30 2016 17:23 UTC
Yeah.
alex
@heyitsmeuralex
Apr 30 2016 17:23 UTC
Right
Thanks :)
That has since fancy uses
*some
:P
Arthur
@kvackkvack
Apr 30 2016 17:24 UTC
Yeah.
alex
@heyitsmeuralex
Apr 30 2016 17:24 UTC
I haz an idea I might try out in a branch on monday; optional/default params built-in
Arthur
@kvackkvack
Apr 30 2016 17:25 UTC
@liam4 can you help me with my nearley grammar pls? :P
alex
@heyitsmeuralex
Apr 30 2016 17:25 UTC
Like, square bracket = optional
Arthur
@kvackkvack
Apr 30 2016 17:25 UTC
ew, why square bracket? :P
alex
@heyitsmeuralex
Apr 30 2016 17:25 UTC
(req, [res]) {}
Arthur
@kvackkvack
Apr 30 2016 17:25 UTC
oh
alex
@heyitsmeuralex
Apr 30 2016 17:25 UTC
That's how the docs do it.
:P
Arthur
@kvackkvack
Apr 30 2016 17:26 UTC
I thought you meant something like (req, [] res) {}
:P
alex
@heyitsmeuralex
Apr 30 2016 17:26 UTC
xD
Also if the caller ommits an argument that's not optional it throws an error.
Sound fancy?
:smile:
Arthur
@kvackkvack
Apr 30 2016 17:27 UTC
Yeah. :P
rip @liam4 come back pls
alex
@heyitsmeuralex
Apr 30 2016 17:27 UTC
Ooh, maybe also [foo='default] too?
Like, default arguments
Arthur
@kvackkvack
Apr 30 2016 17:27 UTC
Sounds nice.
alex
@heyitsmeuralex
Apr 30 2016 17:33 UTC
@liam4 don't implement this; I wanna try, k? :P
Arthur
@kvackkvack
Apr 30 2016 17:37 UTC
This message was deleted
This message was deleted
MegaApuTurkUltra This message was not deleted
Arthur
@kvackkvack
Apr 30 2016 18:04 UTC
:OOO
alex
@heyitsmeuralex
Apr 30 2016 18:05 UTC
lol
Florrie
@towerofnix
Apr 30 2016 18:40 UTC

Shouldn't unevaluated be a keyword?

Yes.

nearley debugging is hard :(

Yes, yes, yes.

Arthur
@kvackkvack
Apr 30 2016 18:41 UTC
lol
Florrie
@towerofnix
Apr 30 2016 18:41 UTC

@liam4 don't implement this; I wanna try, k? :P

Good luck! It's a great feature.

Maybe later on I'll implement ...rest arguments.
alex
@heyitsmeuralex
Apr 30 2016 18:42 UTC
Ooo
Arthur
@kvackkvack
Apr 30 2016 19:01 UTC
How do I prevent ambiguity in nearley?
alex
@heyitsmeuralex
Apr 30 2016 19:02 UTC
Magic
Arthur
@kvackkvack
Apr 30 2016 19:03 UTC
I see.
Florrie
@towerofnix
Apr 30 2016 19:11 UTC
Well, the most common case of Ambiguity I've had is whitespace [possibly] beside whitespace.
Make sure that can't happen.
"ambiguity" formal idk
Arthur
@kvackkvack
Apr 30 2016 19:11 UTC
Mine seems to parse "5.86" as both "5", "5.8" and "5.86" lol
alex
@heyitsmeuralex
Apr 30 2016 19:11 UTC
mate
Magicians code
:P
Arthur
@kvackkvack
Apr 30 2016 19:43 UTC
At least I've gotten strings to work now...
Florrie
@towerofnix
Apr 30 2016 23:31 UTC
liam4/tlnccuwagnf@36e14e4 :tada: String escapes!