The Programming Journal
Read post

Pitfalls in VM Implementation on CHERI: Lessons from Porting CRuby

CHERI (Capability Hardware Enhanced RISC Instructions) replaces traditional pointers with hardware capabilities to enforce memory safety. Porting virtual machines to CHERI is non-trivial because many VM implementation techniques rely on C undefined behaviors that are valid on conventional architectures but break under CHERI's stricter model. Researchers ported CRuby to CHERI as a case study, categorized the VM-specific pitfalls encountered, and documented workarounds with their trade-offs. The findings are validated against the CRuby port and prior VM porting case studies, providing a practical guide for developers building or porting VMs to CHERI.

    #c#ruby#virtual-machine
Mar 05•2m read time•From programming-journal.org
Post cover image
Table of contents
Abstract
504 Impressions
The Programming Journal's image
The Programming Journal

Programming Journal's publication is a resource for developers seeking to expand their knowledge and...

12 Followers

•

8 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard