concurrent-ruby-edge 0.3.1 → 0.4.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +429 -0
  3. data/{LICENSE.txt → LICENSE.md} +2 -0
  4. data/README.md +203 -105
  5. data/{lib → lib-edge}/concurrent/actor/behaviour/abstract.rb +0 -0
  6. data/{lib → lib-edge}/concurrent/actor/behaviour/awaits.rb +0 -0
  7. data/{lib → lib-edge}/concurrent/actor/behaviour/buffer.rb +0 -0
  8. data/{lib → lib-edge}/concurrent/actor/behaviour/errors_on_unknown_message.rb +0 -0
  9. data/{lib → lib-edge}/concurrent/actor/behaviour/executes_context.rb +0 -0
  10. data/{lib → lib-edge}/concurrent/actor/behaviour/linking.rb +0 -0
  11. data/{lib → lib-edge}/concurrent/actor/behaviour/pausing.rb +0 -0
  12. data/{lib → lib-edge}/concurrent/actor/behaviour/removes_child.rb +0 -0
  13. data/{lib → lib-edge}/concurrent/actor/behaviour/sets_results.rb +0 -0
  14. data/{lib → lib-edge}/concurrent/actor/behaviour/supervising.rb +0 -0
  15. data/{lib → lib-edge}/concurrent/actor/behaviour/termination.rb +1 -1
  16. data/{lib → lib-edge}/concurrent/actor/behaviour.rb +1 -1
  17. data/{lib → lib-edge}/concurrent/actor/context.rb +1 -1
  18. data/{lib → lib-edge}/concurrent/actor/core.rb +2 -1
  19. data/{lib → lib-edge}/concurrent/actor/default_dead_letter_handler.rb +0 -0
  20. data/{lib → lib-edge}/concurrent/actor/envelope.rb +0 -0
  21. data/{lib → lib-edge}/concurrent/actor/errors.rb +0 -0
  22. data/{lib → lib-edge}/concurrent/actor/internal_delegations.rb +0 -0
  23. data/{lib → lib-edge}/concurrent/actor/public_delegations.rb +0 -0
  24. data/{lib → lib-edge}/concurrent/actor/reference.rb +1 -1
  25. data/{lib → lib-edge}/concurrent/actor/root.rb +0 -0
  26. data/{lib → lib-edge}/concurrent/actor/type_check.rb +0 -0
  27. data/{lib → lib-edge}/concurrent/actor/utils/ad_hoc.rb +0 -0
  28. data/{lib → lib-edge}/concurrent/actor/utils/balancer.rb +0 -0
  29. data/{lib → lib-edge}/concurrent/actor/utils/broadcast.rb +0 -0
  30. data/{lib → lib-edge}/concurrent/actor/utils/pool.rb +0 -0
  31. data/{lib → lib-edge}/concurrent/actor/utils.rb +0 -0
  32. data/{lib → lib-edge}/concurrent/actor.rb +9 -5
  33. data/{lib → lib-edge}/concurrent/channel/buffer/base.rb +14 -14
  34. data/{lib → lib-edge}/concurrent/channel/buffer/buffered.rb +0 -0
  35. data/{lib → lib-edge}/concurrent/channel/buffer/dropping.rb +0 -0
  36. data/{lib → lib-edge}/concurrent/channel/buffer/sliding.rb +0 -0
  37. data/{lib → lib-edge}/concurrent/channel/buffer/ticker.rb +0 -0
  38. data/{lib → lib-edge}/concurrent/channel/buffer/timer.rb +0 -0
  39. data/{lib → lib-edge}/concurrent/channel/buffer/unbuffered.rb +1 -1
  40. data/{lib → lib-edge}/concurrent/channel/buffer.rb +0 -0
  41. data/{lib → lib-edge}/concurrent/channel/selector/after_clause.rb +0 -0
  42. data/{lib → lib-edge}/concurrent/channel/selector/default_clause.rb +0 -0
  43. data/{lib → lib-edge}/concurrent/channel/selector/error_clause.rb +0 -0
  44. data/{lib → lib-edge}/concurrent/channel/selector/put_clause.rb +0 -0
  45. data/{lib → lib-edge}/concurrent/channel/selector/take_clause.rb +0 -0
  46. data/{lib → lib-edge}/concurrent/channel/selector.rb +0 -0
  47. data/{lib → lib-edge}/concurrent/channel/tick.rb +0 -0
  48. data/{lib → lib-edge}/concurrent/channel.rb +2 -1
  49. data/{lib → lib-edge}/concurrent/edge/cancellation.rb +5 -4
  50. data/{lib → lib-edge}/concurrent/edge/lock_free_linked_set/node.rb +2 -2
  51. data/{lib → lib-edge}/concurrent/edge/lock_free_linked_set/window.rb +0 -0
  52. data/{lib → lib-edge}/concurrent/edge/lock_free_linked_set.rb +8 -7
  53. data/{lib → lib-edge}/concurrent/edge/lock_free_queue.rb +0 -0
  54. data/{lib → lib-edge}/concurrent/edge/old_channel_integration.rb +0 -0
  55. data/{lib → lib-edge}/concurrent/edge/processing_actor.rb +3 -3
  56. data/lib-edge/concurrent/edge/promises.rb +178 -0
  57. data/{lib → lib-edge}/concurrent/edge/throttle.rb +24 -15
  58. data/lib-edge/concurrent/edge.rb +21 -0
  59. data/lib-edge/concurrent/lazy_register.rb +83 -0
  60. data/{lib → lib-edge}/concurrent-edge.rb +0 -4
  61. metadata +71 -70
  62. data/lib/concurrent/edge/atomic_markable_reference.rb +0 -184
  63. data/lib/concurrent/edge/lock_free_stack.rb +0 -126
  64. data/lib/concurrent/edge/promises.rb +0 -2111
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: da7e2be8cf30bba4051e8af6b0040d4f4892fae5
4
- data.tar.gz: 70067e829e45a4365fa67fd9306be7658cc65d95
2
+ SHA256:
3
+ metadata.gz: 06d2b4c87f571f1ec33eb1ede2617f359cd4c50c4adde51c2f59715a4e4d6102
4
+ data.tar.gz: 44234b7ba5362eb32134814d46abedc7947e9c9c01aa8d650aa9c0bd98f1bd84
5
5
  SHA512:
