profile
viewpoint

ohbargain/cli_yo 0

command line adhoc notification

ohbargain/dotfiles 0

Config files for terminal based workings

ohbargain/d_cleanup 0

Directory Cleanup Script for Doyo

ohbargain/f767zi 0

BSP for NUCLEO STM32F767ZI Board

fork japaric/lpc845-test-stand

A test stand for firmware applications. Currently only supports NXP LPC845 microcontrollers.

fork in 3 days

PR opened ReactiveCocoa/ReactiveSwift

Bumping deployment target due to Xcode 12 warning

Building ReactiveSwift on Xcode 12 gives the warning:

The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99.

Updating the deployment_target in the podspec will remove this issue, but will also drop support for iOS 8.

Checklist

  • [X ] Updated CHANGELOG.md.
+11 -8

0 comment

5 changed files

pr created time in 5 days

push eventReactiveCocoa/ReactiveSwift

Anders Ha

commit sha 8d24d3d504d40b0afce81bbe5af04fcaddf54888

Migrate six operators to the new abstraction. (#812) * MapError, Materialize, MaterializeAsResult, AttemptMap * Dematerialize, DematerializeResults

view details

Anders Ha

commit sha 85621619091e802d56a88c8d54eb5ca4ebd30027

TakeFirst, TakeLast, TakeWhile, SkipFirst, SkipWhile (#813)

view details

Michael Brown

commit sha d1c7b8d0d2c91033ee03542078ae84a1378bc311

Adds the `interval` operator. (#810) * Added the `interval` operator. * Added CHANGELOG entry. * Added PR number to changelog entry. * Use a very large sequence in the test. Co-authored-by: Anders Ha <anders@andersha.com>

view details

Anders Ha

commit sha b8de33fa7eadf3a69824aec0005666870ffd8e74

Update the Podspec and fix CI issues with Carthage verification. (#817) * Update podspec to include new source paths. * CI workaround to Carthage issues with Xcode 12

view details

Anders Ha

commit sha 384b4643044d1124f84c5374d7f510ee0d368b14

Migrate six operators to the new abstraction. (#814) * Collect, CombinePrevious, SkipRepeats, UniqueValues * Reduce, ScanMap

view details

Anders Ha

commit sha 864b7f95b98feda87a97f6a0c8d07e1df70ab93c

Merge branch 'master' into anders/more-operators-4

view details

push time in 7 days

push eventReactiveCocoa/ReactiveSwift

Anders Ha

commit sha 8d24d3d504d40b0afce81bbe5af04fcaddf54888

Migrate six operators to the new abstraction. (#812) * MapError, Materialize, MaterializeAsResult, AttemptMap * Dematerialize, DematerializeResults

view details

Anders Ha

commit sha 85621619091e802d56a88c8d54eb5ca4ebd30027

TakeFirst, TakeLast, TakeWhile, SkipFirst, SkipWhile (#813)

view details

Michael Brown

commit sha d1c7b8d0d2c91033ee03542078ae84a1378bc311

Adds the `interval` operator. (#810) * Added the `interval` operator. * Added CHANGELOG entry. * Added PR number to changelog entry. * Use a very large sequence in the test. Co-authored-by: Anders Ha <anders@andersha.com>

view details

Anders Ha

commit sha b8de33fa7eadf3a69824aec0005666870ffd8e74

Update the Podspec and fix CI issues with Carthage verification. (#817) * Update podspec to include new source paths. * CI workaround to Carthage issues with Xcode 12

view details

Anders Ha

commit sha 384b4643044d1124f84c5374d7f510ee0d368b14

Migrate six operators to the new abstraction. (#814) * Collect, CombinePrevious, SkipRepeats, UniqueValues * Reduce, ScanMap

view details

Anders Ha

commit sha 751fef5d93cae46e3f0b5c457190cb4499079a83

Merge branch 'master' into unserialized-pipes

view details

push time in 7 days

delete branch ReactiveCocoa/ReactiveSwift

delete branch : anders/more-operators-3

delete time in 7 days

push eventReactiveCocoa/ReactiveSwift

Anders Ha

commit sha 384b4643044d1124f84c5374d7f510ee0d368b14

Migrate six operators to the new abstraction. (#814) * Collect, CombinePrevious, SkipRepeats, UniqueValues * Reduce, ScanMap

view details

push time in 7 days

PR merged ReactiveCocoa/ReactiveSwift

Migrate six operators to the new abstraction.

The new abstraction was introduced in #799.

Migrated operators in this PR include: Collect, CombinePrevious, SkipRepeats, UniqueValues, Reduce, ScanMap

Checklist

  • Updated CHANGELOG.md.
+262 -157

0 comment

8 changed files

andersio

pr closed time in 7 days

pull request commentReactiveCocoa/ReactiveSwift

Adds the `interval` operator.

Nice. 🤠

mluisbrown

comment created time in 8 days

delete branch ReactiveCocoa/ReactiveSwift

delete branch : anders/fix-pm

delete time in 8 days

push eventReactiveCocoa/ReactiveSwift

Anders Ha

commit sha b8de33fa7eadf3a69824aec0005666870ffd8e74

Update the Podspec and fix CI issues with Carthage verification. (#817) * Update podspec to include new source paths. * CI workaround to Carthage issues with Xcode 12

view details

push time in 8 days

PR merged ReactiveCocoa/ReactiveSwift

Update the Podspec and fix CI issues with Carthage verification. ci:verify

Checklist

  • Updated CHANGELOG.md.
+22 -3

0 comment

3 changed files

andersio

pr closed time in 8 days

PR opened ReactiveCocoa/ReactiveSwift

Update the Podspec and fix CI issues with Carthage verification.

Checklist

  • Updated CHANGELOG.md.
+22 -3

0 comment

3 changed files

pr created time in 8 days

create barnchReactiveCocoa/ReactiveSwift

branch : anders/fix-pm

created branch time in 8 days

push eventReactiveCocoa/ReactiveSwift

Michael Brown

commit sha d1c7b8d0d2c91033ee03542078ae84a1378bc311

Adds the `interval` operator. (#810) * Added the `interval` operator. * Added CHANGELOG entry. * Added PR number to changelog entry. * Use a very large sequence in the test. Co-authored-by: Anders Ha <anders@andersha.com>

view details

push time in 8 days

PR merged ReactiveCocoa/ReactiveSwift

Adds the `interval` operator.

Adds the interval operator with functionality similar to that of the operator with the same name in ReactiveX.

Allows specifying any Sequence, including infinite sequences such as 0... (which is the sequence used if none is provided, to mimic the ReactiveX behaviour).

This can be useful, for example, to make a "typewriter" effect of characters appearing on the screen at regularly spaced intervals.

Checklist

  • [x] Updated CHANGELOG.md.
+148 -18

10 comments

3 changed files

mluisbrown

pr closed time in 8 days

push eventReactiveCocoa/ReactiveSwift

Anders Ha

commit sha 8d24d3d504d40b0afce81bbe5af04fcaddf54888

Migrate six operators to the new abstraction. (#812) * MapError, Materialize, MaterializeAsResult, AttemptMap * Dematerialize, DematerializeResults

view details

Anders Ha

commit sha 85621619091e802d56a88c8d54eb5ca4ebd30027

TakeFirst, TakeLast, TakeWhile, SkipFirst, SkipWhile (#813)

view details

Anders Ha

commit sha d7bb8224e2946941db256b7d275995754f780577

Merge branch 'master' into anders/more-operators-3

view details

push time in 8 days

delete branch ReactiveCocoa/ReactiveSwift

delete branch : anders/more-operators-2

delete time in 8 days

push eventReactiveCocoa/ReactiveSwift

Anders Ha

commit sha 85621619091e802d56a88c8d54eb5ca4ebd30027

TakeFirst, TakeLast, TakeWhile, SkipFirst, SkipWhile (#813)

view details

push time in 8 days

PR merged ReactiveCocoa/ReactiveSwift

Migrate five operators to the new abstraction.

The new abstraction was introduced in #799.

Migrated operators in this PR include: TakeFirst, TakeLast, TakeWhile, SkipFirst, SkipWhile

Checklist

  • Updated CHANGELOG.md.
+198 -79

0 comment

7 changed files

andersio

pr closed time in 8 days

push eventReactiveCocoa/ReactiveSwift

Anders Ha

commit sha 8d24d3d504d40b0afce81bbe5af04fcaddf54888

Migrate six operators to the new abstraction. (#812) * MapError, Materialize, MaterializeAsResult, AttemptMap * Dematerialize, DematerializeResults

view details

Anders Ha

commit sha 3f2fb4a69206bbeccc9d15d727118f47fcb534d7

Merge branch 'master' into anders/more-operators-2

view details

push time in 10 days

delete branch ReactiveCocoa/ReactiveSwift

delete branch : more-operators

delete time in 10 days

push eventReactiveCocoa/ReactiveSwift

Anders Ha

commit sha 8d24d3d504d40b0afce81bbe5af04fcaddf54888

Migrate six operators to the new abstraction. (#812) * MapError, Materialize, MaterializeAsResult, AttemptMap * Dematerialize, DematerializeResults

view details

push time in 10 days

PR merged ReactiveCocoa/ReactiveSwift

Migrate six operators to the new abstraction.

The new abstraction was introduced in #799.

Migrated operators in this PR include: MapError, Materialize, MaterializeAsResult, AttemptMap, Dematerialize, DematerializeResults

Checklist

  • Updated CHANGELOG.md.
+244 -105

0 comment

9 changed files

andersio

pr closed time in 10 days

issue commentReactiveCocoa/ReactiveSwift

ReactiveSwift 6.5.0 not binary compatible with 6.4.0

I've encountered similar problems in the past. The reason is that ReactiveCocoa includes ReactiveSwift as a git submodule instead of relying on the dependency provided by Carthage.

The advantage of that approach is that you can use ReactiveCocoa out of the box without having to install Carthage first. But if you are using Carthage, you will frequently run into issues unless you use the exact same version of ReactiveSwift that ReactiveCocoa's submodule points to. :(

stevebrambilla

comment created time in 12 days

pull request commentReactiveCocoa/ReactiveSwift

Adds the `interval` operator.

other than RxSwift parity (which has never been a USP of RAS). :)

😄 I just meant that the fact that it already exists in ReactiveX is one more factor in evaluating the usefulness.

FWIW interval in RxSwift is not really the same thing, and is basically just a version of timer.

The prior art I was referring to was from RxJava

mluisbrown

comment created time in 13 days

Pull request review commentReactiveCocoa/ReactiveSwift

Adds the `interval` operator.

 class SignalProducerSpec: QuickSpec { 			} 		} +		describe("interval") {+			it("should send the next sequence value at the given interval") {+				let scheduler = TestScheduler()+				let producer = SignalProducer.interval("abc", interval: .seconds(1), on: scheduler)++				var isDisposed = false+				var values: [Character] = []+				producer+					.on(disposed: { isDisposed = true })+					.startWithValues { values.append($0) }++				scheduler.advance(by: .milliseconds(900))+				expect(values) == []++				scheduler.advance(by: .seconds(1))+				expect(values) == ["a"]++				scheduler.advance()+				expect(values) == ["a"]++				scheduler.advance(by: .milliseconds(200))+				expect(values) == ["a", "b"]++				scheduler.advance(by: .seconds(1))+				expect(values) == ["a", "b", "c"]++				scheduler.advance(by: .seconds(1))+				expect(isDisposed) == true+			}++			it("shouldn't overflow on a real scheduler") {+				let scheduler = QueueScheduler.makeForTesting()+				let producer = SignalProducer.interval("abc", interval: .seconds(3), on: scheduler)

Done 👍

mluisbrown

comment created time in 13 days

Pull request review commentReactiveCocoa/ReactiveSwift

Unserialized and Reentrant `Signal`s

 class SignalSpec: QuickSpec { 			} 		} +		describe("reentrant") {+			#if arch(x86_64) && canImport(Darwin)

It is more a question for Nimble/CwlPreconditionSignal. If they support catching signals on M1, we can lift this.

andersio

comment created time in 13 days

pull request commentReactiveCocoa/ReactiveSwift

Adds the `interval` operator.

@mluisbrown There is no objection. =)

mluisbrown

comment created time in 13 days

Pull request review commentReactiveCocoa/ReactiveSwift

Adds the `interval` operator.

 class SignalProducerSpec: QuickSpec { 			} 		} +		describe("interval") {+			it("should send the next sequence value at the given interval") {+				let scheduler = TestScheduler()+				let producer = SignalProducer.interval("abc", interval: .seconds(1), on: scheduler)++				var isDisposed = false+				var values: [Character] = []+				producer+					.on(disposed: { isDisposed = true })+					.startWithValues { values.append($0) }++				scheduler.advance(by: .milliseconds(900))+				expect(values) == []++				scheduler.advance(by: .seconds(1))+				expect(values) == ["a"]++				scheduler.advance()+				expect(values) == ["a"]++				scheduler.advance(by: .milliseconds(200))+				expect(values) == ["a", "b"]++				scheduler.advance(by: .seconds(1))+				expect(values) == ["a", "b", "c"]++				scheduler.advance(by: .seconds(1))+				expect(isDisposed) == true+			}++			it("shouldn't overflow on a real scheduler") {+				let scheduler = QueueScheduler.makeForTesting()+				let producer = SignalProducer.interval("abc", interval: .seconds(3), on: scheduler)

Maybe provide an astronomically large sequence with repeatElement?

mluisbrown

comment created time in 13 days

pull request commentReactiveCocoa/ReactiveSwift

Adds the `interval` operator.

The zip with timer and scan approach would work. So would the flatMap and delay approach I mentioned above. There are probably a few other approaches that would work.

The idea of adding the interval operator though is to have an efficient solution that can work for any sequence of any length, including lazy sequences.

Given there is prior art for this in Rx, what is the objection to adding it?

mluisbrown

comment created time in 13 days

more