Re: Bug#96102: ITP: serpento -- dictd server written in python

2001-05-06 Thread Radovan Garabik
On Sat, May 05, 2001 at 12:24:56PM +0200, I wrote:
 On Fri, May 04, 2001 at 09:19:29AM +0200, Tollef Fog Heen wrote:
  * Radovan Garabik 
  
  |  Can it be run from inetd? I'm really dying for a dict server that can be
  | 
  | More or less, yes, it can, but currently it is a bit unusable
  | since it takes forever to start (it has to parse the index file(s),
  | and parsing is written in python - rewritting it in C is on my TODO list)
  
  Why not just using cPickle and smart caching?  It's pretty fast, ime.
  
 
 well, that is a _really_ good idea, shame it did not occur to me :-)
 I am going to experiment with it a bit
 

And it's done - using cPickle cut down startup time from 15 seconds
to about 4 sec.
Then I changed initialization to parse/unpickle index files only 
when the database is accessed for the first time, and 
startup time went down to about 1 second for biggest dictionary
(webster). All on PIII 600 MHz with plenty of memory (i.e. 
all necessary files were already in buffer cache)

Package is in incoming, you have to set up manually inetd.conf if
you want to run it from inetd (this will be improved later)

Also, it includes its own dictdconfig now, so automatic configuration
to include all installed databases should work.

-- 
 ---
| Radovan Garabik http://melkor.dnp.fmph.uniba.sk/~garabik/ |
| __..--^^^--..__garabik @ melkor.dnp.fmph.uniba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!




Re: Bug#96102: ITP: serpento -- dictd server written in python

2001-05-05 Thread Radovan Garabik
On Fri, May 04, 2001 at 09:19:29AM +0200, Tollef Fog Heen wrote:
 * Radovan Garabik 
 
 |  Can it be run from inetd? I'm really dying for a dict server that can be
 | 
 | More or less, yes, it can, but currently it is a bit unusable
 | since it takes forever to start (it has to parse the index file(s),
 | and parsing is written in python - rewritting it in C is on my TODO list)
 
 Why not just using cPickle and smart caching?  It's pretty fast, ime.
 

well, that is a _really_ good idea, shame it did not occur to me :-)
I am going to experiment with it a bit

-- 
 ---
| Radovan Garabik http://melkor.dnp.fmph.uniba.sk/~garabik/ |
| __..--^^^--..__garabik @ melkor.dnp.fmph.uniba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!




Re: Bug#96102: ITP: serpento -- dictd server written in python

2001-05-04 Thread Tollef Fog Heen
* Radovan Garabik 

|  Can it be run from inetd? I'm really dying for a dict server that can be
| 
| More or less, yes, it can, but currently it is a bit unusable
| since it takes forever to start (it has to parse the index file(s),
| and parsing is written in python - rewritting it in C is on my TODO list)

Why not just using cPickle and smart caching?  It's pretty fast, ime.

-- 

Tollef Fog Heen
Unix _IS_ user friendly... It's just selective about who its friends are.




Re: ITP: serpento -- dictd server written in python

2001-05-03 Thread Radovan Garabik
On Wed, May 02, 2001 at 02:17:40PM -0500, David Starner wrote:
 On Wed, May 02, 2001 at 09:04:29PM +0200, Radovan Garabik wrote:
  Package: wnpp
  Severity: wishlist
  
  serpento is a dict (RFC 2229) server
  written in python.
  
  I am the author, package is already ready and being 
  duploaded.
 
 Cool. The description will mention the differences between it and
 dictd, won't it?

It is all in README
basically, it is.. uhm.. different :-)

  
  License: GPL, with the addition: It can be linked with
  whatever you want, without any restrictions.
  (so that I can have a module in C there.. sigh)
 
 There's much cleaner ways of doing this, if you just want to link 
 with one module. If you send a more detailed description to 
 debian-legal, I'm sure we can give advice. If it's just Python, 
 I'd say with the exception that it can be linked with Python. 
 The LGPL is about the same as your current license, but a lot 
 clearer.

I know, I meant this as a stopgap until the licensing issues with
python are resolved (hopefully with python2.1)


On Wed, May 02, 2001 at 03:12:57PM -0500, David Starner wrote:
 Also, does it use /var/lib/dictd/db.list or /etc/dictd.conf? If it

None.
Unfortunately, serpento uses different sort order for .index files,
(not to mention that it has completely different configuration file)
so plain old dict-* packages are unusable as installed.
Script to create index files for serpento is included, but 
(currently) has to be run manually.

 doesn't, then some sort of install-dict-dictionary needs to be made
 and all the dict-* packages made to use it, or serpento needs to be
 fixed to use it.

