Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

slang 2.2.0 released

9 views
Skip to first unread message

John E. Davis

unread,
Aug 2, 2009, 5:20:55 PM8/2/09
to
Version 2.2.0 of the slang library is now available. See
<http://www.jedsoft.org/slang/download.html> for downloading options.
It may take a day or so for the mirror sites to pick up the latest
version. The relevant MD5 sums are:

2593b390c6db81b840f6b48b0e768fa0 slang-2.2.0.tar.bz2
d98089cbb1c8ecac57e3fffee0d5db11 slang-2.2.0.tar.bz2.asc
219ae3d8de7f2f4fc52047a7902d1542 slang-2.2.0.tar.gz.asc
81cd7456c70a21937497f4b04b77433c slang-2.2.0.tar.gz
a4b091de1da12255019f8bcac86b463f 2.1.4__2.2.0.diff.bz2
bdc14ffa3bd4d1e2d9323d481e03c5af 2.1.4__2.2.0.diff.bz2.asc
67732b06e4ee929992da23230c811526 2.1.4__2.2.0.diff.gz.asc
f423c261fe523bfa86702a96ac13edf3 2.1.4__2.2.0.diff.gz

This version contains a number of new features, as well as bug fixes.
Version 2.2.0 is binary compatible with previous slang-2 versions.

More information about the library may be found at
<http://www.jedsoft.org/slang/>.

Enjoy, --John

NEWS for version 2.2

Interpreter Enhancements
========================


1. The ternary expression was added:

expression = condition ? val1 : val2

If condition is non-zero, then expression = val1,
otherwise expression = val2

2. The break and condition statements support an optional integer
that indicates how many loop levels the statement affects, e.g.,
the break statement in

while (1)
{
loop (10)
{
break 2;
}
}

will cause both loops to be terminated.

3. Multiline strings have been added:

"This is a \
multiline \
string"

`This is
another multiline
string that
does not require
a \ for continuation`

4. List_Type objects may be indexed using an array of indices
instead of just a single scalar index.

Modules
=======

1. zlib: A module that wraps the popular z compression library.

2. fork: A module that wraps the fork, exec*, and waitpid functions.

slsh/lib/process.sl utilizes this module to allow an
application to easily create subprocesses and pipelines.

3. sysconf: Module that implements interfaces to the posix
sysconf, pathconf, etc. functions.

Intrinsic Functions
===================

The following intrinsic functions have been added for 2.2:

sumsq
equivalent to sum(x*x)

expm1
More accurate version of exp(x)-1 for x near 0.

log1p
More accurate version of log(1+x) for x near 0

list_to_array
Creates an array from a list.

string_matches
A convenient alternative to string_match and string_match_nth
functions.

_close
Close an integer descriptor
_fileno
Returns the descriptor as an integer

dup2, getsid, killpg, getpriority/setpriority:
Wraps the corresponding system functions.

ldexp, frexp:
If x == a*2^b, where 0.5<=a<1.0 then (a,b)=frexp(x),
and x=ldexp(a,b).

The following functions have been enhanced:

hypot
If given a single array argument, it returns the equivalent
of sqrt(sum(X*X)).

polynom
The calling interface to this function was changed and
support added for arrays.

Misc
====

Unicode tables updated to version 5.1.

Peter J Ross

unread,
Aug 4, 2009, 3:43:21 PM8/4/09
to
In alt.lang.s-lang on Sun, 2 Aug 2009 21:20:55 +0000 (UTC), John E.
Davis <j...@jedsoft.org> wrote:

> Version 2.2.0 of the slang library is now available.

Many thanks to you and the other contributors to S-Lang for all your
work. S-Lang doesn't get the publicity associated with some other
languages. Instead, it just works, and gets more powerful with every
release.

Somebody needed to write a brief panegyric, so why not I? :-)


--
PJR :-)
slrn newsreader v0.9.9p1: http://slrn.sourceforge.net/
extra slrn documentation: http://slrn-doc.sourceforge.net/
newsgroup name validator: http://pjr.lasnobberia.net/usenet/validator

John E. Davis

unread,
Aug 5, 2009, 1:13:28 AM8/5/09
to
On Tue, 04 Aug 2009 20:43:21 +0100, Peter J Ross <p...@example.invalid>
wrote:

> work. S-Lang doesn't get the publicity associated with some other
> languages. Instead, it just works, and gets more powerful with every
> release.

I came across this quote that seems apropos:

"Slang is a language that rolls up its sleeves, spits on its hands and
goes to work."
-- Carl Sandburg (1878-1967), U.S. poet. New York Times (Feb. 13, 1959).

> Somebody needed to write a brief panegyric, so why not I? :-)

Thanks,
--John

ShadowTek

unread,
Aug 5, 2009, 2:37:07 PM8/5/09
to
On 2009-08-05, John E. Davis <j...@jedsoft.org> wrote:

> I came across this quote that seems apropos:
>
> "Slang is a language that rolls up its sleeves, spits on its hands and
> goes to work."
> -- Carl Sandburg (1878-1967), U.S. poet. New York Times (Feb. 13, 1959).

That's one irritating thing I noticed about trying to find information
about s-lang from a web search: the majority of results pertain to
the definition of "slang" as referenced above.

If *everyone* who posts any online documentation would make an absolute
habit of referring to s-lang as
"s-lang" instead of "slang", it would help others to differenciate
between documents that pertain to one subject or the other.

0 new messages