News for hackers. Stuff that matters.
Re:Iris: Fast back-end web framework for Go by kasey_junk on Tuesday June 21, 2016 @07:43PM (#11950395)
Nitpick c# has value types
Re:Iris: Fast back-end web framework for Go by ngrilly on Wednesday June 22, 2016 @06:42AM (#11952730)
In C#, can you create an array of (x, y, z) tuples, where x, y and z are floats, and the whole array is store contiguously, without any indirection? Last time I checked C# documentation, it wasn't possible, but maybe I missed something.

Edit:

Ok, I definitely missed something ;-) I checked again C# documentation and kasey_junk is right. The tuple can be implemented as a struct, which is a value type (not a reference type), and arrays items are stored in contiguous memory. This is a big advantage of C# over Java (value types are planned for a future version of Java).

Re:Iris: Fast back-end web framework for Go by weberc2 on Wednesday June 22, 2016 @10:26AM (#11954187)
I know. Java and C# have primitives as well, which are also values and not references. I was speaking broadly. :)