Racket, the Language-Oriented Programming Language
open sourceMIT OR Apache-2.0free
Racket is a mature, general-purpose language in the Lisp and Scheme family, built for language-oriented programming: its macro system is powerful enough that programmers define their own loops and whole domain-specific languages as libraries, and each module picks its language with a #lang line (Typed Racket, Scribble for documents, Datalog and more). It's a functional language with a library-based class system with mixins and traits, and it was the first language to support higher-order software contracts and safe gradual typing. It comes with a cross-platform GUI toolkit, a web server, a foreign function interface, standalone executables and thousands of packages from its package catalog, plus the DrRacket IDE and support for VS Code, Emacs and Vim. The default implementation, Racket CS, is built on Chez Scheme and compiles code to machine code.
Libraries for Racket
Talira doesn't list any yet.
Problems it solves
- a language for building my own domain-specific language
- teach programming with a language and IDE designed for beginners
- add types gradually to a dynamically typed codebase
- a Lisp with a big standard library, GUI toolkit and web server included
- write macros that extend the language safely
- a functional language for programming language research and prototyping
Features
- macros for new syntax, loops and whole languages as libraries
- #lang to pick each module's language (Typed Racket, Scribble, Datalog)
- higher-order contracts and safe gradual typing with Typed Racket
- classes, mixins and traits as a library
- cross-platform GUI toolkit for Windows, macOS and Linux
- web server and database libraries
- foreign function interface and standalone executables
- DrRacket IDE, with VS Code, Emacs and Vim support
- package catalog with thousands of packages
Alternatives
The same job
These do what Racket does.
- Common Lisp The programmable programming language
- TypeScript JavaScript with static types, compiled to plain JavaScript
- Ruby A Programmer's Best Friend
- OCaml An industrial-strength functional programming language with an emphasis on expressiveness and safety
- Julia The Julia Programming Language
