S (programming language)
Paradigm | multi-paradigm: imperative, object oriented |
---|---|
Developer | Rick Becker, Allan Wilks, John Chambers |
First appeared | 1976 |
Typing discipline | dynamic, strong |
License | depends on implementation |
Major implementations | |
S-PLUS | |
Influenced by | |
C, APL, PPL, Fortran | |
Influenced | |
R |
S[1] is a statistical programming language developed primarily by John Chambers and (in earlier versions) Rick Becker and Allan Wilks of Bell Laboratories. The aim of the language, as expressed by John Chambers, is "to turn ideas into software, quickly and faithfully".[1]
A major implementation of S is S-PLUS, a commercial product that was formerly sold by TIBCO Software.[citation needed]
The modern R, a part of the GNU free software project, was heavily inspired by S, and can run many S programs, although it is not fully backwards compatible.[citation needed]
History
"Old S"
S is one of several statistical computing languages that were designed at Bell Laboratories, and first took form between 1975–1976.[2] Up to that time, much of the statistical computing was done by directly calling Fortran subroutines; however, S was designed to offer an alternate and more interactive approach, motivated in part by exploratory data analysis advocated by John Tukey.[2] Early design decisions that hold even today include interactive graphics devices (printers and character terminals at the time), and providing easily accessible documentation for the functions.[citation needed]
The first working version of S was built in 1976, and operated on the GCOS operating system. At this time, S was unnamed, and suggestions included ISCS (Interactive SCS), SCS (Statistical Computing System), and SAS (Statistical Analysis System) (which was already taken: see SAS System). The name 'S' (used with single quotation marks until 1979) was chosen, as it was a common letter in the suggestions and consistent with other programming languages designed from the same institution at the time (namely the C programming language).[2]
When UNIX/32V was ported to the (then new) 32-bit DEC VAX, computing on the Unix platform became feasible for S. In late 1979, S was ported from GCOS to UNIX, which would become the new primary platform.[citation needed]
In 1980 the first version of S was distributed outside Bell Laboratories and in 1981 source versions were made available.[2] In 1984 two books were published by the research team at Bell Laboratories: S: An Interactive Environment for Data Analysis and Graphics[3] (1984 Brown Book) and Extending the S System.[4] Also, in 1984 the source code for S became licensed through AT&T Software Sales for education and commercial purposes.
"New S"
By 1988, many changes were made to S and the syntax of the language. The New S Language[5] (1988 Blue Book) was published to introduce the new features, such as the transition from macros to functions and how functions can be passed to other functions (such as apply
). Many other changes to the S language were to extend the concept of "objects", and to make the syntax more consistent (and strict). However, many users found the transition to New S difficult, since their macros needed to be rewritten. Many other changes to S took hold, such as the use of X11 and PostScript graphics devices, rewriting many internal functions from Fortran to C, and the use of double precision (only) arithmetic. The New S language is very similar to that used in modern versions of S-PLUS and R.
In 1991, Statistical Models in S[6] (1991 White Book) was published, which introduced the use of formula-notation[7] (which use the ~
operator), data frame objects, and modifications to the use of object methods and classes.
S4
The latest version of the S standard is S4, released in 1998.[8] It provides advanced object-oriented features. S4 classes differ markedly from S3 classes; S4 formally defines the representation and inheritance for each class, and has multiple dispatch: the generic function can be dispatched to a method based on the class of any number of arguments, not just one.[9]
See also
- R (programming language), derivative language based on S programming language that is partially backward compatible with S programs
References
- ↑ 1.0 1.1 Chambers, John M (1998). Programming with Data: A Guide to the S Language. Springer. ISBN 978-0-387-98503-9.
- ↑ 2.0 2.1 2.2 2.3 Becker, Richard A. (PS), A Brief History of S, Murray Hill, New Jersey: AT&T Bell Laboratories, http://www2.research.att.com/areas/stat/doc/94.11.ps, retrieved 2015-07-23
- ↑ Becker, R.A.; Chambers, J.M. (1984). S: An Interactive Environment for Data Analysis and Graphics. Pacific Grove, CA, USA: Wadsworth & Brooks/Cole. ISBN 0-534-03313-X. https://archive.org/details/sinteractiveenvi00beck_0.
- ↑ Becker, R.A.; Chambers, J.M. (1985). Extending the S System. Pacific Grove, CA, USA: Wadsworth & Brooks/Cole. ISBN 0-534-05016-6.
- ↑ Becker, R.A.; Chambers, J.M.; Wilks, A.R. (1988). The New S Language: A Programming Environment for Data Analysis and Graphics. Pacific Grove, CA, USA: Wadsworth & Brooks/Cole. ISBN 0-534-09192-X.
- ↑ Chambers, J.M.; Hastie, T.J. (1991). Statistical Models in S. Pacific Grove, CA, USA: Wadsworth & Brooks/Cole. p. 624. ISBN 0-412-05291-1.
- ↑ Wilkinson, G.N.; Rogers, C.E. (1973). "Symbolic description of factorial models for analysis of variance". Applied Statistics 22 (3): 392–399. doi:10.2307/2346786.
- ↑ Chambers, John (January 1, 2001). "The S System". Bell Labs. http://ect.bell-labs.com/sl/S/.
- ↑ Wickham, Hadley (2019). Advanced R.. adv-r.had.co.nz. ISBN 9781466586963. http://adv-r.had.co.nz/S4.html. Retrieved 2020-02-18.
External links
- Evolution of the S Language, by John M. Chambers, discusses the new features in Version 4 of S (in PostScript format)
Original source: https://en.wikipedia.org/wiki/S (programming language).
Read more |