Matthias Felleisen founded PLT Inc. in the mid 1990s, first as a research group, soon after as a project dedicated to producing pedagogic materials for novice programmers (lectures, exercises/projects, software). In January 1995, the group decided to develop a pedagogic programming environment based on Scheme. Matthew Flatt cobbled together MrEd, the original virtual machine for Racket, from libscheme,[21]wxWidgets, and a few other free systems.[22] In the years that followed, a team including Flatt, Robby Findler, Shriram Krishnamurthi, Cormac Flanagan, and many others produced DrScheme, a programming environment for novice Scheme programmers and a research environment for gradual typing.[13] The main development language that DrScheme supported was named PLT Scheme.
In parallel, the team began conducting workshops for high school teachers, training them in program design and functional programming. Field tests with these teachers and their students provided essential clues for directing the development.
Over the following years, PLT added teaching languages, an algebraic stepper,[23] a transparent read–eval–print loop, a constructor-based printer, and many other innovations to DrScheme, producing an application-quality pedagogic program development environment. By 2001, the core team (Felleisen, Findler, Flatt, Krishnamurthi) had also written and published their first textbook, How to Design Programs, based on their teaching philosophy.
The Racket Manifesto[9] details the principles driving the development of Racket, presents the evaluation framework behind the design process, and details opportunities for future improvements.
Version history
The first generation of PLT Scheme revisions introduced features for programming in the large with both modules and classes. Version 42 introduced units – a first-class module system – to complement classes for large scale development.[24] The class system gained features (e.g. Java-style interfaces) and also lost several features (e.g. multiple inheritance) throughout these versions.[16] The language evolved throughout a number of successive versions, and gaining milestone popularity in Version 53, leading to extensive work and the following Version 100, which would be equivalent to a "1.0" release in current popular version systems.
The next major revision was named Version 200, which introduced a new default module system that cooperates with macros.[24] In particular, the module system ensures that run-time and compile-time computation are separated to support a "tower of languages".[25] Unlike units, these modules are not first-class objects.
Version 300 introduced Unicode support, foreign library support, and refinements to the class system.[24] Later on, the 300 series improved the performance of the language runtime with an addition of a JIT compiler and a switch to a default generational garbage collection.
By the next major release, the project had switched to a more conventional sequence-based version numbering. Version 4.0 introduced the #lang shorthand to specify the language that a module is written in. Further, the revision introduced immutable pairs and lists, support for fine-grained parallelism, and a statically-typed dialect.[26]
On 7 June 2010, PLT Scheme was renamed Racket.[27] The renaming coincided with the release of Version 5.0. Subsequently, the graphical user interface (GUI) backend was rewritten in Racket from C++ in Version 5.1 using native UI toolkits on all platforms.[22] Version 5.2 included a background syntax checking tool, a new plotting library, a database library, and a new extended REPL.[28] Version 5.3 included a new submodule feature for optionally loaded modules,[29] new optimization tools, a JSON library, and other features.[30] Version 5.3.1 introduced major improvements to DrRacket: the background syntax checker was turned on by default and a new documentation preview tool was added.[31]
In version 6.0, Racket released its second-generation package management system. As part of this development, the principal DrRacket and Racket repository was reorganized and split into a large set of small packages, making it possible to install a minimal racket and to install only those packages needed.[32]
Version 7 of Racket was released with a new macro expander written in Racket as part the preparations for supporting moving to the Chez Scheme runtime system and supporting multiple runtime systems.[33][34] On 19 November 2019, Racket 7.5 was released. The license of Racket 7.5 was less restrictive. They use now either the Apache 2.0 license or the MIT license.[35][36]
On 2021 February 13, Racket 8.0 was released. Racket 8.0 marks the first release where Racket with the Chez Scheme runtime system, known as Racket CS, is the default implementation. Racket CS is faster, easier to maintain and develop, backward-compatible with existing Racket programs, and has better parallel garbage collection.[37]
Racket's core language includes macros, modules, lexical closures, tail calls, delimited continuations,[38] parameters (fluid variables), software contracts,[39]green threads and OS threads,[40][41][42] and more. The language also comes with primitives, such as eventspaces and custodians, which control resource management and enables the language to act like an operating system for loading and managing other programs.[12] Further extensions to the language are created with the powerful macro system, which together with the module system and custom parsers can control all aspects of a language.[43] Most language constructs in Racket are implemented as macros in the base language. These include a mixin class system,[16] a component (or module) system as expressive as opaque ascription in the ML module system,[17] and pattern matching.
Further, the language features the first contract system for a higher-order programming language.[44]
Racket's contract system is inspired by the Design by Contract work for Eiffel and extends it to work for higher-order values such as first-class functions, objects, reference cells, and so on. For example, an object that is checked by a contract can be ensured to make contract checks when its methods are eventually invoked.
Racket includes both bytecode and JIT (JIT) compilers. The bytecode compiler produces an internal bytecode format run by the Racket virtual machine, and the JIT compiler translates bytecode to machine code at runtime.
Since 2004, the language has also shipped with PLaneT, a package manager that is integrated into the module system so that third-party libraries can be transparently imported and used. Also, PLaneT has a built-in versioning policy to prevent dependency hell.[45]
At the end of 2014, much of Racket's code was moved into a new packaging system separate from the main code base. This new packaging system is serviced by a client program named raco. The new package system provides fewer features than PLaneT; a blog post by Jay McCarthy on the Racket blog explains the rationale for the change and how to duplicate the older system.[46]
The features that most clearly distinguish Racket from other languages in the Lisp family are its integrated language extensibility features that support building new domain-specific and general-purpose languages. Racket's extensibility features are built into the module system to allow context-sensitive and module-level control over syntax.[18] For example, the #%app syntactic form can be overridden to change the semantics of function application. Similarly, the #%module-begin form allows arbitrary static analysis of the entire module.[18] Since any module can be used as a language, via the #lang notation, this effectively means that virtually any aspect of the language can be programmed and controlled.
The module-level extensibility features are combined with a Scheme-like hygienic macro system, which provides more features than Lisp's s-expression manipulation system,[47][48] Scheme 84's hygienic extend-syntax macros, or R5RS's syntax-rules. Indeed, it is fair to say that the macro system is a carefully tuned application programming interface (API) for compiler extensions. Using this compiler API, programmers can add features and entire domain-specific languages in a manner that makes them completely indistinguishable from built-in language constructs.
The macro system in Racket has been used to construct entire language dialects. This includes Typed Racket, which is a gradually typed dialect of Racket that eases the migration from untyped to typed code,[49] Lazy Racket—a dialect with lazy evaluation,[50] and Hackett, which combines Haskell and Racket.[51] The pedagogical programming language Pyret was originally implemented in Racket.[52][53]
Racket's core distribution provides libraries to aid the development of programming languages.[18] Such languages are not restricted to s-expression based syntax. In addition to conventional readtable-based syntax extensions, the directive #lang enables the invocation of arbitrary parsers, which can be implemented using the parser tools library.[58] See Racket logic programming for an example of such a language.
DrRacket (formerly DrScheme) is widely used among introductory computer science courses that teach Scheme or Racket and is lauded for its simplicity and appeal to beginner programmers. The IDE was originally built for use with the TeachScheme! project (now ProgramByDesign), an outreach effort by Northeastern University and a number of affiliated universities for attracting high school students to computer science courses at the college level.
The editor provides highlighting for syntax and run-time errors, parenthesis matching, a debugger and an algebraic stepper. Its student-friendly features include support for multiple "language levels" (Beginning Student, Intermediate Student and so on). It also has integrated library support, and sophisticated analysis tools for advanced programmers. Further, module-oriented programming is supported with the module browser, a contour view, integrated testing and coverage measurements, and refactoring support. It provides integrated, context-sensitive access to an extensive hyper-linked help system named "Help Desk".
This program, taken from the Racket website, draws a Sierpinski triangle, nested to depth 8.
Using the #lang directive, a source file can be written in different dialects of Racket. Here is an example of the factorial program in Typed Racket, a statically typed dialect of Racket:
Racket currently has two implementations. Both support Linux, Windows and MacOS on a variety of architectures and are supported as at version 8.8 (2023). The default implementation uses the Chez Scheme incremental compiler and runtime. The alternate implementation generates platform-independent bytecode and uses Just-in-time compilation to generate machine code as it is loaded.[60]
In addition, there are experimental implementations:
RacketScript is an experimental Racket to JavaScript (ES6) compiler. It allows programmers to use both JavaScript’s and Racket’s ecosystem and aims to make this interoperability as smooth as possible.[61]
Pycket is a Racket implementation generated using the RPython framework.[62]
Applications and practical use
Apart from having a basis in programming language theory, Racket was designed as a general-purpose language for production systems. Thus, the Racket distribution features an extensive library that covers systems and network programming, web development,[59] a uniform interface to the underlying operating system, a dynamic foreign function interface,[63] several flavours of regular expressions, lexer/parser generators,[58]logic programming, and a complete GUI framework.
Racket has several features useful for a commercial language, among them an ability to compile standalone executables under Windows, macOS, and Unix, a profiler and debugger included in the integrated development environment (IDE), and a unit testing framework.
Racket has been used for commercial projects and web applications. A notable example is the Hacker News website, which runs on Arc, which is developed in Racket. Naughty Dog has used it as a scripting language in several video games.[64]
Racket is used to teach students algebra through game design in the Bootstrap program.[65]
References
^"Racket v8.15". 5 November 2024. Retrieved 7 November 2024.
^"DrRacket Files". Retrieved 21 July 2019. The standard file extension for a Racket program file is ".rkt". The extensions ".ss", ".scm", and ".sch" are also historically popular.
^ abFelleisen, M.; Findler, R.B.; Flatt, M.; Krishnamurthi, S.; Barzilay, E.; McCarthy, J.; Tobin-Hochstadt, S. (2015). "The Racket Manifesto"(PDF). Proceedings of the First Summit on Advances in Programming Languages: 113–128.
^ ab
Flatt; Findler; Krishnamurthi; Felleisen (1999). Programming Languages as Operating Systems (or, Revenge of the Son of the Lisp Machine). International Conference on Functional Programming.
^ abcdTobin-Hochstadt, S.; St-Amour, V.; Culpepper, R.; Flatt, M.; Felleisen, M. (2011). "Languages as Libraries"(PDF). Programming Language Design and Implementation.
^Benson, Brent W. Jr. (26–28 October 1994). "libscheme: Scheme as a C Library". Written at Santa Fe, NM. Proceedings of the USENIX Symposium on Very High Level Languages. Berkeley, CA: USENIX Association. pp. 7–19. ISBN978-1880446652. Retrieved 7 July 2013.
^Tobin-Hochstadt, S.; Felleisen, M. (2008). "The Design and Implementation of Typed Scheme". Principles of Programming Languages.
^Barzilay, E.; Clements, J. (2005). "Laziness Without All the Hard Work: Combining Lazy and Strict Languages for Teaching". Functional and Declarative Programming in Education.
^Flatt, M.; Barzilay, E.; Findler, R. B. (2009). "Scribble: Closing the Book on Ad Hoc Documentation Tools". International Conference on Functional Programming.
^Findler, R. B.; Flatt, M. (2004). "Slideshow: Functional Presentations". International Conference on Functional Programming.
Deddy StanzahLahirDeddy SutansyahBandung, Jawa Barat (1949-04-14)14 April 1949Meninggal22 Januari 2001(2001-01-22) (umur 51)Cikaso, BandungPekerjaanVokalis, MusisiSuami/istriIsyeKarier musikGenreRockInstrumenBass, vokalTahun aktif1964 - 1991LabelBravo MusikArtis terkaitGito Rollies, God Bless, Staccato Band, Jelly Tobing, Triawan MunafMantan anggotaThe Rollies Superkid Deddy Stanzah (14 April 1949 – 22 Januari 2001) adalah penyanyi rock yang juga anggota grup musik The R...
Artikel ini tidak memiliki referensi atau sumber tepercaya sehingga isinya tidak bisa dipastikan. Tolong bantu perbaiki artikel ini dengan menambahkan referensi yang layak. Tulisan tanpa sumber dapat dipertanyakan dan dihapus sewaktu-waktu.Cari sumber: Etika manajerial – berita · surat kabar · buku · cendekiawan · JSTOR Artikel ini perlu diwikifikasi agar memenuhi standar kualitas Wikipedia. Anda dapat memberikan bantuan berupa penambahan pranala dalam...
International group of researchers in neuroscience and gender studies The NeuroGenderings NetworkFormationSeptember 15, 2012; 11 years ago (2012-09-15)FoundersIsabelle Dussauge and Anelis KaiserFounded atUppsala, SwedenPurposeTo critically examine neuroscientific knowledge production and to develop differentiated approaches for a more gender adequate neuroscientific research.FieldsCritical neuroscientific research into sex differencesWebsiteOfficial website The NeuroGenderin...
جوزيه فيراز معلومات شخصية الميلاد 13 أغسطس 1949 (العمر 74 سنة)البرتغال مركز اللعب وسط الجنسية البرتغال المسيرة الاحترافية1 سنوات فريق م. (هـ.) I.S.C. Sobreirense سالجويروس [الإنجليزية] نادي ماشاكويني [لغات أخرى] VVA/Spartaan [الإنجليزية] DWG/Rombout AFC TABA الفرق التي درب�...
Золота голова месника Жанр історичнийРежисер Алішер ХамдамовСценарист Мухаммед СаліхХудайберди ТухтабаєвУ головних ролях Саттар ДікамбаєвКарім МірхадієвОператор Равіль ГанієвКомпозитор Володимир БаграмовАнвар ЕргашевХудожник Євген ПушинКінокомпанія Узбекфільм�...
Japanese judoka Yukio Tani谷 幸雄Tani (right) demonstrating a flying armbar on William Bankier, c. 1906Born1881JapanDiedJanuary 24, 1950 (aged 69)London, EnglandOccupation(s)Japanese martial arts instructor, professional challenge wrestlerOrganizationTenjin Shinyo-ruy, Bartitsu Academy, The Japanese School of Ju-Jitsu,The BudokwaiHeight5 ft 6 in (168 cm) Yukio Tani (谷 幸雄, Tani Yukio, 1881 – 24 January 1950) was a pioneering Japanese jujutsu and judo instruct...
История Грузииსაქართველოს ისტორია Доисторическая Грузия Шулавери-шомутепинская культураКуро-араксская культураТриалетская культураКолхидская культураКобанская культураДиаухиМушки Древняя история КолхидаАриан-КартлиИберийское царство ФарнавазидыГруз�...
Miss International Indonesia 2008 In this article, the surname is Silalahi, her Batak patronymic surname; Riris is her middle matronymic surname. Duma Riris SilalahiDuma Riris Silalahi in 2021Born (1983-09-20) September 20, 1983 (age 40)Medan, North Sumatra, IndonesiaAlma materUniversity of North Sumatra[3]Occupationsactresssingerfashion modelBeauty pageant titleholdersHeight171 cm (5 ft 7 in)[1][2]Spouse Judika Nalon Abadi Sihotang[4]&...
Chemical process For other uses, see Conjugation (disambiguation). This article may be too technical for most readers to understand. Please help improve it to make it understandable to non-experts, without removing the technical details. (October 2022) (Learn how and when to remove this message) Bioconjugation is a chemical strategy to form a stable covalent link between two molecules, at least one of which is a biomolecule. Overview Function Recent advances in the understanding of biomolecul...
Fiore della vita sulla chiave di volta (o svolta) della volta sull'incrocio dei costoloni nella Parrocchia di Ozzano Monferrato, Piemonte Questo è un hexafoil o esafoglio (fiore a sei petali) realizzato con il metodo vesica piscis Un fiore della vita, hexafoil, rosetta a sei petali. Utilizzato nelle prime religioni etniche degli slavi. Il fiore a sei petali[1][2] o esafoglio (detto anche: fiore della vita, hexafoil, rosa dei pastori, rosa carolingia[3], rosa celtica, ...
1621 book by Robert Burton This article is about the book by Robert Burton. For the album by Paradise Lost, see The Anatomy of Melancholy (album). The Anatomy of Melancholy Allegorical frontispiece to the 1628 third edition, engraved by Christian Le BlonAuthorRobert BurtonCountryEnglandLanguageEarly Modern EnglishGenreMedicine, philosophyPublication date1621, 1624, 1628, 1632, 1638, and 1651Media typePrintDewey Decimal616.89LC ClassPR2223 .A1 The Anatomy of Melancholy (full title: T...
لا يزال النص الموجود في هذه الصفحة في مرحلة الترجمة إلى العربية. إذا كنت تعرف اللغة المستعملة، لا تتردد في الترجمة. (أبريل 2019) الجدول الزمني لتوزيعات جنو/لينكس والجدول الزمني يمثل تطور مختلف توزيعات لينكس الموضوع الأساسي توزيعات لينكس توزيعات معتمدة على دبيان دبيان هو نظام...
English chef and restaurateur (born 1975) This article is about the celebrity chef. For the Welsh musician, see Jamie Oliver (musician). For the Spanish boxer, see Jaime Oliver. Not to be confused with James Oliver. Jamie OliverMBE OSIOliver in 2014BornJamie Trevor Oliver (1975-05-27) 27 May 1975 (age 49)Clavering, Essex, EnglandEducationWestminster Kingsway CollegeSpouse Juliette Norton (m. 2000)Children5Culinary careerCooking styleOrganicItalianBritish Cu...
Hans NeumannHans Neumann at the 1905 SPGB ConferenceBorn18??Germany(?)Died1919(?)Germany(?)Political partySocialist Party of Great BritainMovementWorld Socialist Movement Hans Neumann (a.k.a. Hans Newman) (18??–1919(?)) was a founding member of the Socialist Party of Great Britain. Neumann had previously been very active in the Social Democratic Federation, being a public speaker for that party and secretary of its Chelsea & Fulham branch in 1897. Neumann was a well-known early Impossib...
African diasporic religion in Louisiana For the Arena Football League team, see Louisiana VooDoo. Not to be confused with Hoodoo (spirituality) or Haitian Vodou. An altar used in Louisiana Voodoo, on display in the French Quarter of New Orleans Louisiana Voodoo (French: Vaudou louisianais, Spanish: Vudú de Luisiana), also known as New Orleans Voodoo, is an African diasporic religion that originated in Louisiana. It arose through a process of syncretism between the traditional religions of We...
لمعانٍ أخرى، طالع آثار الاحتجاجات البحرينية (توضيح). المقالة الرئيسة: الاحتجاجات البحرينية وفيما يلي تسلسل زمني للأحداث التي أعقبت الاحتجاجات البحرينية من عام 2011 من أبريل إلى يونيو 2011. شملت هذه المرحلة استمرار القمع ورفع حالة الطوارئ وعودة الاحتجاجات الكبيرة. الجدو...
Noyerscomune Noyers – Veduta LocalizzazioneStato Francia Regione Normandia Dipartimento Eure ArrondissementLes Andelys CantoneGisors TerritorioCoordinate49°16′N 1°23′E49°16′N, 1°23′E (Noyers) Altitudine53 e 141 m s.l.m. Superficie5,36 km² Abitanti305[1] (2009) Densità56,9 ab./km² Altre informazioniCod. postale27720 Fuso orarioUTC+1 Codice INSEE27445 CartografiaNoyers Sito istituzionaleModifica dati su Wikidata · Manuale Noyers è un...