FLUX is an actively used programming language created in 2014.

5Years Old 26,632Users 0Jobs
  • FLUX ranks in the top 20% of languages
  • the FLUX website
  • FLUX on github
  • FLUX first appeared in 2014
  • file extensions for FLUX include fx and flux
  • I have 32 facts about FLUX. what would you like to know? email me and let me know how I can help.

Example code from Linguist:

// concrete node signatures
Listen ()
  => (int socket);

ReadRequest (int socket)
  => (int socket, bool close, image_tag *request);

CheckCache (int socket, bool close, image_tag *request)
  => (int socket, bool close, image_tag *request);

// omitted for space:
// ReadInFromDisk, StoreInCache
Compress (int socket, bool close, image_tag *request, __u8 *rgb_data)
  => (int socket, bool close, image_tag *request);
Write (int socket, bool close, image_tag *request)
  => (int socket, bool close, image_tag *request);
Complete (int socket, bool close, image_tag *request) => ();

// source node
source Listen => Image;

// abstract node
Image = ReadRequest -> CheckCache -> Handler -> Write -> Complete;

// predicate type & dispatch
typedef hit TestInCache;
Handler:[_, _, hit] = ;
Handler:[_, _, _] =
ReadInFromDisk -> Compress -> StoreInCache;

// error handler
handle error ReadInFromDisk => FourOhFor;

// atomicity constraints
atomic CheckCache:{cache};
atomic StoreInCache:{cache};
atomic Complete:{cache};

Trending Repos

repo stars description

Last updated October 14th, 2019