question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vector reads and writes

See original GitHub issue

I’ve decided to switch the portable vector types RFC to use the ptr::{read,write} terminology for consistency reasons instead of load and stores. I don’t know if these have to be specified as an “extra” concept in the memory model or not, or whether the RFC should specify their semantics as a sequence of single elements reads and writes.

It would be nice if those working on these parts of the memory model could take a look at the “Reads and Writes” section of the RFC and give me feedback.

Also, at some point we might want to add atomic vector reads and writes, so if these operations need to be specified in the memory model, that might be something worth keeping in mind.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
RalfJungcommented, May 31, 2019

@gnzlbg are you fine with closing this as per @rkruppe’s last comment (being subsumed by array layout discussions)?

0reactions
hanna-kruppecommented, Aug 1, 2018

That seems to be a matter of guaranteeing the layout of some kinds of tuples, not anything to do with vectors in particular.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reading and writing C++ vector to a file - Stack Overflow
I've browsed through the boost::binary_oarchive source code and it seems that it reads/writes the raw vector array data directly from/to the stream buffer....
Read more >
Reading And Writing Vector Art - Vecteezy
Browse 7868 incredible Reading And Writing vectors, icons, clipart graphics, and backgrounds for royalty-free download from the creative contributors at ...
Read more >
Vector reads and writes - Make Linux Software
The writev call enables you to write multiple discontiguous regions of memory to a file descriptor in a single operation. This is called...
Read more >
Reading and writing vectors - GNU Scientific Library
The library provides functions for reading and writing vectors to a file as binary data or formatted text. ... This function writes the...
Read more >
Std::vector read/write - C++ Users' Group - HDF Forum
Hi I was wondering if it is possible to read/write std::vector to hdf5. Especially if the size of the array is not known...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found