4 ms·
I guess the author didn't use that many other programming languages or OSes. You can do the same even in garbage collected languages like Java and C# and on Win
by okanat 8mo ago
I guess the author didn't use that many other programming languages or OSes. You can do the same even in garbage collected languages like Java and C# and on Windows too.
https://docs.oracle.com/javase/8/docs/api/java/nio/MappedByteBuffer.html https://docs.oracle.com/javase/8/docs/api/java/nio/MappedByt...
https://learn.microsoft.com/en-us/dotnet/api/system.io.memorymappedfiles.memorymappedfile?view=net-10.0 https://learn.microsoft.com/en-us/dotnet/api/system.io.memor...
https://learn.microsoft.com/en-us/windows/win32/memory/creating-a-file-mapping-object https://learn.microsoft.com/en-us/windows/win32/memory/creat...
Memory mapping is very common.
- dekhn 8mo agommap is a built-in module on python! Also true for perl.
- paulddraper 8mo agoAnd since Java 4 no less.
- deleted 8mo ago[deleted]
- neonsunset 8mo ago[dead]
- nitwit005 8mo agoI'd be careful though, as they all have quirks due to how tricky it is handling mmap faults. The Java API mentions both unique garbage collection behavior and throwing unspecified exceptions at unspecified times.