[dev] [dmenu] vertical list bugs and patch

2010-03-06 Thread Connor Lane Smith
Hey all, I found dmenu tip to have a couple of bugs wrt vertical menus: - the '-l' flag adds to the default number of lines, instead of replacing it. - there is no cursor in vline mode. The attached patch fixes these two problems and sorts out the code a little, reducing the LOC by 11. If it

Re: [dev] Re: Simple port scanner again (was: GSoC 2010)

2010-03-06 Thread anonymous
On Sat, Mar 06, 2010 at 08:08:34PM +0100, Uriel wrote: > Go has no threads, they are called goroutines for a very important > reason: to avoid the ambiguous and totally confused meaning of > 'threads' which makes serious and useful discussion of concurrency > almost impossible as long as that word

Re: [dev] Re: Simple port scanner again (was: GSoC 2010)

2010-03-06 Thread Uriel
On Sat, Mar 6, 2010 at 3:19 PM, Dmitry Maluka wrote: > Threads are good for concurrency. I guess portscan is not the case. What 'threads'? Pthreads certainly are not good for anything, and specially not for concurrency. uriel

Re: [dev] Re: Simple port scanner again (was: GSoC 2010)

2010-03-06 Thread Uriel
On Sat, Mar 6, 2010 at 11:50 AM, anonymous wrote: > On Thu, Mar 04, 2010 at 11:17:08PM +0200, Dmitry Maluka wrote: >> What is the profit from this abstraction? You call remove_scanned() >> which moves host from host queue to scanned queue; output() takes hosts >> from scanned queue and calls hostp

Re: [dev] Re: Simple port scanner again (was: GSoC 2010)

2010-03-06 Thread Dmitry Maluka
On Sat, Mar 06, 2010 at 01:50:39PM +0300, anonymous wrote: > On Thu, Mar 04, 2010 at 11:17:08PM +0200, Dmitry Maluka wrote: > > What is the profit from this abstraction? You call remove_scanned() > > which moves host from host queue to scanned queue; output() takes hosts > > from scanned queue and

Re: [dev] Re: Simple port scanner again (was: GSoC 2010)

2010-03-06 Thread anonymous
On Thu, Mar 04, 2010 at 11:17:08PM +0200, Dmitry Maluka wrote: > What is the profit from this abstraction? You call remove_scanned() > which moves host from host queue to scanned queue; output() takes hosts > from scanned queue and calls hostprint() for them; and you do > synchronization. Why not j