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 Sunday, 25-Feb-2024 10:06:06 JST Paul Cantrell Paul Cantrell

    What are programming language in widespread use today that:

    1. have declared types, but
    2. types are only checked at runtime, no static type checking?

    I believe you can make Racket do this, and it’s an idiom with old Scheme roots. I think? And don’t some dependently typed languages resort to runtime checks when static proofs aren’t possible?…but I’m looking for no static types, runtime checks only.

    In conversation about a year ago from hachyderm.io permalink
    • Embed this notice
      Paul Cantrell (inthehands@hachyderm.io)'s status on Sunday, 25-Feb-2024 10:28:36 JST Paul Cantrell Paul Cantrell
      in reply to
      • [BUG] Lunya :3

      @lunacb Unless I’m much mistaken, Typescript’s type checking is •all• static; types are erased to JS-land at runtime

      In conversation about a year ago permalink
    • Embed this notice
      [BUG] Lunya :3 (lunacb@wetdry.world)'s status on Sunday, 25-Feb-2024 10:28:37 JST [BUG] Lunya :3 [BUG] Lunya :3
      in reply to

      @inthehands typescript probably counts

      In conversation about a year ago permalink
    • Embed this notice
      aburka 🫣 (aburka@hachyderm.io)'s status on Sunday, 25-Feb-2024 11:01:00 JST aburka 🫣 aburka 🫣
      in reply to

      @inthehands python, if you annotate the types?

      In conversation about a year ago permalink
    • Embed this notice
      Paul Cantrell (inthehands@hachyderm.io)'s status on Sunday, 25-Feb-2024 12:14:48 JST Paul Cantrell Paul Cantrell
      in reply to
      • Josh Bruce
      • Gina Peter Banyard

      Aha! The answer to my question is “yes, a very widely used one.” And it’s…PHP:
      https://phpc.social/@Girgias/111989639358291491

      TIL! Thanks @Girgias and @itsjoshbruce.

      In conversation about a year ago permalink

      Attachments

      1. No result found on File_thumbnail lookup.
        Gina Peter Banyard (@Girgias@phpc.social)
        from Gina Peter Banyard
        @itsjoshbruce @inthehands@hachyderm.io @ramsey @Crell Yes, type declarations are optional and checked at runtime, opcache/the optimizer might remove the type checks if it can determine the type of the value is already valid (AFAIK this only happens for return values and return types) strict_types is weird, and I wouldn't say it overrides the type juggling behaviour, as it only affects the function context [1] and not everywhere type juggling happens. [1] Slide 65 of my talk: https://gpb.moe/doc/slides/PHP_Type_System_Talk_PHPUK2023.pdf

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.