skip to main content
10.1145/592849.592858acmconferencesArticle/Chapter ViewAbstractPublication PagesicfpConference Proceedingsconference-collections
Article

Getting Erlang to talk to the outside world

Published:07 October 2002Publication History

ABSTRACT

How should Erlang talk to the outside world? --- this question becomes interesting if we want to build distributed applications where Erlang is one of a number of communicating components.We assume these components interact by exchanging messages --- at this level of abstraction, details of programming language, operating system and host architecture are irrelevant. What is important is the ease with which we can construct such systems, and the precision with which we can isolate faulty components in such a system. Also of importance is the efficiency (both in terms of CPU and bandwidth requirements) with which we can send and receive messages in the system.One widely adopted solution to this problem involves the XML family of standards (XML, XML-schemas, SOAP and WSDL) --- we argue that this is inefficient and overly complex and propose basing our system on a simpler binary scheme called UBF (Universal Binary Format). The UBF scheme has the expressive power of the XML set of standards --- but is considerably simpler.UBF has been prototyped in Erlang --- the entire scheme (equivalent in semantic power to the XML series of standards) was implemented in a mere 1100 lines of Erlang. UBF encoding of terms is also shown to be more space efficient than the existing "Erlang term format". For example, UBF encoded parse trees of Erlang programs are on average about 60% of the size of the equivalent ETS format encoding which is used in the open source Erlang distribution.

References

  1. J. L. Armstrong. Ubf --- home page, 2002.]]Google ScholarGoogle Scholar
  2. J. L. Armstrong and T. Arts. A practical type system for erlang --- erlang user conferense, 2002.]]Google ScholarGoogle Scholar
  3. T. Bray, J. Paoli, C. M. Sperberg-McQueen, and E. M. (Eds). Extensible markup language (xml) 1.0 (second edition), october 2000, http://www.w3.org/tr/2000/rec-xml-20001006, 2000.]]Google ScholarGoogle Scholar
  4. E. Christensen, F. Curbera, G. Meredith, and S. Weerawarana. Web services description language (wsdl) 1.1, march 2001, http://www.w3.org/tr/2001/note-wsdl-20010315/, 2001.]]Google ScholarGoogle Scholar
  5. D. Connolly, B. Bos, Y. Koike, and M. Holstege. http://www.w3.org/2000/04/schema_hack/, 2000.]]Google ScholarGoogle Scholar
  6. D. C. F. (Ed). Xml schema part 0: Primer, may 2002. http://www.w3.org/tr/2001/rec-xmlschema-0-20010502/, 2002.]]Google ScholarGoogle Scholar
  7. M. Gudgin, M. Hadley, J.-J. Moreau, and H. F. Nielsen. Soap version 1.2 part 1: Messaging framework, december 2001, http://www.w3.org/tr/2001/wd-soap12-part1-20011217, 2001.]]Google ScholarGoogle Scholar
  8. M. Gudgin, M. Hadley, J.-J. Moreau, and H. F. Nielsen. Soap version 1.2 part 2: Adjuncts, december 2001, http://www.w3.org/tr/2001/wd-soap12-part2-20011217., 2001.]]Google ScholarGoogle Scholar
  9. ISO/IEC. Osi networking and system aspects --- abstract syntax notation one (asn.1). ITU-T Rec. X.680 --- ISO/IEC 8824-11, ISO/IEC, 1997.]]Google ScholarGoogle Scholar
  10. D. R. J. Oikarinen. RFC 1459: Internet relay chat protocol, May 1993.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. B. Martin and B. J. (Eds). Wap binary xml content format, june 1999, http://www.w3.org/tr/wbxml, 1999.]]Google ScholarGoogle Scholar
  12. E. Nilo Mitra. Soap version 1.2 part 0: Primer, december 2001, http://www.w3.org/tr/2001/wdsoap12-part0-20011217, 2001.]]Google ScholarGoogle Scholar
  13. OMG. Common Object Request Broker Architecture (CORBA)---v2.6.1 Manual. The Object Management Group, Needham, U.S.A, 2002.]]Google ScholarGoogle Scholar
  14. R. Srinivasan. RFC 1832: XDR: External data representation standard, Aug. 1995.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. H. S. Thompson, D. Beech, M. Maloney, and N. M. (Eds). Xml schema part 1: Structures. w3c recommendation, may 2001. http://www.w3.org/tr/2001/rec-xmlschema-1-20010502/, 2001.]]Google ScholarGoogle Scholar

Index Terms

  1. Getting Erlang to talk to the outside world

      Recommendations

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in
      • Published in

        cover image ACM Conferences
        ERLANG '02: Proceedings of the 2002 ACM SIGPLAN workshop on Erlang
        October 2002
        77 pages
        ISBN:1581135920
        DOI:10.1145/592849
        • Conference Chair:
        • Rex Page,
        • Program Chair:
        • John Hughes

        Copyright © 2002 ACM

        Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 7 October 2002

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • Article

        Acceptance Rates

        Overall Acceptance Rate51of68submissions,75%

        Upcoming Conference

        ICFP '24

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader