These are chat archives for liam4/tlnccuwagnf

28th
Apr 2016
MegaApuTurkUltra
@MegaApuTurkUltra
Apr 28 2016 00:57
^
Florrie
@towerofnix
Apr 28 2016 01:22
@MegaApuTurkUltra @Arinerron tl;dr I implemented #34 i.e. (arg1 fn arg2) which allows for things like (2 + 4), (7 < 2), etc
also I felt a little good about myself by having a bath and realizing the solution to a problem while having that bath
see liam4/tlnccuwagnf@15df592 :P
109C
@109C
Apr 28 2016 01:29
+1 for the boogie gif.
Aaron
@Arinerron
Apr 28 2016 02:54
^ +1 for +1'ing the boogie gif.
Florrie
@towerofnix
Apr 28 2016 03:09
:P
alex
@heyitsmeuralex
Apr 28 2016 06:35
Wait did you get async return() working
:package:
alex
@heyitsmeuralex
Apr 28 2016 10:23
ooo
async returns
alex
@heyitsmeuralex
Apr 28 2016 16:40
@liam4 how does one define an async function within a global-module (written in js)?
i.e. does something like new lib.asyncLFunction(fn) exist?
Florrie
@towerofnix
Apr 28 2016 16:41
Async lib functions ≠ exist yet
alex
@heyitsmeuralex
Apr 28 2016 16:41
righty.
Florrie
@towerofnix
Apr 28 2016 16:41
Right now async functions have .isAsynchronous = true
alex
@heyitsmeuralex
Apr 28 2016 16:42
right.
so, uh
thats sad
:P
Florrie
@towerofnix
Apr 28 2016 16:43
plzzzz implement
alex
@heyitsmeuralex
Apr 28 2016 16:43
Me?
:P
Florrie
@towerofnix
Apr 28 2016 16:43
no
I'm quoting
your head
alex
@heyitsmeuralex
Apr 28 2016 16:43
lol
Florrie
@towerofnix
Apr 28 2016 16:43
meta
alex
@heyitsmeuralex
Apr 28 2016 16:43
are you implementing atm or shall I try
because I have nothing to do
Florrie
@towerofnix
Apr 28 2016 16:44
I mean you can implement it if you want :P
basically replace one line
alex
@heyitsmeuralex
Apr 28 2016 16:44
xD
Florrie
@towerofnix
Apr 28 2016 16:44
fnToken.fn()
with
await fnToken.fn()
:D
alex
@heyitsmeuralex
Apr 28 2016 16:44
welp
Florrie
@towerofnix
Apr 28 2016 16:44
<3
I think.
alex
@heyitsmeuralex
Apr 28 2016 16:44
presses Easy button
Touch wood.
blob

OH NOES

Florrie
@towerofnix
Apr 28 2016 16:45

OH MY GOODNESS NO IT'S ALL HORRIBLE

IT'S A SYNTAX ERROR

alex
@heyitsmeuralex
Apr 28 2016 16:45
:P
Wait, do asyncy things actually run in parallel?
ret => return; ew
Florrie
@towerofnix
Apr 28 2016 16:47
Nope!
alex
@heyitsmeuralex
Apr 28 2016 16:47
Lol
what's the point then?
:P
Florrie
@towerofnix
Apr 28 2016 16:48
Easier writing
alex
@heyitsmeuralex
Apr 28 2016 16:48
kek
Florrie
@towerofnix
Apr 28 2016 16:48
Oh
hmm
File reads and writes can happen in parallel.
Same with network stuff.
alex
@heyitsmeuralex
Apr 28 2016 16:48
can?
Fancy.
Florrie
@towerofnix
Apr 28 2016 16:48
Multiple pieices of code logic don't happen in parallel.
alex
@heyitsmeuralex
Apr 28 2016 16:49
Right.
But events do?
:shipit:
Florrie
@towerofnix
Apr 28 2016 16:49
Can because there's .sync methods too :P
Events?
alex
@heyitsmeuralex
Apr 28 2016 16:49
I mean, if we made a proper http module for tulun
and lots of people called at the same time
would they run asyncronously?
Florrie
@towerofnix
Apr 28 2016 16:49
You deal with one person at a time.
:)
alex
@heyitsmeuralex
Apr 28 2016 16:49
:P
node > tulun
but whatever
xD
Florrie
@towerofnix
Apr 28 2016 16:50
tbh idk how or if node deals with multiple callers at once.
alex
@heyitsmeuralex
Apr 28 2016 16:50
It does
:P
Florrie
@towerofnix
Apr 28 2016 16:50
I-I'm not a server dev!
:P
alex
@heyitsmeuralex
Apr 28 2016 16:50
je suis
:shipit:
Florrie
@towerofnix
Apr 28 2016 16:51
k, so explain handling multiple 'callers' at once.
alex
@heyitsmeuralex
Apr 28 2016 16:51
well
events
:P
Florrie
@towerofnix
Apr 28 2016 16:51
Code demo please? :P
Oh.
Well, yeah.
I see what you mean.
Yep, it does deal with multiple people at once in that case.
All the logic happens in a single thread but network stuff is done over multiple threads, right?
alex
@heyitsmeuralex
Apr 28 2016 16:52
when => use('when');

