SwePub
Sök i LIBRIS databas

  Utökad sökning

onr:"swepub:oai:DiVA.org:su-131566"
 

Sökning: onr:"swepub:oai:DiVA.org:su-131566" > Measuring Polymorph...

  • Åkerblom, BeatriceStockholms universitet,Institutionen för data- och systemvetenskap,Stockholm Univ, Stockholm, Sweden. (författare)

Measuring Polymorphism in Python Programs

  • Artikel/kapitelEngelska2016

Förlag, utgivningsår, omfång ...

  • 2015-10-21
  • New York, NY, USA :ACM,2016
  • printrdacarrier

Nummerbeteckningar

  • LIBRIS-ID:oai:DiVA.org:su-131566
  • https://urn.kb.se/resolve?urn=urn:nbn:se:su:diva-131566URI
  • https://doi.org/10.1145/2816707.2816717DOI
  • https://urn.kb.se/resolve?urn=urn:nbn:se:uu:diva-287597URI

Kompletterande språkuppgifter

  • Språk:engelska
  • Sammanfattning på:engelska

Ingår i deldatabas

Klassifikation

  • Ämneskategori:ref swepub-contenttype
  • Ämneskategori:art swepub-publicationtype

Anmärkningar

  • Following the increased popularity of dynamic languages and their increased use in critical software, there have been many proposals to retrofit static type system to these languages to improve possibilities to catch bugs and improve performance. A key question for any type system is whether the types should be structural, for more expressiveness, or nominal, to carry more meaning for the programmer. For retrofitted type systems, it seems the current trend is using structural types. This paper attempts to answer the question to what extent this extra expressiveness is needed, and how the possible polymorphism in dynamic code is used in practise. We study polymorphism in 36 real-world open source Python programs and approximate to what extent nominal and structural types could be used to type these programs. The study is based on collecting traces from multiple runs of the programs and analysing the polymorphic degrees of targets at more than 7 million call-sites. Our results show that while polymorphism is used in all programs, the programs are to a great extent monomorphic. The polymorphism found is evenly distributed across libraries and program-specific code and occur both during program start-up and normal execution. Most programs contain a few megamorphic call-sites where receiver types vary widely. The non-monomorphic parts of the programs can to some extent be typed with nominal or structural types, but none of the approaches can type entire programs.

Ämnesord och genrebeteckningar

Biuppslag (personer, institutioner, konferenser, titlar ...)

  • Wrigstad, Tobias,1976-Uppsala universitet,Datalogi(Swepub:uu)writo649 (författare)
  • Stockholms universitetInstitutionen för data- och systemvetenskap (creator_code:org_t)

Sammanhörande titlar

  • Ingår i:SIGPLAN noticesNew York, NY, USA : ACM51:2, s. 114-128, s. 114-1280362-13401558-1160
  • Ingår i:DLS 2015New York, NY, USA : ACM51:2, s. 114-128, s. 114-1289781450336901

Internetlänk

Hitta via bibliotek

Till lärosätets databas

Sök utanför SwePub

Kungliga biblioteket hanterar dina personuppgifter i enlighet med EU:s dataskyddsförordning (2018), GDPR. Läs mer om hur det funkar här.
Så här hanterar KB dina uppgifter vid användning av denna tjänst. Hantera kakor

 
pil uppåt Stäng

Kopiera och spara länken för att återkomma till aktuell vy