Coder Social home page Coder Social logo

rivenskaye / winmmf-rs Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 103 KB

A crate to support Memory-Mapped Files for IPC on Windows

License: Mozilla Public License 2.0

Rust 100.00%
ipc memory-mapped-file memory-mapped-io memory-mapping rust seh windows

winmmf-rs's Introduction

Welcome, Stranger

Mind telling me what the heck you're doing here? I'm not that interesting! I do have a blog for when I do something mildly interesting. I suppose you should enjoy the stat dump while you're here though. Oh and the short list of suggested info too, those seem fun!

  • ๐Ÿ”ญ I'm currently working on getting a Rust implementation of Named Shared Memory working, adding QoL to windows-rs, and mental preparation to update Zwei again;
  • ๐ŸŒฑ I'm currently learning more about Windows internals than I'd like to know;
  • ๐Ÿ‘ฏ I'm looking to collaborate on anything really; My extensions to windows-rs kinda died because I'm pretty darn busy. Would love to help on projects I like using though!
  • ๐Ÿค” I'm looking for help with windows-rs-ext mainly.
  • ๐Ÿ’ฌ Ask me about what I did last night! I swear it's not a bad joke, I make long days at work so night time is when I do fun stuff.
  • ๐Ÿ“ซ How to reach me: Discord @rivenskaye, email Riven [at] tae.moe, or by telex
  • ๐Ÿ˜„ I'd like to get some more time free to continue playing with the CCITT encoder/decoder I was planning with a friend. No, fax is not dead.
  • โšก Fun fact: monochrome TIFF images embedded in PDFs are still valid CCITT fax format imagery!

Metrics generated by lowlighter/metrics

winmmf-rs's People

Contributors

rivenskaye avatar xacrimon avatar

Watchers

 avatar

Forkers

xacrimon

winmmf-rs's Issues

Generalize sizes to native pointer size

It shouldn't be too hard to rewrite current code to generalize the mapping sizes. Though I can't imagine anyone needing more than u32::MAX bytes of IPC space, it's possible and should be implemented.

Fix lock safety

Use compare_exchange for locks to prevent races in the very brief window where we modify lock values as per Discord talks with @xacrimon after his blessed fixes.

Might also want to look into fetch_update after doing some of my own digging; seems like I could keep it relatively smooth that way?

Add guards

@xacrimon pointed this out - currently there's nothing preventing reads and writes from being reordered dangerously. This can cause a funny to happen

Add unit tests

They're missing while they should be there to ensure changes don't cause problems.
Would need to find some manner of running two processes at once to validate things properly though

Add some usage examples

Properly commented examples in docs or an example crate in the repo should make things easier to use. Perhaps this could even help get #2 up and running?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.