Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "E4/Architectural Foundations"

< E4
(Becoming More Asynchronous)
(Becoming More Asynchronous)
Line 17: Line 17:
 
** However, note lessons learned from the extension registry: data passed in asynchronous notifications should represent "an island"; it should be isolated from the current data with no way to navigate from the notification's data into the current data
 
** However, note lessons learned from the extension registry: data passed in asynchronous notifications should represent "an island"; it should be isolated from the current data with no way to navigate from the notification's data into the current data
 
* Pawel Piech (pawel.piech@windriver.com): If E4 is going to explore a new concurrency model for Eclipse, I think it ought to look at the DSF framework in the DSDP/DD project (the main concurrency package in DSF is [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.dd.dsf/plugins/org.eclipse.dd.dsf/src/org/eclipse/dd/dsf/concurrent/?root=DSDP_Project here]).  It is based on the Executor, with the same extension as Realm to allow the caller to check whether he's in the executor thread.  However the main communication method between realms is a callback object: RequestMonitor, the use of Future is avoided when possible because it easily leads to deadlocks.  We've learned quite a bit over the last couple of years of using this framework and we'd be happy to share our lessons learned with E4, although I'm afraid I'm not able to attend the E4 summit.
 
* Pawel Piech (pawel.piech@windriver.com): If E4 is going to explore a new concurrency model for Eclipse, I think it ought to look at the DSF framework in the DSDP/DD project (the main concurrency package in DSF is [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.dd.dsf/plugins/org.eclipse.dd.dsf/src/org/eclipse/dd/dsf/concurrent/?root=DSDP_Project here]).  It is based on the Executor, with the same extension as Realm to allow the caller to check whether he's in the executor thread.  However the main communication method between realms is a callback object: RequestMonitor, the use of Future is avoided when possible because it easily leads to deadlocks.  We've learned quite a bit over the last couple of years of using this framework and we'd be happy to share our lessons learned with E4, although I'm afraid I'm not able to attend the E4 summit.
 +
* Scott Lewis (slewis at composent.com): It would be useful to have multiple primitives for interprocess and inter-thread communication...e.g. proxy (blocking/call return), async w/callback, futures/asychresult.  ECF has a [[ECF_API_Docs#Remote_Services_API | remote services API]] that provides these primitives for services, with an explicit approach for handling partial failure...via methods exposed by [http://www.eclipse.org/ecf/org.eclipse.ecf.docs/api/org/eclipse/ecf/remoteservice/IRemoteService.html IRemoteService] interface.  Also, replicated models should also be considered, and the ECF [[ECF_API_Docs#Shared_Object_API | shared object API]] can/could be used to support such approaches.
  
 
== Dependency Injection ==
 
== Dependency Injection ==

Revision as of 13:35, 21 May 2008

From Architecture Council/Minutes May 15 2008#Executive Summary of the Discussion:

Too Many Listeners

Becoming More Asynchronous

  • From Architecture Council/Minutes May 15 2008#Becoming More Asynchronous
    • Need a consistent overall picture; get above the level where we deal with these things one by one
    • Jobs and Scheduling Rules have some problems; DataBinding Realms and Runnables are good; We have too many Runnables; Futures could be a solution
    • Too many different ways of doing things, a more consistent Application Model would help getting more asynchronous
    • Consistent (machine-usable?) Documentation of Concurrency Properties
    • Recommend usage, e.g. Avoid Modal Dialogs; Verboten: Spinning the event loop
    • However, note lessons learned from the extension registry: data passed in asynchronous notifications should represent "an island"; it should be isolated from the current data with no way to navigate from the notification's data into the current data
  • Pawel Piech (pawel.piech@windriver.com): If E4 is going to explore a new concurrency model for Eclipse, I think it ought to look at the DSF framework in the DSDP/DD project (the main concurrency package in DSF is here). It is based on the Executor, with the same extension as Realm to allow the caller to check whether he's in the executor thread. However the main communication method between realms is a callback object: RequestMonitor, the use of Future is avoided when possible because it easily leads to deadlocks. We've learned quite a bit over the last couple of years of using this framework and we'd be happy to share our lessons learned with E4, although I'm afraid I'm not able to attend the E4 summit.
  • Scott Lewis (slewis at composent.com): It would be useful to have multiple primitives for interprocess and inter-thread communication...e.g. proxy (blocking/call return), async w/callback, futures/asychresult. ECF has a remote services API that provides these primitives for services, with an explicit approach for handling partial failure...via methods exposed by IRemoteService interface. Also, replicated models should also be considered, and the ECF shared object API can/could be used to support such approaches.

Dependency Injection

  • Closely related to Application Model -- If components (view, editor) shouldn't know about the context in which they appear, dependency injection is a technique for this. Instead of PlatformUI.getWorkbench.getHelpSystem(), have the HelpSystem constructor injected.
  • Jeff: One of my favorites, has a fundamental impact on the entire Platform in terms of programming model, ease of testing etc.
  • Need to take a look at the existing dependency injection mechanisms: DS, Springs, extension registry to see what works and what does not.
  • Oleg: Not quite a dependency injection, but a related question from observing code patterns developers use. We see 100s of singletons per 1 OSGi service. This is a natural state as singletons are so much easier to use. Do we need to fight this or should we adapt to the use of singletons? The singleton and dependency injection should be complimentary, not mutually exclusive.

Java 5 Usage

  • Should the Platform start using Generics and other Java 5 Concepts?
  • Could there be tooling to allow writing code with Generics and other Java 5 Concepts, but still automatically convert the code into a variant that can also run on Micro Edition / Older JVM's ?

Scalability

  • While the bundle lifecycle on the "activation" side is well defined now, the opposite end - unloading unused bundles seems to be murky on a number of levels.

Other Topics

Back to the top