Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Technology
  3. A peek into a possible future of Python in the browser - Łukasz Langa

A peek into a possible future of Python in the browser - Łukasz Langa

Scheduled Pinned Locked Moved Technology
technology
13 Posts 11 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T [email protected]

    Please please please can we just use type safe languages.

    T This user is from outside of this forum
    T This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #4

    Agreed. Just the idea of finally replacing JS with something only to be another of those "dynamic" languages makes me want to puke.

    S 1 Reply Last reply
    0
    • R [email protected]

      I think if the idea is to replace js, it should be a superset language at the interpreter level. I.e. the interpreter can run js, but valid js wouldn't work with the compiler. It makes it a drop-in replacement without harming legacy

      P This user is from outside of this forum
      P This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #5

      WebAssembly is the target, not js, I believe.

      1 Reply Last reply
      0
      • T [email protected]

        Agreed. Just the idea of finally replacing JS with something only to be another of those "dynamic" languages makes me want to puke.

        S This user is from outside of this forum
        S This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #6

        Asking genuinely as someone who knows not much about this subject, is typescript not already an option? Isn’t it just type safe js that gets interpreted as js?

        S L 2 Replies Last reply
        0
        • S [email protected]

          Asking genuinely as someone who knows not much about this subject, is typescript not already an option? Isn’t it just type safe js that gets interpreted as js?

          S This user is from outside of this forum
          S This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #7

          Typescript doesn't run in browser. It gets translated to js by some build steps.

          L 1 Reply Last reply
          0
          • S [email protected]

            Typescript doesn't run in browser. It gets translated to js by some build steps.

            L This user is from outside of this forum
            L This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #8

            No, you can't if there's any semblance of a PR review process. Reject until it's type safe.

            1 Reply Last reply
            0
            • S [email protected]

              Asking genuinely as someone who knows not much about this subject, is typescript not already an option? Isn’t it just type safe js that gets interpreted as js?

              L This user is from outside of this forum
              L This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #9

              Yes, it is and it's great. 😎

              shortrounddev@lemmy.worldS 1 Reply Last reply
              0
              • E [email protected]
                This post did not contain any content.
                O This user is from outside of this forum
                O This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #10

                This isn't about replacing javascript, this compiles something that looks a bit like Python to C and then to WASM. Which browsers can run natively these days. But you can do that with any source language if there's a compiler for it, type safe or not. You can compile Rust to WASM too for example. So nothing's getting replaced, these are just additional tools for Web developers.

                1 Reply Last reply
                0
                • L [email protected]

                  Yes, it is and it's great. 😎

                  shortrounddev@lemmy.worldS This user is from outside of this forum
                  shortrounddev@lemmy.worldS This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #11

                  It's alright. I work with it every day and constantly wish it had RTTI

                  L 1 Reply Last reply
                  0
                  • E [email protected]
                    This post did not contain any content.
                    B This user is from outside of this forum
                    B This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #12

                    Very interesting.

                    1 Reply Last reply
                    0
                    • shortrounddev@lemmy.worldS [email protected]

                      It's alright. I work with it every day and constantly wish it had RTTI

                      L This user is from outside of this forum
                      L This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #13

                      Typia

                      1 Reply Last reply
                      0
                      • System shared this topic on
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups