[racket-users] Code generation performance

2020-03-13 Thread Eric Griffis
Hello, I've got a package that generates (i.e., expands into) a ridiculous amount of Racket code. I'd like to generate an unbelievable amount of code, but things have already slowed down a lot. At this point, I'm generating 20% of a massive code base and it takes 4 minutes to compile (i.e., raco

Re: [racket-users] Code generation options for a self-made compiler

2019-08-22 Thread Matthew Flatt
At Tue, 20 Aug 2019 17:53:45 +0300, Dmitry Pavlov wrote: > > Your tool would use `make-compilation-manager-load/use-compiled-handler` > > In what way my tool would use that? I think you probably don't want to go this way. But if you want to support multiple build variants within the same tree, yo

Re: [racket-users] Code generation options for a self-made compiler

2019-08-20 Thread Dmitry Pavlov
Matthew, Thank you and Matthew Butterick for advice. I was offline for a while. I did not know about raco-commands. I think this is a reasonable compromise for my task. I am not concerned about co-existence of files produced by the compiler in different modes. I am not sure I got the idea ab

Re: [racket-users] Code generation options for a self-made compiler

2019-08-15 Thread Matthew Flatt
I don't have a great answer for this situation, either. If the compilation mode makes sense as a global configuration of an installation, then one possibility would be to add to "etc/config.rktd". Editing that file is less convenient in some ways than command-line arguments, but it's nicer in oth

Re: [racket-users] Code generation options for a self-made compiler

2019-08-12 Thread Matthew Butterick
+ use the `raco-commands` key in "info.rkt" to create new `raco myprog ···` commands + use `racket/cmdline` to parse the input options to these commands. > On 12 Aug 19, at 7:34 AM, Dmitry Pavlov wrote: > > With C, everyone is happy with macros and built-in options, e. g. > > gcc -O3 -DREA

[racket-users] Code generation options for a self-made compiler

2019-08-12 Thread Dmitry Pavlov
Hello, I posted this question once, nobody answered, this is a second try. I believe there should be a solution because the problem seems rather common. See, I have a DSL compiler implemented in Racket as a #lang, syntax-parse etc. Like most compilers, it can emit somewhat diifferent code from th

Re: [racket-users] Code Generation

2015-04-14 Thread Alexander D. Knauth
On Apr 14, 2015, at 7:08 PM, Héctor Mc wrote: > Hey community > > In advance sorry for the english, don't speak the language. > I'm student and begin to work the thesis and chose to do it in racket. > It's about a code generator of web aplications (prototype). The problem that > I have is when

[racket-users] Code Generation

2015-04-14 Thread Héctor Mc
Hey community In advance sorry for the english, don't speak the language. I'm student and begin to work the thesis and chose to do it in racket. It's about a code generator of web aplications (prototype). The problem that I have is when want write/convert generated code in string for after save i