when.somebody-does-something({
  sleep-async(3);
  print('wow!');
});

when.ooo({
  sleep-async(3);
  print('wow!');
});

when.emit('ooo');
when.emit('somebody-does-something');
this.
both sleep-asyncs should run at the same time
All the logic happens in a single thread but network stuff is done over multiple threads, right?
guess so
:smile:
Florrie
@towerofnix
Apr 28 2016 16:53
+1, both sleeps happen at the same time
alex
@heyitsmeuralex
Apr 28 2016 16:54
would tulun do that?
:P
Florrie
@towerofnix
Apr 28 2016 16:54
Yes.
alex
@heyitsmeuralex
Apr 28 2016 16:54
Like, does it already?
:shipit:
Florrie
@towerofnix
Apr 28 2016 16:54
No.
:)
alex
@heyitsmeuralex
Apr 28 2016 16:54
lol
Florrie
@towerofnix
Apr 28 2016 16:54
don't :shipit: :P
alex
@heyitsmeuralex
Apr 28 2016 16:54
cue ksi sad song
Florrie
@towerofnix
Apr 28 2016 16:54
Oh.
I mean
yeah
it does
but sleep-async isn't implemented
that's like
alex
@heyitsmeuralex
Apr 28 2016 16:54
:P
ik
Florrie
@towerofnix
Apr 28 2016 16:54
part of JS
alex
@heyitsmeuralex
Apr 28 2016 16:55
mm
hehe
Florrie
@towerofnix
Apr 28 2016 16:57
?
alex
@heyitsmeuralex
Apr 28 2016 16:57
added process.exit(code);
  variables['process'] = new lib.Variable(lib.toLObject({
    exit: new lib.LFunction(function([code]) {
      code = code || 0
      process.exit(code)
    })
  }))
nvm
cool!
alex
@heyitsmeuralex
Apr 28 2016 16:57
:P
Florrie
@towerofnix
Apr 28 2016 16:58
I was worried you put a process.exit somewhere in the source :P
alex
@heyitsmeuralex
Apr 28 2016 16:58
lol
I need to figure out why my atom grammar isn't highlighting dash-case properly
blob
I like my hidden semicolons :P
Florrie
@towerofnix
Apr 28 2016 17:00
:P
Might make a sublime theme for tul files for fun.
alex
@heyitsmeuralex
Apr 28 2016 17:01
:P
Atom grammars are hard
they're undocumented
ooo
apm link is a thing :D
that helps a tonne
@liam4 maybe make your theme as a textmate one so we can convert it to atom/sublime respectively
Florrie
@towerofnix
Apr 28 2016 17:05
YAML-tmLanguage compiles to tmTheme
alex
@heyitsmeuralex
Apr 28 2016 17:05
In english kthx
:shipit:
Florrie
@towerofnix
Apr 28 2016 17:25
(?!-)(?<=\W)return(?!-)(?=\W)
Phew, that regex was a tough one
alex
@heyitsmeuralex
Apr 28 2016 17:25
:P
what does it do?
Florrie
@towerofnix
Apr 28 2016 17:25
It matches return surrounded by separator characters but not dashes
alex
@heyitsmeuralex
Apr 28 2016 17:25
also what are you writing this in? :P
Florrie
@towerofnix
Apr 28 2016 17:25
YAML-tmLanguage
alex
@heyitsmeuralex
Apr 28 2016 17:25
righty
Florrie
@towerofnix
Apr 28 2016 17:25
:D
alex
@heyitsmeuralex
Apr 28 2016 17:26
so that'll transpile to atom syntax rite?
:shipit:
Florrie
@towerofnix
Apr 28 2016 17:26
Screen Shot 2016-04-28 at 2.25.50 PM.png
it'll transpile to tmLanguage
which apparently transpiles to atom right?
alex
@heyitsmeuralex
Apr 28 2016 17:26
yep
can you repoify this or something so I can add to it?
:shipit:
Florrie
@towerofnix
Apr 28 2016 17:27
When it works decently ok
alex
@heyitsmeuralex
Apr 28 2016 17:27
pleaaaaaaaaase?
btw: (+|-|/|*|<|>|=|return|process|print-debug|add|divide|minus|multiply|Variable|print|concat|if|ifel|obj|array|not|and|or|lt|gt|eq|is|loop|use|make|change|value|from|exists)
all the builtins!
Florrie
@towerofnix
Apr 28 2016 17:27
thanks :P
Florrie
@towerofnix
Apr 28 2016 17:33
Screen Shot 2016-04-28 at 2.32.35 PM.png
alex
@heyitsmeuralex
Apr 28 2016 17:33
oooo
does # span multilines?
Florrie
@towerofnix
Apr 28 2016 17:33
aaaaaaanope.
alex
@heyitsmeuralex
Apr 28 2016 17:33
:P
Florrie
@towerofnix
Apr 28 2016 17:33
not sure why
thinks
alex
@heyitsmeuralex
Apr 28 2016 17:33
'comments':
    'begin': '(^[ \\t]+)?(?=#)'
    'beginCaptures':
      '1':
        'name': 'punctuation.whitespace.comment.leading.python'
    'end': '(?!\\G)'
    'patterns': [
      {
        'begin': '(#|\#\:)'
        'beginCaptures':
          '0':
            'name': 'punctuation.definition.comment.python'
        'end': '(#|\:\#)'
        'name': 'comment.line.number-sign.python'
      }
    ]
