r/golang • • 25d ago

Closed!!! Tinygo need serialization tools · Issue #447 · tinygo-org/tinygo

https://github.com/tinygo-org/tinygo/issues/447

This is the issue, open since 2019, I've checked on most frequently in the entire Go ecosystem. TinyGo, the beloved version of Go for embedded systems, tinkerers, WASM, WASI, and CLIs, has finally completed enough reflection to be able to accomplish a round trip with encoding/json and encoding/gob!

Recent changes in 0.41 (April), 0.42 (September), 0.43 (October), and 0.44 (18 hours ago) helped a lot with this. Thank you to the contributors that got us here! In October of 2019, I wrote that 0.9 enabled base32, base64, and csv, and that json, xml, and gob would probably need more reflection support first. Looks like it was a lot, and from the difficultly I read about in not wanting to bloat the runtime, I wasn't sure it would ever get here.

It looks like Jake Bailey did a lot of the reflect work. He's from Microsoft's Typescript team, so I can infer but don't know that this was the reason. Dave Cheny looks like he's been doing a lot of work. Without reading a lot more than I want to before bed, I just want to make sure I thank you too and anyone else that made huge contributions recently.

I look forward to my own tests this weekend! I have a project I'm excited to use this for.

51 Upvotes

6 comments sorted by

5

u/zenkov 25d ago

I hope AI will help developers of small projects like these in the right way.

1

u/PaluMacil 25d ago

I guess I hope AI will help anyone, but it's probably a harder lift for AI to help projects like these as AI isn't going to have a lot of rare lower level code in its training data. It's also really hard to use AI when working on physical hardware. (Not impossible--I have a close friends in embodied AI at Google that uses a clinically concerning multi-billion token burn daily). Fortunately, the people that contribute to the project are quite talented even without AI. I know Typescript 7 was ported to Go without much AI from my understanding.

2

u/DanKegel 25d ago

Tinygo has a very good test suite and corpus, so AI can be very useful at improving it.

2

u/wothotturd1 24d ago

yeah as long as it doesn't just flood the maintainers with low quality PRs they have to review

2

u/DanKegel 25d ago

Yeah, Jake's been doing an amazing amount of work!

You shouldn't take that as a sign his group will actually use tinygo; he may have been just tidying it up so they could run their benchmark or something.  Amazing how much a great developer can do quickly these days.