Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the tutorial #1967

Merged
merged 2 commits into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ If you're interested in Juvix, you may also want to explore the following relate
| Project | Description |
| ------- | ----------- |
| [GEB][geb] | Intermediate language for writing compilers and one of the Juvix backends. |
| [VampIR][vampir] | Proof-system-agnostic language for writing arithmetic circuit and one of the GEB backends.|
| [VampIR][vampir] | Proof-system-agnostic language for writing arithmetic circuits and one of the GEB backends.|
| [Taiga][taiga] | A framework for generalized shielded state transitions. |

## Resources
Expand Down
2 changes: 1 addition & 1 deletion app/TopCommand/Options.hs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ parseUtility =
"init"
( info
(pure Init)
(progDesc "Interactively initialize a juvix project in the current directory")
(progDesc "Interactively initialize a Juvix project in the current directory")
)
commandDoctor :: Mod CommandFields TopCommand
commandDoctor =
Expand Down
159 changes: 159 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,165 @@
<img align="right" width="300" height="300" alt="Juvix Mascot" src="../assets/images/tara-smiling.svg" />
</a>

## [v0.3.1](https://github.com/anoma/juvix/tree/v0.3.1) (2023-03-31)

[Full Changelog](https://github.com/anoma/juvix/compare/v0.3.0...v0.3.1)

**Implemented enhancements:**

- Option `--show-args-num` [\#1946](https://github.com/anoma/juvix/pull/1946)
([lukaszcz](https://github.com/lukaszcz))
- Preserve the target type in letrec lifting
[\#1945](https://github.com/anoma/juvix/pull/1945)
([janmasrovira](https://github.com/janmasrovira))
- Add syntax highlighting to Core error messages
[\#1938](https://github.com/anoma/juvix/pull/1938)
([lukaszcz](https://github.com/lukaszcz))
- Add the `--unroll` option
[\#1935](https://github.com/anoma/juvix/pull/1935)
([lukaszcz](https://github.com/lukaszcz))
- Preserve name and location information in Internal-to-Core
[\#1933](https://github.com/anoma/juvix/pull/1933)
([lukaszcz](https://github.com/lukaszcz))
- Polymorphic type inference in Core
[\#1931](https://github.com/anoma/juvix/pull/1931)
([lukaszcz](https://github.com/lukaszcz))
- Update README.md with Juvix nightly builds badge
[\#1923](https://github.com/anoma/juvix/pull/1923)
([jonaprieto](https://github.com/jonaprieto))
- Create clean-up-cache.yaml
[\#1915](https://github.com/anoma/juvix/pull/1915)
([jonaprieto](https://github.com/jonaprieto))
- Update GitHub pages deployment using deploy-pages action
[\#1910](https://github.com/anoma/juvix/pull/1910)
([jonaprieto](https://github.com/jonaprieto))
- Check for recursive inductive types in the GEB pipeline
[\#1909](https://github.com/anoma/juvix/pull/1909)
([lukaszcz](https://github.com/lukaszcz))
- CI pre-commit maintenance
[\#1905](https://github.com/anoma/juvix/pull/1905)
([jonaprieto](https://github.com/jonaprieto))
- Add new README and md files
[\#1904](https://github.com/anoma/juvix/pull/1904)
([jonaprieto](https://github.com/jonaprieto))
- Print JuvixCore correctly
[\#1875](https://github.com/anoma/juvix/pull/1875)
([lukaszcz](https://github.com/lukaszcz))
- Pattern matching compilation
[\#1874](https://github.com/anoma/juvix/pull/1874)
([lukaszcz](https://github.com/lukaszcz))
- CI Haskell maintenance
[\#1797](https://github.com/anoma/juvix/pull/1797)
([jonaprieto](https://github.com/jonaprieto))

**Merged pull requests:**

- Let-folding after lifting
[\#1955](https://github.com/anoma/juvix/pull/1955)
([lukaszcz](https://github.com/lukaszcz))
- Fix removal of polymorphic type arguments
[\#1954](https://github.com/anoma/juvix/pull/1954)
([lukaszcz](https://github.com/lukaszcz))
- Fix a bug in closure traversal
[\#1953](https://github.com/anoma/juvix/pull/1953)
([lukaszcz](https://github.com/lukaszcz))
- Update typecheck command to check for coverage
[\#1952](https://github.com/anoma/juvix/pull/1952)
([janmasrovira](https://github.com/janmasrovira))
- CI: Ignore errors linux typecheck / format examples step
[\#1950](https://github.com/anoma/juvix/pull/1950)
([paulcadman](https://github.com/paulcadman))
- Filter out type synonyms in RemoveTypeArgs
[\#1949](https://github.com/anoma/juvix/pull/1949)
([lukaszcz](https://github.com/lukaszcz))
- Add fail nodes to Geb
[\#1947](https://github.com/anoma/juvix/pull/1947)
([lukaszcz](https://github.com/lukaszcz))
- End-to-end Geb compilation tests
[\#1942](https://github.com/anoma/juvix/pull/1942)
([lukaszcz](https://github.com/lukaszcz))
- Add juvix dev repl command
[\#1941](https://github.com/anoma/juvix/pull/1941)
([paulcadman](https://github.com/paulcadman))
- Refactor Geb values
[\#1940](https://github.com/anoma/juvix/pull/1940)
([lukaszcz](https://github.com/lukaszcz))
- Avoid capturing the same free variable multiple times in letrec lifting
[\#1939](https://github.com/anoma/juvix/pull/1939)
([janmasrovira](https://github.com/janmasrovira))
- Add Judoc syntax reference
[\#1934](https://github.com/anoma/juvix/pull/1934)
([janmasrovira](https://github.com/janmasrovira))
- Fix spacing of judoc in the formatter
[\#1932](https://github.com/anoma/juvix/pull/1932)
([janmasrovira](https://github.com/janmasrovira))
- bench: Fix juvix compile flag for wasm
[\#1925](https://github.com/anoma/juvix/pull/1925)
([paulcadman](https://github.com/paulcadman))
- Fix memory count for string operations
[\#1924](https://github.com/anoma/juvix/pull/1924)
([lukaszcz](https://github.com/lukaszcz))
- Let folding
[\#1921](https://github.com/anoma/juvix/pull/1921)
([lukaszcz](https://github.com/lukaszcz))
- Add a test suite for milestone examples
[\#1920](https://github.com/anoma/juvix/pull/1920)
([paulcadman](https://github.com/paulcadman))
- Add --numeric-version flag
[\#1918](https://github.com/anoma/juvix/pull/1918)
([jonaprieto](https://github.com/jonaprieto))
- Fix bug with unregistered builtin bool
[\#1917](https://github.com/anoma/juvix/pull/1917)
([lukaszcz](https://github.com/lukaszcz))
- Recursion unrolling for functions
[\#1912](https://github.com/anoma/juvix/pull/1912)
([lukaszcz](https://github.com/lukaszcz))
- Fix REPL state to include enough information to rerun the pipeline
[\#1911](https://github.com/anoma/juvix/pull/1911)
([janmasrovira](https://github.com/janmasrovira))
- CI Haskell fix for macOS build
[\#1908](https://github.com/anoma/juvix/pull/1908)
([jonaprieto](https://github.com/jonaprieto))
- Fix bug in IO runtime
[\#1906](https://github.com/anoma/juvix/pull/1906)
([lukaszcz](https://github.com/lukaszcz))
- Fix JuvixAsm validation
[\#1903](https://github.com/anoma/juvix/pull/1903)
([lukaszcz](https://github.com/lukaszcz))
- Fix registration of builtin inductive axioms
[\#1901](https://github.com/anoma/juvix/pull/1901)
([paulcadman](https://github.com/paulcadman))
- internal-to-core: Fix index shifting of pattern arguments
[\#1900](https://github.com/anoma/juvix/pull/1900)
([paulcadman](https://github.com/paulcadman))
- Fix de Bruijn indices in rmap
[\#1898](https://github.com/anoma/juvix/pull/1898)
([lukaszcz](https://github.com/lukaszcz))
- Normalize types in repl
[\#1897](https://github.com/anoma/juvix/pull/1897)
([janmasrovira](https://github.com/janmasrovira))
- Add MidSquareHash.juvix and fix types in MidSquareHash.jvc
[\#1896](https://github.com/anoma/juvix/pull/1896)
([lukaszcz](https://github.com/lukaszcz))
- Automatically detect and split mutually recursive blocks in let expressions
[\#1894](https://github.com/anoma/juvix/pull/1894)
([janmasrovira](https://github.com/janmasrovira))
- The `rmap` recursor
[\#1893](https://github.com/anoma/juvix/pull/1893)
([lukaszcz](https://github.com/lukaszcz))
- Add `juvix format` command
[\#1886](https://github.com/anoma/juvix/pull/1886)
([paulcadman](https://github.com/paulcadman))
- Make keyword `end` optional for top modules
[\#1883](https://github.com/anoma/juvix/pull/1883)
([janmasrovira](https://github.com/janmasrovira))
- Add errors to the Core pipeline and check GEB prerequisites
[\#1871](https://github.com/anoma/juvix/pull/1871)
([lukaszcz](https://github.com/lukaszcz))
- Test core to geb translation
[\#1865](https://github.com/anoma/juvix/pull/1865)
([jonaprieto](https://github.com/jonaprieto))

## [v0.3.0](https://github.com/anoma/juvix/tree/v0.3.0) (2023-03-15)

[Full Changelog](https://github.com/anoma/juvix/compare/v0.2.9...v0.3.0)
Expand Down
20 changes: 15 additions & 5 deletions docs/howto/compilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ module `Hello`:
-- Hello world example. This is a comment.
module Hello;

-- Import the standard library prelude, including the function 'printStringLn'
-- Import the standard library prelude, including the 'String' type
open import Stdlib.Prelude;

main : IO;
main := printStringLn "Hello world!";

end;
main : String;
main := "Hello world!";
```

A file compiled to an executable must define the zero-argument function
Expand All @@ -36,6 +34,15 @@ are specified with the `-t` option:
runtime.
3. `geb`. Produces a [GEB](https://anoma.github.io/geb/) input file.

# Compilation options

To see all compilation options type `juvix compile --help`. The most
commonly used options are:

- `-t target`: specify the target,
- `-g`: generate debug information and runtime assertions,
- `-o file`: specify the output file.

# Juvix projects

A <u>Juvix project</u> is a collection of Juvix modules inside one main
Expand All @@ -45,6 +52,9 @@ relative to the project's root directory. For example, if the file is
`root/Data/List.juvix` then the module must be called `Data.List`,
assuming `root` is the project's directory.

To interactively initialize a Juvix project in the current directory,
use `juvix init`.

To check that Juvix is correctly detecting your project's root, you can
run the command `juvix dev root File.juvix`.

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/tooling/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ juvix [Global options] ((-v|--version) | (-h|--help) | COMPILER_CMD | UTILITY_CM
## Utility Commands

- `doctor` Perform checks on your Juvix development environment
- `init` Interactively initialize a juvix project in the current
- `init` Interactively initialize a Juvix project in the current
directory

## Dev Commands
Expand Down
Loading