I don’t need something practical. I just need something fun to keep me motivated.

  • cerement@slrpnk.net
    link
    fedilink
    arrow-up
    7
    ·
    7 days ago

    take a look at one of the “fantasy consoles”, can do quick scripts and see results immediately:

    • TIC-80 – primarily uses Lua but they’ve added in support for Ruby, JS, Moon, Fennel, Scheme, Squirrel, Wren, WASM, Janet, and Python as well
    • uxn – virtual machine using uxntal, a kind of Forth/assembly hybrid

    for an actual language, don’t discount Lua – simple, fast, tiny – “real programmers” like to ridicule it, and yet it keeps turning up everywhere from video game scripting to text editor configuration to databases to web servers

    • Learn X in Y Minutes – a good introduction to a lot of languages, gives you a good idea of their look-and-feel
    • Rosetta Code – LOTS of languages with LOTS of code examples
    • orclev@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      7 days ago

      Lua to me is the language JavaScript wishes it was. It’s super minimal and actually designed reasonably well. It knows what it is and isn’t trying to be something else. I wouldn’t want to try to write an entire app in it, but for a scripting language embedded in something else there’s not a lot of languages I’d rate higher.

      • ageedizzle@piefed.caOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        6 days ago

        This might sound silly but why would you not want to write an app with it? Like, what are its limitations? I know very little about Lua

        • orclev@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          6 days ago

          Lack of advanced features like generics and a weak type system (although still better than JavaScripts type system). Its library ecosystem is also pretty anemic because it’s generally assumed if you’re writing Lua it’s as part of a script embedded in something else and most of those won’t let you pull in random Lua libraries. There are stand alone Lua interpreters that let you run Lua on its own but most people writing Lua code aren’t using them and so the community to develop a rich library ecosystem isn’t really there like it is in most other languages.