<div style="font-family: Arial, sans-serif; font-size: 14px;"></div><span>> What I meant for "robust analysis" was to try and establish how many _real-world_ C++ library can really be tackled in such a direct approach. </span><div><br></div><div><span>Ohh I see now, I am affraid we know the answer for this :)</span></div><div><br></div><div><span>Let's imagine if number of C++ libraries which can be covered end-to-end with "simple" approach is 0, does it mean that we should discard it and only focus on shim for binding all kinds of APIs? What about those cases which can be easily extracted using "simple" approach, like Point2d?</span></div><div><br></div><div><span>Because I thought that we would like to do "analysis" of what C++ use cases can/cannot be covered with "simple" approach. For example from your previous message I see that we are not completely sure about exceptions:</span></div><div><br></div><div><span>> * (probably way more stuff, like exceptions, etc.)</span></div><div><br></div><div><span>Similarly for myself I would like to see what are the problems with "dynamic dispatch". I added it to "unhappy" for now, because we expect it not to work, but I plan to test it to see what are the issues there and share here. Similarly with that anyone would be able to reproduce and see same results.</span></div><div><br></div><div><span>I guess my question now is: do we think it may be useful to know exactly how many C++ use cases can be covered with "simple" FFM approach. And if answer is yes, then we can use panamaexperiments as a playground where we can have tests for what is covered. This (possibly?) can give us more confidence in limitations of "simple" approach and how far we can go with it (and this can be easily demonstrated to everyone just by running those tests)<br></span></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px; color: rgb(0, 0, 0);">Ideas?<br></div><span></span>
<div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div class="protonmail_quote">
------- Original Message -------<br>
On Monday, May 22nd, 2023 at 9:14 AM, Maurizio Cimadamore <maurizio.cimadamore@oracle.com> wrote:<br><br>
<blockquote class="protonmail_quote" type="cite">
<p><br>
</p>
<div class="moz-cite-prefix">On 22/05/2023 04:12, Rel wrote:<br>
</div>
<blockquote type="cite">
<blockquote style="color: #8c8c8c;" type="cite">
<pre class="moz-quote-pre">But I believe some more robust
analysis should be made to understand exactly how many APIs can be
supported in this "simple" fashion.
</pre>
</blockquote>
<pre class="moz-quote-pre">Yes, I started to gather such analysis here <a href="https://urldefense.com/v3/__https://github.com/enatai/panamaexperiments__;!!ACWV5N9M2RV99hQ!KOxdK2qmmSzlaaO3kSlSUG2-ifWAVRD6OHlz9NHYvuggmy7NnnNxWvHYcxDm0Vn4gPXlbasjfC-ehIx_KlWNYiU$" class="moz-txt-link-freetext" rel="noreferrer nofollow noopener" target="_blank">https://urldefense.com/v3/__https://github.com/enatai/panamaexperiments__;!!ACWV5N9M2RV99hQ!KOxdK2qmmSzlaaO3kSlSUG2-ifWAVRD6OHlz9NHYvuggmy7NnnNxWvHYcxDm0Vn4gPXlbasjfC-ehIx_KlWNYiU$</a>
Currently there is only one happy case [<a href="https://urldefense.com/v3/__https://github.com/enatai/panamaexperiments/blob/main/libcppexperiments/src/main/public/happy.hpp__;!!ACWV5N9M2RV99hQ!KOxdK2qmmSzlaaO3kSlSUG2-ifWAVRD6OHlz9NHYvuggmy7NnnNxWvHYcxDm0Vn4gPXlbasjfC-ehIx_K7Nl50c$" class="moz-txt-link-freetext" rel="noreferrer nofollow noopener" target="_blank">https://urldefense.com/v3/__https://github.com/enatai/panamaexperiments/blob/main/libcppexperiments/src/main/public/happy.hpp__;!!ACWV5N9M2RV99hQ!KOxdK2qmmSzlaaO3kSlSUG2-ifWAVRD6OHlz9NHYvuggmy7NnnNxWvHYcxDm0Vn4gPXlbasjfC-ehIx_K7Nl50c$</a> ] which is Point2d class from your foo.hpp file.</pre>
</blockquote>
<p>This is not too surprising - after all the hacky changes I shared
were built around that example.</p>
<p>What I meant for "robust analysis" was to try and establish how
many _real-world_ C++ library can really be tackled in such a
direct approach. My feeling is "not many" - but I don't have any
hard data to back up this claim.</p>
<p>Maurizio<br>
</p>
</blockquote><br>
</div>