Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Dynamic Language Runtime

From Wikipedia, the free encyclopedia
System Platform
Dynamic Language Runtime (DLR)
Original authorMicrosoft Dynamic Language Runtime Team
Developer.NET Foundation
Initial releaseApril 16, 2010; 15 years ago (2010-04-16)
Stable release
1.3.5[1] Edit this on Wikidata / December 19, 2024; 13 months ago (December 19, 2024)
Written inC#
Operating systemWindows,macOS,Linux (Debian,Ubuntu)
PlatformCommon Language Infrastructure
TypeSystem platform
LicenseApache License 2.0
Websitedocs.microsoft.com/en-us/dotnet/framework/reflection-and-codedom/dynamic-language-runtime-overview
Repository

TheDynamic Language Runtime (DLR) fromMicrosoft runs on top of theCommon Language Runtime (CLR) and providescomputer language services fordynamic languages. These services include:

The DLR is used to implement dynamic languages on the.NET Framework, including theIronPython andIronRuby projects.

Because the dynamic language implementations share a common underlying system, it should be easier for them to interact with one another. For example, it should be possible to uselibraries from any dynamic language in any other dynamic language. In addition, the hosting API allows interoperability with statically typedCLI languages likeC# andVisual Basic .NET.

History

[edit]

Microsoft's Dynamic Language Runtime project was announced by Microsoft atMIX 2007.[2][3]

Microsoft shipped .NET DLR 0.9 beta in November 2008,[4] and final 0.9 in December 2008. Version 1.0 shipped in April 2010. In July 2010, Microsoft changed the license of the DLR from theMicrosoft Public License to theApache License 2.0.[5] With the release of.NET 4, also in April 2010, DLR was incorporated into the .NET Framework itself.[6]

The open source DLR project hosted onGitHub has a few additional features for language implementers. After the July 2010 release, there was little activity on the project for some years. This was interpreted by a Microsoft developer who worked onIronRuby as a lack of commitment from Microsoft to dynamic languages on the .NET Framework.[7][8] However, there has been regular activity since 2016/17, leading to a number of improvements and upgrades.

Language implementations

[edit]

In 2007, Microsoft initially planned to use the DLR for the upcomingVisual Basic 2010 (VB 10.0) andManaged JScript (ECMAScript 3.0) as well as Python and Ruby.[2][9][10][11][12]

The DLR work on Ruby and Python resulted inIronRuby, a .NET implementation of theRuby language, andIronPython.[2]

By August 2009, Microsoft had announced it had no more plans to implement Managed JScript on the DLR.[13] Fredrik Holmström later independently contributed a JavaScript implementation for the DLR which he dubbed "IronJS" in the naming tradition of IronPython and IronRuby.

LikeC#, Visual Basic can access objects from dynamic languages built on the DLR such asIronPython andIronRuby.[14][15]

PowerShell 3.0, released inWindows 8, was updated to use the DLR.[16]

IronScheme, aScheme implementation,[17] was planning to build upon the DLR. This idea was abandoned because the DLRbranch used by the project became out of sync with thetrunk, and also because (according to the project coordinator) the current version of the DLR at that time could not support the majority of Scheme's requirements.[18]

Architecture

[edit]

The Dynamic Language Runtime is built on the idea that it is possible to implement language specificities on top of a genericlanguage-agnosticabstract syntax tree, whose nodes correspond to a specific functionality that is common to many dynamic languages.[19] This architecture is backed by the idea that the number of elementary language constructs that would have to be implemented on the generic stack should be inherently limited.[20] The DLRdynamically generates code corresponding to the functionality expressed by these nodes. The compiler for any dynamic language implemented on top of the DLR has to generate DLR abstract trees, and hand it over to the DLR libraries.

The DLR provides dynamically updatedDynamicSite objects that cache the task of binding methods to objects. Since the type of an object—as well as the members it contains—in dynamic languages can change during a program lifetime, a method invocation must check the method list to see if the invocation is a valid one.DynamicSite objects represent and cache the state of the object and its methods; any update to the object is reflected in theDynamicSite objects as well. DLR routes all method invocations via theDynamicSite objects, which then performs a fast lookup andbinding of the method with the actual implementation.[21]

