senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. lain (lain@lain.com)'s status on Saturday, 08-Aug-2020 01:55:43 JST lain lain
    in reply to
    • Alex Gleason
    @alex no, it happens at compile time. Modules are evaluated at compile time and as these `def` statements (and the file reading and array building before it) are top level they'll be evaluated at compile time as well.
    In conversation Saturday, 08-Aug-2020 01:55:43 JST from lain.com permalink
    • バツ子(痛いの痛いの飛んでけ;; likes this.
    • Alex Gleason (alex@gleasonator.com)'s status on Saturday, 08-Aug-2020 01:55:45 JST Alex Gleason Alex Gleason
      in reply to
      • Alex Gleason

      @lain Wait, it is dynamic. This happens at runtime?

      In conversation Saturday, 08-Aug-2020 01:55:45 JST permalink
    • Alex Gleason (alex@gleasonator.com)'s status on Saturday, 08-Aug-2020 01:55:46 JST Alex Gleason Alex Gleason
      in reply to

      @lain What happens if the array is dynamic, will it refuse to compile?

      In conversation Saturday, 08-Aug-2020 01:55:46 JST permalink
    • lain (lain@lain.com)'s status on Saturday, 08-Aug-2020 01:55:47 JST lain lain
      in reply to
      • Alex Gleason
      @alex lookie lookie https://git.pleroma.social/pleroma/pleroma/-/blob/develop/lib/pleroma/emoji.ex#L127
      In conversation Saturday, 08-Aug-2020 01:55:47 JST permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: git.pleroma.social
        lib/pleroma/emoji.ex · develop · Pleroma / pleroma
        Pleroma backend
    • Alex Gleason (alex@gleasonator.com)'s status on Saturday, 08-Aug-2020 01:55:48 JST Alex Gleason Alex Gleason

      Definitely one of the most wtf things I’ve seen in Elixir so far. Apparently this for-loop generates a new function for each possible HTTP status so it works like a reverse lookup of the map on the left, converting a reason phrase into a status code.

      In conversation Saturday, 08-Aug-2020 01:55:48 JST permalink

Feeds

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

senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.