These are chat archives for liam4/tlnccuwagnf

30th
Apr 2016
Matthew
@matthewr6
Apr 30 2016 00:03
@/all Ping.
Florrie
@towerofnix
Apr 30 2016 00:03
@Firedrake969 Pong.
Matthew
@matthewr6
Apr 30 2016 01:03
@Liam4 Ping.
109C
@109C
Apr 30 2016 01:30
@Firedrake969 Ponyg
Florrie
@towerofnix
Apr 30 2016 01:42
@/all By ping I mean a literal ping. Now y'all pls feed ideas <3
MegaApuTurkUltra
@MegaApuTurkUltra
Apr 30 2016 02:57
A decent automation library
Like Microsoft Flow except as an API
alex
@heyitsmeuralex
Apr 30 2016 06:39
Proper, non-callback async (es2016) fixes this tho :D
Arinerron
@Arinerron
Apr 30 2016 06:54
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
Why are there two grammar.js, one in the parent directory with messed up indentation and one in src/ with fixed indentation?
Arinerron
@Arinerron
Apr 30 2016 06:56
URL?
@kvackkvack
brb
:P
Arinerron
@Arinerron
Apr 30 2016 06:56
Thanks
:P
Uhh... That's really odd
@liam4 pls explain
alex
@heyitsmeuralex
Apr 30 2016 07:46
@kvackkvack @Arinerron That was an old file; I've destroyed & pushed it away.
Arthur
@kvackkvack
Apr 30 2016 07:46
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
Liam would know :package:
idek
Arthur
@kvackkvack
Apr 30 2016 07:55
:P
Arthur
@kvackkvack
Apr 30 2016 09:20
So you can't escape string characters, right?
Florrie
@towerofnix
Apr 30 2016 10:10
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
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
Copy JavaScript? :DDDD
Arthur
@kvackkvack
Apr 30 2016 10:30
How do they do it?
Florrie
@towerofnix
Apr 30 2016 10:31
hm
Arthur
@kvackkvack
Apr 30 2016 10:38
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
Maybe make a string interpreter
;)
Then we can haz template strings too
Arthur
@kvackkvack
Apr 30 2016 11:07
String interpreter?
alex
@heyitsmeuralex
Apr 30 2016 11:07
Oui
Arthur
@kvackkvack
Apr 30 2016 11:07
wat is dat
alex
@heyitsmeuralex
Apr 30 2016 11:07
Code that runs through a string
Looking for stuff
e.g. backslashes
Arthur
@kvackkvack
Apr 30 2016 11:07
Right, but how would you match the string in the first place then? :P
alex
@heyitsmeuralex
Apr 30 2016 11:08
What?
Oh yeah.
xD
Arthur
@kvackkvack
Apr 30 2016 11:08
lol
alex
@heyitsmeuralex
Apr 30 2016 11:10
Hmmmmmm
Arthur
@kvackkvack
Apr 30 2016 11:10
It seems like my idea should work though. :P
Few lines down there's strings
:)
Arthur
@kvackkvack
Apr 30 2016 11:13
I'm not sure I understand that code :P
alex
@heyitsmeuralex
Apr 30 2016 11:14
Lol
@liam4 might ∆∆∆∆
Arthur
@kvackkvack
Apr 30 2016 11:16
Oh, wait, I think I do.
alex
@heyitsmeuralex
Apr 30 2016 11:17
:P
So... Could we just copy that?
Arthur
@kvackkvack
Apr 30 2016 11:19
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
xD
Why compile to stretch
Also what!?
Arthur
@kvackkvack
Apr 30 2016 11:21
Because it's hard and I'll probably learn some from it.
Why the "what!?"?
alex
@heyitsmeuralex
Apr 30 2016 11:21
You don't compile from a good language to a crap one that does nothing m8
:P
Arthur
@kvackkvack
Apr 30 2016 11:21
It's not meant to actually be used in real programs.
alex
@heyitsmeuralex
Apr 30 2016 11:22
(Anyhoo, Tosh is cool)
Makes sense
Arthur
@kvackkvack
Apr 30 2016 11:22
But it'll be fun to do. And to work-around returning functions and all that
alex
@heyitsmeuralex
Apr 30 2016 11:22
Although, why not just help with tulun
Like moi
Arthur
@kvackkvack
Apr 30 2016 11:22
Meh. :P
Then I'll have to learn the entire codebase of it
alex
@heyitsmeuralex
Apr 30 2016 11:23
Not really. It's pretty simple :)
alex
@heyitsmeuralex
Apr 30 2016 11:32
...to learn
xD
Florrie
@towerofnix
Apr 30 2016 12:26
I guess I should probably implement arrays.
Oh do arrays already work?
tests
Florrie
@towerofnix
Apr 30 2016 12:31
speaking of tests
they're all broken? :P
oh yeah
I need to fix that.
Florrie
@towerofnix
Apr 30 2016 12:43
Fixed tests, woo
Using a generator because I'm too lazy to babelify tests.js :P
alex
@heyitsmeuralex
Apr 30 2016 13:31
Hoi
109C
@109C
Apr 30 2016 13:31
Hey
alex
@heyitsmeuralex
Apr 30 2016 13:32
Liam just move tests.js into dist
;)
Florrie
@towerofnix
Apr 30 2016 14:13
// 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
What?
Florrie
@towerofnix
Apr 30 2016 14:15
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
Oh, yeah.
xD
Florrie
@towerofnix
Apr 30 2016 14:17
Okay :P
alex
@heyitsmeuralex
Apr 30 2016 14:17
Btw I probably broke stuff with my merges
So, like, have a look-see :shipit:
Florrie
@towerofnix
Apr 30 2016 14:18
ALEX WHY DID YOU BREAK THINGS
alex
@heyitsmeuralex
Apr 30 2016 14:20
...huh?
Florrie
@towerofnix
Apr 30 2016 14:21
The only thing I saw break were the tests
which I fixed btw.
alex
@heyitsmeuralex
Apr 30 2016 14:22
o:cake: make
...
Stupid Gitter mobile
Florrie
@towerofnix
Apr 30 2016 15:23
Who likes Travis CI?
I don't. It spams me </3
alex
@heyitsmeuralex
Apr 30 2016 15:24
...aw
With what?
Florrie
@towerofnix
Apr 30 2016 15:24
jk it's nice
Screen Shot 2016-04-30 at 12.24.18 PM.png
Arthur
@kvackkvack
Apr 30 2016 15:24
What is it?
Florrie
@towerofnix
Apr 30 2016 15:24
my email
Arthur
@kvackkvack
Apr 30 2016 15:24
:P
Florrie
@towerofnix
Apr 30 2016 15:24
Automagic testing
alex
@heyitsmeuralex
Apr 30 2016 15:24
Get Hound for pull requests too? Tulun should have fancy ci stuff
Florrie
@towerofnix
Apr 30 2016 15:25
particularly also on different versions of Node
alex
@heyitsmeuralex
Apr 30 2016 15:25
Also pls open Travis to me too?
HoundCI eslints for us
Florrie
@towerofnix
Apr 30 2016 15:25
pls tell how
I never travies b4 :(
alex
@heyitsmeuralex
Apr 30 2016 15:26
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
Mm
I found it :package:
Arthur
@kvackkvack
Apr 30 2016 15:27
indeed.
Arthur
@kvackkvack
Apr 30 2016 16:17
Shouldn't unevaluated be a keyword?
Arthur
@kvackkvack
Apr 30 2016 16:43
nearleyc grammar.ne is giving me an error about not being able to parse '"'
Arthur
@kvackkvack
Apr 30 2016 17:15
Hm, nvm. I must've accidentally changed something. :P
alex
@heyitsmeuralex
Apr 30 2016 17:19
:P
Arthur
@kvackkvack
Apr 30 2016 17:20
nearley debugging is hard :(
alex
@heyitsmeuralex
Apr 30 2016 17:20
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
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
...wat?
Ah.
So unevaluated means the variable may change?
Arthur
@kvackkvack
Apr 30 2016 17:23
Yeah.
alex
@heyitsmeuralex
Apr 30 2016 17:23
Right
Thanks :)
That has since fancy uses
*some
:P
Arthur
@kvackkvack
Apr 30 2016 17:24
Yeah.
alex
@heyitsmeuralex
Apr 30 2016 17:24
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
@liam4 can you help me with my nearley grammar pls? :P
alex
@heyitsmeuralex
Apr 30 2016 17:25
Like, square bracket = optional
Arthur
@kvackkvack
Apr 30 2016 17:25
ew, why square bracket? :P
alex
@heyitsmeuralex
Apr 30 2016 17:25
(req, [res]) {}
Arthur
@kvackkvack
Apr 30 2016 17:25
oh
alex
@heyitsmeuralex
Apr 30 2016 17:25
That's how the docs do it.
:P
Arthur
@kvackkvack
Apr 30 2016 17:26
I thought you meant something like (req, [] res) {}
:P
alex
@heyitsmeuralex
Apr 30 2016 17:26
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
Yeah. :P
rip @liam4 come back pls
alex
@heyitsmeuralex
Apr 30 2016 17:27
Ooh, maybe also [foo='default] too?
Like, default arguments
Arthur
@kvackkvack
Apr 30 2016 17:27
Sounds nice.
alex
@heyitsmeuralex
Apr 30 2016 17:33
@liam4 don't implement this; I wanna try, k? :P
Arthur
@kvackkvack
Apr 30 2016 17:37
This message was deleted
This message was deleted
MegaApuTurkUltra This message was not deleted
Arthur
@kvackkvack
Apr 30 2016 18:04
:OOO
alex
@heyitsmeuralex
Apr 30 2016 18:05
lol
Florrie
@towerofnix
Apr 30 2016 18:40

Shouldn't unevaluated be a keyword?

Yes.

nearley debugging is hard :(

Yes, yes, yes.

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

@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
Ooo
Arthur
@kvackkvack
Apr 30 2016 19:01
How do I prevent ambiguity in nearley?
alex
@heyitsmeuralex
Apr 30 2016 19:02
Magic
Arthur
@kvackkvack
Apr 30 2016 19:03
I see.
Florrie
@towerofnix
Apr 30 2016 19:11
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
Mine seems to parse "5.86" as both "5", "5.8" and "5.86" lol
alex
@heyitsmeuralex
Apr 30 2016 19:11
mate
Magicians code
:P
Arthur
@kvackkvack
Apr 30 2016 19:43
At least I've gotten strings to work now...
Florrie
@towerofnix
Apr 30 2016 23:31
liam4/tlnccuwagnf@36e14e4 :tada: String escapes!