GithubHelp home page GithubHelp logo

b-xiang / flow9 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from area9innovation/flow9

0.0 1.0 0.0 498.47 MB

Platform for safe, easy and productive programming of complex, multi-platform apps with a modern user interface

License: Other

Shell 3.12% Batchfile 0.06% Python 0.77% Clojure 0.15% Roff 1.52% JavaScript 3.61% TypeScript 0.01% Java 2.22% Makefile 0.63% C++ 23.72% C 59.77% Objective-C 2.95% Assembly 0.66% SAS 0.06% Smalltalk 0.01% WebAssembly 0.06% HTML 0.48% Module Management System 0.07% CMake 0.08% M4 0.05%

flow9's Introduction

flow

flow is a platform for safe, easy and productive programming of complex, multi-platform apps with a modern user interface.

The flow platform includes

  • The flow programming language, a safe, functional strongly-typed programming language
  • The flowc compiler, an incremental compiler for multiple targets
  • The flow runtime & standard library, which provides a complete cross-platform library including mature UI components

flow has production quality targets for:

  • HTML through JS
  • iOS
  • Android
  • Windows, Mac, Linux

Hello world

import runtime;

main() {
	println("Hello world");
}

Meet flow

  • flow is a simple, functional language in the ML family
  • C-family syntax
  • Strongly typed, polymorphism, subtypes
  • Designed to look like other languages and be easy to learn
  • Minimalistic to reduce complexity and ease porting to new platforms
  • Same code compiles and runs on HTML5, iOS, Android, Windows, macOS, Linux
  • Production quality. Software used by millions of users
  • Pixel precision—high-design, responsive UI on all platforms with identical code
  • Complete standard library written in flow itself, with natives for each backend
  • Extensive UI toolkit based on Google Material Design guidelines
  • UI toolkit based on Functional Reactive Programming

Installation

  1. Make sure you have Git LFS installed.

  2. Check out this repository with something like

    git clone https://github.com/area9innovation/flow9

  3. Add flow9\bin to your path. We also require 64-bit Java Runtime and Python in your path.

  4. Cd into the flow9 directory and compile and run the first program:

    c:/flow9> flowcpp demos/demos.flow

If this does not work, make sure you have Git LFS installed. You have to reclone the flow9 repository after installing Git LFS, or use git lfs pull.

See demos/demos.flow to read the code for this example.

Documentation

See doc/readme.markdown for further documentation about the language and platform, including more details on how to get started.

Community

There is a blog about flow here:

https://flow9.org/

There is a chat in Telegram for discussions about flow:

https://t.me/joinchat/LhUedxYVLN25Eu9XNo93yQ

There is a mailing list group in groups.io about flow as well:

https://groups.io/g/flow

Your first message requires moderation approval to avoid spam.

Tooling

  • flowc is the current compiler, written in flow itself. See tools/flowc. Can work as a compile server.
  • flow is the original compiler, written in haxe. See tools/flow
  • Single-step debugger using gdb protocol (see platforms/qt)
  • Profiler for time, instructions, memory, garbage collection
  • JIT (just-in-time) compiler for x64, interpreter for ARM and others
  • Compiles to C++ and Java for performance-critical code, typically server side
  • IDE/Code editor support for VSCode, Sublime Text, Kate & others
  • Mature PEG parser generator. See doc/lingo.markdown

Folders

  • bin - binaries for the compiler and related tools
  • debug - code for the debugger and profiler
  • demos - a demo program showing how the UI library can be used
  • doc - documentation of the language and libraries
  • lib - the flow standard library
  • platforms - the flow runtime platforms source code
  • resources - integrations with VS code (recommended), Sublimetext and more
  • sandbox - contains hello world
  • tools - the compiler and processor for rendering fonts
  • www - required files to be exposed by the web-server for running flow programs online
  • www_source - the source files of some of the files in the www folder

License

The flow compiler is licensed under GNU General Public License version 2 or any later version. The flow standard library is released under the MIT license. For the license of other components, see LICENSE.txt.

Name

flow was started in 2010. This predates the 'flow' typechecker from Facebook. Thus, we elect to keep the name, since it came first, is a full platform and the risk of confusion seems small. However, should the need arise, then flow9 can also be used to refer to this language.

History

  • August 2010: The very first program ran on Flash & HTML5
  • November 2013: First app approved in iOS store
  • April 2014: First app approved in Android PlayStore
  • November 2015: Flash was retired, completely migrated to HTML5
  • January 2016: Material guidelines implemented
  • November 2016: JIT for x64 was added
  • May 2018: Self-hosted compiler written in flow itself
  • April 2019: Initial open source release

flow9's People

Contributors

alstrup avatar artxp avatar brawaga avatar buktop9 avatar bvaschenko avatar chekaninmaxim avatar coolrunner86 avatar dimabure avatar dmitry-vlasov avatar dmitrys99 avatar eugeny48 avatar evmaksimenko avatar karluchenkoa avatar malkovl avatar nikitafil avatar orlovol avatar pavelzherdin avatar plartem avatar pleaseking avatar pzotov avatar rusartm avatar stanislavpodolia avatar vadlis avatar vereschagai avatar vol-kharchenko avatar vsevolodzakharov avatar yartemiev avatar yegordovganich avatar ykuzmenko73 avatar ysamoylenko avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.