shu--hung
2018-3-14 00:44:47

Is it possible to disable compile-context-preservation-enabled when compiling racket from git head?


shu--hung
2018-3-14 00:44:57

sorry, *enable


shu--hung
2018-3-14 00:48:13

Is adding --disable-inline to raco arguments in in-place-setup enough?


mflatt
2018-3-14 01:06:46

@shu—hung I don’t think raco setup supports --disable-inline. If you’re wiling to change code, you could add the init_param(cells, paramz, MZCONFIG_DISALLOW_INLINE, scheme_true); around https://github.com/racket/racket/blob/master/racket/src/racket/src/thread.c#L7874 to change the built-in default.


shu--hung
2018-3-14 01:07:53

@mflatt: aha, thanks!!


lexi.lambda
2018-3-14 01:50:24

I’m interested in going further with my embedding of André van Tonder’s macro system in Racket, but reimplementing syntax / quasisyntax seems fairly complicated for little gain (I just need to swap out Racket’s quote-syntax for my own quote-syntax). Pattern variables are straightforward, but ellipses make things suddenly a lot harder. Is there any way I could re-use some of the existing syntax and quasisyntax implementations without copying them and modifying the source code?


lexi.lambda
2018-3-14 01:52:04

I suppose I could local-expand something using syntax, then recursively walk the resulting syntax object and replace quote-syntax with my own, but that is pretty icky, and I don’t think it would work for quasisyntax (though I could probably do a preprocessing step, collect all the expressions under unquote, and lift them into let bindings before calling local-expand).