GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    ✧✦Catherine✦✧ (whitequark@mastodon.social)'s status on Tuesday, 13-May-2025 08:57:53 JST ✧✦Catherine✦✧ ✧✦Catherine✦✧
    in reply to
    • Graham Sutherland / Polynomial

    @gsuberland whoa that's neat

    In conversation about 23 days ago from mastodon.social permalink
    • Embed this notice
      Graham Sutherland / Polynomial (gsuberland@chaos.social)'s status on Tuesday, 13-May-2025 08:57:54 JST Graham Sutherland / Polynomial Graham Sutherland / Polynomial

      just realised you can do this in C#

      const int MaxStackAlloc = 1024;
      Span<int> indices = count <= MaxStackAlloc ? stackalloc int[count] : new int[count];

      so you dynamically get stack or heap allocation depending on the count.

      In conversation about 23 days ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.