-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
typesafe-core #319
typesafe-core #319
Conversation
Conflicts: rxjava-core/src/main/java/rx/Observable.java rxjava-core/src/main/java/rx/observables/BlockingObservable.java rxjava-core/src/main/java/rx/subjects/PublishSubject.java
…age's native function support
- Added license to files I touched and moved Gradle config around - Bugfix to codegeneration - explicitly call a static/instance method in body - Remove '? super' generic definitions -- I couldn't get these to work once we removed the Object overloads that was apparently being invoked instead of the staticly typed method so removing them. If someone else can get these generics working then please submit a new pull request. - Removing zip FuncN overloads - they conflict with dynamic languages -- These methods will need different names as they have the same argument count so break with dynamic overloads once we do static handling of dynamic languages.
- Upgrade to Gradle 1.6 (needed for Scala build to succeed) - s/rxjava-core-x.y.z.jar/rxjava-x.y.z.jar - Properly changed all artifacts of rxjava-core to be rxjava-x.y.z.* - For Groovy/Clojure/JRuby/dynamic, moved dependency on rxjava-core to provided scope, as well as all tests - For Scala, left rxjava-core as compile scope, since rxjava-scala jar doesn't contain Observable (as constructed) - Fixed classpaths for running example code in Clojure and Groovy - rxjava-scala Gradle jar task now includes rxjava-core classfiles - Leaving rxjava-swing UnitTest inner classes in the Jar (in case Scala consumes them) - Fix Maven artifactId for rxjava-core, so that dependencies can correctly build POMs (rxjava-swing in this case) - Shortened names of rxjava-scala implicit methods, per @jmhofer's suggestion
* Broke apart monolithic code generator as well * Changed signature in core to subscribe(Map<String, Action>) for type-safety * Removed rxjava-dynamic module
…herwise conflict * 2 'buffer' methods introduced this case.
RxJava-pull-requests #201 FAILURE |
} | ||
} | ||
} catch (Exception ex) { | ||
System.out.println("Exception while creating body for dynamic version of : " + initialMethod.getName()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this wrap-and-throw rather than printing and ignoring the exception?
When trying to build, I get "Could not find property 'ideaProject' on task set." (for |
Are you building using gradle or gradlew? gradlew is a wrapper script at For more context on why this is a useful convention, see: -Matt On Tue, Aug 20, 2013 at 12:02 AM, Joachim Hofer notifications@github.comwrote:
|
Thanks, with |
…was breaking IDEs
RxJava-pull-requests #202 FAILURE |
Replacing with #323 |
Here's another attempt at making rx-core typesafe and still supporting dynamic languages. The previous attempt was #304. Enough changed (including the 0.10 release) since I submitted #304 that it made more sense to start fresh with this one. All the comments from that PR still apply, and the 'subscribe on map' issue is now handled.
This will make RxJava completely static by removing all Object overloads (see #208 and #204).
Implementation notes originally posted at #204 (comment):
After implementing and throwing away a few different approaches we have landed on a solution we feel will balance the various competing priorities.
Our goals are:
rx.Observable
class so that we don't divide libraries with helpers such asGroovyObservable
,ClojureObservable
etc that then need to be converted back and forth when doing interopThe solution we have arrived at will work as follows:
For example:
The default Java version:
A Groovy version:
A project will include just the jar that meets their language needs, there will no longer be a "core" jar plus the language adaptor.
The drawback of this is that mixing two of these in a classpath will result in non-deterministic loading (whichever is loaded last wins) and that is the version that will be used. This means if a library depends on rxjava.jar but is using Groovy and needs rxjava-groovy.jar it is up to the developer of that project to make sure they have only the rxjava-groovy.jar version. This is not ideal but is a one-time pain setting up a build and is better than the constant pain of missing static typing or converting to/from different Observable implementations for different languages.
This should not break any code but will require a slight change to the build dependencies in your project when we release this.
We hope that this enables the RxJava project to better achieve its goal of being polyglot and targeting the JVM in general and not any specific languages without sacrificing interop or idiomatic usage in each of the languages.