3 ms·
> Flix – Safe, Reliable, Concise, and Functional-First Programming Language "Ensure that you have at least Java 11 installed. " How about a compiler or an int
by hulitu 4y ago
> Flix – Safe, Reliable, Concise, and Functional-First Programming Language
"Ensure that you have at least Java 11 installed. "
How about a compiler or an interpreter ?
"Download the latest version of the Flix compiler (flix.jar) at https://github.com/flix/flix/releases/latest https://github.com/flix/flix/releases/latest.
Create an empty folder (e.g. mkdir flixproject) and place the downloaded Flix JAR (flix.jar) into that folder.
Enter the created directory (e.g. cd flixproject) and run java -jar flix.jar init to create an empty Flix project.
Run java -jar flix.jar run to compile and run the project.
Flix will compile the project and execute the main function (located in src/Main.flix).
"
So getting started is about running an empty project file ?
How about some code examples ?
I wanted to see what is a "Safe, Reliable, Concise, and Functional-First Programming Language". And all i get is an empty project ?
After reading some docs it looks like a lisp without parantheses and one has to have a good understanding of lambda functions to be able to read the documentation.
- jorkadeen 4y agoBe sure to check out https://flix.dev/ https://flix.dev/ and https://github.com/flix/flix/tree/master/examples https://github.com/flix/flix/tree/master/examples for more examples. (I am one of the authors of Flix.)
- Smaug123 4y agoScroll down! The homepage shows examples of ADTs, purity tracking (yay!) and pattern matching on purity (oooooh), effect polymorphism (oooooh again), type classes, HKTs, and an embedded Datalog DSL.
- all2 4y agoI rather liked Nim's one line install of a binary. Starting and running a project is as simple as "nim c -r <file_name>.nim". I appreciate languages/toolkits that are concise in their tooling. Golang is another language like this. The tooling is simple (though Golang is more opinionated than Nim in things like testing and project layouts) and easy to reason about.