<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 23, 2022 at 10:28 AM Tony Garnock-Jones <<a href="mailto:tonyg@leastfixedpoint.com">tonyg@leastfixedpoint.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">On 6/23/22 18:15, Eliot Miranda wrote:<br>
> Can you say more about your use case?<br>
<br>
I've been implementing the X11 protocol in pure Smalltalk and I want to <br>
use a little bit of FFI to shmget/shmat and use that to get the pixels <br>
over to the X server. At present XPutImage is working but flooding the <br>
server with XPutImage seems to run into a rate limit from time to time <br>
so it's not very usable. Best to switch to mmap/shm if I can.<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">Technical:</div><br></div><div class="gmail_default" style="font-size:small">So in this use including the header in the first page would be ok?  Would the mapping be read-only from the perspective of the X server?  Do you need shmget to be run via the FFI or would it be OK to invoke it implicitly as part of a mapping allocation primitive?  Would it be better to create the mapping via the FFI and provide the mapping to the allocation primitive? How should the mapping be taken down?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><div class="gmail_default">Windows folks, how portable is this idea to other OS's, especially windows?  (I'm guessing this is a standard facility on most leading OS's).  So would it be worth evolving towards a cross-platform abstraction?</div><div class="gmail_default"><br></div></div><div class="gmail_default" style="font-size:small">Procedural:</div><div class="gmail_default" style="font-size:small">Would you be prepared to build the VM to test this?  Perhaps even generate it from sources?  To what extent would you be able to collaborate with e.g. Tom & myself in implementing this?</div><div class="gmail_default" style="font-size:small"><br></div></div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div></div>