Troupe icon indicating copy to clipboard operation
Troupe copied to clipboard

Troupe programming language

Results 46 Troupe issues
Sort by recently updated
recently updated
newest added

I tried to create a module with the following program, which I thought would work as intended after #57 / #82 ? ``` 3.1415926535_8979323846_2643383279_5028841971_6939937510_5820974944_5923078164_0628620899_8628034825_3421170679 ``` I tried it in `utop`...

🔥 bug
📁 ./compiler

Resolves #52 **Tasks** - [x] Add rudementary encoding of ADTs as ~records~ *tuples*. - [ ] Add more tests. - [ ] Improve on errors. - [ ] Rudementary type...

✨ enhancement
📁 ./compiler

For the same reasons as in #72 , this sets up static analysis and formatting for the `rt/src` folder. > [!WARNING] > I've marked this pull request as a draft...

📁 ./rt
✨ code quality

Having all code formatted by mechanically has multiple benefits: - Consistent styling, which decreases cognitive load (more brainpower to solve problems rather than parsing the code). - Ease refactoring efforts,...

📁 ./compiler
✨ code quality

After the rewrite in #54 , the lib folder includes quite a few libraries that yet do not conform to the style laid out in #71 . ## TODO **Rewrite**:...

✨ enhancement
question
📁 ./lib
✨ code quality

Currently, in `AddAmbientMethods`, we add quality-of-life functions that depend on *authority*. In a teaching context, this allows students to get started using Troupe without getting confused by too many new...

✨ enhancement
📁 ./compiler
✨ code quality

With #54 , I've been laying out the foundations for a standard library. While doing so, I only ran the new test file in *tests/lib/* rather than the entire test...

good first issue
📁 ./tests

Currently, everything is thrown together in `run_tests.yml`. This makes it very hard to gauge feedback from pull requests. Let's split up the file!

📁 ./tests

Consider the following (minimised) version of the unit testing library I've been writing ```sml (** FILE: lib/Unit.trp *) let (*--- Pretty Printing ---*) fun yellow s = "\x1b[33m" ^ s...

question
📁 ./rt

Currently, Troupe includes the following three (mutable) *array* operations implemented in [`rt/src/builtins/localarrays.mts`](https://github.com/TroupeLang/Troupe/blob/0dea01aee6497e14c563ea8983830a53d5d8719c/rt/src/builtins/localarrays.mts): - `arrayCreate`: O(n) allocation of array - `arrayGet`: O(1) access to element - `arraySet`: O(1) update with side-effects...

✨ enhancement
📁 ./rt
✨ optimization