Git Product home page Git Product logo

bp-javascript-search's People

Contributors

geraw avatar michbarsinai avatar moshewe avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bp-javascript-search's Issues

Move to Maven build

So we can put the whole Eclipse/NetBeans thing behind us.
Also, add code coverage while we're at it.

Update documentation

Need to update the documentation to reflect the fact we're doing a general BP library.

Support `breakUpon`

Process for swapping BThreads:

  1. When the original BThreads were loaded, they registered a handler for breakUpon:
this.onBreakUpon = function( evt, externalEventQueue ) {
    if ( evt.type === "REMOVE_XXX" ) {
        var state = { ... get the state ... }
        externalEventQueue.push( pjs.Event("REMOVED_XXX", state) );
        }
}
  1. New BThreads are loaded. Each one requests the REMOVE events for all the BThreads it replaces. It then waits for the REMOVED event, and reads the state.
  2. New BThreads register their own breakUpon handlers.

Advantages:

  • BThreads get a chance to clean up and arrange status transfer before they go.
  • In line with BP idioms
  • On critical times, it's easy to prevent software updates - just block all "REMOVE" events.

Problems:

  • At the moment, we need to mention that we breakUpon these events on every BSync.

BThread#openGlobalContext has to go

as there must be a close() call for every enter() call, and this design does not enforce that. Might want to use Try-With0Resources, or maybe create a function "withGlobalContext" that gets a (context)=>Void function block.

Add default `breakUpon` handler

Handler should collect variables and the current line number of the removed BThread, and then publish them in an event.

Continuation of #9.

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.