Skip to main content
edited title
Link
Engineer
  • 781
  • 6
  • 17

Generalised indexing scheme (in user code) for variable memory layouts?

added 50 characters in body
Source Link
Engineer
  • 781
  • 6
  • 17

By changing the indexer, we change the layout, without touching existing user code, and without having to modify structs and (consequently) struct accesses across an entire codebase, since our accessors / indexers are type-agnostic.

My current implementation is presumably similar to any struct parser / compiler setup. We start to crystallise the struct, in order to compactcompacting bitfields, padpadding and alignaligning to key widths in memory widths. (This begins to take away some control from indexers, which may be part of my problem.)

By changing the indexer, we change the layout, without touching existing user code, and without having to modify structs and (consequently) struct accesses across an entire codebase.

My current implementation is presumably similar to any struct parser / compiler setup. We start to crystallise the struct, in order to compact bitfields, pad and align to key widths in memory. (This begins to take away some control from indexers, which may be part of my problem.)

By changing the indexer, we change the layout, without touching existing user code, and without having to modify structs and (consequently) struct accesses across an entire codebase, since our accessors / indexers are type-agnostic.

My current implementation is presumably similar to any struct parser / compiler setup. We start to crystallise the struct, compacting bitfields, padding and aligning to key memory widths. (This begins to take away some control from indexers, which may be part of my problem.)

added 8 characters in body
Source Link
Engineer
  • 781
  • 6
  • 17

ThisMy current implementation is very similar presumably similar to any struct parser / compiler implementationsetup. We start to crystallise the struct, in order to compact bitfields, pad and align to key widths in memory. (This begins to take away some control from indexers, which may be part of my problem.)

This is very similar presumably to any struct parser / compiler implementation.

My current implementation is presumably similar to any struct parser / compiler setup. We start to crystallise the struct, in order to compact bitfields, pad and align to key widths in memory. (This begins to take away some control from indexers, which may be part of my problem.)

added 9 characters in body
Source Link
Engineer
  • 781
  • 6
  • 17
Loading
added 9 characters in body
Source Link
Engineer
  • 781
  • 6
  • 17
Loading
deleted 44 characters in body
Source Link
Engineer
  • 781
  • 6
  • 17
Loading
deleted 34 characters in body
Source Link
Engineer
  • 781
  • 6
  • 17
Loading
deleted 11 characters in body
Source Link
Engineer
  • 781
  • 6
  • 17
Loading
changed title
Source Link
Engineer
  • 781
  • 6
  • 17
Loading
changed title
Source Link
Engineer
  • 781
  • 6
  • 17
Loading
changed title
Source Link
Engineer
  • 781
  • 6
  • 17
Loading
changed title
Source Link
Engineer
  • 781
  • 6
  • 17
Loading
edited title
Link
Engineer
  • 781
  • 6
  • 17
Loading
deleted 46 characters in body
Source Link
Engineer
  • 781
  • 6
  • 17
Loading
added 4 characters in body
Source Link
Engineer
  • 781
  • 6
  • 17
Loading
added 14 characters in body
Source Link
Engineer
  • 781
  • 6
  • 17
Loading
deleted 8 characters in body
Source Link
Engineer
  • 781
  • 6
  • 17
Loading
deleted 24 characters in body
Source Link
Engineer
  • 781
  • 6
  • 17
Loading
added 57 characters in body
Source Link
Engineer
  • 781
  • 6
  • 17
Loading
added 3 characters in body
Source Link
Engineer
  • 781
  • 6
  • 17
Loading
Source Link
Engineer
  • 781
  • 6
  • 17
Loading