News for hackers. Stuff that matters.
Re:Proposal: Add bare metal support to Go by ronsor on Wednesday May 07, 2025 @05:06PM (#43920566)
Arguably `printk(c byte)` should be `printck(c byte)`, and there should be a separate `printk(s []byte)` that handles an array of bytes.

If `printk` isn't implemented, then fall back to repeated calls of `printck`.

Re:Proposal: Add bare metal support to Go by lcarsip on Thursday May 08, 2025 @05:50AM (#43924657)
printk is the low level primitive for stdout printing and it's done this way as low level drivers generally only accept single characters.

There are upper level functions which simply takes a []byte and make fmt.Printf() work seamlessly and effectively when not printing on an UART that only takes a single character as output.

In TamaGo stdout is primarily used for debugging.