Softpedia
 


SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Orchard 1.6.1
  • Tine 2.0 Kristina 2013....
  • Acorn Media Player 1.8
  • ZenPen
  • Google Language Transla...
  • tTooltip 2.0
  • Obfuscate.js
  • validationJ 1.0.0
  • Starling 1.3
  • Video Sidebar Widgets 5.5
  • Home > Scripts > Programming Methods and Algorithms

    Dataflow 0.3.1

    Download button


    Downloads: 410  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    Website:

    License / Price:

    Platforms:

    Databases:

    Language:

    Last Updated:

    Category:
    Larry Diehl | More scripts
    github.com
    Other Free / Open Source License 

    Windows / Linux / Mac OS / BSD / Solaris
    N/A
    Ruby
    September 8th, 2009, 13:41 GMT [view history]
    C: \ Programming Methods and Algorithms

     Read user reviews (0)  Refer to a friend  Subscribe

    Dataflow description

    This is a Ruby library that adds Dataflow variables

    This library was inspired by the more advanced Oz programming language

    Dataflow variables have the property that they can only be bound/assigned to once, or have an equivalent value as an existing assignment.

    Dataflow variables must be declared before they are used, and can be passed around as data without actually being bound.

    If the variable gets used (in this library this means a method call) while being unbound then the currently executing thread will suspend.

    Ruby is Object Oriented (with the ability to mutate local, instance, class, and global variables, and even constants), and on top of that it has powerful reflection and meta-programming abilities.

    While these features are useful for certain problems, they are not within the declarative model.

    Ruby, like many other OO languages, is facing the hurdles of taking advantage of the increase of processor cores within a simple parallel programming model.

    This library lets you program Ruby in the declarative concurrent model when you need to take advantage of multiple cores.

    The trick to this kind of programming is binding variables from other threads. The nice thing is that many existing libraries/classes/methods can still be used, just avoiding side-effects.

    Use regular Ruby threading to create threads, use “local” or “declare” to create new variables, and use “unify” to bind variables.

    What's New in This Release: [ read full changelog ]

    Minor enhancements:
    · Dataflow.forker= for setting custom forkers
    · Dataflow#local returns an anonymous variable when called without a block



    TAGS:

    dataflow variable | Ruby library | declare variable | dataflow | concurency | library

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM