GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing github.com — Version 0.10.0 - Static Language Support by benjchristensen · Pull Request #304 · ReactiveX/RxJava Conversation
Member
Manual merge of pull #300 from @mattrjacobs This will make RxJava completely static by removing all Object overloads (see #208 and #204). I'm submitting this before it being 100% ready so people can review and provide feedback. Open items to append to this pull request before merging: 1) subscribe with map is not handled yet The following signature needs to be made static. Right now the lack of this combined with removal of Functions.from dynamic language functionality has broken this. public Subscription subscribe(final Map<String, Object> callbacks) 2) Core artifact naming convention Should rxjava-core-x.y.x.jar become rxjava-x.y.z.jar since the concept of core+language no longer applies? I think I'd prefer this:
Only one of those jars is needed hence the reason why I think the 'core' term is no longer needed as it communicated the fact it was always needed. Any contrib modules would be: rxjava-contrib-module-name-x.y.x.jar 3) Dependencies from languages to core still exist The build still will result in Maven Central POM files requires rxjava-core from the language version despite that not being the case. Need to eliminate this dependency in the artifact. 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:
The solution we have arrived at will work as follows:
For example: The default Java version: public static <T> Observable<T> filter(Observable<T> that, Func1<T, Boolean> predicate) A Groovy version: public static <T> Observable<T> filter(Observable<T> that, groovy.lang.Closure predicate)
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.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…age's native function support * Only hooked up to rxjava-groovy in this commit * Adds an Object overload to Observable methods via code generation …to version_0.10.0_multi-static Conflicts: rxjava-core/src/main/java/rx/Observable.java 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. 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. - needed for Scala build to succeed
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
4 tasks done
Closed
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | ||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |