17 releases

Uses new Rust 2024

new 0.1.13 Mar 30, 2025
0.1.12 Mar 30, 2025
0.0.18 Mar 6, 2025
0.0.16-alpha.2 Jan 18, 2025
0.0.11 Nov 24, 2024

#2 in #safely

Download history 111/week @ 2024-12-07 72/week @ 2024-12-14 1/week @ 2024-12-21 96/week @ 2024-12-28 100/week @ 2025-01-04 297/week @ 2025-01-11 168/week @ 2025-01-18 2/week @ 2025-01-25 8/week @ 2025-02-01 1/week @ 2025-02-08 7/week @ 2025-02-15 8/week @ 2025-02-22 333/week @ 2025-03-01 81/week @ 2025-03-08 20/week @ 2025-03-15 29/week @ 2025-03-22

463 downloads per month
Used in 4 crates

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 and type inference.
  • Pattern Matching - Express complex control flow clearly and safely
  • Immutability by Default: Reduce bugs with controlled mutability when needed.
  • Algebraic Data Types (ADTs): Express data structures naturally with enum (sum types) and struct (product types).
  • Module System: Organize code into reusable modules with explicit imports/exports.
  • Zero-Cost Abstractions - High-level features with minimal runtime overhead
  • Friendly Error Messages: Clear guidance when things go wrong, with source context.

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

~5–13MB
~160K SLoC