DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
11 Monitoring and Observability Tools for 2023
Learn more
  1. DZone
  2. Coding
  3. Languages
  4. Mono 2.8 - New GC, C# 4.0, and LLVM

Mono 2.8 - New GC, C# 4.0, and LLVM

Mitch Pronschinske user avatar by
Mitch Pronschinske
·
Oct. 07, 10 · Interview
Like (0)
Save
Tweet
Share
10.82K Views

Join the DZone community and get the full member experience.

Join For Free
Ten months worth of development has brought plenty of major updates and new features to the open source implementation of the .NET framework, Mono.  Today, Mono 2.8 adds support for C# 4.0, a new Garbage Collection engine, System.XAML, the Parallel Framework, ASP.NET MVC 2, ASP.NET 4.0, OpenBSD, and more.  Mono 2.8 has also graduated LLVM support to 'stable' and made large performance improvements.

ABI/API Embedding

Mono 2.8 no longer depends on the GLIB library.  2.8 has removed internal methods from the public API and replaced GLIB types with integer data types from stdint.h.  Project developers also depreciated some methods that were limited and not intended for external use.

New GC

Mono has been using an excellent GC written by Hans Boehm for years, but with 2.8 the developers wanted to add less conservative features like generational garbage collection.  The project decided to change its GC to SGen: a generational, copying, heap precise, stack conservative garbage collector. SGen can repack the data in memory and it can also move data around in a way that reduces heap fragmentation.  The .NET-based graph database, Sones, did some benchmarking of SGen vs. Mono's old garbage collector:



The blue line is the time it takes SGen to fulfill a request while the red line is the Boehm GC.  SGen is supported on ARM, x86, x86-64 and the s390x platforms.

New MS-PL or Apache v2-licensed Microsoft Libraries


  • ASP.NET MVC2
  • Managed Extensibility Framework (MEF)
  • System.Data.Services.Client
  • Dynamic Language Runtime

LLVM

Support for the Low-Level Virtual Machine compiler infrastructure is now stable in 2.8.  Users can write a mono-llvm command to make server applications run with an LLVM backend.  However, JIT compilation with this release is still quite slow, so the backend is currently suitable for long server processes only.

Other new features

Mono 2.8 introduces a partial implementation of Code Contracts, a preview code implementation of PLinq, the Managed Extensibility Framework, and the Dynamic Language Runtime.  XBuild is also available now for building Silverlight projects and WCF routing has been added.

Miguel De Icaza, the Mono project lead, reminds us that Mono 2.6 is still the long term support release.  The next long term version will be Mono 3.0.
LLVM garbage collection Mono (software)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Custom Validators in Quarkus
  • Collaborative Development of New Features With Microservices
  • Stateful Stream Processing With Memphis and Apache Iceberg
  • 20 Concepts You Should Know About Artificial Intelligence, Big Data, and Data Science

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: