Re: [dev] [sbase] [PATCH] Make grep more memory-efficient

2014-05-12 Thread Dimitris Papastamos
On Mon, May 12, 2014 at 12:36:12AM +0100, Dimitris Papastamos wrote: > On Mon, May 12, 2014 at 12:34:36AM +0200, FRIGN wrote: > > Hello, > > > > previously, we allocated one regex_t for each pattern found. > > This gets pretty nasty once the tree of patterns grows. > > Reusing one regex_t and regf

Re: [dev] [st][patch] Allow mouse selection override using ShiftMask

2014-05-12 Thread Raphaël Proust
On 11 May 2014 12:34, Hiltjo Posthuma wrote: > Hi, > > The attached patch allows to force override mouse selection copy using > the ShiftKey, similar to xterm. For example in tmux with "mode-mouse > on". There was a similar idea proposed sometime ago on the mailing list[0]. And a discussion follo

Re: [dev] [st][patch] Allow mouse selection override using ShiftMask

2014-05-12 Thread Hiltjo Posthuma
On Mon, May 12, 2014 at 11:44 AM, Raphaël Proust wrote: > There was a similar idea proposed sometime ago on the mailing list[0]. Interesting, I have not seen that patch before but it looks almost identical :) > And a discussion following about who's responsibility it is to provide > the feature.

Re: [dev] [sbase] [PATCH] Make grep more memory-efficient

2014-05-12 Thread Hiltjo Posthuma
On Mon, May 12, 2014 at 12:34 AM, FRIGN wrote: > Hello, > > previously, we allocated one regex_t for each pattern found. > This gets pretty nasty once the tree of patterns grows. > Reusing one regex_t and regfreeing it after each use inside grep() > implies just one simultaneous element in memory

Re: [dev] [sbase] [PATCH] Make grep more memory-efficient

2014-05-12 Thread Dimitris Papastamos
On Mon, May 12, 2014 at 12:57:57PM +0200, Hiltjo Posthuma wrote: > On Mon, May 12, 2014 at 12:34 AM, FRIGN wrote: > > Hello, > > > > previously, we allocated one regex_t for each pattern found. > > This gets pretty nasty once the tree of patterns grows. > > Reusing one regex_t and regfreeing it af

Re: [dev] [st][patch] Allow mouse selection override using ShiftMask

2014-05-12 Thread Raphaël Proust
On 12 May 2014 11:47, Hiltjo Posthuma wrote: > On Mon, May 12, 2014 at 11:44 AM, Raphaël Proust wrote: >> Anyone has further ideas about such a feature and whether it belongs to the >> terminal? > In st's-case I think it belongs in st, since it's an X application > (for X clipboard copy/paste) a

Re: [dev] [st][patch] Allow mouse selection override using ShiftMask

2014-05-12 Thread Hiltjo Posthuma
On Mon, May 12, 2014 at 1:07 PM, Raphaël Proust wrote: > [...] > It makes sense. Although applications might be binding Shift+Mouse for > their own purpose (not expecting X to interfere with their input). I > don't care too much which is chosen because I tend to not use the > mouse in the terminal

Re: [dev] [st][patch] Allow mouse selection override using ShiftMask

2014-05-12 Thread Hiltjo Posthuma
On Mon, May 12, 2014 at 2:19 PM, Hiltjo Posthuma > The attached updated patch makes ShiftMask configurable and allows to > use selmasks too (SEL_RECTANGULAR). > Whoops, made a mistake, forgot to include config.def.h (forceselmod). Attached is the fixed-up patch. From caf4b42ea8d5ac4f8b1f46560a23b43

Re: [dev] [ANNOUNCE] dlauncher - dmenu based launcher

2014-05-12 Thread Amadeus Folego
Hi Xinhao Yuan! I've been using dmenu with yeganesh[1] for quite some time and I am trying dlauncher now. One thing that I found strange was the listing and use of available plugins. But let's see how I get used to it. Thanks for the release! [1]: http://dmwit.com/yeganesh/ On Sat, May 10, 201

Re: [dev] [GENERAL] License manifest

2014-05-12 Thread Amadeus Folego
Hi there, I just noticed most of suckless projects use the MIT License, and I just wondered if there was any place on the suckless wiki that stated why this was preferred, but found none. So I thought that maybe this was something largely discussed already and searched on the mailing list archive

Re: [dev] [sbase] [PATCH] Make grep more memory-efficient

