Skip to content

antonbashir/dart-fibers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Dart Fiber [EXPERIMENTAL]

Dart Fibers is a patched dart-sdk which allows you to use coroutine mechanism in the Dart language.

How to ?

To use coroutines you need to compile Dart VM from this branch.

Then you need to compile main.dart to main.exe with command dart compile exe main.dart

Now run main.exe:

before start
main: entry
child: entry
main: after child transfer
main -> child -> main -> child
after start

What is next ?

  • Implement JIT mode
  • Implement Debug (breakpoints handling after coroutine transfer)
  • Implement other architectures (arm64 + riscv) and platforms (macos + windows)
  • Implement channels
  • Implement FFI
  • Implement Future and Timer support during coroutine idle
  • Optimize
  • Add more tests and benchmarks
  • Support JS and WASM ?

Releases

No releases published

Packages

No packages published

Languages