Try out Foi code in the online playground without installing anything.
Compare Foi syntax against equivalent JavaScript using the included cheatsheet.
Explore Foi-Toy, a CLI tool for tokenizing and validating Foi code.
| getify/foi-lang | shopify/shopify-ai-toolkit | jxlarrea/voice-satellite-card-integration | |
|---|---|---|---|
| Stars | 325 | 322 | 321 |
| Language | JavaScript | JavaScript | JavaScript |
| Setup difficulty | moderate | easy | moderate |
| Complexity | 4/5 | — | 2/5 |
| Audience | researcher | developer | general |
Figures from each repo's GitHub metadata at analysis time.
No official compiler yet, only the experimental Foi-Toy CLI and online playground are available.
Foi is a new programming language created by Kyle Simpson, who is also known for his extensive JavaScript writing. The language is designed as a practical blend of two styles of programming: functional programming, which treats computation as a series of transformations without hidden side effects, and imperative programming, which is the more traditional step-by-step style most developers learn first. The goal is a language that developers with some experience in either style can learn in a few days, not months. It borrows ideas from several existing languages but is its own thing with its own syntax. Code examples in the README show patterns like function definitions, pattern matching, partial application, and function composition, all of which are concepts from functional programming but written in a style the author describes as readable and approachable. Foi is intended for general application programming. The planned compilation target is WebAssembly, which would let Foi programs run in web browsers, on servers, and on mobile devices. As of the README, that compilation path is not yet complete. There is an online playground at toy.foi-lang.com where you can try Foi code without installing anything. The repository also includes a command-line tool called Foi-Toy for running Foi locally, a guide document covering most of the language, a formal grammar for the language, and a cheatsheet comparing Foi syntax to equivalent JavaScript.
Foi is an experimental programming language blending functional and imperative styles, aiming to compile to WebAssembly, with an online playground to try it.
Mainly JavaScript. The stack also includes JavaScript, WebAssembly.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly researcher.
This repo across BitVibe Labs
Verify against the repo before relying on details.