<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">I know I did but that's me being me!<div>So far, Mercury has only impressed me with how pleasant writing a game can be.</div><div><br></div><div>I was reading the source code for the array module, trying to get some ideas on how I might implement a module that could allocate a fixed block of memory for N slots of a du type and then provide an interface to it so I can walk that block using just pointer arithmetic, and then, given a pointer, which would be declared as a mercury type too, provide some update methods to either write a single field or, given a fully populated du instance, copy all the fields in one go.</div><div><br></div><div>From what I've seen I think it wouldn't be that hard, it would bevery interesting for me to do and I'd learn a lot.</div><div><br></div><div>In the future I'd like to try using Mercury as the means to write code for the Godot game engine system too:</div><div><a href="https://godotengine.org/article/introducing-gd-extensions/">https://godotengine.org/article/introducing-gd-extensions/</a></div><div><br></div><div>As usual, day jobs and other stuff are time bandits.</div><div><br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On 9 Oct 2023, at 11:45, Volker Wysk <post@volker-wysk.de> wrote:</div><br class="Apple-interchange-newline"><div><div>You're welcome. <br><br>I'm not sure how efficient this is, though. You wanted to have maximum<br>efficiency before, for your game...<br><br>Cheers,<br>Volker<br><br>Am Montag, dem 09.10.2023 um 11:34 +0100 schrieb Sean Charles<br>(emacstheviking):<br><blockquote type="cite">Nice, I'm stealing that! I will adapt it, and of course your name will be carved in pixels in the ether in a comment in a game that nobody will ever see!<br><br>Thanks Volker.<br><br>:)<br><br><br><blockquote type="cite">On 9 Oct 2023, at 10:08, Volker Wysk <post@volker-wysk.de> wrote:<br><br>Am Montag, dem 09.10.2023 um 11:04 +0200 schrieb Volker Wysk:<br><blockquote type="cite">:- pred cart_prod(set(T)::in, set(U)::in, set(pair(T, U))::out) is det.<br></blockquote><br>Oops, that should be:<br><br>:- pred cart_prod(set(T)::in, set(U)::in, list(pair(T, U))::out) is det.<br><br>Volker<br>_______________________________________________<br>users mailing list<br>users@lists.mercurylang.org<br>https://lists.mercurylang.org/listinfo/users<br></blockquote><br></blockquote><br>_______________________________________________<br>users mailing list<br>users@lists.mercurylang.org<br>https://lists.mercurylang.org/listinfo/users<br></div></div></blockquote></div><br></div></body></html>