29 releases

Uses new Rust 2024

0.1.10 Mar 29, 2025
0.1.9 Mar 28, 2025
0.0.20 Mar 7, 2025
0.0.13 Jan 18, 2025
0.0.2-a03 Nov 29, 2024

#1232 in Programming languages

Download history 187/week @ 2024-12-25 265/week @ 2025-01-01 281/week @ 2025-01-08 170/week @ 2025-01-15 2/week @ 2025-01-22 9/week @ 2025-02-05 9/week @ 2025-02-19 312/week @ 2025-02-26 906/week @ 2025-03-05 487/week @ 2025-03-12 300/week @ 2025-03-19 594/week @ 2025-03-26 32/week @ 2025-04-02

1,005 downloads per month
Used in 3 crates (via mangrove-script)

MIT license

1MB
18K SLoC

Swamp Programming Language 🐊

A magical language that lives in the swamp.

Swamp is a modern, statically-typed programming language designed for writing reliable and maintainable code. It combines functional programming concepts with pragmatic design choices to create an expressive and safe development experience.

🌟 Features

  • Strong Static Typing - Catch errors at compile time with a powerful type system
  • Pattern Matching - Express complex control flow clearly and safely
  • Immutability by Default - Reduce bugs with controlled mutability
  • Zero-Cost Abstractions - High-level features with minimal runtime overhead
  • Friendly Error Messages - Clear guidance when things go wrong
  • First-Class Functions - Functions as values with full type inference
  • Algebraic Data Types - Express data structures naturally with sum and product types

About Contributions

This is an open source project with a single copyright holder. While the code is publicly available under LICENSE, I am not accepting external contributions at this time.

You are welcome to:

  • Use the code according to the license terms
  • Fork the project for your own use, following the license terms
  • Report issues
  • Provide feedback
  • Share the project

If you have suggestions or find bugs, please feel free to open an issue for discussion. While I cannot accept pull requests, I value your feedback and engagement with the project.

Thank you for your understanding and interest in the project! 🙏

License

This project is licensed under the MIT License - see the LICENSE file for details.

Copyright (c) 2024 Peter Bjorklund. All rights reserved.

Dependencies

~8–16MB
~190K SLoC