You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most TinyGo packages and tools could be usable by other Go projects if only they were designed for this.
device package is a TinyGo stdlib and prevents other projects from using TinyGo packages like the pio package: Support for wifi embeddedgo/pico#1
volatile similarly is a TinyGo stdlib. Planning a common package/design could make hardware packages reusable in the ecosystem
machine is notably THE hardware package. Since it makes use of both device, volatile and is used closely with the runtime package. That said, there is no reason it could not be importable if it were redesigned from the ground up.
This discussion is to put all these ideas on how to improve our ecosystem by packaging these HALs so that there is one unified embedded API that can be used across package and project boundaries i.e: Embedded Go, TamaGo and other projects.
As a thought provoker, the runtime package HAL is in the process of happening in upstream Go: golang/go#73608
If this issue gets accepted then we could even think of having packages that package runtime logic i.e: tinygo-org/schedulers and tinygo-org/gc
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Most TinyGo packages and tools could be usable by other Go projects if only they were designed for this.
devicepackage is a TinyGo stdlib and prevents other projects from using TinyGo packages like thepiopackage: Support for wifi embeddedgo/pico#1volatilesimilarly is a TinyGo stdlib. Planning a common package/design could make hardware packages reusable in the ecosystemmachineis notably THE hardware package. Since it makes use of bothdevice,volatileand is used closely with the runtime package. That said, there is no reason it could not be importable if it were redesigned from the ground up.This discussion is to put all these ideas on how to improve our ecosystem by packaging these HALs so that there is one unified embedded API that can be used across package and project boundaries i.e: Embedded Go, TamaGo and other projects.
As a thought provoker, the runtime package HAL is in the process of happening in upstream Go: golang/go#73608
If this issue gets accepted then we could even think of having packages that package runtime logic i.e:
tinygo-org/schedulersandtinygo-org/gcBeta Was this translation helpful? Give feedback.
All reactions