[racket-users] mutually linking between documentation of different packages

2016-02-22 Thread Neil Van Dyke
If there are two packages, "a" and "b", in the package catalog, and the authors of both packages want their package's documentation to have hyperlinks to sections of the other package's documentation... Will that work? Is it OK for how the package system (or catalog, or build tools) work? N

[racket-users] Strange behavior with highlight-range method from framework

2016-02-22 Thread Alex Knauth
Hello, I'm trying to figure out how I would make a text editor or a DrRacket extension that circled nested s-expressions instead of displaying the parentheses. DrRacket circles text for the find/replace feature, so I looked at that and found that it uses the highlight-range method of text:basic

[racket-users] slow rendering for 1000+ lines/arcs

2016-02-22 Thread copycat
My program shows slow rendering when i am dealing with hundreds of lines/arcs to draw. Panning even when the canvas is zoomed in a particular point seems to be laggy. Using (time ..) to snoop around, it looks like draw-objects in "canvas.rkt" is to blame. Is there a way i can fix this? https://

Re: [racket-users] Help writing a simple lexer/tokenizer

2016-02-22 Thread Jon Zeppieri
On Mon, Feb 22, 2016 at 7:26 PM, Neil Van Dyke wrote: > For someone who really wants to learn this well, rather than just make a > lexer and move on... > > I started learning the pertinent theory (such as automata NFA/DFA, and > classes of formal languages) from the original red dragon book: > ht

Re: [racket-users] Help writing a simple lexer/tokenizer

2016-02-22 Thread Neil Van Dyke
For someone who really wants to learn this well, rather than just make a lexer and move on... I started learning the pertinent theory (such as automata NFA/DFA, and classes of formal languages) from the original red dragon book: https://en.wikipedia.org/wiki/Compilers:_Principles,_Techniques,_

Re: [racket-users] long (16s) pauses in UI associated with OS X, possibly app nap?

2016-02-22 Thread Robby Findler
There has been improvement since 6.1.1, I believe. Robby On Mon, Feb 22, 2016 at 5:55 PM, George Neuner wrote: > On 2/22/2016 3:04 PM, 'John Clements' via Racket Users wrote: >> >> I have several students who are observing truly impressive UI delays in >> using DrRacket. Specifically, it often h

Re: [racket-users] long (16s) pauses in UI associated with OS X, possibly app nap?

2016-02-22 Thread George Neuner
On 2/22/2016 3:04 PM, 'John Clements' via Racket Users wrote: I have several students who are observing truly impressive UI delays in using DrRacket. Specifically, it often happens when they type a double-quote (“) with “automatic parentheses” enabled, and after typing the key, it will take mor

Re: [racket-users] Help writing a simple lexer/tokenizer

2016-02-22 Thread Justin Zamora
You can also try using a state machine using the approach described in https://cs.brown.edu/~sk/Publications/Papers/Published/sk-automata-macros/paper.pdf On Feb 22, 2016 4:46 PM, "Federico Ramírez" wrote: > Hello everyone! I'm new to Scheme, and I need some help wrapping my head > around it. > >

Re: [racket-users] Help writing a simple lexer/tokenizer

2016-02-22 Thread Federico Ramírez
On Monday, 22 February 2016 19:25:50 UTC-3, Jon Zeppieri wrote: > Have you looked at the parser-tools/lex library? > https://docs.racket-lang.org/parser-tools/Lexers.html > > > On Feb 22, 2016, at 4:46 PM, Federico Ramírez wrote: > > > > Hello everyone! I'm new to Scheme, and I need some help

Re: [racket-users] Help writing a simple lexer/tokenizer

2016-02-22 Thread Federico Ramírez
On Monday, 22 February 2016 19:34:40 UTC-3, Jens Axel Søgaard wrote: > 2016-02-22 22:46 GMT+01:00 Federico Ramírez : > > >     (define (tokenize input) > >       (cond > >         ((match-identifier input) (consume-identifier input)) > >         ((match-equals     input) (consume-equals     i

Re: [racket-users] Help writing a simple lexer/tokenizer

2016-02-22 Thread Jens Axel Søgaard
2016-02-22 22:46 GMT+01:00 Federico Ramírez : (define (tokenize input) > (cond > ((match-identifier input) (consume-identifier input)) > ((match-equals input) (consume-equals input)) > ((match-number input) (consume-number input)) > (else '

Re: [racket-users] Help writing a simple lexer/tokenizer

2016-02-22 Thread Jon Zeppieri
Have you looked at the parser-tools/lex library? https://docs.racket-lang.org/parser-tools/Lexers.html > On Feb 22, 2016, at 4:46 PM, Federico Ramírez wrote: > > Hello everyone! I'm new to Scheme, and I need some help wrapping my head > around it. > > I want to write a simple tokenizer, which

Re: [racket-users] long (16s) pauses in UI associated with OS X, possibly app nap?

2016-02-22 Thread Robby Findler
One thing that might help is if, during the pause, you open up a terminal, figure out the pid for the drracket's misbehaving and then do "kill -SIGINT " you might get a message with a stack in it. I'm not completely sure about this, but if you start up from the shell (not using "open" but by runnin

Re: [racket-users] long (16s) pauses in UI associated with OS X, possibly app nap?

2016-02-22 Thread Robby Findler
I gave that file a try with background expansion on and didn't seem to be able to trigger the issue. Background expansion doesn't really interact with the GUI itself unless the little colored bubble in the corner is the lighter purple color (the dark blue and the darker purple both correspond to p

[racket-users] Help writing a simple lexer/tokenizer

2016-02-22 Thread Federico Ramírez
Hello everyone! I'm new to Scheme, and I need some help wrapping my head around it. I want to write a simple tokenizer, which is just a function that takes a string as input and outputs a list of "tokens", which to keep thing simple is a tuple of NAME and VALUE. So, for example: (tokenize "fo

Re: [racket-users] long (16s) pauses in UI associated with OS X, possibly app nap?

2016-02-22 Thread Jens Axel Søgaard
I don't see for that file. If I remember correctly it happened in this file: https://github.com/soegaard/urlang/blob/master/urlang.rkt I can't reproduce it now though (which btw is the reason I didn't report a bug). Hmm. Maybe it went away when I disabled background expansion? That file is very ma

Re: [racket-users] long (16s) pauses in UI associated with OS X, possibly app nap?

2016-02-22 Thread Robby Findler
That sounds like something that is fixable and it would be helpful to have a file that exhibits particularly bad problems in order to make sure it really is fixed. I tried opening drracket/private/unit (using "Open Require Path...") and wasn't able to provoke the bad behavior. Do you (or Jens Axe

Re: [racket-users] long (16s) pauses in UI associated with OS X, possibly app nap?

2016-02-22 Thread Jens Axel Søgaard
FWIW I may have seen the same thing. I am not using "automatic parentheses" though. I have seen it at occasion when typing a " in longish files (>1500 lines). This was on version 6.3 (or earlier?). 2016-02-22 21:04 GMT+01:00 'John Clements' via Racket Users < racket-users@googlegroups.com>: > I

[racket-users] long (16s) pauses in UI associated with OS X, possibly app nap?

2016-02-22 Thread 'John Clements' via Racket Users
I have several students who are observing truly impressive UI delays in using DrRacket. Specifically, it often happens when they type a double-quote (“) with “automatic parentheses” enabled, and after typing the key, it will take more than 16 seconds for the screen to update and for the quotes t