Bug#848127: ITP: fsm -- state machine library

2016-12-14 Thread Matteo F. Vescovi
Hi!

Il 14 dic 2016 14:44, "Bálint Réczey"  ha scritto:


Based on other elpa packages I suggest using fsm-el for the source package.

$ apt-cache show elpa-seq
Package: elpa-seq
Source: seq-el

I agree that avoiding generic names in the binary package namespace is
more important but there is value in preferring less generic names for
source packages, too.


Good point. Gonna ask ftp-masters to drop the package in NEW and I'll
upload it again asap.

Cheers.

mfv


Bug#848127: ITP: fsm -- state machine library

2016-12-14 Thread Bálint Réczey
Hi Matteo,

2016-12-14 14:36 GMT+01:00 Matteo F. Vescovi :
> Hi Balint!
>
> Il 14 dic 2016 12:37, "Bálint Réczey"  ha scritto:
>
>> * Package name: fsm
>
> Fsm is very generic, something like elpa-fsm would be a better fit IMO.
>
>
> That the name for the source package; the binary is, indeed, named elpa-fsm
> ;-)

Based on other elpa packages I suggest using fsm-el for the source package.

$ apt-cache show elpa-seq
Package: elpa-seq
Source: seq-el

I agree that avoiding generic names in the binary package namespace is
more important but there is value in preferring less generic names for
source packages, too.

Cheers,
Balint



Bug#848127: ITP: fsm -- state machine library

2016-12-14 Thread Matteo F. Vescovi
Hi Balint!

Il 14 dic 2016 12:37, "Bálint Réczey"  ha scritto:

> * Package name: fsm

Fsm is very generic, something like elpa-fsm would be a better fit IMO.


That the name for the source package; the binary is, indeed, named elpa-fsm
;-)

Cheers.

mfv


Bug#848127: ITP: fsm -- state machine library

2016-12-14 Thread Bálint Réczey
Hi Matteo,

2016-12-14 12:27 GMT+01:00 Matteo F. Vescovi :
> Package: wnpp
> Owner: Matteo F. Vescovi 
> Severity: wishlist
>
> * Package name: fsm

Fsm is very generic, something like elpa-fsm would be a better fit IMO.

Cheers,
Balint

>   Version : 0.2.1
>   Upstream Author : Thomas Fitzsimmons 
> * URL or Web page : http://elpa.gnu.org/packages/fsm.html
> * License : GPL-2+
>   Description : state machine library
...



Bug#848127: ITP: fsm -- state machine library

2016-12-14 Thread Matteo F. Vescovi
Package: wnpp
Owner: Matteo F. Vescovi 
Severity: wishlist

* Package name: fsm
  Version : 0.2.1
  Upstream Author : Thomas Fitzsimmons 
* URL or Web page : http://elpa.gnu.org/packages/fsm.html
* License : GPL-2+
  Description : state machine library

 fsm.el is an exercise in metaprogramming inspired by gen_fsm of
 Erlang/OTP. It aims to make asynchronous programming in Emacs Lisp
 easy and fun. By "asynchronous" I mean that long-lasting tasks
 don't interfer with normal editing.

 Some people say that it would be nice if Emacs Lisp had threads
 and/or continuations. They are probably right, but there are few
 things that can't be made to run in the background using facilities
 already available: timers, filters and sentinels. As the code can
 become a bit messy when using such means, with callbacks everywhere
 and such things, it can be useful to structure the program as a
 state machine.

 In this model, a state machine passes between different "states",
 which are actually only different event handler functions. The
 state machine receives "events" (from timers, filters, user
 requests, etc) and reacts to them, possibly entering another state,
 possibly returning a value.

 The essential macros/functions are:

 define-state-machine  - create start-FOO function
 define-state  - event handler for each state (required)
 define-enter-state- called when entering a state (optional)
 define-fsm- encapsulates the above three (more sugar!)
 fsm-send  - send an event to a state machine
 fsm-call  - send an event and wait for reply

 fsm.el is similar to but different from Distel:
 
 Emacs' tq library is a similar idea.


-- 
Matteo F. Vescovi


signature.asc
Description: PGP signature