Re: [racket-users] Re: Typing lag with DrRacket on Linux

2018-02-10 Thread evdubs
I made the following change to window.rkt 's flush-display (define (flush-display) (try-to-sync-refresh) ;; (gdk_window_process_all_updates) (gdk_display_flush (gdk_display_get_default))) I made this

Re: [racket-users] Re: Typing lag with DrRacket on Linux

2018-02-10 Thread evdubs
I had to add a sampler to that code so what I really had was this: #lang racket/gui (require profile) (require profile/analyzer) (require profile/render-text) (require profile/sampler) (define s (create-sampler (current-thread) 0.0)) (s 'get-snapshots) (define ec% (class editor-canvas%

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

2018-02-10 Thread Jens Axel Søgaard
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 Clements' via Racket Users < racket-users@googlegroups.com>: > I think you might be most interested in

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

2018-02-10 Thread 'John Clements' via Racket Users
I think you might be most interested in RacketScript, available on the package server. It compiles racket into JS. https://github.com/vishesh/racketscript/blob/master/README.md Haven’t used it myself, but I probably will, the next time I need something written in JS. John > On Feb 10,

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

2018-02-10 Thread 'Paulo Matos' via Racket Users
Hi, I am far from being a web dev so please bear with me. I need to do a simple web interface with two text areas side-by-side in order to test-drive a commercial product from a web interface. The user writes on the left side. The content is driven through a server side app (in racket but I don't

Re: [racket-users] Re: Typing lag with DrRacket on Linux

2018-02-10 Thread Robby Findler
If you run this code, does the profiling information reveal anything interesting? #lang racket/gui (require profile) (define ec% (class editor-canvas% (define/override (on-paint) (profile (super on-paint))) (define/override (on-char e) (profile (super on-char e)))