https://github.com/carp-lang/Carp Skip to content Sign up * Why GitHub? Features - + Mobile - + Actions - + Codespaces - + Packages - + Security - + Code review - + Issues - + Integrations - + GitHub Sponsors - + Customer stories- * Team * Enterprise * Explore + Explore GitHub - Learn and contribute + Topics - + Collections - + Trending - + Learning Lab - + Open source guides - Connect with others + The ReadME Project - + Events - + Community forum - + GitHub Education - + GitHub Stars program - * Marketplace * Pricing Plans - + Compare plans - + Contact Sales - + Education - [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this organization All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} carp-lang / Carp Public * Notifications * Star 4.3k * Fork 153 * A statically typed lisp, without a GC, for real-time applications. View license 4.3k stars 153 forks Star Notifications * Code * Issues 90 * Pull requests 6 * Actions * Wiki * Security * Insights More * Code * Issues * Pull requests * Actions * Wiki * Security * Insights master Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags 10 branches 30 tags Code Latest commit @rgkirch rgkirch Update ControlMacros.carp (#1336) ... 102181d Oct 14, 2021 Update ControlMacros.carp (#1336) 102181d Git stats * 4,909 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .github ci: Merges different platform releases into one (#1313) Sep 17, 2021 app build: 0.5.3 Sep 17, 2021 bench fix: Unify aupdate and aupdate! with other update functions (#1220) May 25, 2021 core Update ControlMacros.carp (#1336) Oct 14, 2021 docs-html PR: additional local documentation as html (#1229) May 31, 2021 docs docs: fix typo in Macros.md (#1331) Oct 12, 2021 examples (and) and (or) now handle any number of parameters (#1251) Jun 20, 2021 headerparse Refactor: clean up Env module, store type environments in modules (# 1207 May 19, 2021 resources refactor: Move logos into resorces directory Nov 20, 2020 scripts test: REPL (#1239) Jun 15, 2021 src fix: categorize static calls correctly (#1322) Oct 12, 2021 test fix: #1261 (#1272) Sep 4, 2021 .build.yml Fix nixpkgs build. Nov 14, 2020 .clang-format core: do not have short functions on single lines Oct 30, 2019 .dir-locals.el Ormolu in default.nix and emacs before-save hook. (#1059) Dec 8, 2020 .gitignore chore: Move test-for-errors to test directory Nov 28, 2020 .travis.yml Fix nixpkgs build. Nov 14, 2020 CHANGELOG.md build: 0.5.3 Sep 17, 2021 CarpHask.cabal build: 0.5.3 Sep 17, 2021 LICENSE new license Aug 23, 2016 LUA_LICENSE lau license: fix referenced file Jan 14, 2019 README.md build: 0.5.3 Sep 17, 2021 Setup.hs refactor: Apply Ormolu auto-formatting (#1045) Dec 2, 2020 default.nix chore: Simplify default.nix (#1085) Dec 21, 2020 stack.yaml Try to fix Windows build failure switching resolver. May 22, 2020 View code Carp About Learn more A Very Small Example Maintainers Contributing License README.md Carp Logo Linux CI MacOS CI Windows CI WARNING! This is a research project and a lot of information here might become outdated and misleading without any explanation. Don't use it for anything important just yet! Version 0.5.3 of the language is out! About Carp is a programming language designed to work well for interactive and performance sensitive use cases like games, sound synthesis and visualizations. The key features of Carp are the following: * Automatic and deterministic memory management (no garbage collector or VM) * Inferred static types for great speed and reliability * Ownership tracking enables a functional programming style while still using mutation of cache-friendly data structures under the hood * No hidden performance penalties - allocation and copying are explicit * Straightforward integration with existing C code * Lisp macros, compile time scripting and a helpful REPL Learn more * The Compiler Manual - how to install and use the compiler * Carp Language Guide - syntax and semantics of the language * Core Docs - documentation for our standard library Join the chat at https://gitter.im/eriksvedang/Carp A Very Small Example (load-and-use SDL) (defn tick [state] (+ state 10)) (defn draw [app rend state] (bg rend &(rgb (/ @state 2) (/ @state 3) (/ @state 4)))) (defn main [] (let [app (SDLApp.create "The Minimalistic Color Generator" 400 300) state 0] (SDLApp.run-with-callbacks &app SDLApp.quit-on-esc tick draw state))) For instructions on how to run Carp code, see this document. For more examples, check out the examples directory. Maintainers * Erik Svedang * Veit Heller * Jorge Acereda * Scott Olsen * Tim Deve Contributing Thanks to all the awesome people who have contributed to Carp over the years! We are always looking for more help - check out the contributing guide to get started. License Copyright 2016 - 2021 Erik Svedang Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. The regular expression implementation as found in src/carp_regex.h are Copyright (C) 1994-2017 Lua.org, PUC-Rio under the terms of the MIT license. Details can be found in the License file LUA_LICENSE. About A statically typed lisp, without a GC, for real-time applications. Topics language gamedev games functional lisp functional-programming repl game-development static typed Resources Readme License View license Releases 18 v0.5.3 Latest Sep 17, 2021 + 17 releases Packages 0 No packages published Contributors 54 * * * * * * * * * * * + 43 contributors Languages * Haskell 90.3% * C 8.1% * Shell 1.0% * Python 0.4% * Nix 0.1% * PowerShell 0.1% * (c) 2021 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.