From b6a1a276edf8612b5a66accd56ddc0ca249d8c69 Mon Sep 17 00:00:00 2001
From: Magnus Madsen
- Flix also supports several unique features,
+ Flix also supports several unique features,
including: a polymorphic effect system, region-based local mutation, b \\ ef, l: LazyList[a]): LazyList[b] \\ ef =
+ Flix makes it simple and easy to evaluate pure code in parallel.
+
+ For example, the code on the right shows a parallel implementation of
+ the
+ Internally, the
+ Flix supports structured
+ concurrency.
+
+ For example, the code on the left shows the creation of a fresh
+ region named
+ Importantly, control-flow does not leave the region before both threads
+ have terminated. Hence the two threads cannot outlive the lifetime of their
+ enclosing region.
+
Flix uses traits to abstract over types that support a common set of
Traits (Type Classes)
Parallelism
List.map
function using the par
construct.
+ par
construct uses
+ light-weight VirtualThread
s.
+ Structured Concurrency
rc
in which two threads are spawned.
+ Traits