cosmo
Version, currently 0.10.044 versions
- 0.10.0latestJun 13, 2023
- 0.9.9not indexedApr 26, 2024
- 0.9.8not indexedApr 26, 2024
- 0.9.7not indexedApr 26, 2024
- 0.9.7-1not indexedApr 26, 2024
- 0.9.6not indexedApr 26, 2024
- 0.9.6-1not indexedApr 26, 2024
- 0.9.5not indexedApr 26, 2024
- 0.9.4not indexedApr 26, 2024
- 0.9.3not indexedApr 26, 2024
- 0.9.2not indexedApr 26, 2024
- 0.9.1not indexedApr 26, 2024
- 0.9.0not indexedApr 26, 2024
- 0.8.2not indexedApr 26, 2024
- 0.8.1not indexedApr 26, 2024
- 0.8.0not indexedApr 26, 2024
- 0.7.11not indexedApr 26, 2024
- 0.7.10not indexedApr 26, 2024
- 0.7.9not indexedApr 26, 2024
- 0.7.8not indexedApr 26, 2024
- 0.7.7not indexedApr 26, 2024
- 0.7.6not indexedApr 26, 2024
- 0.7.5not indexedApr 26, 2024
- 0.7.4not indexedApr 26, 2024
- 0.7.3not indexedApr 26, 2024
- 0.7.2not indexedApr 26, 2024
- 0.7.1not indexedApr 26, 2024
- 0.7.0not indexedApr 26, 2024
- 0.6.6not indexedApr 26, 2024
- 0.6.5not indexedApr 26, 2024
- 0.6.4not indexedApr 26, 2024
- 0.6.3not indexedApr 26, 2024
- 0.6.2not indexedApr 26, 2024
- 0.6.1not indexedApr 26, 2024
- 0.6.0not indexedApr 26, 2024
- 0.5.4not indexedApr 26, 2024
- 0.5.3not indexedApr 26, 2024
- 0.5.2not indexedApr 26, 2024
- 0.5.0not indexedApr 26, 2024
- 0.4.2not indexedApr 26, 2024
- 0.3.1not indexedApr 26, 2024
- 0.3.0not indexedApr 26, 2024
- 0.2.0not indexedApr 26, 2024
- 0.1.0not indexedApr 26, 2024
github.com/cosmo-lang/cosmo
A simple statically-typed language written in pure Crystal.
15 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
cosmo:
github: cosmo-lang/cosmo
version: ~> 0.10.0Then run:
shards installshard.yml
- Crystal
>= 1.8.2- License
- MIT
- Authors
- R-unic, quasar098, Kevin Alavik
- Target
cosmofrom src/cosmo.cr
Dependencies
Runtime Dependencies
- stdio*github: mosop/stdio
README
Cosmo
Cosmo is a statically-typed interpreted programming language written in pure Crystal. We have an extension for VS code (source), however it currently only features syntax highlighting and code snippets.
Installation
Download the Cosmo Installer and run it.
Contributing
There is a guide about how to contribute here on our Wiki.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Test your code (
make test) - Push to the branch (
make publish) - Create a new Pull Request
Have any questions or comments? DM me on Discord: runic#5997
Contributors
- R-unic - creator and maintainer
- quasar098
- Kevin Alavik
Things I Might Do
- Named arguments
- Make a Cosmo->C compiler
- C bindings
Things I Gotta Do
Features
- Grammar
- Regexes
- Endless (and beginless?) range literals
- Postfix
everyloop (e.x.x < 1 for every int x in vec)? typeof- Multiple assignment/declaration with spreads (e.x.
int x, y = *[1, 2]) :=operator (this will include making=binary expressions a statement [this is gonna be weird to implement lmao])- Enums
- Decorators
- Interfaces
- Namespaces
- Classes
- single inheritance
- mixins
- static/protected members
- Rewrite type system
- bound expressions (!!)
- an actual type pass
- generics
- type inference
- casting union types
- implicit conversions
- intersection types
- Other
- Extend
HTTPlibrary- routing stuff
+operator for vectors, same functionality asVector->combinestringandcharto hex conversions (e.x.<uint>'f' == 15)- Some form of multithreading
- Intrinsic methods for all datatypes (inherit from a base type)
- REPL supports multiline source
- Colorize REPL input
- Extend
Fixes
- Performance boosts lol
- Access imported aliased types
- Access types within tables (e.x.
JSON::Any) - More detailed errors when unable to resolve a type
- Import stack traces
- Properly log errors from intrinsics
- Segfaults
- passing
$? (pretty sure this is just like everything to do with classes) <float[]>[1,2,3]
- passing
- Class instance variables available outside of
$ - Throw if same module was imported twice
["a.b.c"].first.split('.')tries to access["a.b.c"].firstinstead of["a.b.c"].first()because of thesplitcall with parentheses (bug)
Tests
- Chained method calls with optional parentheses (e.x.
["a.b.c"].first.split('.').first == "a") - Expectation of errors in parser spec (e.x.
()throwsInvalid syntax ')': Expected an expression) - New intrinsic libraries
Refactorings
(empty)
Meta
- Package manager (Stars + StarsAPI) (WIP)
- Documentation generator?
- Language server
- Highlight function definition names without parentheses
Docs
(empty)
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.10.0- Tagged
- Jun 13, 2023
- Commit
88edfaa4fa3d- Crystal
>= 1.8.2- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/cosmo-lang/cosmo
Metadata
- Created
- Aug 12, 2026
- Updated
- Oct 9, 2026
- Synced
- Oct 9, 2026
- Versions
- 44