From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 4cc7704942,25838bf0be8dc62f,start X-Google-Attributes: gid4cc7704942,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!news.alt.net!cola.stump.algebra.com!robomod!not-for-mail From: "John E. Davis" Newsgroups: comp.os.linux.announce Subject: slang 2.2.0 programmer's library and interpreter released Followup-To: comp.lang.misc Date: Fri, 14 Aug 2009 15:16:46 -0500 Organization: MIT EECS ECF Message-ID: Reply-To: jed@jedsoft.org NNTP-Posting-Host: aluche.mit.edu X-Trace: micro-heart-of-gold.mit.edu 1249862213 36808 18.75.2.45 (9 Aug 2009 23:56:53 GMT) X-Complaints-To: usenet@micro-heart-of-gold.mit.edu NNTP-Posting-Date: Sun, 9 Aug 2009 23:56:53 +0000 (UTC) Keywords: s-lang embedded interpreter array Return-Path: X-COLA-Policy: http://stump.algebra.com/~cola X-COLA-Info-1: Send submissions to cola@stump.algebra.com X-COLA-Info-2: Send complaints to cola-admin@stump.algebra.com X-Comment: moderators do not necessarily agree or disagree with this article. X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov) X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on ak74.algebra.com X-Spam-Level: X-Spam-Status: No, score=0.0 required=2.0 tests=UNPARSEABLE_RELAY autolearn=ham version=3.1.4 User-Agent: slrn/pre1.0.0-12 (Linux) FromStump: yes X-Auth: PGPMoose V1.1 PGP comp.os.linux.announce iQBVAwUASoXGLiFvAtx2nXvNAQE8fAH/VHxXhVpnKKIROcrcvPv99TMuJONnhadI qSycnjEkEODOWFU8nPfea7KsfO6vD0gAbCrUVOqC5yZaz3Q2xxHaxQ== =6Moo Xref: g2news2.google.com comp.os.linux.announce:229 Version 2.2.0 of the slang programmer's library is now available. See for downloading options. 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. While the library is well-known for its display management routines, it also implements the slang language interpeter, which may be embedded into other applications to make them extensible. Additionally included in the distribution is slsh, the standalone slang interpreter. The language itself is somewhat C-like with matlab/IDL array capabilities. For example, if X is an array of values, then X[where(X< 0)]=0 will set those values less than 0 to 0. More information about the library and interpreter may be found at . 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. ########################################################################## # Send submissions for comp.os.linux.announce to: cola@stump.algebra.com # # PLEASE remember a short description of the software and the LOCATION. # # This group is archived at http://stump.algebra.com/~cola/ # ##########################################################################