6
- metadata.gz: ae1e26dc4dd7dcd7df7185aa68d43eb010e6982bc7ea0da112c66c2c65ecf53456e71399145b0dc0c7c1f60a59382f1142224be367ff285d39807df585b85539
7
- data.tar.gz: 0207d055c1c55f1ffe7ff7914acaebc0876b801391c7e0068c12f43beab2f2d6f97ad0c02cce9d7f8a92a2dabe5fe790008f995229d058c875c46b97c2c95b0e
6
+ metadata.gz: 26d70402fa6651c4301a828e35b4c70baf576f222e10d6fb002b9ff4a5a895ad42ca61c0d669b9d14ddc524ffac02abdef7aeb36a6291f37cb0f0dc2bf2efc13
7
+ data.tar.gz: 4790f51d8ddd56ea4447fa4740a7fddf652808eeec463181b047dbfd2257458843291a9f1855acb97c48df6e0e0c823a45ce7312d861874c8003792ad007a33d
data/CHANGELOG.md ADDED
@@ -0,0 +1,429 @@
1
+ ## Current
2
+
3
+ concurrent-ruby:
4
+
5
+ * [Promises](http://ruby-concurrency.github.io/concurrent-ruby/1.1.0/Concurrent/Promises.html)
6
+ are moved from `concurrent-ruby-edge` to `concurrent-ruby`
7
+ * Add support for TruffleRuby
8
+ * (#734) Fix Array/Hash/Set construction broken on TruffleRuby
9
+ * AtomicReference fixed
10
+ * CI stabilization
11
+ * remove sharp dependency edge -> core
12
+ * remove warnings
13
+ * documentation updates
14
+ * Exchanger is no longer documented as edge since it was already available in
15
+ `concurrent-ruby`
16
+ * (#644) Fix Map#each and #each_pair not returning enumerator outside of MRI
17
+ * (#659) Edge promises fail during error handling
18
+ * (#741) Raise on recursive Delay#value call
19
+ * (#727) #717 fix global IO executor on JRuby
20
+ * (#740) Drop support for CRuby 1.9, JRuby 1.7, Rubinius.
21
+ * (#737) Move AtomicMarkableReference out of Edge
22
+ * (#708) Prefer platform specific memory barriers
23
+ * (#735) Fix wrong expected exception in channel spec assertion
24
+ * (#729) Allow executor option in `Promise#then`
25
+ * (#725) fix timeout check to use timeout_interval
26
+ * (#719) update engine detection
27
+ * (#660) Add specs for Promise#zip/Promise.zip ordering
28
+ * (#654) Promise.zip execution changes
29
+ * (#666) Add thread safe set implementation
30
+ * (#651) #699 #to_s, #inspect should not output negative object IDs.
31
+ * (#685) Avoid RSpec warnings about raise_error
32
+ * (#680) Avoid RSpec monkey patching, persist spec results locally, use RSpec
33
+ v3.7.0
34
+ * (#665) Initialize the monitor for new subarrays on Rubinius
35
+ * (#661) Fix error handling in edge promises
36
+
37
+ concurrent-ruby-edge:
38
+
39
+ * (#659) Edge promises fail during error handling
40
+ * Edge files clearly separated in `lib-edge`
41
+ * added ReInclude
42
+
43
+ ## Release v1.0.5, edge v0.3.1 (26 Feb 2017)
44
+
45
+ concurrent-ruby:
46
+
47
+ * Documentation for Event and Semaphore
48
+ * Use Unsafe#fullFence and #loadFence directly since the shortcuts were removed in JRuby
49
+ * Do not depend on org.jruby.util.unsafe.UnsafeHolder
50
+
51
+ concurrent-ruby-edge:
52
+
53
+ * (#620) Actors on Pool raise an error
54
+ * (#624) Delayed promises did not interact correctly with flatting
55
+ * Fix arguments yielded by callback methods
56
+ * Overridable default executor in promises factory methods
57
+ * Asking actor to terminate will always resolve to `true`
58
+
59
+ ## Release v1.0.4, edge v0.3.0 (27 Dec 2016)
60
+
61
+ concurrent-ruby:
62
+
63
+ * Nothing
64
+
65
+ concurrent-ruby-edge:
66
+
67
+ * New promises' API renamed, lots of improvements, edge bumped to 0.3.0
68
+ * **Incompatible** with previous 0.2.3 version
69
+ * see https://github.com/ruby-concurrency/concurrent-ruby/pull/522
70
+
71
+ ## Release v1.0.3 (17 Dec 2016)
72
+
73
+ * Trigger execution of flattened delayed futures
74
+ * Avoid forking for processor_count if possible
75
+ * Semaphore Mutex and JRuby parity
76
+ * Adds Map#each as alias to Map#each_pair
77
+ * Fix uninitialized instance variables
78
+ * Make Fixnum, Bignum merger ready
79
+ * Allows Promise#then to receive an executor
80
+ * TimerSet now survives a fork
81
+ * Reject promise on any exception
82
+ * Allow ThreadLocalVar to be initialized with a block
83
+ * Support Alpha with `Concurrent::processor_count`
84
+ * Fixes format-security error when compiling ruby_193_compatible.h
85
+ * Concurrent::Atom#swap fixed: reraise the exceptions from block
86
+
87
+ ## Release v1.0.2 (2 May 2016)
88
+
89
+ * Fix bug with `Concurrent::Map` MRI backend `#inspect` method
90
+ * Fix bug with `Concurrent::Map` MRI backend using `Hash#value?`
91
+ * Improved documentation and examples
92
+ * Minor updates to Edge
93
+
94
+ ## Release v1.0.1 (27 February 2016)
95
+
96
+ * Fix "uninitialized constant Concurrent::ReentrantReadWriteLock" error.
97
+ * Better handling of `autoload` vs. `require`.
98
+ * Improved API for Edge `Future` zipping.
99
+ * Fix reference leak in Edge `Future` constructor .
100
+ * Fix bug which prevented thread pools from surviving a `fork`.
101
+ * Fix bug in which `TimerTask` did not correctly specify all its dependencies.
102
+ * Improved support for JRuby+Truffle
103
+ * Improved error messages.
104
+ * Improved documentation.
105
+ * Updated README and CONTRIBUTING.
106
+
107
+ ## Release v1.0.0 (13 November 2015)
108
+
109
+ * Rename `attr_volatile_with_cas` to `attr_atomic`
110
+ * Add `clear_each` to `LockFreeStack`
111
+ * Update `AtomicReference` documentation
112
+ * Further updates and improvements to the synchronization layer.
113
+ * Performance and memory usage performance with `Actor` logging.
114
+ * Fixed `ThreadPoolExecutor` task count methods.
115
+ * Improved `Async` performance for both short and long-lived objects.
116
+ * Fixed bug in `LockFreeLinkedSet`.
117
+ * Fixed bug in which `Agent#await` triggered a validation failure.
118
+ * Further `Channel` updates.
119
+ * Adopted a project Code of Conduct
120
+ * Cleared interpreter warnings
121
+ * Fixed bug in `ThreadPoolExecutor` task count methods
122
+ * Fixed bug in 'LockFreeLinkedSet'
123
+ * Improved Java extension loading
124
+ * Handle Exception children in Edge::Future
125
+ * Continued improvements to channel
126
+ * Removed interpreter warnings.
127
+ * Shared constants now in `lib/concurrent/constants.rb`
128
+ * Refactored many tests.
129
+ * Improved synchronization layer/memory model documentation.
130
+ * Bug fix in Edge `Future#flat`
131
+ * Brand new `Channel` implementation in Edge gem.
132
+ * Simplification of `RubySingleThreadExecutor`
133
+ * `Async` improvements
134
+ - Each object uses its own `SingleThreadExecutor` instead of the global thread pool.
135
+ - No longers supports executor injection
136
+ - Much better documentation
137
+ * `Atom` updates
138
+ - No longer `Dereferenceable`
139
+ - Now `Observable`
140
+ - Added a `#reset` method
141
+ * Brand new `Agent` API and implementation. Now functionally equivalent to Clojure.
142
+ * Continued improvements to the synchronization layer
143
+ * Merged in the `thread_safe` gem
144
+ - `Concurrent::Array`
145
+ - `Concurrent::Hash`
146
+ - `Concurrent::Map` (formerly ThreadSafe::Cache)
147
+ - `Concurrent::Tuple`
148
+ * Minor improvements to Concurrent::Map
149
+ * Complete rewrite of `Exchanger`
150
+ * Removed all deprecated code (classes, methods, constants, etc.)
151
+ * Updated Agent, MutexAtomic, and BufferedChannel to inherit from Synchronization::Object.
152
+ * Many improved tests
153
+ * Some internal reorganization
154
+
155
+ ## Release v0.9.1 (09 August 2015)
156
+
157
+ * Fixed a Rubiniux bug in synchronization object
158
+ * Fixed all interpreter warnings (except circular references)
159
+ * Fixed require statements when requiring `Atom` alone
160
+ * Significantly improved `ThreadLocalVar` on non-JRuby platforms
161
+ * Fixed error handling in Edge `Concurrent.zip`
162
+ * `AtomicFixnum` methods `#increment` and `#decrement` now support optional delta
163
+ * New `AtomicFixnum#update` method
164
+ * Minor optimizations in `ReadWriteLock`
165
+ * New `ReentrantReadWriteLock` class
166
+ * `ThreadLocalVar#bind` method is now public
167
+ * Refactored many tests
168
+
169
+ ## Release v0.9.0 (10 July 2015)
170
+
171
+ * Updated `AtomicReference`
172
+ - `AtomicReference#try_update` now simply returns instead of raising exception
173
+ - `AtomicReference#try_update!` was added to raise exceptions if an update
174
+ fails. Note: this is the same behavior as the old `try_update`
175
+ * Pure Java implementations of
176
+ - `AtomicBoolean`
177
+ - `AtomicFixnum`
178
+ - `Semaphore`
179
+ * Fixed bug when pruning Ruby thread pools
180
+ * Fixed bug in time calculations within `ScheduledTask`
181
+ * Default `count` in `CountDownLatch` to 1
182
+ * Use monotonic clock for all timers via `Concurrent.monotonic_time`
183
+ - Use `Process.clock_gettime(Process::CLOCK_MONOTONIC)` when available
184
+ - Fallback to `java.lang.System.nanoTime()` on unsupported JRuby versions
185
+ - Pure Ruby implementation for everything else
186
+ - Effects `Concurrent.timer`, `Concurrent.timeout`, `TimerSet`, `TimerTask`, and `ScheduledTask`
187
+ * Deprecated all clock-time based timer scheduling
188
+ - Only support scheduling by delay
189
+ - Effects `Concurrent.timer`, `TimerSet`, and `ScheduledTask`
190
+ * Added new `ReadWriteLock` class
191
+ * Consistent `at_exit` behavior for Java and Ruby thread pools.
192
+ * Added `at_exit` handler to Ruby thread pools (already in Java thread pools)
193
+ - Ruby handler stores the object id and retrieves from `ObjectSpace`
194
+ - JRuby disables `ObjectSpace` by default so that handler stores the object reference
195
+ * Added a `:stop_on_exit` option to thread pools to enable/disable `at_exit` handler
196
+ * Updated thread pool docs to better explain shutting down thread pools
197
+ * Simpler `:executor` option syntax for all abstractions which support this option
198
+ * Added `Executor#auto_terminate?` predicate method (for thread pools)
199
+ * Added `at_exit` handler to `TimerSet`
200
+ * Simplified auto-termination of the global executors
201
+ - Can now disable auto-termination of global executors
202
+ - Added shutdown/kill/wait_for_termination variants for global executors
203
+ * Can now disable auto-termination for *all* executors (the nuclear option)
204
+ * Simplified auto-termination of the global executors
205
+ * Deprecated terms "task pool" and "operation pool"
206
+ - New terms are "io executor" and "fast executor"
207
+ - New functions added with new names
208
+ - Deprecation warnings added to functions referencing old names
209
+ * Moved all thread pool related functions from `Concurrent::Configuration` to `Concurrent`
210
+ - Old functions still exist with deprecation warnings
211
+ - New functions have updated names as appropriate
212
+ * All high-level abstractions default to the "io executor"
213
+ * Fixed bug in `Actor` causing it to prematurely warm global thread pools on gem load
214
+ - This also fixed a `RejectedExecutionError` bug when running with minitest/autorun via JRuby
215
+ * Moved global logger up to the `Concurrent` namespace and refactored the code
216
+ * Optimized the performance of `Delay`
217
+ - Fixed a bug in which no executor option on construction caused block execution on a global thread pool
218
+ * Numerous improvements and bug fixes to `TimerSet`
219
+ * Fixed deadlock of `Future` when the handler raises Exception
220
+ * Added shared specs for more classes
221
+ * New concurrency abstractions including:
222
+ - `Atom`
223
+ - `Maybe`
224
+ - `ImmutableStruct`
225
+ - `MutableStruct`
226
+ - `SettableStruct`
227
+ * Created an Edge gem for unstable abstractions including
228
+ - `Actor`
229
+ - `Agent`
230
+ - `Channel`
231
+ - `Exchanger`
232
+ - `LazyRegister`
233
+ - **new Future Framework** <http://ruby-concurrency.github.io/concurrent-ruby/Concurrent/Edge.html> - unified
234
+ implementation of Futures and Promises which combines Features of previous `Future`,
235
+ `Promise`, `IVar`, `Event`, `Probe`, `dataflow`, `Delay`, `TimerTask` into single framework. It uses extensively
236
+ new synchronization layer to make all the paths **lock-free** with exception of blocking threads on `#wait`.
237
+ It offers better performance and does not block threads when not required.
238
+ * Actor framework changes:
239
+ - fixed reset loop in Pool
240
+ - Pool can use any actor as a worker, abstract worker class is no longer needed.
241
+ - Actor events not have format `[:event_name, *payload]` instead of just the Symbol.
242
+ - Actor now uses new Future/Promise Framework instead of `IVar` for better interoperability
243
+ - Behaviour definition array was simplified to `[BehaviourClass1, [BehaviourClass2, *initialization_args]]`
244
+ - Linking behavior responds to :linked message by returning array of linked actors
245
+ - Supervised behavior is removed in favour of just Linking
246
+ - RestartingContext is supervised by default now, `supervise: true` is not required any more
247
+ - Events can be private and public, so far only difference is that Linking will
248
+ pass to linked actors only public messages. Adding private :restarting and
249
+ :resetting events which are send before the actor restarts or resets allowing
250
+ to add callbacks to cleanup current child actors.
251
+ - Print also object_id in Reference to_s
252
+ - Add AbstractContext#default_executor to be able to override executor class wide
253
+ - Add basic IO example
254
+ - Documentation somewhat improved
255
+ - All messages should have same priority. It's now possible to send `actor << job1 << job2 << :terminate!` and
256
+ be sure that both jobs are processed first.
257
+ * Refactored `Channel` to use newer synchronization objects
258
+ * Added `#reset` and `#cancel` methods to `TimerSet`
259
+ * Added `#cancel` method to `Future` and `ScheduledTask`
260
+ * Refactored `TimerSet` to use `ScheduledTask`
261
+ * Updated `Async` with a factory that initializes the object
262
+ * Deprecated `Concurrent.timer` and `Concurrent.timeout`
263
+ * Reduced max threads on pure-Ruby thread pools (abends around 14751 threads)
264
+ * Moved many private/internal classes/modules into "namespace" modules
265
+ * Removed brute-force killing of threads in tests
266
+ * Fixed a thread pool bug when the operating system cannot allocate more threads
267
+
268
+ ## Release v0.8.0 (25 January 2015)
269
+
270
+ * C extension for MRI have been extracted into the `concurrent-ruby-ext` companion gem.
271
+ Please see the README for more detail.
272
+ * Better variable isolation in `Promise` and `Future` via an `:args` option
273
+ * Continued to update intermittently failing tests
274
+
275
+ ## Release v0.7.2 (24 January 2015)
276
+
277
+ * New `Semaphore` class based on [java.util.concurrent.Semaphore](http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Semaphore.html)
278
+ * New `Promise.all?` and `Promise.any?` class methods
279
+ * Renamed `:overflow_policy` on thread pools to `:fallback_policy`
280
+ * Thread pools still accept the `:overflow_policy` option but display a warning
281
+ * Thread pools now implement `fallback_policy` behavior when not running (rather than universally rejecting tasks)
282
+ * Fixed minor `set_deref_options` constructor bug in `Promise` class
283
+ * Fixed minor `require` bug in `ThreadLocalVar` class
284
+ * Fixed race condition bug in `TimerSet` class
285
+ * Fixed race condition bug in `TimerSet` class
286
+ * Fixed signal bug in `TimerSet#post` method
287
+ * Numerous non-functional updates to clear warning when running in debug mode
288
+ * Fixed more intermittently failing tests
289
+ * Tests now run on new Travis build environment
290
+ * Multiple documentation updates
291
+
292
+ ## Release v0.7.1 (4 December 2014)
293
+
294
+ Please see the [roadmap](https://github.com/ruby-concurrency/concurrent-ruby/issues/142) for more information on the next planned release.
295
+
296
+ * Added `flat_map` method to `Promise`
297
+ * Added `zip` method to `Promise`
298
+ * Fixed bug with logging in `Actor`
299
+ * Improvements to `Promise` tests
300
+ * Removed actor-experimental warning
301
+ * Added an `IndirectImmediateExecutor` class
302
+ * Allow disabling auto termination of global executors
303
+ * Fix thread leaking in `ThreadLocalVar` (uses `Ref` gem on non-JRuby systems)
304
+ * Fix thread leaking when pruning pure-Ruby thread pools
305
+ * Prevent `Actor` from using an `ImmediateExecutor` (causes deadlock)
306
+ * Added missing synchronizations to `TimerSet`
307
+ * Fixed bug with return value of `Concurrent::Actor::Utils::Pool#ask`
308
+ * Fixed timing bug in `TimerTask`
309
+ * Fixed bug when creating a `JavaThreadPoolExecutor` with minimum pool size of zero
310
+ * Removed confusing warning when not using native extenstions
311
+ * Improved documentation
312
+
313
+ ## Release v0.7.0 (13 August 2014)
314
+
315
+ * Merge the [atomic](https://github.com/ruby-concurrency/atomic) gem
316
+ - Pure Ruby `MutexAtomic` atomic reference class
317
+ - Platform native atomic reference classes `CAtomic`, `JavaAtomic`, and `RbxAtomic`
318
+ - Automated [build process](https://github.com/ruby-concurrency/rake-compiler-dev-box)
319
+ - Fat binary releases for [multiple platforms](https://rubygems.org/gems/concurrent-ruby/versions) including Windows (32/64), Linux (32/64), OS X (64-bit), Solaris (64-bit), and JRuby
320
+ * C native `CAtomicBoolean`
321
+ * C native `CAtomicFixnum`
322
+ * Refactored intermittently failing tests
323
+ * Added `dataflow!` and `dataflow_with!` methods to match `Future#value!` method
324
+ * Better handling of timeout in `Agent`
325
+ * Actor Improvements
326
+ - Fine-grained implementation using chain of behaviors. Each behavior is responsible for single aspect like: `Termination`, `Pausing`, `Linking`, `Supervising`, etc. Users can create custom Actors easily based on their needs.
327
+ - Supervision was added. `RestartingContext` will pause on error waiting on its supervisor to decide what to do next ( options are `:terminate!`, `:resume!`, `:reset!`, `:restart!`). Supervising behavior also supports strategies `:one_for_one` and `:one_for_all`.
328
+ - Linking was added to be able to monitor actor's events like: `:terminated`, `:paused`, `:restarted`, etc.
329
+ - Dead letter routing added. Rejected envelopes are collected in a configurable actor (default: `Concurrent::Actor.root.ask!(:dead_letter_routing)`)
330
+ - Old `Actor` class removed and replaced by new implementation previously called `Actress`. `Actress` was kept as an alias for `Actor` to keep compatibility.
331
+ - `Utils::Broadcast` actor which allows Publish–subscribe pattern.
332
+ * More executors for managing serialized operations
333
+ - `SerializedExecution` mixin module
334
+ - `SerializedExecutionDelegator` for serializing *any* executor
335
+ * Updated `Async` with serialized execution
336
+ * Updated `ImmediateExecutor` and `PerThreadExecutor` with full executor service lifecycle
337
+ * Added a `Delay` to root `Actress` initialization
338
+ * Minor bug fixes to thread pools
339
+ * Refactored many intermittently failing specs
340
+ * Removed Java interop warning `executor.rb:148 warning: ambiguous Java methods found, using submit(java.lang.Runnable)`
341
+ * Fixed minor bug in `RubyCachedThreadPool` overflow policy
342
+ * Updated tests to use [RSpec 3.0](http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3)
343
+ * Removed deprecated `Actor` class
344
+ * Better support for Rubinius
345
+
346
+ ## Release v0.6.1 (14 June 2014)
347
+
348
+ * Many improvements to `Concurrent::Actress`
349
+ * Bug fixes to `Concurrent::RubyThreadPoolExecutor`
350
+ * Fixed several brittle tests
351
+ * Moved documentation to http://ruby-concurrency.github.io/concurrent-ruby/frames.html
352
+
353
+ ## Release v0.6.0 (25 May 2014)
354
+
355
+ * Added `Concurrent::Observable` to encapsulate our thread safe observer sets
356
+ * Improvements to new `Channel`
357
+ * Major improvements to `CachedThreadPool` and `FixedThreadPool`
358
+ * Added `SingleThreadExecutor`
359
+ * Added `Current::timer` function
360
+ * Added `TimerSet` executor
361
+ * Added `AtomicBoolean`
362
+ * `ScheduledTask` refactoring
363
+ * Pure Ruby and JRuby-optimized `PriorityQueue` classes
364
+ * Updated `Agent` behavior to more closely match Clojure
365
+ * Observer sets support block callbacks to the `add_observer` method
366
+ * New algorithm for thread creation in `RubyThreadPoolExecutor`
367
+ * Minor API updates to `Event`
368
+ * Rewritten `TimerTask` now an `Executor` instead of a `Runnable`
369
+ * Fixed many brittle specs
370
+ * Renamed `FixedThreadPool` and `CachedThreadPool` to `RubyFixedThreadPool` and `RubyCachedThreadPool`
371
+ * Created JRuby optimized `JavaFixedThreadPool` and `JavaCachedThreadPool`
372
+ * Consolidated fixed thread pool tests into `spec/concurrent/fixed_thread_pool_shared.rb` and `spec/concurrent/cached_thread_pool_shared.rb`
373
+ * `FixedThreadPool` now subclasses `RubyFixedThreadPool` or `JavaFixedThreadPool` as appropriate
374
+ * `CachedThreadPool` now subclasses `RubyCachedThreadPool` or `JavaCachedThreadPool` as appropriate
375
+ * New `Delay` class
376
+ * `Concurrent::processor_count` helper function
377
+ * New `Async` module
378
+ * Renamed `NullThreadPool` to `PerThreadExecutor`
379
+ * Deprecated `Channel` (we are planning a new implementation based on [Go](http://golangtutorials.blogspot.com/2011/06/channels-in-go.html))
380
+ * Added gem-level [configuration](http://robots.thoughtbot.com/mygem-configure-block)
381
+ * Deprecated `$GLOBAL_THREAD_POOL` in lieu of gem-level configuration
382
+ * Removed support for Ruby [1.9.2](https://www.ruby-lang.org/en/news/2013/12/17/maintenance-of-1-8-7-and-1-9-2/)
383
+ * New `RubyThreadPoolExecutor` and `JavaThreadPoolExecutor` classes
384
+ * All thread pools now extend the appropriate thread pool executor classes
385
+ * All thread pools now support `:overflow_policy` (based on Java's [reject policies](http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ThreadPoolExecutor.html))
386
+ * Deprecated `UsesGlobalThreadPool` in lieu of explicit `:executor` option (dependency injection) on `Future`, `Promise`, and `Agent`
387
+ * Added `Concurrent::dataflow_with(executor, *inputs)` method to support executor dependency injection for dataflow
388
+ * Software transactional memory with `TVar` and `Concurrent::atomically`
389
+ * First implementation of [new, high-performance](https://github.com/ruby-concurrency/concurrent-ruby/pull/49) `Channel`
390
+ * `Actor` is deprecated in favor of new experimental actor implementation [#73](https://github.com/ruby-concurrency/concurrent-ruby/pull/73). To avoid namespace collision it is living in `Actress` namespace until `Actor` is removed in next release.
391
+
392
+ ## Release v0.5.0
393
+
394
+ This is the most significant release of this gem since its inception. This release includes many improvements and optimizations. It also includes several bug fixes. The major areas of focus for this release were:
395
+
396
+ * Stability improvements on Ruby versions with thread-level parallelism ([JRuby](http://jruby.org/) and [Rubinius](http://rubini.us/))
397
+ * Creation of new low-level concurrency abstractions
398
+ * Internal refactoring to use the new low-level abstractions
399
+
400
+ Most of these updates had no effect on the gem API. There are a few notable exceptions which were unavoidable. Please read the [release notes](API-Updates-in-v0.5.0) for more information.
401
+
402
+ Specific changes include:
403
+
404
+ * New class `IVar`
405
+ * New class `MVar`
406
+ * New class `ThreadLocalVar`
407
+ * New class `AtomicFixnum`
408
+ * New class method `dataflow`
409
+ * New class `Condition`
410
+ * New class `CountDownLatch`
411
+ * New class `DependencyCounter`
412
+ * New class `SafeTaskExecutor`
413
+ * New class `CopyOnNotifyObserverSet`
414
+ * New class `CopyOnWriteObserverSet`
415
+ * `Future` updated with `execute` API
416
+ * `ScheduledTask` updated with `execute` API
417
+ * New `Promise` API
418
+ * `Future` now extends `IVar`
419
+ * `Postable#post?` now returns an `IVar`
420
+ * Thread safety fixes to `Dereferenceable`
421
+ * Thread safety fixes to `Obligation`
422
+ * Thread safety fixes to `Supervisor`
423
+ * Thread safety fixes to `Event`
424
+ * Various other thread safety (race condition) fixes
425
+ * Refactored brittle tests
426
+ * Implemented pending tests
427
+ * Added JRuby and Rubinius as Travis CI build targets
428
+ * Added [CodeClimate](https://codeclimate.com/) code review
429
+ * Improved YARD documentation
@@ -1,3 +1,4 @@
1
+ ```
1
2
  Copyright (c) Jerry D'Antonio -- released under the MIT license.
2
3
 
3
4
  http://www.opensource.org/licenses/mit-license.php
@@ -19,3 +20,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
20
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
21
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
22
  THE SOFTWARE.
23
+ ```