请输入您要查询的百科知识:

 

词条 S (programming language)
释义

  1. History

     "Old S"  "New S"  S4 

  2. References

  3. External links

{{infobox programming language
| name = S
| logo =
| paradigm = multi-paradigm: imperative, object oriented
| year = {{start date and age|1976}}
| designer =
| developer = Rick Becker, Allan Wilks, John Chambers
| latest_release_version =
| latest_release_date =
| typing = dynamic, strong
| implementations = R, S-PLUS
| dialects =
| influenced_by = C, APL, PPL, Fortran
| influenced =
| operating_system =
| license = depends on implementation
| garbage collection = yes
| website = ect.bell-labs.com/sl/S/
}}S 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]

The modern implementation of S is R, a part of the GNU free software project. S-PLUS, a commercial product, was formerly sold by TIBCO Software.{{citation needed|date=June 2015}}

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. 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.

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 Interactive SCS (ISCS), Statistical Computing System, and Statistical Analysis System (which was already taken: see SAS System). The name 'S' (used with single quotation marks, until 1979) was chosen, as it has the common letter used in statistical computing, and is consistent with other programming languages designed from the same institution at the time (namely the C programming language).

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.

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

Latest version of S standard is S4, released in 1998.[8] It provides advanced object-oriented features. S4 classes differ markedly from S3 classes.

References

1. ^{{Cite book|title=Programming with Data: A Guide to the S Language|last=Chambers|first=John M|publisher=Springer|year=1998|isbn=978-0-387-98503-9|location=|pages=}}
2. ^{{Citation |last=Becker |first=Richard A. |title=A Brief History of S |publisher=AT&T Bell Laboratories |place=Murray Hill, New Jersey |accessdate=2015-07-23 |url=http://www2.research.att.com/areas/stat/doc/94.11.ps |format=PS}}
3. ^{{cite book |last=Becker |first=R.A. |author2=Chambers, J.M. |title=S: An Interactive Environment for Data Analysis and Graphics |year=1984 |publisher=Wadsworth & Brooks/Cole |location=Pacific Grove, CA, USA |isbn=0-534-03313-X }}
4. ^{{cite book |last=Becker |first=R.A. |author2=Chambers, J.M. |title=Extending the S System |year=1985 |publisher=Wadsworth & Brooks/Cole |location=Pacific Grove, CA, USA |isbn=0-534-05016-6 }}
5. ^{{cite book |last=Becker |first=R.A. |authorlink= |author2=Chambers, J.M. |author3=Wilks, A.R. |title=The New S Language: A Programming Environment for Data Analysis and Graphics |year=1988 |publisher=Wadsworth & Brooks/Cole |location=Pacific Grove, CA, USA |isbn=0-534-09192-X }}
6. ^{{cite book |last=Chambers |first=J.M. |author2=Hastie, T.J. |title=Statistical Models in S |year=1991 |publisher=Wadsworth & Brooks/Cole |location=Pacific Grove, CA, USA |isbn=0-412-05291-1 |page=624}}
7. ^{{cite journal |last=Wilkinsons |first=G.N. |author2=Rogers, C.E. |year=1973 |title=Symbolic description of factorial models for analysis of variance |journal=Applied Statistics |volume=22 |issue=3 |pages=392–399|doi=10.2307/2346786 |jstor=2346786 }}
8. ^ 

External links

  • Evolution of the S Language, by John M. Chambers, discusses the new features in Version 4 of S (in PostScript format)
  • Stages in the Evolution of S, by John M. Chambers
{{DEFAULTSORT:S (Programming Language)}}

1 : Statistical programming languages

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/11 12:31:06