Skip to main content

2017 | OriginalPaper | Buchkapitel

Context-Free Session Type Inference

verfasst von : Luca Padovani

Erschienen in: Programming Languages and Systems

Verlag: Springer Berlin Heidelberg

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

Some interesting communication protocols can be precisely described only by context-free session types, an extension of conventional session types with a general form of sequential composition. The complex metatheory of context-free session types, however, hinders the definition of corresponding checking and inference algorithms. In this work we address and solve these problems introducing a new type system for context-free session types of which we provide two OCaml embeddings.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Fußnoten
1
The claim made in [25] that send_tree_aux is ill typed is incorrect. There exist typing derivations for send_tree_aux proving that it has type \(\upalpha ~\mathtt {tree}\rightarrow T\rightarrow T\) for every \(T\) that satisfies the equation https://static-content.springer.com/image/chp%3A10.1007%2F978-3-662-54434-1_30/442829_1_En_30_IEq550_HTML.gif .
 
Literatur
1.
Zurück zum Zitat Ahmed, A., Fluet, M., Morrisett, G.: L\({}^{{3}}\): a linear language with locations. Fundam. Informaticae 77(4), 397–449 (2007)MathSciNetMATH Ahmed, A., Fluet, M., Morrisett, G.: L\({}^{{3}}\): a linear language with locations. Fundam. Informaticae 77(4), 397–449 (2007)MathSciNetMATH
2.
Zurück zum Zitat Charguéraud, A., Pottier, F.: Functional translation of a calculus of capabilities. In: Proceedings of ICFP 2008, pp. 213–224. ACM (2008) Charguéraud, A., Pottier, F.: Functional translation of a calculus of capabilities. In: Proceedings of ICFP 2008, pp. 213–224. ACM (2008)
4.
Zurück zum Zitat Dardha, O., Giachino, E., Sangiorgi, D.: Session types revisited. In: Proceedings of PPDP 2012, pp. 139–150. ACM (2012) Dardha, O., Giachino, E., Sangiorgi, D.: Session types revisited. In: Proceedings of PPDP 2012, pp. 139–150. ACM (2012)
5.
Zurück zum Zitat Demangeon, R., Honda, K.: Full abstraction in a subtyped pi-calculus with linear types. In: Katoen, J.-P., König, B. (eds.) CONCUR 2011. LNCS, vol. 6901, pp. 280–296. Springer, Heidelberg (2011). doi:10.1007/978-3-642-23217-6_19CrossRef Demangeon, R., Honda, K.: Full abstraction in a subtyped pi-calculus with linear types. In: Katoen, J.-P., König, B. (eds.) CONCUR 2011. LNCS, vol. 6901, pp. 280–296. Springer, Heidelberg (2011). doi:10.​1007/​978-3-642-23217-6_​19CrossRef
7.
Zurück zum Zitat Frisch, A., Garrigue, J.: First-class modules and composable signatures in Objective Caml 3.12. In: ACM SIGPLAN Workshop on ML (2010) Frisch, A., Garrigue, J.: First-class modules and composable signatures in Objective Caml 3.12. In: ACM SIGPLAN Workshop on ML (2010)
8.
Zurück zum Zitat Gay, S.J., Vasconcelos, V.T.: Linear type theory for asynchronous session types. J. Funct. Program. 20(1), 19–50 (2010)MathSciNetCrossRef Gay, S.J., Vasconcelos, V.T.: Linear type theory for asynchronous session types. J. Funct. Program. 20(1), 19–50 (2010)MathSciNetCrossRef
10.
Zurück zum Zitat Honda, K., Vasconcelos, V.T., Kubo, M.: Language primitives and type discipline for structured communication-based programming. In: Hankin, C. (ed.) ESOP 1998. LNCS, vol. 1381, pp. 122–138. Springer, Heidelberg (1998). doi:10.1007/BFb0053567CrossRef Honda, K., Vasconcelos, V.T., Kubo, M.: Language primitives and type discipline for structured communication-based programming. In: Hankin, C. (ed.) ESOP 1998. LNCS, vol. 1381, pp. 122–138. Springer, Heidelberg (1998). doi:10.​1007/​BFb0053567CrossRef
11.
12.
Zurück zum Zitat Hüttel, H., Lanese, I., Vasconcelos, V.T., Caires, L., Carbone, M., Deniélou, P.-M., Mostrous, D., Padovani, L., Ravara, A., Tuosto, E., Vieira, H.T., Zavattaro, G.: Foundations of session types and behavioural contracts. ACM Comput. Surv. 49(1), 3 (2016)CrossRef Hüttel, H., Lanese, I., Vasconcelos, V.T., Caires, L., Carbone, M., Deniélou, P.-M., Mostrous, D., Padovani, L., Ravara, A., Tuosto, E., Vieira, H.T., Zavattaro, G.: Foundations of session types and behavioural contracts. ACM Comput. Surv. 49(1), 3 (2016)CrossRef
13.
Zurück zum Zitat Kfoury, A.J., Tiuryn, J., Urzyczyn, P.: Type reconstruction in the presence of polymorphic recursion. ACM Trans. Program. Lang. Syst. 15(2), 290–311 (1993)CrossRef Kfoury, A.J., Tiuryn, J., Urzyczyn, P.: Type reconstruction in the presence of polymorphic recursion. ACM Trans. Program. Lang. Syst. 15(2), 290–311 (1993)CrossRef
15.
Zurück zum Zitat Kobayashi, N., Pierce, B.C., Turner, D.N.: Linearity and the pi-calculus. ACM Trans. Program. Lang. Syst. 21(5), 914–947 (1999)CrossRef Kobayashi, N., Pierce, B.C., Turner, D.N.: Linearity and the pi-calculus. ACM Trans. Program. Lang. Syst. 21(5), 914–947 (1999)CrossRef
16.
Zurück zum Zitat Launchbury, J., Jones, S.L.P.: State in Haskell. Lisp Symbolic Comput. 8(4), 293–341 (1995)CrossRef Launchbury, J., Jones, S.L.P.: State in Haskell. Lisp Symbolic Comput. 8(4), 293–341 (1995)CrossRef
17.
Zurück zum Zitat Mitchell, J.C., Plotkin, G.D.: Abstract types have existential type. ACM Trans. Program. Lang. Syst. 10(3), 470–502 (1988)CrossRef Mitchell, J.C., Plotkin, G.D.: Abstract types have existential type. ACM Trans. Program. Lang. Syst. 10(3), 470–502 (1988)CrossRef
18.
Zurück zum Zitat Moggi, E., Sabry, A.: Monadic encapsulation of effects: a revised approach (extended version). J. Funct. Program. 11(6), 591–627 (2001)MathSciNetCrossRef Moggi, E., Sabry, A.: Monadic encapsulation of effects: a revised approach (extended version). J. Funct. Program. 11(6), 591–627 (2001)MathSciNetCrossRef
19.
Zurück zum Zitat Nierstrasz, O.: Regular types for active objects. In: Proceedings of OOPSLA 1993, pp. 1–15. ACM (1993) Nierstrasz, O.: Regular types for active objects. In: Proceedings of OOPSLA 1993, pp. 1–15. ACM (1993)
22.
23.
Zurück zum Zitat Reppy, J.H.: Concurrent Programming in ML. Cambridge University Press, Cambridge (1999)CrossRef Reppy, J.H.: Concurrent Programming in ML. Cambridge University Press, Cambridge (1999)CrossRef
24.
Zurück zum Zitat Südholt, M.: A model of components with non-regular protocols. In: Gschwind, T., Aßmann, U., Nierstrasz, O. (eds.) SC 2005. LNCS, vol. 3628, pp. 99–113. Springer, Heidelberg (2005). doi:10.1007/11550679_8CrossRef Südholt, M.: A model of components with non-regular protocols. In: Gschwind, T., Aßmann, U., Nierstrasz, O. (eds.) SC 2005. LNCS, vol. 3628, pp. 99–113. Springer, Heidelberg (2005). doi:10.​1007/​11550679_​8CrossRef
25.
Zurück zum Zitat Thiemann, P., Vasconcelos, V.T.: Context-free session types. In: Proceedings of ICFP 2016, pp. 462–475. ACM (2016) Thiemann, P., Vasconcelos, V.T.: Context-free session types. In: Proceedings of ICFP 2016, pp. 462–475. ACM (2016)
26.
Zurück zum Zitat Tov, J.A.: Practical programming with substructural types. Ph.D. thesis, Northeastern University (2012) Tov, J.A.: Practical programming with substructural types. Ph.D. thesis, Northeastern University (2012)
28.
Zurück zum Zitat Tov, J.A., Pucella, R.: Practical affine types. In: Proceedings of POPL 2011, pp. 447–458. ACM (2011) Tov, J.A., Pucella, R.: Practical affine types. In: Proceedings of POPL 2011, pp. 447–458. ACM (2011)
30.
Zurück zum Zitat Walker, D., Watkins, K.: On regions and linear types. In: Proceedings of ICFP 2001, pp. 181–192. ACM (2001) Walker, D., Watkins, K.: On regions and linear types. In: Proceedings of ICFP 2001, pp. 181–192. ACM (2001)
31.
32.
Zurück zum Zitat Yallop, J., Kiselyov, O.: First-class modules: hidden power and tantalizing promises. In: ACM SIGPLAN Workshop on ML (2010) Yallop, J., Kiselyov, O.: First-class modules: hidden power and tantalizing promises. In: ACM SIGPLAN Workshop on ML (2010)
Metadaten
Titel
Context-Free Session Type Inference
verfasst von
Luca Padovani
Copyright-Jahr
2017
Verlag
Springer Berlin Heidelberg
DOI
https://doi.org/10.1007/978-3-662-54434-1_30