Fantom (programming language)
Script error: No such module "about".
Page Module:Infobox/styles.css has no content.
| Fantom | |
|---|---|
| Lua error in package.lua at line 80: module 'Module:InfoboxImage/data' not found. | |
| Paradigm | multi-paradigm: object-oriented, actor, functional |
| Developers | Brian Frank, Andy Frank |
| First appeared | 2005[1] |
| Template:Infobox software/simple | |
| Typing discipline | static, dynamic |
| Platform | x86-64, Java |
| OS | Windows, Unix-like: Linux, macOS |
| License | Academic Free version 3.0[2] |
| Filename extensions | .fan, .fwt, .pod |
| Website | www |
| Influenced by | |
| C#, Java, Scala, Ruby, Erlang | |
Fantom, formerly Fan, is a general-purpose object-oriented programming language, created by Brian Frank and Andy Frank.[4] It runs on the Java Runtime Environment (JRE), JavaScript, and the .NET Common Language Runtime (CLR) (.NET support is considered "prototype"[5] status). Its stated goal is to provide a standard library application programming interface (API).[6] Fantom uses a curly brace syntax, supports functional programming through closures and concurrency through the actor model, and blends aspects of both static and dynamic typing.
The original name of the Fantom programming language was Fan, named after the Fan District neighborhood in which the creators live in Richmond, Virginia. In November 2009,[7] the name of the project was officially changed from Fan to Fantom due to searchability concerns raised by its community.[8]
Fantom is free and open-source software under Academic Free License 3.0 and is available for operating systems including Windows and Unix-like: Linux, macOS.[9]
Features and systems
All variables in Fantom are statically typed, as it has no generic types, but it has a set of built-in generic types: List, Map, and Func. Fantom also supports dynamic calls and automatic downcasting. Fantom has a reflective programming (reflection) API and metaprogramming abilities.
Fantom supports imports of Java classes and modules with some limitations.[10] Its integer is 64-bit. Unlike Java and C#, Fantom has no long or short integer types, and it supports no tuples.[11]
In Fantom, the unit of deployment is called a pod. Pods take on the role of namespaces, packages, and modules. They are stored as .pod files, which are ZIP files containing the FCode (the Fantom bytecode), the documentation, and resource files necessary to run the pod. The Fantom build system can package a set of pods into a JAR archive through build::JarDist.
Integrated development environment
F4 is the main publicly available integrated development environment (IDE) for the Fantom language, officially supported by one of the main open-source contributors to the language, Steve Eynon.[12] The F4 IDE is available on GitHub.
Fantom Widget Toolkit
Fantom ships with a standard windowing toolkit called the Fantom Widget Toolkit, or FWT for short.[13] FWT was designed to be portable across several platforms. It is implemented on the Java virtual machine (JVM) using the Standard Widget Toolkit as a backend. The JavaScript implementation is backed by the canvas element and JavaFX, allowing FWT applications to be run in a web browser. There are plans for a CLR implementation using Windows Forms.
Use
Escape the Mainframe is a browser game (just like the Google t-rex dinosaur) completely written in Fantom by Steve Eynon.[14]
See also
Lua error in mw.title.lua at line 404: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
- Boo (programming language)
- Ceylon (programming language)
- Gosu (programming language)
- Apache Groovy
- Kotlin
- Ruby (programming language)
References
Page Template:Reflist/styles.css has no content.
- ^ Blog post about history of Fantom
- ^ FAQ of Fandoc language website
- ^ Page Module:Citation/CS1/styles.css has no content."Build 1.0.81 - Fantom". 6 December 2024.
- ^ Fantom FAQ: Contact Us
- ^ Page Module:Citation/CS1/styles.css has no content."Fantom FAQ: Roadmap". Archived from the original on 2015-12-11. Retrieved 2012-03-29.
- ^ Fantom FAQ: Why Fantom?
- ^ History of Fantom programming language
- ^ Fan is officially now Fantom
- ^ Page Module:Citation/CS1/styles.css has no content.McAllister, Neil (2012-01-03). "10 programming languages that could shake up IT". InfoWorld. Retrieved 2015-10-30.
- ^ Java FFI at Fantom home page
- ^ Tuples question at Fantom official page
- ^ Page Module:Citation/CS1/styles.css has no content."Steve Eynon (MEng MIET) - Fantom Factory". LinkedIn UK. Retrieved 2023-12-14.
- ^ Page Module:Citation/CS1/styles.css has no content."fwt: Fantom". Fantom.org. 2015-01-08. Archived from the original on 2011-08-16. Retrieved 2015-10-30.
- ^ Page Module:Citation/CS1/styles.css has no content."Escape the Mainframe!". escape.fantomfactory.org. Retrieved 2023-12-14.
Further reading
- Page Module:Citation/CS1/styles.css has no content.Binstock, Andrew (2010-07-14). "Top five scripting languages on the JVM: Groovy and JRuby lead a strong field, with Scala, Fantom, and Jython following behind". Dr. Dobb's Journal. Retrieved 2015-10-30.
- Page Module:Citation/CS1/styles.css has no content.Frank, Brian (2011-02-18). "Fantom". Dr. Dobb's Journal. Retrieved 2015-10-30.
External links
- No URL found. Please specify a URL here or add one to Wikidata.
- Open source website: https://fantom-lang.org/download
- Open source repository for Fantom libraries https://eggbox.fantomfactory.org/
- Fantom portfolio https://fantom-lang.org/portfolio
- Not a Fan of Scala? An Evolutionary Approach |Ajaxonomy Script error: No such module "webarchive". - blog post discussing Fan
- Fan of a New Language |SD Times
- Re: Fan Programming Language (jvm-languages@googlegroups.com mailing list) a forum post by one of Fantom's authors
- The Next Big JVM Language, a conversation with Stephen Colebourne by Bill Venners
- Language reference page at LangRef.org