[Haskell-cafe] Re: Layout rule (was Re: PrefixMap: code review request)
I wrote: I just installed Visual Haskell 0.1, and when I type in the editor, CPU usage rises to about 70% and there's a noticeable delay before each character appears on the screen. This is no longer happening, so I guess I ran afoul of a bug. -- Ben ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Re: Layout rule (was Re: PrefixMap: code review request)
On Wed, 2006-03-01 at 22:58 +, Ben Rudiak-Gould wrote: > Duncan Coutts wrote: > > hIDE and Visual Haskell use the ghc lexer and get near-instantaneous > > syntax highlighting. > > Hmm... I just installed Visual Haskell 0.1, and when I type in the editor, > CPU usage rises to about 70% and there's a noticeable delay before each > character appears on the screen. This is a very short module (~100 lines) > and a Pentium M 1600 CPU. Am I doing something wrong? I can't say too much about the internals of VH since I've not see the code, only the description. Perhaps that's because they're starting the parser immediately after every keystroke and/or not killing the parser when the user types another key. I've been using hIDE on a Pentium M 1600 laptop and on the size of modules I've tried so far it's quick. The syntax highlighting updates immediately and the type checker shows up errors a second or so after I stop typing (which is because we wait about that long before starting the parser). Duncan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Re: Layout rule (was Re: PrefixMap: code review request)
Benjamin Franksen wrote: TAB characters in program text should be forbidden by law. Well... they are quite useful for lining things up if you're using a proportional font, and I don't think proportionally-spaced code is a bad idea. I want them to be optional. But it would be nice if parsers would warn about (or even reject) programs whose meaning depends on tab width. -- Ben ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Re: Layout rule (was Re: PrefixMap: code review request)
Duncan Coutts wrote: hIDE and Visual Haskell use the ghc lexer and get near-instantaneous syntax highlighting. Hmm... I just installed Visual Haskell 0.1, and when I type in the editor, CPU usage rises to about 70% and there's a noticeable delay before each character appears on the screen. This is a very short module (~100 lines) and a Pentium M 1600 CPU. Am I doing something wrong? -- Ben ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe