pebblestone | I want to update some widget's state (like progress bar) periodically, I started a new thread for the job but sbcl reports "nil is not a stream". It seems ltk's using a dynamic binding for its stream output which is not inherited in a new thread. how to solve that problem? |
kpreid | pebblestone: I don't know ltk, but gui libraries often don't like being accessed from more than one thread. if that's the case for ltk, you should have the new thread send messages to the main thread which updates the progress bar |
pebblestone | kpreid: hmm. what do you mean by send message? |
kpreid | just that. implement it however you like |
pebblestone | kpreid: the 'normal' way of updating some state periodicaly is to create a timer and dispatch on the timer's event, right? I tried that but the event loop blocked. the event loop of ltk. |
kpreid | I don't understand that. |
fax | how do you get past barriers in programming? |
z3r0_d | barriers... as in "coding blocks" where you can't think of the solution? |
fax | well sort of yes I could write a solution but it would be bad its the kind of situation I am in (often) |
z3r0_d | make a diagram, sleep on it, then take a shower in the morning... dunno |
ayrnieu | ask questions about your specific situation on nice places like #lisp |
fax | I can knock the keyboard & write a program but its written badly & should never have been written im trying to find how you can write things well Ill probably buy some books |
trontos | I'd suggest doing it the best you can and then improving on it something, even if done poorly is going to be better than nothing and getting it out gives you experience you can think too much and you can think too little, somewhere in between is action 8) |
fax | ah |
trontos | or my favourite japanese proverb, planning without action is day dreaming, but action without planning is a nightmare |
fax | :) |
action | fax saves |
fax | saves |
trontos | that's from one of my XP books the first one I claim wholely as a trontos original 8) |
fax | I think I want to get PAIP or LiSP or somthnig or somthing else? |
trontos | PAIP? |
nyef | minion: Tell trontos about PAIP. |
minion | trontos: direct your attention towards PAIP: Paradigms of Artificial Intelligence Programming: Case Studies in Common Lisp by Peter Norvig. http://www.cliki.net/PAIP |
trontos | ah |
AshyIsMe | that book is really big it's kinda daunting |
nyef | Bah. It's got nothing on the Win3.1 SDK manuals for big. (Which, yes, I have read cover-to-cover. After Win95 was out.) |
levi_home | AshyIsMe: Try CLtL2 if you think PAIP is big. |