Yes, I plan to add automatic conversion of index files and 
some kind of adding the existing databases to the configuration
file, but so far I have no good idea on how to do it the best way.
(perhaps divert dictdconfig... or conflict with dictd and provide
own dictdconfig(8) - in fact, serpento clashes with dictd if you do
leave the default ports the same, so a conflict would probably be
justified anyway)


-- 
 ---
| Radovan Garabik http://melkor.dnp.fmph.uniba.sk/~garabik/ |
| __..--^^^--..__garabik @ melkor.dnp.fmph.uniba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!




Re: Bug#96102: ITP: serpento -- dictd server written in python

2001-05-03 Thread Joey Hess
Radovan Garabik wrote:
 serpento is a dict (RFC 2229) server
 written in python.

Can it be run from inetd? I'm really dying for a dict server that can be
run from inetd, since I run dict about 3 times a week, and my laptop is
typically offline and has onlt 64mb core.

-- 
see shy jo




Re: Bug#96102: ITP: serpento -- dictd server written in python

2001-05-03 Thread Radovan Garabik
On Thu, May 03, 2001 at 12:42:35AM -0400, Joey Hess wrote:
 Radovan Garabik wrote:
  serpento is a dict (RFC 2229) server
  written in python.
 
 Can it be run from inetd? I'm really dying for a dict server that can be

More or less, yes, it can, but currently it is a bit unusable
since it takes forever to start (it has to parse the index file(s),
and parsing is written in python - rewritting it in C is on my TODO list)

On my 600MHz PIII it takes about 15 seconds, with about 50 index 
files (20MB total size) in /usr/share/dictd

 run from inetd, since I run dict about 3 times a week, and my laptop is
 typically offline and has onlt 64mb core.

-- 
 ---
| Radovan Garabik http://melkor.dnp.fmph.uniba.sk/~garabik/ |
| __..--^^^--..__garabik @ melkor.dnp.fmph.uniba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!




ITP: serpento -- dictd server written in python

2001-05-02 Thread Radovan Garabik
Package: wnpp
Severity: wishlist

serpento is a dict (RFC 2229) server
written in python.

I am the author, package is already ready and being 
duploaded.

License: GPL, with the addition: It can be linked with
whatever you want, without any restrictions.
(so that I can have a module in C there.. sigh)


-- 
 ---
| Radovan Garabik http://melkor.dnp.fmph.uniba.sk/~garabik/ |
| __..--^^^--..__garabik @ melkor.dnp.fmph.uniba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!




Re: ITP: serpento -- dictd server written in python

2001-05-02 Thread David Starner
On Wed, May 02, 2001 at 09:04:29PM +0200, Radovan Garabik wrote:
 Package: wnpp
 Severity: wishlist
 
 serpento is a dict (RFC 2229) server
 written in python.
 
 I am the author, package is already ready and being 
 duploaded.

Cool. The description will mention the differences between it and
dictd, won't it?
 
 License: GPL, with the addition: It can be linked with
 whatever you want, without any restrictions.
 (so that I can have a module in C there.. sigh)

There's much cleaner ways of doing this, if you just want to link 
with one module. If you send a more detailed description to 
debian-legal, I'm sure we can give advice. If it's just Python, 
I'd say with the exception that it can be linked with Python. 
The LGPL is about the same as your current license, but a lot 
clearer.

-- 
David Starner - [EMAIL PROTECTED]
Pointless website: http://dvdeug.dhis.org
I don't care if Bill personally has my name and reads my email and 
laughs at me. In fact, I'd be rather honored. - Joseph_Greg




Re: ITP: serpento -- dictd server written in python

2001-05-02 Thread David Starner
On Wed, May 02, 2001 at 02:17:40PM -0500, David Starner wrote:
 On Wed, May 02, 2001 at 09:04:29PM +0200, Radovan Garabik wrote:
  Package: wnpp
  Severity: wishlist
  
  serpento is a dict (RFC 2229) server
  written in python.
  
  I am the author, package is already ready and being 
  duploaded.
 
 Cool. The description will mention the differences between it and
 dictd, won't it?

Also, does it use /var/lib/dictd/db.list or /etc/dictd.conf? If it
doesn't, then some sort of install-dict-dictionary needs to be made
and all the dict-* packages made to use it, or serpento needs to be
fixed to use it.

-- 
David Starner - [EMAIL PROTECTED]
Pointless website: http://dvdeug.dhis.org
I don't care if Bill personally has my name and reads my email and 
laughs at me. In fact, I'd be rather honored. - Joseph_Greg