Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Common Lisp

264
254
+ 1
145
Racket

89
83
+ 1
54
Add tool

Common Lisp vs Racket: What are the differences?

Introduction: Common Lisp and Racket are both popular programming languages in the Lisp family, known for their powerful features and flexibility. However, they also have some key differences that set them apart from each other.

  1. Syntax: Common Lisp has a more traditional syntax with its use of parentheses and prefix notation, while Racket allows for more flexibility with different syntaxes, such as infix and prefix, making it easier for beginners to adapt to.
  2. Purpose: Common Lisp is widely used in AI research, language design, and system programming, while Racket is often utilized in education, research projects, and as a scripting language due to its simplicity and extensibility.
  3. Modules and Libraries: Racket has a module system that promotes better organization and reuse of code, making it easier to collaborate on projects, whereas Common Lisp relies more on external libraries for additional functionalities.
  4. Development Environment: Racket provides a powerful IDE called DrRacket that includes debugging tools, module browsers, and language-sensitive editors, offering a user-friendly environment for developers, while Common Lisp lacks a standardized IDE, leading to developers using third-party tools like Emacs or SLIME for development.
  5. Community and Support: Common Lisp has a mature and active community with a wider range of libraries and resources available, making it easier for developers to find solutions and support for their projects compared to Racket, which has a smaller community and fewer resources.
  6. Concurrency: Racket's runtime system provides built-in support for lightweight concurrency, making it easier to write parallel programs, whereas Common Lisp requires external libraries such as Bordeaux Threads for implementing concurrent and parallel programming.

In Summary, the key differences between Common Lisp and Racket lie in their syntax, purpose, module systems, development environments, community support, and concurrency capabilities.

Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Common Lisp
Pros of Racket
  • 24
    Flexibility
  • 22
    High-performance
  • 17
    Comfortable: garbage collection, closures, macros, REPL
  • 13
    Stable
  • 12
    Lisp
  • 8
    Code is data
  • 6
    Can integrate with C (via CFFI)
  • 6
    Multi paradigm
  • 5
    Lisp is fun
  • 4
    Macros
  • 4
    Easy Setup
  • 3
    Parentheses
  • 3
    Open source
  • 3
    Purelly functional
  • 3
    Elegant
  • 1
    DSLs
  • 1
    Multiple values
  • 1
    CLOS/MOP
  • 1
    Clean semantics
  • 1
    Will still be relevant 100 years from now
  • 1
    Still decades ahead of almost all programming languages
  • 1
    Best programming language
  • 1
    Simple syntax
  • 1
    Powerful
  • 1
    Generic functions
  • 1
    Can implement almost any feature as a library
  • 1
    Formal specification, multiple implementations
  • 4
    Meta-programming
  • 3
    Hygienic macros
  • 2
    FFI
  • 2
    Great libraries
  • 2
    Beautiful code
  • 2
    Rapid development
  • 2
    Fast
  • 2
    Gradual typing
  • 2
    Nanopass compiler
  • 2
    Extensible
  • 2
    Racket Macro system
  • 2
    Cross platform GUI
  • 2
    Module system
  • 2
    Macro Stepper
  • 2
    Beginner friendly
  • 2
    Built-in concurrency
  • 2
    Built-in parallelism
  • 2
    Functional Programming
  • 2
    Open source
  • 2
    Language-oriented programming
  • 2
    Pattern matching
  • 1
    Easy syntax
  • 1
    Type inference
  • 1
    Static type-checker
  • 1
    Racketscript
  • 1
    Great community
  • 1
    IDE
  • 1
    Typed Racket
  • 1
    Good documentation
  • 1
    Efficient compiler

Sign up to add or upvote prosMake informed product decisions

Cons of Common Lisp
Cons of Racket
  • 4
    Too many Parentheses
  • 3
    Standard did not evolve since 1994
  • 2
    Small library ecosystem
  • 2
    No hygienic macros
  • 1
    Inadequate community infrastructure
  • 1
    Ultra-conservative community
  • 2
    LISP BASED
  • 2
    No GitHub

Sign up to add or upvote consMake informed product decisions

668
2.7K
6.3K
2.9K
5.8K

What is Common Lisp?

Lisp was originally created as a practical mathematical notation for computer programs, influenced by the notation of Alonzo Church's lambda calculus. It quickly became the favored programming language for artificial intelligence (AI) research. As one of the earliest programming languages, Lisp pioneered many ideas in computer science, including tree data structures, automatic storage management, dynamic typing, conditionals, higher-order functions, recursion, and the self-hosting compiler. [source: wikipedia]

What is Racket?

It is a general-purpose, multi-paradigm programming language based on the Scheme dialect of Lisp. It is designed to be a platform for programming language design and implementation. It is also used for scripting, computer science education, and research.

Need advice about which tool to choose?Ask the StackShare community!

What companies use Common Lisp?
What companies use Racket?
Manage your open source components, licenses, and vulnerabilities
Learn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Common Lisp?
What tools integrate with Racket?

Sign up to get full access to all the tool integrationsMake informed product decisions

What are some alternatives to Common Lisp and Racket?
Clojure
Clojure is designed to be a general-purpose language, combining the approachability and interactive development of a scripting language with an efficient and robust infrastructure for multithreaded programming. Clojure is a compiled language - it compiles directly to JVM bytecode, yet remains completely dynamic. Clojure is a dialect of Lisp, and shares with Lisp the code-as-data philosophy and a powerful macro system.
Haskell
It is a general purpose language that can be used in any domain and use case, it is ideally suited for proprietary business logic and data analysis, fast prototyping and enhancing existing software environments with correct code, performance and scalability.
Python
Python is a general purpose programming language created by Guido Van Rossum. Python is most praised for its elegant syntax and readable code, if you are just beginning your programming career python suits you best.
Java
Java is a programming language and computing platform first released by Sun Microsystems in 1995. There are lots of applications and websites that will not work unless you have Java installed, and more are created every day. Java is fast, secure, and reliable. From laptops to datacenters, game consoles to scientific supercomputers, cell phones to the Internet, Java is everywhere!
C lang
See all alternatives