- ⬆️ Re-arranged package structure, duplicate and ambiguous packages merged. We now have a clean
model/execution/analysisdivision. - 🐛 Fixed an equality bug in
OrderedSet.
- 🐛
BSyncStatements now retain information about the b-thread that created them. - ⬆️ Now using a single
ExecutorServicefor the entire JVM (OK, per class-loader). This makes runtime more efficient, resource-wise. - 🔄 Using cached thread execution pool instead of the fork-join one (the former seems to make more sense in a BP context).
- ⬆️ The Java threads executing the b-threads now have specific names:
bpjs-executor-N(whereNis a number starting at 1). - ✨ New method:
bp.getJavaThreadName: Returns the name of the Java thread executing the b-thread while this method was called. - 🎉 Some changes in this version were requested by actual users. 🎉
- ✨ Documentation updated to mention verification (full-length text to be added post-paper).
- 🐛
BThreadJSProxy.get/setBthreadupdated to use capitalT, like the resp fo the code. - 🔄 Test clean-up
- 🔄 Documentation clean-up
- ✨
BProgramallows appending and prepending source code programmatically, usingappendSourceandprependSource. These can be used to add environment simulation without touching the simulated model. Or just to act as includes, e.g. for common set-ups. - ✨ Added new class:
PathRequirements, to hold path requirements that do not require state (e.g. "no deadlock"). - ✨
DfsBProgramVerifiernow has a "debug mode" (set/get viaget/isDebugMode). On debug mode, it prints verbose information toSystem.out. - ✨ Added new class:
BThreadStateVisitedNodeStore, looks only into the states of the b-threads when deciding whether a search node was already visited or not. - 🐛
InMemoryEventLoggingListenercleans its event log when a run begins, so it can be reused for multiple runs. - 🔄 Reduced method accessibility in
BProgram, so subclassers have harder time getting into trouble. - :put_trash_in_its_place:
BProgramListenerrenamed toBProgramRunnerListener, since that is the object it listens to. - :put_trash_in_its_place:
NoDeadlockclass deleted. UsePathRequirements.NO_DEADLOCKinstead. - ✨
PathRequirements.ACCEPT_ALL, is a new requirement that's always true. Useful for scanning a program state space.
- ⬆️
DfsProgramVerifierusesFullVisitedNodeStoreby default (preferring correctness over speed in the default case). - ⬆️ Updated the Dining Philosopher example to use advanced features. Also added it as a unit test.
- 🚮 Removed
validationpackage. - ✨
ContinuationProgramStatecorrectly captures updated variable values. 🎉
- ✨ the
DfsBProgramVerifieris now accepting requirement objects over execution paths, instead of the hard-coded deadlock check. - ✨ new
PathRequirementclass. Requirements are passed to the verifiers for making sure the program conforms to them. Two implementation already present:NoDeadlockBreakes when there's a deadlockEventNotPresentBreaks when the last event in the ongoing path is a member of a given event set.
- ✨ the
DfsBProgramVerifieris now using listener architecture for reporting progress. - ✨ new event set from bp:
bp.allExcept(es). - ⬆️ Efficient path stack implementation for
BfsBProgramVerifier(no copying, reversal, etc.) - ⬆️
Mazes.javaUpdates to fully use the new verifier features
- ⬆️ Re-created program state cloning based on code from @szegedi. Cloning is now faster, more efficient, and can handle storage of events.
- ✨ New base class for implementing event selection strategies.
- ✨
OrderedEventSelectionStrategy- A new event selection strategy that honors the order in which events are requested by a given b-thread. - ✨
PrioritizedBThreadsEventSelectionStrategy- A new event selection strategy that can assign priorities to b-threads. - ✨
PrioritizedBSyncEventSelectionStrategy- A new event selection strategy that allows b-threads to add priority to theirbsyncs. - ⬆️
LoggingEventSelectionStrategyDecoratoralso logs selectable events - ⬆️
BProgramacts nicer when it has anullevent selection strategy.
- ✨ Updated to Rhino 1.7.7.2.
- ✨ Initial verification added.
DfsBProgramVerifierscans the states of aBProgramusing DFS, and can return traces where there are no selectable events.
- ✨ Added a class to compare continuations (base for comparing snapshots).
- ✨
bsyncnow has an extra parameter, allowing b-threads to pass hinting data to customEventSelectionStrategys. - 🔄 Moved event selection strategy to
BProgram. - ✨ Added a mechanism to log the
BProgramStateat sync points.
- ✨ Added documentation for embedding BPjs programs in larger Java apps.
- ✨ README includes a more prominent reference to the documentation.
- ✨ Added an adapter class for
BProgramListener. - 🐛 Fixed issues with adding objects to the program's scope.
- 🚮 Cleaned up the
BProgramRunner-BProgram-BProgramSyncSnapshottrio such that listeners don't have to be passed around between them. - ✨ Cloning of
BProgramSyncSnapshotready. This is the basis for search.
- ✨ New architecture: Running logic moved from
BProgramtoBProgramRunner- ongoing. - ✨
BProgramListeners notified before BPrograms are started. - 🐛 Fixed a bug where dynamically added b-threads that were added by other dynamically added b-threads would run one cycle too late.
- 🐛 Fixed a bug where external events enqueued from top-level JS code where ignored.
- ✨ New architecture: Running logic moved from
BProgramtoBProgramRunner. This will help implementing search. - ✨
BProgramListeners notified when a b-thread runs to completion. - ✨
bp.getTime()added. - ✨ Updated tutorial now includes the
bpobject.
- 🚮 Simplified the
examplestest package. - 🚮
allandnoneare now only available viabp. - 🔄 cleaner scope structure..
- 🔄 Internal method name clean-ups.
- 🚮 Removed unneeded initializations.
- 🐛 Program and bthread scopes are treated as scopes rather than prototypes.
- ✨ B-Thread scope games eliminated 🎉. Dynamic b-thread addition is now possible from within loops etc. Tutorial updated.
- ✨ More tests.
- ✨
bp.randomadded. - 🔄 Documentation updates
- ✨ Added java accessors for putting and getting variables in the JS program
- 🔄
fat.jaris nowuber.jar.
- ✨ the standard
.jarfile now contains only BPjs, and no dependencies. Fat jar (the jar that includes dependencies) is available via the releases tab.
- 🔄
Eventsclass renamed toEventSets. Some cleanup. - 🔄
emptySetis nownone. - 🔄
allandemptySetare now available to BPjs code viabp.allandbp.none. This is to prevent name collisions with client code. - 🐛 Fixed an issue with the logger, where logging levels were ignored.
- ✨ Log level can be set by BPjs code, using
bp.log.setLevel(l).lis one ofWarn,Info,Fine.
- ✨ Updated documentation to refer to Maven Central
- 🐛
RunFilere-reads files from file system again. - 🔄 More dead code removal.
This release in focused on better BPjs-programmer experience and getting the code into a maven-central quality grade.
- 🐛 Fixing Javadoc references.
- 🚮 Positional
bsyncremoved. - ✨ Better error reporting on event sets defined in JavaScript.
- ✨ Better error reports for generic JS errors.
- ✨ Added
StringBProgram: a new class for running BPjs code from a String (rather than a resource or a file).
- ✨ Adding a BThread is idempotent. Previously, if a BThread was added twice, it would run twice with unexpected results.
- ✨ Basic engine exceptions, plus a friendlier error message when calling
bsyncoutside of a BThread. - 🔄 More Javadocs and code cleanup (mostly dead code removal).
- ✨ License (MIT)
- ✨ Preparations for Maven Central
- 🔄 More Javadocs and code cleanup.
- ✨
RunFilecan now accept multiple BPjs files for input, and runs them as a single BProgram. It also has improved help text.
- ✨ Added continuous code coverage with Coveralls.io (Thanks guys!).
- ✨ Improved test coverage.
- ✨ Added continuous testing with Travis-CI (Thanks guys!).
- 🎉 Moved from native NetBeans to maven project 🎉 🎉 ✨
- 🐛 Various small issues fixed thanks to static analysis (and NetBeans' Code Inspection tool).
- 🔄 Moved to canonical package structure (
il.ac.bgu.cs.bp.*).
- ✨ Re-arranged code to minimize amount of
Context.enter-Context.exitpairs (~x5 performance factor!) - ✨ Simplified mechanism for handling event selection in
BProgram. Replaced a complex Visitor pattern with Java8'sOptional. - 🔄 Improved efficiency for external events handling.
- ✨ More tests for
SimpleEventSelectionStrategy. - ✨ More documentation.
- ✨ Better error messages.
- 🚮 Removed unused code from
BProgram. - 🚮 Removed non-serializable
Optionalfrom fields.
Legend:
- 🔄 Change
- ✨New feature
- 🚮 Deprecation
- ⬆️ Upgrade
- 🐛 Bug fix