1 / 11

Delta-lenses: Unweaving alignment and update propagation

Delta-lenses: Unweaving alignment and update propagation. Zinovy D. Generative software development Lab University of Waterloo. and its problems. State-based BX. Modelspace. Modelspace. (get, put). Mixing concerns: -- Algebra of put is complicated, eg.,PutPut Hiding  :

fiona
Download Presentation

Delta-lenses: Unweaving alignment and update propagation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Delta-lenses: Unweaving alignment and update propagation Zinovy D. Generative software development Lab University of Waterloo

  2. and its problems State-based BX Modelspace Modelspace (get, put) Mixing concerns: -- Algebra of put is complicated, eg.,PutPut Hiding : • Lack of alignment control • Ill-formed sequential comp. of BX S V :get S V  :put S’ V’

  3. Wrong sequential composition of state-based BX k l A0 B0 C0 :k.get :l.get A B C k l :l.put :k.put A’ B’ C’

  4. Solution: Delta-based BX Modelspace Modelspace put = dif ; dput ; proj V S V S   :dif :dput S’ V’

  5. Tile algebra: Symmetric case corresp. specs (matches) Asymmetric case m B A updates :ppg u* u A B’ m

  6. Statement: Be honest (algebraically :-), and treat alignment explicitly • Delta-based BX provides • separation of concerns, • better interfaces, • better algebra Delta-lenses: Proc. ICMT’2010; Ext. version in JOT Symmetric delta-lenses and tile algebra: GTTSE’2009 Postproc. Springer LNCS Mini tutorial on delta-based sync and tile algebra

  7. Wrong sequential composition of state-based BX k l A0 B0 C0 :k.get :l.get A B C k l :l.put :k.put A’ B’ C’

  8. B1 B0 Delta-based BX Modelspace Modelspace Strategy pool Update space Informally, put = dif ; dput ; + where BB’ = dif(B,B’,Y); AA’= dput (BB’, A), A’=A+ AA’ Y S0 Y B A   :dif :dput A’ B’

  9. State-based BX A lens is Modelspace Modelspace Update strategy pool (get, put) A0 B0 Y :get A B Y  :put A’ B’

  10. Problems of state-based BX :get Y A B Y • Mixing concerns: • Algebra of put is complicated, eg, PutPut • Hiding Y • Lack of alignment control • Ill-formed sequential comp. of BX :put A’ B’

More Related