Английская Википедия:Fantom (programming language)

Материал из Онлайн справочника
Версия от 15:38, 6 марта 2024; EducationBot (обсуждение | вклад) (Новая страница: «{{Английская Википедия/Панель перехода}} {{About|a programming language||Fantom (disambiguation)}} {{multiple issues| {{Tone|date=March 2012}} {{primary sources|date=June 2018}} }} {{Infobox programming language | name = Fantom | logo = File:Fantom-logo.png | paradigm = multi-paradigm | year = 2005<ref>[http://fantom.org/sidewalk/topic/355 Blog post about history of Fantom]</ref> |...»)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
Перейти к навигацииПерейти к поиску

Шаблон:About Шаблон:Multiple issues

Шаблон:Infobox programming language

Fantom is a general-purpose object-oriented programming language, created by Brian and Andy Frank[1] that runs on the Java Runtime Environment (JRE), JavaScript, and the .NET Common Language Runtime (CLR) (.NET support is considered "prototype"[2] status). Its stated goal is to provide a standard library API.[3] Fantom uses a curly brace syntax. The language supports functional programming through closures and concurrency through the Actor model. Fantom blends aspects of both static and dynamic typing.

The original name of the Fantom programming language was Fan, named after the neighborhood where the creators live in Richmond, Virginia. In November 2009,[4] the name of the project was officially changed from Fan to Fantom due to searchability concern raised by its community.[5]

Fantom is open source under Academic Free License 3.0 and is available for Windows and Unix-like platforms (including Mac OS X).[6]

Features and systems

All variables in Fantom are statically typed. Fantom does not have generic types, but it does have a set of built-in generic types: List, Map, and Func. Fantom also supports dynamic calls and automatic downcasting. Fantom has a reflection API and metaprogramming capabilities.

Fantom supports imports of Java Classes and modules with some limitations.[7] Its integer is 64-bit. Unlike Java and C#, Fantom does not have Long or Short integer types. Fantom also does not support tuples.[8]

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 IDE for the Fantom language, officially supported by one of the main open-source contributors to the language, Steve Eynon.[9] 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.[10] FWT was designed to be portable across several platforms. It is currently implemented on the 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.

Usage

Escape the Mainframe is a browser game (just like the Google t-rex dinosaur) completely written in Fantom by Steve Eynon.[11]

See also

Шаблон:Portal

References

Шаблон:Reflist

Further reading

External links