Re: [racket-users] Replacing nodejs with Racket... possible?

2018-02-12 Thread 'Paulo Matos' via Racket Users
Thanks. RacketScript is just what I need. :) On 10/02/18 21:26, Jens Axel Søgaard wrote: > Check the Playground for RacketScript. Sounds like your program have the > same components. > > https://github.com/vishesh/racketscript-playground > > /Jens Axel > > > 2018-02-10 20:19 GMT+01:00 'John Cl

[racket-users] Emacs and Racket and typing (Was: Concise way to get completions for Racket code?)

2018-02-12 Thread Neil Van Dyke
A few typing-saving Racket tips for Emacs... * If you're a weirdo who is using Quack rather than Greg Hendershott's much newer Emacs racket-mode, and your keyboard requires you to use the Shift key to type parentheses, you can instead just use the square brackets keys to get parentheses insert

Re: [racket-users] (dynamic-require) performance problem

2018-02-12 Thread Dmitry Pavlov
Matthew, I can imagine a problem where the "language implementation" is in the reader, in which case it wouldn't get run when loading from bytecode, but that doesn't explain why `racket ` works --- unless the initialization is also triggered by a `main` or `configure-runtime` submodule, which wo

Re: [racket-users] (dynamic-require) performance problem

2018-02-12 Thread Dmitry Pavlov
Does the port `p` contain the source text for , or does it contain the bytecode from the ".zo" file created by `raco make ? In this dedicated test, just the source text of and nothing else. I think this is the main cause of the performance difference, but just to make sure, does raco

Re: [racket-users] (dynamic-require) performance problem

2018-02-12 Thread Matthew Flatt
At Mon, 12 Feb 2018 16:38:32 +0300, Dmitry Pavlov wrote: > > I'm not clear on why you're using `require-input-port` here instead of > > `dyanmic-require` with 's path. > > Originally, I needed it to prepend "#lang " to the source because I > did not have it in the file. > That requirement is not s

Re: [racket-users] (dynamic-require) performance problem

2018-02-12 Thread Dmitry Pavlov
Matthew, I'm not clear on why you're using `require-input-port` here instead of `dyanmic-require` with 's path. Originally, I needed it to prepend "#lang " to the source because I did not have it in the file. That requirement is not so strict now and I will be able to lift it if it is critica

Re: [racket-users] (dynamic-require) performance problem

2018-02-12 Thread Matthew Flatt
At Mon, 12 Feb 2018 15:55:44 +0300, Dmitry Pavlov wrote: > I measure the time taken to execute a program in two different ways: > > 1. raco make ; time racket > > 2. raco make my-runner.rkt; raco make ; time racket my-runner.rkt > > > [...] > > To load it dynamically in my-runner.rkt, I use t

[racket-users] (dynamic-require) performance problem

2018-02-12 Thread Dmitry Pavlov
Hello, I have a performance problem with loading a Racket program dynamically. I measure the time taken to execute a program in two different ways: 1. raco make ; time racket 2. raco make my-runner.rkt; raco make ; time racket my-runner.rkt In the first case, execution takes ~1 second, in

[racket-users] Re: Concise way to get completions for Racket code?

2018-02-12 Thread Gour
On Mon, 12 Feb 2018 03:37:54 -0500 Neil Van Dyke wrote: > Regarding Emacs (Esc-Meta-Alt-Ctrl-Shift) specifically... The Emacs > features that reduce the amount of repetitive typing required (for, > e.g., formatting, completion, navigation) are good, but what's bad > for some people is that Emacs

Re: [racket-users] Re: Concise way to get completions for Racket code?

2018-02-12 Thread Thomas F. Burdick
Hi, Replying off list because this is getting pretty far removed from Racket: if you were experiencing wrist pain when using emacs, that's probably indicative of RSI problems just under the surface. Take this stuff seriously; if you address the problem at the first hint of discomfort, you're ge

Re: [racket-users] Re: Concise way to get completions for Racket code?

2018-02-12 Thread Neil Van Dyke
Gour wrote on 02/12/2018 03:01 AM: I had tried tried several times with Emacs, but, for some strange reason, very soon I would experience some wrist pain and finally gave up on it. Something that's not Racket-specific, but is very important to software developers... I've seen several develo

[racket-users] Re: Concise way to get completions for Racket code?

2018-02-12 Thread Gour
On Sun, 11 Feb 2018 16:12:34 -0800 (PST) HiPhish wrote: > One large advantage DrRacket has is its graphics capabilities. That's somehing I would just have to discover. :-) > What's really cool about Neovim is that the developers have been de-crufting > Vim. For example, GUIs are now independen