unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* [ANN] guile-file-names 0.1, a file-name abstraction module
@ 2019-05-09  9:35 Brandon Invergo
  2019-05-09 16:41 ` Alex Sassmannshausen
  2019-05-10  8:34 ` [ANN] guile-file-names 0.1.1 Brandon Invergo
  0 siblings, 2 replies; 3+ messages in thread
From: Brandon Invergo @ 2019-05-09  9:35 UTC (permalink / raw)
  To: guile-user gnu

I'm happy to announce the first release of guile-file-names, a file-name
abstraction module for Guile.

The (file-names) module provides methods for manipulating file names
(aka file paths, but for GNU Coding Standards reasons, the module
doesn't refer to "paths"[1]).  The module was built based on the idea that
doing anything more than a non-trivial modification of a file name
string is a pain (making sure all slashes are present and accounted for,
resolving '.' and '..', etc).  Inevitably, you have to break the string
up into chunks and operate on that list of components.  This module
takes care of that for you.

Theoretically, (file-names) should also make handling file names more
portable between POSIX and Windows/Cygwin, however I don't have access
to a Windows machine to test that assertion.  Help in this regard would
be appreciated.

The module takes an object-oriented approach via GOOPS.  This lets us
extend Guile primitive procedures to specialize on <file-name> objects.
Thus, all of the POSIX file-system procedures[2] now also can accept
<file-name> instances in addition to the default stringy file names.

Documentation is provided in an Info manual.

You can download guile-file-names 0.1 here:
http://brandon.invergo.net/software/download/guile-file-names/guile-file-names-0.1.tar.gz
http://brandon.invergo.net/software/download/guile-file-names/guile-file-names-0.1.tar.gz.sig

Development happens on Gitlab:
https://gitlab.com/brandoninvergo/guile-file-names

Contributions in the form of testing, bug reports, feature requests and
patches/pull requests are welcome!  The ultimate goal would be to have
the module merged upstream or into guile-lib once everyone agrees that
it's ready.

--
-brandon

Footnotes:
[1]  https://www.gnu.org/prep/standards/html_node/GNU-Manuals.html#GNU-Manuals
[2]  https://www.gnu.org/software/guile/manual/html_node/File-System.html#File-System



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ANN] guile-file-names 0.1, a file-name abstraction module
  2019-05-09  9:35 [ANN] guile-file-names 0.1, a file-name abstraction module Brandon Invergo
@ 2019-05-09 16:41 ` Alex Sassmannshausen
  2019-05-10  8:34 ` [ANN] guile-file-names 0.1.1 Brandon Invergo
  1 sibling, 0 replies; 3+ messages in thread
From: Alex Sassmannshausen @ 2019-05-09 16:41 UTC (permalink / raw)
  To: guile-user


Brandon Invergo writes:

> I'm happy to announce the first release of guile-file-names, a file-name
> abstraction module for Guile.
>
> The (file-names) module provides methods for manipulating file names
> (aka file paths, but for GNU Coding Standards reasons, the module
> doesn't refer to "paths"[1]).  The module was built based on the idea that
> doing anything more than a non-trivial modification of a file name
> string is a pain (making sure all slashes are present and accounted for,
> resolving '.' and '..', etc).  Inevitably, you have to break the string
> up into chunks and operate on that list of components.  This module
> takes care of that for you.

OMG, I've been waiting for someone to write this thing without me
knowing that I've been waiting for it.

Thanks for sharing!  Fairly sure I'll be an early adopter ;-)

Alex



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ANN] guile-file-names 0.1.1
  2019-05-09  9:35 [ANN] guile-file-names 0.1, a file-name abstraction module Brandon Invergo
  2019-05-09 16:41 ` Alex Sassmannshausen
@ 2019-05-10  8:34 ` Brandon Invergo
  1 sibling, 0 replies; 3+ messages in thread
From: Brandon Invergo @ 2019-05-10  8:34 UTC (permalink / raw)
  To: guile-user gnu

Brandon Invergo writes:

> I'm happy to announce the first release of guile-file-names, a file-name
> abstraction module for Guile.

And, in quick succession, the first bugfix release, 0.1.1.  This release
fixes a mistake in the configure script that would prevent it from
succeeding on systems that don't have Guile 2.0 installed (even if they
have 2.2).  Whoops.

Download:
http://brandon.invergo.net/software/download/guile-file-names/guile-file-names-0.1.tar.gz
Sig:
http://brandon.invergo.net/software/download/guile-file-names/guile-file-names-0.1.tar.gz.sig

-- 
-brandon



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-10  8:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-09  9:35 [ANN] guile-file-names 0.1, a file-name abstraction module Brandon Invergo
2019-05-09 16:41 ` Alex Sassmannshausen
2019-05-10  8:34 ` [ANN] guile-file-names 0.1.1 Brandon Invergo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).