<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:53 AM tim Rowledge <<a href="mailto:tim@rowledge.org">tim@rowledge.org</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"> <br>
Isn't there already support for external bitmaps/surfaces? I remember doing some things that feel related to this with andreas decades ago<br></blockquote><div><br></div><div class="gmail_default" style="font-size:small">You're right.  See the SurfacePlugin.  Didn't know it could be used like this.  Anyone have any pointers to examples, etc?</div><div class="gmail_default" style="font-size:small"><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">
<br>
> On 2022-06-23, at 10:41 AM, Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>> wrote:<br>
> <br>
> <br>
> <br>
> On Thu, Jun 23, 2022 at 10:28 AM Tony Garnock-Jones <<a href="mailto:tonyg@leastfixedpoint.com" target="_blank">tonyg@leastfixedpoint.com</a>> wrote:<br>
> 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>
> <br>
> Technical:<br>
> <br>
> 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?<br>
> <br>
> 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?<br>
> <br>
> Procedural:<br>
> 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?<br>
> <br>
> _,,,^..^,,,_<br>
> best, Eliot<br>
<br>
<br>
tim<br>
--<br>
tim Rowledge; <a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" rel="noreferrer" target="_blank">http://www.rowledge.org/tim</a><br>
Strange OpCodes: START: Cancel preceding jobs in queue<br>
</blockquote></div><div><br></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>