Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

F*

< >

F* is an open source programming language created in 2014.

#125on PLDB 10Years Old 250Repos
Download source code:
git clone https://github.com/FStarLang/FStar
Homepage · Source Code · Wikipedia · Docs

F* (pronounced F star) is a functional programming language inspired by ML and aimed at program verification. Its type system includes dependent types, monadic effects, and refinement types. This allows expressing precise specifications for programs, including functional correctness and security properties. Read more on Wikipedia...


Example from hello-world:
module Hello let main = FStar.IO.print_string "Hello World\n"
abstract attributes noeq unopteq andbegin by default effect else end ensures exception exists false forall fun function if in include inline inline_for_extraction irreducible logic match module mutable new new_effect noextract of open opaque private range_of reifiable reify reflectable requires set_range_of sub_effect synth then total true try type unfold unfoldable val when with not

Language features

Feature Supported Example Token
Binary Literals ✓
Integers ✓
Floats ✓
Hexadecimals ✓
Octals ✓
Conditionals ✓
Functions ✓
Booleans ✓ true false
Print() Debugging ✓ FStar.IO.print_string

- Build the next great programming language · Add · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v144.0.0