samth
2017-2-24 16:50:20

@mflatt I implemented some of the missing functions from http://docs.racket-lang.org/reference/eval.html but now port references read-syntax and extraction no longer works


samth
2017-2-24 16:50:30

is that a sign that the code should go in expander?


samth
2017-2-24 16:50:52

but it also needs some internal access to port-related values (such as the original input/output ports)


mflatt
2017-2-24 16:51:38

Thanks for helping, but I think you should hold off on that direction until things get further along


samth
2017-2-24 16:51:49

ok


samth
2017-2-24 16:52:18

I picked that code because it supported read-eval-print-loop, but I’ll leave the level to you


samth
2017-2-24 16:54:37

I did, however, also fix a small bug in printf (PR sent)


spall
2017-2-24 17:06:10

What version of chez scheme is not-a-box supposed to use? I get this error spall@spall:~/iu/hash-tables/not-a-box$ scheme benchmark.scm Chez Scheme Version 9.4.1 Copyright 1984-2016 Cisco Systems, Inc. Exception in read: #<n>% primitive syntax is not allowed in #!r6rs mode at line 43, char 22 of hash-code.sls


spall
2017-2-24 17:06:26

@mflatt @samth


mflatt
2017-2-24 17:07:19

I’m not sure of the best approach, but supply all the ".so" files on the command line: scheme hash-code.so ... benchmark.scm


mflatt
2017-2-24 17:07:39

FWIW, I’m currently rearranging so that most of the ".so"s will be just “core.so”


spall
2017-2-24 17:07:52

Okay thanks


samth
2017-2-24 17:36:06

@spall I used chez built from GitHub


samth
2017-2-24 22:55:01

with the PR i’ve made, I can now run some benchmarks


samth
2017-2-24 22:55:15

chez is fairly fast :slightly_smiling_face:


samth
2017-2-24 22:55:42

but something about running things via the extracted expander is slow


samth
2017-2-24 23:27:58

also, my first benchmark of the expander itself runs about the same in racket & chez, and about 2x slower than the in-C expander


samth
2017-2-24 23:28:22

but I don’t know if that performance is affected by whatever is making running via the extracted expander slow


samth
2017-2-25 02:25:48

Chez’s profiling tools are nice


samth
2017-2-25 02:26:06

they confirm that the expander is a HAMT benchmark