<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Shigami Yune</title>
    <description>The latest articles on DEV Community by Shigami Yune (@shigami_yune).</description>
    <link>https://dev.to/shigami_yune</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3463855%2Fc3f6fb44-60e5-43c5-a43c-4a598a1233ea.png</url>
      <title>DEV Community: Shigami Yune</title>
      <link>https://dev.to/shigami_yune</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shigami_yune"/>
    <language>en</language>
    <item>
      <title>sy_callback.hpp : 16-byte, high-performance, safe C++ delegate for C++ 11</title>
      <dc:creator>Shigami Yune</dc:creator>
      <pubDate>Sun, 07 Sep 2025 03:47:54 +0000</pubDate>
      <link>https://dev.to/shigami_yune/sycallbackhpp-16-byte-high-performance-safe-c-delegate-for-c-11-2b8</link>
      <guid>https://dev.to/shigami_yune/sycallbackhpp-16-byte-high-performance-safe-c-delegate-for-c-11-2b8</guid>
      <description>&lt;p&gt;Just finished a tiny but powerful C++ callback library: sy_callback.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Footprint: Only 16 bytes (in 64 bit) (object pointer + thunk function pointer)&lt;/li&gt;
&lt;li&gt;Performance: Near 2x faster than std::function&lt;/li&gt;
&lt;li&gt;Safety: Works with non-trivial return types safely via RVO/move elision&lt;/li&gt;
&lt;li&gt;Flexible: Supports member functions, static functions, lambdas (capture/non-capture), functors, template function (auto cast)&lt;/li&gt;
&lt;li&gt;API: easy use, support target() like std::function&lt;/li&gt;
&lt;li&gt;No vtable needed: Lambda non-capture → no heap allocation, if is lambda capture or functors -&amp;gt; heap allocation (size will be 16 + sizeof lambda capture or functors)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It’s perfect for game engines, real-time systems, and performance-critical code where size and speed matter.&lt;/p&gt;

&lt;p&gt;Usage examples, documentation and bernmarks are all available on github&lt;br&gt;
Here : &lt;a href="https://github.com/ShigamiYune/sy_callback.hpp" rel="noopener noreferrer"&gt;https://github.com/ShigamiYune/sy_callback.hpp&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