In contrast to other efforts like theParrot virtual machine (with no dependencies) orDa Vinci Machine (built on Java'sJVM by adding new bytecodes in theJVM instruction set), the DLR is built on top of the existingCommon Language Runtime, the.NET Framework virtual machine.[22]

See also

[edit]

References

[edit]
  1. ^"Release 1.3.5". 19 December 2024. Retrieved24 December 2024.
  2. ^abcHugunin, Jim."A Dynamic Language Runtime (DLR)". Retrieved2007-06-21.For the short term, our focus is on using a small number of languages to drive the first wave of DLR development where we can work closely and face-to-face with the developers in order to iron out the worst kinks in the DLR design. After this initial phase, we want to reach out to the broader language community.
  3. ^Viehland, Dino (2008-01-15)."Roadmap for IronPython 2.0". Archived fromthe original on 2008-09-06. Retrieved2008-02-09.We don't really have a document like this but the general goal is to ship IronPython 2.0 by the end of the year. For the DLR itself the plan is to ship a v1.0 around the same time as IronPython 2.0.
  4. ^"CodePlex Archive".
  5. ^"CodePlex Archive". Archived fromthe original on 2011-08-14. Retrieved2010-07-27.
  6. ^"Dynamic Language Runtime Overview - .NET Framework". 30 March 2024.
  7. ^"Microsoft Tires of IronRuby; Jimmy Schementi Jumps Ship". rubyinside.com. 2010-08-07. Retrieved2012-02-26.A year ago the team shrunk by half and our agility was severely limited. [..] Overall, I see a serious lack of commitment to IronRuby, and dynamic language[s] on .NET in general.
  8. ^"Microsoft's Dynamic languages are dying". i-programmer.info. 2010-08-10. Retrieved2012-02-26.Without the final push to get the languages working under Visual Studio and integrated with the designer both Iron languages are probably dead - and Microsoft seems to have lost the will to make them a success.
  9. ^"Managed JScript announced". Retrieved2007-05-04.
  10. ^"What the heck is "VBx"?". 2007-05-01. Archived fromthe original on 2009-05-25. Retrieved2009-08-12.With the new DLR, we have support for IronPython, IronRuby, Javascript, and the new dynamic VBx compile
  11. ^"Putting Mix, Silverlight, the CoreCLR and the DLR into context". 2007-05-01. Retrieved2008-08-12.
  12. ^"Introducing Visual Basic 10". infoq.com. 2007-05-04. Retrieved2009-08-12.VB 10 takes advantage of a Silverlight feature called the Dynamic Language Runtime or DLR
  13. ^Chiles, Bill (2009-06-01)."Future of Managed JScript (IronJScript)?". Archived fromthe original on 2009-08-31. Retrieved2009-08-12.The DLR JScript was experimental for informing the design of the DLR (expression trees, interop, callsites, hosting, etc.). The JS we released with asp futures and the Silverlight dynamic sdk became very old and unserviceable as the DLR continued evolving for release in CLR 4.0. Unfortunately, there are no plans at this time to develop and release a DLR-hostable JScript.
  14. ^"What's New in Visual Basic 2010".Microsoft. 2009. Retrieved2009-08-12.Visual Basic binds to objects from dynamic languages such as IronPython and IronRuby
  15. ^"Walkthrough: Creating and Using Dynamic Objects (C# and Visual Basic)". 25 February 2023.
  16. ^"PowerShell 3 – Finally on the DLR!". Archived fromthe original on 2012-04-28. Retrieved2012-03-30.
  17. ^"CodePlex Archive".
  18. ^"Is there any silverlight sample?". 2009-05-11. Archived fromthe original on January 19, 2013. Retrieved2009-07-26.Unfortunately, my DLR branch is very out of sync with the Silverlight one. I just thought about it, perhaps I do not need the DLR perse, will investigate. The problem is that the DLR as-is, is not good enough to support the majority of the Scheme's requirements
  19. ^Hugunin, Jim (2007-05-15)."DLR Trees (Part 1)". Retrieved2008-02-23.The key implementation trick in the DLR is using these kinds of trees to pass code around as data and to keep code in an easily analyzable and mutable form as long as possible.
  20. ^Nutter, Charles (2008-01-28)."Lang.NET 2008: Day 1 Thoughts". Retrieved2008-02-23.The idea is that there's a quickly-flattening asymptotic curve to the number of expression tree nodes required to implement each new language. Whether that's the case is yet to be seen.
  21. ^Bill Chiles (October 2007)."CLR Inside Out: IronPython and the Dynamic Language Runtime".MSDN Magazine. Retrieved2007-08-10.
  22. ^Rose, John (2008-02-02)."Bravo for the dynamic runtime!". Archived fromthe original on 2008-02-06. Retrieved2008-02-23.The differences between the CLR and JVM extensions are interesting to note. They work completely above the level of the CLR without significantly enhancing it, while we are developing the JVM and libraries at the same time.

External links

[edit]
Wikibooks has a book on the topic of:.NET Development Foundation
Implementations
Architecture
Components
Tools
Decompilers
Obfuscators
IDEs
Organizations
Overview
Software
Applications
Video games
Programming
languages
Frameworks,
development tools
Operating systems
Other
Licenses
Forges
Related
Retrieved from "https://en.wikipedia.org/w/index.php?title=Dynamic_Language_Runtime&oldid=1333102513"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp