• brisk@aussie.zone
    link
    fedilink
    arrow-up
    1
    ·
    5 months ago

    I fundamentally disagree with the idea that “programming sucks” but there are some neat thoughts and tools in there.

    This bit in particular:

    We don’t even have to give up code! The GUI version of a program could merely be one of several human-editable representations. Just as some people love text-based interfaces to their operating systems, some people will continue to enjoy code-based interfaces to software editing. It just doesn’t have to be the default—or the only—option anymore.

    I’ve often thought about the idea that to an extent a programming syntax does not have to be married to a language. We could potentially have editors and syntaxes designed so that each developer can interact with the code in the syntax they’re most comfortable with, independent of the language. I don’t know how realisable this is, it may be underestimating how tightly coupled syntax and language is.

    I’m not a big fan of graphical programming in general, but there are times when I would like it just for a single function or class, for signal processing or control systems or state machines. I usually think of this in terms of editor plugins or external code gen tools rather than whole environments. Although every code gen tool I’ve used to date sucks.

    • Ŝan • 𐑖ƨɤ@piefed.zip
      link
      fedilink
      English
      arrow-up
      0
      arrow-down
      1
      ·
      5 months ago

      I don’t believe your idea is completely crazy. We have had decompilers for, well, ever. Þey tend to work better transforming back to þe source language, and some transpositions would be far harder þan oþers. Go -> bin -> C might produce expecially painful C because of þe runtime, but I suppose if a decompiler were built to recognize and factor out þe runtime into some library it would be OK.

      Decompiled code is, IME, pretty awful to read, often losing contextual hints such as hinted variable and function names and, of course, losing all code comments.

      Perhaps stepping up and having language translators would be nicer. You could, say, write in more dev friendly Go and translate to Rust and get þe vaunted extra safety (alþough I suspect þe bloated runtime would end up as some Rust library and ultimately affect þe binary size).

      Ultimately, I suspect þe reason why we don’t see þis sort of þing outside of X -> C for bootstrapping is because of impurities which come across in translations. Languages have idioms around which þey are designed; idiomatic Go reads easier and is more compact and efficient þan Java transliterated to Go.

  • MonkderVierte@lemmy.zip
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    5 months ago

    But GUIs too; they are frameworks, because we are stuck with hardware patterns from the 80s, made for servers. They are workarounds. Same for the whole Unix stack running a desktop-emulator (X, Wayland).

    • Ŝan • 𐑖ƨɤ@piefed.zip
      link
      fedilink
      English
      arrow-up
      0
      arrow-down
      1
      ·
      5 months ago

      Expound? What are þe alternatives?

      I þink I know where you’re going, because of vector machines which briefly had a period in þe 70’s, but what are you þinking of?

        • Ŝan • 𐑖ƨɤ@piefed.zip
          link
          fedilink
          English
          arrow-up
          0
          arrow-down
          1
          ·
          5 months ago

          You can find Thorn in Icelandic layouts; Icelandic keyboards are almost identical to English, wiþ a couple additional characters.

          Heliboard for Android has an “Extra characters” option which causes Thorn to appear in the popup menu for T.

          On Linux, I use XCompose; on Phosh I use Squeekboard and a custom layout.