Topic: Adding file memory mapping feature to the new standard
Author: beman_d@yahoo.com (Beman Dawes)
Date: Mon, 13 May 2002 17:27:15 GMT Raw View
"Carl Daniel" <cpdaniel@pacbell.net> wrote in message news:<PsiC8.160$8A6.24500559@newssvr14.news.prodigy.com>...
> "foo" <maisonave@axter.com> wrote in message
> news:c11783b0.0205081427.53a570ba@posting.google.com...
>
> > I'm considering proposing this class, or something similar, be added
> > to upcomming new C++ standard.
> >
> > Does anyone see any problems with this class being added to the
> > standard?
> > I'm looking for any suggestions or recommendations.
>
> Why don't you submit it to Boost (www.boost.org) and see what people think
> about it?
I'll second Carl's suggestion.
Submitting a proposal to Boost will do several things; it will give
you detailed feedback on what people think of your proposal, it will
(assuming it gets accepted by Boost) establish existing practice
(which helps a lot once a proposal gets to the committee), and it
means that Boost members on the committee will act as champions for
your proposal if you can't personally attend committee meetings.
--Beman
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]
Author: ljestrada@hotmail.com (Javier Estrada)
Date: Fri, 3 May 2002 20:02:41 GMT Raw View
> Does any one know if the C++ committee is considering adding file
> memory mapping features to the C++ standard?
Matt Austern, the chair of the C++ standardization committee's library
working group (and a poster in this newsgroup) publishes The Standard
Librarian column for C++ User's Journal. This might interest you:
The Standard Librarian: File-Based Containers
http://www.cuj.com/experts/1907/austern.htm?topic=experts
Regards,
Javier.
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]
Author: maisonave@axter.com (foo)
Date: Wed, 8 May 2002 22:29:15 GMT Raw View
ljestrada@hotmail.com (Javier Estrada) wrote in message news:<d522680b.0205022332.149663d4@posting.google.com>...
> > Does any one know if the C++ committee is considering adding file
> > memory mapping features to the C++ standard?
>
> Matt Austern, the chair of the C++ standardization committee's library
> working group (and a poster in this newsgroup) publishes The Standard
> Librarian column for C++ User's Journal. This might interest you:
>
> The Standard Librarian: File-Based Containers
> http://www.cuj.com/experts/1907/austern.htm?topic=experts
>
> Regards,
>
> Javier.
>
> ---
> [ comp.std.c++ is moderated. To submit articles, try just posting with ]
> [ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
> [ --- Please see the FAQ before posting. --- ]
> [ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]
Good link. However, he has a read-only method.
I've created a working version of a memory mapped vector class
(file_vector) that can read and write.
The code has both Win32 and Posix memory mapped code, but I've only
tested the Win32 version. I plan on modifying the code so that even
if memory mapping is not available on the target OS, the class will
still be able to function.
The file_vector class can be viewed via the following links:
http://www.axter.com/code/file_vector.h
http://www.axter.com/code/file_vector.cpp
Example usage:
http://www.axter.com/code/main.cpp
I'm considering proposing this class, or something similar, be added
to upcomming new C++ standard.
Does anyone see any problems with this class being added to the
standard?
I'm looking for any suggestions or recommendations.
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]
Author: "Carl Daniel" <cpdaniel@pacbell.net>
Date: Thu, 9 May 2002 08:47:18 GMT Raw View
"foo" <maisonave@axter.com> wrote in message
news:c11783b0.0205081427.53a570ba@posting.google.com...
> I'm considering proposing this class, or something similar, be added
> to upcomming new C++ standard.
>
> Does anyone see any problems with this class being added to the
> standard?
> I'm looking for any suggestions or recommendations.
Why don't you submit it to Boost (www.boost.org) and see what people think
about it?
-cd
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]
Author: maisonave@axter.com (foo)
Date: Thu, 25 Apr 2002 17:38:10 GMT Raw View
Does any one know if the C++ committee is considering adding file
memory mapping features to the C++ standard?
The reason I ask is because Windows, Unix, and Linux have
implementation for mapping files to memory.
If it were possible to do this with standard C++, it would allow the
use of many algorithms that currently cannot be used directly on files
with out using OS specific code.
Currently only STL functions that can take a stream-iterator can be
used on file data.
The language would be greatly enhanced if algorithms like std::sort,
std::search, transform, binary_search, and replace can be used
directly on a file with out having to use OS specific code.
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]