BT

Ready for InfoQ 3.0? Try the new design and let us know what you think!

rss
.NET Follow 458 Followers

Performance of Structs in C# 7.2

by Pierre-Luc Maheu Follow 4 Followers on  Jul 31, 2018

The C# compiler, under some circumstances involving readonly, creates defensive copies of a struct. While this issue is well known and documented, it’s worth revisiting as it’s tied to several features of C# 7.2. The in and ref readonly keywords make occurrences of the issue more frequent, while readonly structs offer a way to fix it.

Java Follow 1214 Followers

Oracle Presents First Proposal for Value Types Implementation

by Abraham Marín Pérez Follow 9 Followers on  Nov 09, 2016 1

A couple of months ago, John Rose, JVM Architect, and Brian Goetz, Java Language Architect, both at Oracle, published the first minimal value type proposal to allow early prototyping. At this point, the proposal makes no changes to the Java language itself, and adds only one new bytecode instruction. InfoQ analysed this proposal to indicate the direction that Project Valhalla is heading.

BT