Coder Social home page Coder Social logo

apebl / gpseq Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 1.0 736 KB

A parallelism library for Vala and GObject (mirror)

Home Page: https://gitlab.com/kosmospredanie/gpseq

License: GNU Lesser General Public License v3.0

Vala 93.44% Gnuplot 0.21% Meson 1.32% Shell 0.06% C 4.55% HTML 0.41%
parallel fork-join work-stealing parallelism multithreading vala gobject glib channels

gpseq's Introduction

gpseq

pipeline status coverage report

Gpseq is a parallelism library for Vala and GObject.

using Gpseq;

void main () {
    string[] array = {"dog", "cat", "pig", "boar", "bear"};
    Seq.of_array<string>(array)
        .parallel()
        .filter(g => g.length == 3)
        .map<string>(g => g.up())
        .foreach(g => print("%s\n", g))
        .wait();
}

// (possibly unordered) output:
// DOG
// CAT
// PIG
using Gpseq;

void main () {
    Channel<string> chan = Channel.bounded<string>(0);
    run( () => chan.send("ping").ok() );
    print("%s\n", chan.recv().value);
}

// output:
// ping

Features

  • Work-stealing task scheduling with managed blocking
  • Functional programming for data processing with parallel execution support (Seq)
  • Unbuffered, buffered, and unbounded MPMC channels
  • Fork-join parallelism
  • Parallel sorting
  • Futures and promises
  • 64-bit atomic operations
  • Overflow safe arithmetic functions for signed integers
  • ...

Documentation

Read wiki, valadoc, and gtkdoc (C API).

There is a developer's guide in the wiki.

Install

See the installation guide.

License

Gpseq is released under the LGPL 3.0 license.

Libgee

Gpseq uses a modified version of timsort.vala of libgee. See TimSort.vala and COPYING-libgee.

gpseq's People

Contributors

apebl avatar gavr123456789 avatar

Stargazers

 avatar Choaseos avatar  avatar Darshak Parikh avatar Anton avatar David José Márquez Batiz avatar Laurent Callarec avatar Princeton Ferro avatar  avatar Carlos Lopez avatar  avatar

Watchers

James Cloos avatar Laurent Callarec avatar  avatar

Forkers

lcallarec

gpseq's Issues

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.