mine is this
Florrie
@towerofnix
Apr 28 2016 17:34
Mine is.. this.
- name: comment.line.number-sign.tulun
  match: (#[^#]*)
:P
alex
@heyitsmeuralex
Apr 28 2016 17:34
:P
PLEASE MAKE A REPO
I WANNA HELP/TRY
due to my syntax being terribad
btw what theme is that?
Florrie
@towerofnix
Apr 28 2016 17:39
LAZY
alex
@heyitsmeuralex
Apr 28 2016 17:39
?
:shipit:
Florrie
@towerofnix
Apr 28 2016 17:39
that's the name of the color scheme :P
alex
@heyitsmeuralex
Apr 28 2016 17:39
aha
Florrie
@towerofnix
Apr 28 2016 17:39
:shipit:
alex
@heyitsmeuralex
Apr 28 2016 17:40
lazy-light :P
PLEASE MAKE A REPO
Florrie
@towerofnix
Apr 28 2016 17:40
alex
@heyitsmeuralex
Apr 28 2016 17:40
mm
Just installed
although...
I quite like cake
ooo
merci
heh, power mode is awesome
alex
@heyitsmeuralex
Apr 28 2016 18:19
@liam4 Uh, how do I convert .tmLanguage files into .tmBundle s?
actually
I might just use Sublime from now on :P
ooo
ta-da
alex
@heyitsmeuralex
Apr 28 2016 19:35
Ugh...
...how do I install tulun.YAML-tmLanguage to sublime? :P
alex
@heyitsmeuralex
Apr 28 2016 19:54
nvm, works now :D
Florrie
@towerofnix
Apr 28 2016 20:10
Cool. For future reference, packagedev :P
alex
@heyitsmeuralex
Apr 28 2016 20:10
mm
Using that now
so, uh
Florrie
@towerofnix
Apr 28 2016 20:11
so, uh
uh
uhhhhhh
alex
@heyitsmeuralex
Apr 28 2016 20:11
- name: meta.function.tulun
  match: (async)? {
Florrie
@towerofnix
Apr 28 2016 20:11
um.
alex
@heyitsmeuralex
Apr 28 2016 20:11
why does this not work
I'm bad at regex/grammar
:P
Florrie
@towerofnix
Apr 28 2016 20:11
It's a regexp
Use \{
Escape the {
alex
@heyitsmeuralex
Apr 28 2016 20:11
kek
Florrie
@towerofnix
Apr 28 2016 20:11
:D
alex
@heyitsmeuralex
Apr 28 2016 20:11
hm
where are the name properties?
i.e. what can go there
Florrie
@towerofnix
Apr 28 2016 20:12
It should autocomplete.
Are you using PackageDev?
alex
@heyitsmeuralex
Apr 28 2016 20:13
oui
ah
I see
aha
das cool
alex
@heyitsmeuralex
Apr 28 2016 20:21
Hm...
trying to figure out how to select function arguments
Florrie
@towerofnix
Apr 28 2016 20:21
Do some inner match voodoo?
alex
@heyitsmeuralex
Apr 28 2016 20:21
e.g.
fn => (matchMe) { }
:P

I've got

- name: support.function.tulun
  match: async(.)?(?=\{)

working

Florrie
@towerofnix
Apr 28 2016 20:22
i.e.
begin: \(
end: \)
patterns:
- name: argument.foo
  match: baz.bar.matches-argument
alex
@heyitsmeuralex
Apr 28 2016 20:22
ah
thanks
Florrie
@towerofnix
Apr 28 2016 20:22
I.. think that should work :)
alex
@heyitsmeuralex
Apr 28 2016 20:23
I sort of meant when defining functions
xD
Florrie
@towerofnix
Apr 28 2016 20:23
Should still be the same thing :P
alex
@heyitsmeuralex
Apr 28 2016 20:23
righty
eh, whatever
can't be bothered
Florrie
@towerofnix
Apr 28 2016 20:25
xD
alex
@heyitsmeuralex
Apr 28 2016 20:25
:shipit:
pushed
Florrie
@towerofnix
Apr 28 2016 20:29
Yay!
alex
@heyitsmeuralex
Apr 28 2016 20:29
http://regexr.com/ is soooo helpful
:P
Florrie
@towerofnix
Apr 28 2016 20:29
I've used it before, yeah :P