std.d.lexer requirements

Dmitry Olshansky dmitry.olsh at gmail.com
Fri Aug 3 09:49:34 PDT 2012


On 03-Aug-12 10:35, Jacob Carlborg wrote:
> On 2012-08-03 00:25, Dmitry Olshansky wrote:
>
>> OT:
>> It never ceases to amaze me how people miss this very simple point:
>> GUI runs on its own thread and shouldn't ever block on something (save
>> for message pump itself, of course). Everything else (including possibly
>> slow rendering) done on the side and then result (once ready) swiftly
>> indicated on GUI.
>
> I'm not entirely sure what you mean be "rendering" but most GUI systems
> are not thread safe and all GUI updates need to happen in the same thread.
>
Draw thing to an off screen  bitmap  then blit it to window (aye, pass 
back to UI thread a reference to the buffer with pixels). This technique 
been in use for decades. Imagine drawing some large intricate fractal it 
could easily take few seconds.

-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list