stchang
2017-1-24 17:47:13

@stchang has joined the channel


mflatt
2017-1-25 00:45:06

reader in C: about 5k lines; reader in Racket: about 3.2k lines


mflatt
2017-1-25 00:45:22

regexp in C: about 6k lines; regexp in Racket: about 7k lines


mflatt
2017-1-25 00:46:03

:shrug:


mflatt
2017-1-25 00:48:43

regexp benchmarks


mflatt
2017-1-25 00:49:18

In case anyone is interested in the performance; bottom line: x1-x2 for typical uses, and x2-x12 for stress cases (and the benchmarks are mostly stress cases)


mflatt
2017-1-25 00:50:11

The upper end of the slowdown is always some iteration on a long byte string, such as looking for one particular character in a very long byte string


mflatt
2017-1-25 00:52:03

@samth I wonder how well Pycket does on the regexp matcher; it’s a kind of interpreter, but internally using a closure compiler, and my guess is that Pycket does well with that (as opposed to an interpreter dispatch)


samth
2017-1-25 00:52:48

I’ll try it out


samth
2017-1-25 01:01:04

Or really, I just invited @sabauma to this channel to do so


sabauma
2017-1-25 01:01:17

@sabauma has joined the channel


sabauma
2017-1-25 01:02:42

@samth The benchmark is this rx.zip file?


samth
2017-1-25 01:04:22

Yes


samth
2017-1-25 01:04:44

I haven’t looked at it yet, it’s late here


sabauma
2017-1-25 01:06:13

Those are all html files though.


sabauma
2017-1-25 01:06:33

Is the code to run in the linklets branch of Racket?


sabauma
2017-1-25 01:08:56

@mflatt: Where can I find the code used to generate those timings?



mflatt
2017-1-25 01:18:56

but I hacked it to add racket-impl….


mflatt
2017-1-25 01:19:14

sabauma
2017-1-25 01:29:32

Where can I find this file: "/Users/mflatt/linklet/pkgs/regexp/main.rkt"?