2014-05-12 Thread FRIGN
On Mon, 12 May 2014 12:57:57 +0200 Hiltjo Posthuma wrote: > (Re)compiling the regex for each line doesn't make sense (imho) and > slows it down alot. Damn, how could I miss that? That's definitely true! Thanks for investigating this, I'll take better care next time. Cheers FRIGN -- FRIGN

Re: [dev] [sbase] [PATCH] Make grep more memory-efficient

2014-05-12 Thread Amadeus Folego
Maybe we should include a benchmark script so that we can test if a patch has a regression on performance?

Re: [dev] [st][patch] Allow mouse selection override using ShiftMask

2014-05-12 Thread Roberto E. Vargas Caballero
> Anyone has further ideas about such a feature and whether it belongs > to the terminal? I don't understand here why an application should take care of this feature, and I don't know what is the point here.If someone could explain a bit more about it could be good. > [1]: from dvtm(1) manpage:

Re: [dev] [GENERAL] License manifest

2014-05-12 Thread FRIGN
On Mon, 12 May 2014 10:20:26 -0300 Amadeus Folego wrote: Hey Amadeus, I love your music! > So, given this context, is there any manifesto about this particular License > choice? E.G is there a reason to avoid GPL? Well, let's take a look at the GPL first: It's a strict free software license, w

Re: [dev] [st][patch] Allow mouse selection override using ShiftMask

2014-05-12 Thread Raphaël Proust
On 12 May 2014 15:41, Roberto E. Vargas Caballero wrote: >> [1]: from dvtm(1) manpage: >>Copy and Paste >> By default dvtm captures mouse events to provide the >> actions listed below. Unfortunately this > > Why these actions should be provided by dvtm? X server supplies for

Re: [dev] [st][patch] Allow mouse selection override using ShiftMask

2014-05-12 Thread Raphaël Proust
On 12 May 2014 15:41, Roberto E. Vargas Caballero wrote: >> [1]: from dvtm(1) manpage: >>Copy and Paste >> By default dvtm captures mouse events to provide the >> actions listed below. Unfortunately this > > Why these actions should be provided by dvtm? X server supplies for

Re: [dev] [sbase] [PATCH] Make grep more memory-efficient

2014-05-12 Thread Dimitris Papastamos
On Mon, May 12, 2014 at 11:36:28AM -0300, Amadeus Folego wrote: > Maybe we should include a benchmark script so that we can test if a > patch has a regression on performance? Yes, it has been discussed before. If anyone feels up to the task to make an sbase-test repo, that would be nice.

Re: [dev] [GENERAL] License manifest

2014-05-12 Thread Dimitris Papastamos
On Mon, May 12, 2014 at 10:20:26AM -0300, Amadeus Folego wrote: > Hi there, > > I just noticed most of suckless projects use the MIT License, and I just > wondered if there was any place on the suckless wiki that stated why > this was preferred, but found none. > > So I thought that maybe this wa

Re: [dev] [st][patch] Allow mouse selection override using ShiftMask

2014-05-12 Thread Charlie Kester
On Mon 12 May 2014 at 07:41:49 PDT Roberto E. Vargas Caballero wrote: [1]: from dvtm(1) manpage: Copy and Paste By default dvtm captures mouse events to provide the actions listed below. Unfortunately this Why these actions should be provided by dvtm? X server supplies f

Re: [dev] [GENERAL] License manifest

2014-05-12 Thread Christoph Lohmann
Greetings. On Mon, 12 May 2014 18:18:37 +0200 FRIGN wrote: > On Mon, 12 May 2014 10:20:26 -0300 > Amadeus Folego wrote: > > Hey Amadeus, > > I love your music! > > > So, given this context, is there any manifesto about this particular License > > choice? E.G is there a reason to avoid GPL? >

Re: [dev] [GENERAL] License manifest

2014-05-12 Thread Amadeus Folego
Hi Lohmann, On Mon, May 12, 2014 at 06:18:37PM +0200, Christoph Lohmann wrote: > History made me thinking about that stance in suckless. Yes, it’s com‐ > plete freedom, but the GPL made it possible to open up platforms not > open before. For example the US navy is using Open Source softwa

[dev] Re: [GENERAL] License manifest

2014-05-12 Thread Christian Neukirchen
Christoph Lohmann <2...@r-36.net> writes: > For my contributions to suckless I still use MIT/X, but new projects get > the GPLv3. The harder the better. Why not AGPL then? -- Christian Neukirchenhttp://chneukirchen.org

Re: [dev] [GENERAL] License manifest

2014-05-12 Thread Anthony J. Bentley
Amadeus Folego writes: > Hi there, > > I just noticed most of suckless projects use the MIT License, and I just > wondered if there was any place on the suckless wiki that stated why > this was preferred, but found none. > > So I thought that maybe this was something largely discussed already and

