TinyGo 0.45.0

(github.com)

194 points | by iaaan 8 hours ago ago

20 comments

  • donatj an hour ago ago

    Very nice! I have really been enjoying TinyGo for a couple Pi Pico projects I've been toying with.

    Way saner than the C pico projects I've helped my friend work on.

    Maybe it's just me but I kind of wish there was more of a way to clearly differentiate a Go project from a Tiny Go project, like .tgo file extensions or like a "compiler tinygo" directive in go.mod or something.

    • K0IN 3 minutes ago ago

      Sorry, I did not use tiny go yet (it's on my bucket list for a long time), i thought it's compatible with go, why would you need a differentiation?

    • gen2brain an hour ago ago

      That is usually done with the build tags, for different OSes and arches, and TinyGo defines the tinygo build tag.

  • dofm 5 hours ago ago

    Part of my LLM-and-agentic-learning phase is giving up interpreted web dev languages and forcing myself to develop agentic skills by using a language I am less familiar with.

    I have some Go experience (a small utility used by some dozens of quite niche customers) and trivial experience of macOS development.

    So far my two projects have been Go/Gin/goose etc. — a web app — and a small desktop Swift app. But there's GUI stuff for Go and web stuff for Swift. (I could have written my mac app exactly in Golang because there's a package that does what I need)

    I had hoped I would find that one of these languages was clearly better than the other. Go is obviously better for the LLM, maybe a bit tiresome to see enormous reams of it for me. Swift is a little harder on the LLM (and it builds more slowly) but it's a bit easier on the eye; I've been very productive in it.

    Here, again, it will be hard to separate TinyGo and Embedded Swift.

    And there's WASM support for both.

    • shim__ 24 minutes ago ago

      Swift has no garbage collector(just reference counting) as opposed to Go, which should make it a better fit for microcontrollers, since the runtime is lighter

  • ghoul2 an hour ago ago

    awesome. I love tinygo - these days mainly to be able to 'dual serve' my go services as cloudflare workers via the tinygo wasm target. works beautifully.

  • KingOfCoders 7 hours ago ago

    I'm using it to generate WASM, sadly Go with the GC/goroutine infra is not as good a WASM language than e.g. Rust which is a very simple 'binary', TinyGo works well though.

  • shit_game 5 hours ago ago

    TinyGo has been my favorite means of using my Raspi Picos so far. My only gripe so far is that maps are nigh unusable due to their slowness, but this is generally simple enough to work around (at the expense of performance). I'm sure there are still more rough edges, but I don't think I'm experienced enough with embedded software to identify them.

  • pjmlp 5 hours ago ago

    Lots of goodies in the release.

    Congratulations to the team.

    Are some of the improvements coming from TamaGo? I know there was supposed to exist a collaboration with other Go toolchains, if I remember correctly a issue that I saw fly by in the past.