sorawee
2019-12-2 10:10:28

Any idea?


samth
2019-12-2 10:13:44

You can’t do that hygenically because that specification is not hygenic. But it should be pretty easy by making that require have the context of the (module ...) form.


sorawee
2019-12-2 11:09:23

@samdphillips have you done aoc day 2?


yfangzhe
2019-12-2 11:11:04

I think the answer is yes, because he is #1 now on the leaderboard


tim986
2019-12-2 11:12:46

It’s K? Really (I’m not disbelieving you… I’m just astonished I haven’t spotted that)


tim986
2019-12-2 11:12:55

thanks all


sorawee
2019-12-2 11:13:05

what leaderboard?


sorawee
2019-12-2 11:13:34

Is this a private leaderboard?


yfangzhe
2019-12-2 11:14:36

Yes, you can find it in the pinned message in #advent-of-code


pezi_pink
2019-12-2 13:16:25

hi all, how much is my compile-time performance going to hurt if i implement basically a whole grammar using syntax-class and splicing-syntax-class? am I looking at a greater-than-linear/constant slowdown if loads of patterns use each other, and themselves recursively?


pezi_pink
2019-12-2 13:17:39

obviously, recursive/nested patterns will take longer as appropriate. I guess I am asking if under the hood somewhere a >=n2 complexity is going to bite me.


soegaard2
2019-12-2 13:20:28

@ryanc ^


ryanc
2019-12-2 13:44:45

@pezi_pink It depends on the grammar. For a linear grammar, the kind that you would normally feed to a LALR(1) parser generator (or similar), it could go very badly. For example, a left-recursive splicing syntax class (with the recursive case first) will just loop forever, I think. For a tree-structured grammar that you could parse with match if not for the syntax nodes, it should work well, but you might need to put #:commit declarations on your syntax classes (but not the splicing syntax classes).


pezi_pink
2019-12-2 14:00:22

@ryanc thanks for the tips, much appreciated. Ps. I watched one of your videos recently on this stuff, I didn’t know about (~?) and (~@) which have made my life a lot easier, thanks!


soegaard2
2019-12-2 15:39:45

Is David’s “Felt” and “Brush” languages the same? (See the two top links at https://racket-stories.com/ )


samdphillips
2019-12-2 15:56:43

Yeah I’m on Pacific Time so I have a bit of an advantage. Generally by the time I get to the 10th I cannot complete them as quickly.


samdphillips
2019-12-2 15:57:35

I’m holding my GitHub pushes at least until 8am ish Pacific.


soegaard2
2019-12-2 17:14:46

I am confused by the output of this: > (regexp-match #px"([:word:])(.*)" "foo") '("oo" "o" "o") I was expecting the f to show up in the result as well.

What am I missing?


jbclements
2019-12-2 17:21:45

To clarify: did running xattr -d on the individual executables not work? Or is it just more convenient to do the whole directory at once?


popa.bogdanp
2019-12-2 17:33:21

FWIW, I’ve been (ab)using syntax-parse to do something like what you’re asking in https://github.com/Bogdanp/racket-review/blob/master/lint.rkt#L520 . I haven’t encountered any perf. issues thus far


soegaard2
2019-12-2 17:43:46

I missed that [:word:] belongs inside a [ ]


florence
2019-12-2 18:45:10

The solution to everything is more parenthesis!


sorawee
2019-12-2 19:58:38

I’m on pacific time too, but I always participated at 3am…


spdegabrielle
2019-12-2 21:22:33

I’ve discovered from the programminglanguages discord server that it is possible to bridge discord server channels to IRC(freenode) is this desirable? (I’m assuming slack/irc bridge gone forever)


samdphillips
2019-12-2 22:05:08

haha


racket132
2019-12-3 01:20:30

@racket132 has joined the channel


samdphillips
2019-12-3 01:55:55

Can you execve(2) from a Racket program?


samdphillips
2019-12-3 02:22:24

Like is there a good builtin/library to do it.


samth
2019-12-3 02:24:14

Yes, see system and process and other functions with similar names


samdphillips
2019-12-3 02:31:23

Those don’t quite fit what I’m looking for (unless there is an option I’m missing), I need to exec a new process and racket would no longer be running.


deactivateduser60718
2019-12-3 03:18:05

Does someone have a link to the motivation behind creating the CS VM for Racket?


deactivateduser60718
2019-12-3 03:22:14

samth
2019-12-3 03:45:13

find ./ -name \*.c


bas
2019-12-3 07:07:12

@bas has joined the channel