Re: [dev] [GENERAL] License manifest

2014-05-12 Thread Anthony J. Bentley
Christoph Lohmann writes: > On Mon, 12 May 2014 18:18:37 +0200 FRIGN wrote: > > Well, let's take a look at the GPL first: It's a strict free software > > license, which means that it doesn't permit incorporating or even > > linking a GPL-software without publishing the software itself under a > >

Re: [dev] Re: [GENERAL] License manifest

2014-05-12 Thread Christoph Lohmann
Greetings. On Mon, 12 May 2014 22:01:54 +0200 Christian Neukirchen wrote: > Christoph Lohmann <2...@r-36.net> writes: > > > For my contributions to suckless I still use MIT/X, but new projects get > > the GPLv3. The harder the better. > > Why not AGPL then? For now none of that projects are a

Re: [dev] [GENERAL] License manifest

2014-05-12 Thread Christoph Lohmann
Greetings. On Mon, 12 May 2014 22:02:57 +0200 "Anthony J. Bentley" wrote: > Christoph Lohmann writes: > > On Mon, 12 May 2014 18:18:37 +0200 FRIGN wrote: > > > Well, let's take a look at the GPL first: It's a strict free software > > > license, which means that it doesn't permit incorporating o

Re: [dev] [GENERAL] License manifest

2014-05-12 Thread Anthony J. Bentley
Christoph Lohmann writes: > Greetings. > > On Mon, 12 May 2014 22:02:57 +0200 "Anthony J. Bentley" w > rote: > > Christoph Lohmann writes: > > > On Mon, 12 May 2014 18:18:37 +0200 FRIGN wrote: > > > > Well, let's take a look at the GPL first: It's a strict free software > > > > license, which me

Re: [dev] [GENERAL] License manifest

2014-05-12 Thread Nick
Quoth Dimitris Papastamos: > It is simple to understand. MIT/X does not require a Ph.D in Law. That's not entirely true, really. MIT/X may be very short itself, but it is part of a legal system that is inherantly complex, and claiming that if you can understand the few sentences of the license

Re: [dev] [GENERAL] License manifest

2014-05-12 Thread Anthony J. Bentley
Nick writes: > Quoth Dimitris Papastamos: > > It is simple to understand. MIT/X does not require a Ph.D in Law. > > That's not entirely true, really. MIT/X may be very short itself, > but it is part of a legal system that is inherantly complex, and > claiming that if you can understand the few

Re: [dev] [ANNOUNCE] dlauncher - dmenu based launcher

2014-05-12 Thread Xinhao Yuan
Just a notice that I've made significant change to it. Now the main part is completely in C (except the CMake build system), and it support external plugins through unix socket IPC. So to some degree it is no longer "monolithic" :) On Mon, May 12, 2014 at 9:11 AM, Amadeus Folego wrote: > Hi Xinha

Re: [dev] [GENERAL] License manifest

2014-05-12 Thread Lee Fallat
On Mon, May 12, 2014 at 6:12 PM, Anthony J. Bentley wrote: > Nick writes: >> Quoth Dimitris Papastamos: >> > It is simple to understand. MIT/X does not require a Ph.D in Law. >> >> That's not entirely true, really. MIT/X may be very short itself, >> but it is part of a legal system that is inhera

Re: [dev] [GENERAL] License manifest

2014-05-12 Thread Nick
Quoth Anthony J. Bentley: > Nick writes: > > GPL is nearly as conceptually simple as permissive licenses, I > > think. > > ... > > Clearly, the GPL is just as simple to understand and explain to others > as a permissive license. After all, copyright law is complex. I don't think you read what I

Re: [dev] [GENERAL] License manifest

2014-05-12 Thread Anthony J. Bentley
Nick writes: > Quoth Anthony J. Bentley: > > Nick writes: > > > GPL is nearly as conceptually simple as permissive licenses, I > > > think. > > > > ... > > > > Clearly, the GPL is just as simple to understand and explain to others > > as a permissive license. After all, copyright law is complex.

Re: [dev] [GENERAL] License manifest

2014-05-12 Thread Christoph Lohmann
Greetings. On Tue, 13 May 2014 06:43:41 +0200 "Anthony J. Bentley" wrote: > Nick writes: > > Quoth Anthony J. Bentley: > > > Nick writes: > > > > GPL is nearly as conceptually simple as permissive licenses, I > > > > think. > > > > > > ... > > > > > > Clearly, the GPL is just as simple to unde