16 votes

I learned Odin

8 comments

  1. Narry
    Link
    ThePrimagean talkkng about his recent dive into taking a game he had made in Lua and Love2D and recreating it in Odin and Raylib, and what he’s enjoyed about it. I’ve used Odin, I have Karl...

    ThePrimagean talkkng about his recent dive into taking a game he had made in Lua and Love2D and recreating it in Odin and Raylib, and what he’s enjoyed about it. I’ve used Odin, I have Karl Zylensky’s book about Odin, and I’ve certainly attempted to do some programming in Odin and found myself sledding off the language; but not for any reason that the language could be blamed, it’s more me and the way I think about things. I’ve always enjoyed it when he talks about code, but I’ve never really been terribly interested in his commentary about articles or programming languages, or stuff in the news.

    I find it interesting that he, like me, got into programming for the love of the thing. But I treat programming as a hobby, he took it pro. It’s interesting to see folks that actually enjoy programming discussing their views, and he discusses why he didn’t use AI for this project and just went back to basics and did it himself. There’s a lot there for such a short run time.

    4 votes
  2. [6]
    macleod
    Link
    Odin, out of all of the "small" languages. Is by far my favorite. It's influence from Wirtz (Pascal) is so incredible I love it. I've written a lot of small utilities in it, and a few of those...

    Odin, out of all of the "small" languages. Is by far my favorite. It's influence from Wirtz (Pascal) is so incredible I love it. I've written a lot of small utilities in it, and a few of those help manage security systems for one of the largest companies in the world (if you're American, you probably use this place once a week, and drive by multiple of them everyday).

    I tend to prefer writing in Odin far more than Zig. It just works. The lnaguage is done. But the built in standard library is always updating and getting better. It's wonderful. GingerBill (the creator) is by far one of the best modern language designers.

    3 votes
    1. [5]
      Narry
      Link Parent
      I’ve looked at Zig and gotten very confused by the syntax almost immediately, so I haven’t really tried to do anything in it. The only other language that I’ve really put forth effort into a...

      I’ve looked at Zig and gotten very confused by the syntax almost immediately, so I haven’t really tried to do anything in it. The only other language that I’ve really put forth effort into a project with besides Odin is Nim. I really did enjoy the way that Nim handles enumerations.

      Odin has a lot to recommend it, but I don’t fully understand strings and runes (which isn’t a big deal if you’re making say a graphics game) but the project I was working on was text heavy and I ended up getting much further with Nim than I did with Odin.

      For me, the sadness is that the most mature toolkits I see for writing terminal type programs (what I’d like to focus on) are all on Python. But if I ever do get off my ass and make something graphical, I’d like to use Odin and Raylib.

      2 votes
      1. [4]
        macleod
        Link Parent
        Strings, are just common strings, a string of characters or words, "like a sentence" and a rune is just their fancy way of saying char(acter), so basically just a single letter or number (get it?...

        Strings, are just common strings, a string of characters or words, "like a sentence" and a rune is just their fancy way of saying char(acter), so basically just a single letter or number (get it? rune?)

        2 votes
        1. [2]
          archevel
          Link Parent
          Is it similar to golangs rune concept? I.e. a rune is a unicode code point (commonly 1-4 bytes) vs 1 char is just another way of saying 1 byte.

          Is it similar to golangs rune concept? I.e. a rune is a unicode code point (commonly 1-4 bytes) vs 1 char is just another way of saying 1 byte.

          2 votes
        2. Narry
          Link Parent
          I appreciate the break-down. I suppose what I should say is that Unicode is where I trip up, and reading from the terminal is an especially confusing proposition because they seem to have changed...

          I appreciate the break-down. I suppose what I should say is that Unicode is where I trip up, and reading from the terminal is an especially confusing proposition because they seem to have changed it to use the core:bufio library but the documentation is still sparse. I'm naught but a humble hobby programmer, and Odin seems like it's for folks that are more educated about such things than I.

          1 vote
  3. glesica
    Link
    I was just thinking about rewriting a small game I've been working on in Odin. I originally used the Go Raylib bindings, but the browser story from there is a little dicey, whereas it's apparently...

    I was just thinking about rewriting a small game I've been working on in Odin. I originally used the Go Raylib bindings, but the browser story from there is a little dicey, whereas it's apparently first class if you use Odin.

    2 votes