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
    Paul Cantrell (inthehands@hachyderm.io)'s status on Friday, 21-Mar-2025 09:40:16 JST Paul Cantrell Paul Cantrell
    • Yeshaya Lazarevich

    @alter_kaker
    Seems like Rust is amazing if you have the problems it solves, and if you don’t have those problems, you really wonder what the heck it’s doing.

    “Rust but make everything Arc” is kind of Swift. If you want Rust’s rock-solid type system and enums and performance but are willing to sacrifice a little performance not to fight the borrow checker, Swift is lovely! And Linux support at this point is pretty solid.

    In conversation about 2 months ago from hachyderm.io permalink
    • Embed this notice
      Yeshaya Lazarevich (alter_kaker@hachyderm.io)'s status on Friday, 21-Mar-2025 12:43:31 JST Yeshaya Lazarevich Yeshaya Lazarevich
      in reply to

      @inthehands looking into it. A couple of things I'll miss: Optional is an enum, no exception throwing. The latter of course is a matter of style, but I hate having to catch library exceptions

      In conversation about 2 months ago permalink
    • Embed this notice
      Paul Cantrell (inthehands@hachyderm.io)'s status on Friday, 21-Mar-2025 13:57:10 JST Paul Cantrell Paul Cantrell
      in reply to
      • Yeshaya Lazarevich

      @alter_kaker
      Both are true of Swift as well. Optionals are heavily sugared, and what I think are some really brilliant ways, but underneath it’s just an enum. There are no exceptions; errors are values. It doesn’t quite have the perfect interrupt between errors and Result that I might wish for, but it is an exception-free language.

      In conversation about 2 months ago permalink
    • Embed this notice
      Yeshaya Lazarevich (alter_kaker@hachyderm.io)'s status on Friday, 21-Mar-2025 21:33:12 JST Yeshaya Lazarevich Yeshaya Lazarevich
      in reply to

      @inthehands interesting, they don't seem to advertise it in the docs

      In conversation about 2 months ago permalink
    • Embed this notice
      Paul Cantrell (inthehands@hachyderm.io)'s status on Saturday, 22-Mar-2025 00:03:58 JST Paul Cantrell Paul Cantrell
      in reply to
      • Yeshaya Lazarevich

      @alter_kaker
      If you’re reading the tutorial/guide, I’m sure they don’t advertise. It’s a good tutorial, but it’s there to help newcomers get comfortable and not to explain the language’s structure. The reference manual gets more into that.

      If you want to dig into how Swift implements optionals, you might find this exercise that I give my p-lang students useful: https://github.com/mac-comp381/swift-optional-desugaring

      In conversation about 2 months ago permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: opengraph.githubassets.com
        GitHub - mac-comp381/swift-optional-desugaring
        Contribute to mac-comp381/swift-optional-desugaring development by creating an account on GitHub.
    • Embed this notice
      Yeshaya Lazarevich (alter_kaker@hachyderm.io)'s status on Monday, 24-Mar-2025 10:02:44 JST Yeshaya Lazarevich Yeshaya Lazarevich
      in reply to

      @inthehands I landed on Rust because learning a new language felt overwhelming. And what do you know, for a change I'm working together with the borrow checker instead of fighting it! No unexpected mutation of something passed by reference.... It turns out that command pattern with undo is a problem that the borrow checker solves 🙂

      You did get me curious about Swift, though. For when I'm feeling a little better.

      In conversation about 2 months ago permalink
    • Embed this notice
      Paul Cantrell (inthehands@hachyderm.io)'s status on Monday, 24-Mar-2025 10:25:46 JST Paul Cantrell Paul Cantrell
      in reply to
      • Yeshaya Lazarevich

      @alter_kaker
      I’m glad it’s working for you! I have heard people say that there’s a moment with Rust where the borrow checker kind of clicks, and suddenly seems a lot more reasonable. Enjoy the project, and send me Swift questions if you ever poke at it!

      In conversation about 2 months 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.