News for hackers. Stuff that matters.
Re:Proposal: Add bare metal support to Go by jeroenhd on Wednesday May 07, 2025 @04:24PM (#43920224)
The method for printing uses an Intel UART driver to print characters. AFAIK, the standard low level UART generally only does single character transfers unless you write a (relatively) complex driver.

Rendering per string is better per string, but I'm not so sure how bad the difference is when it comes to UART but I doubt the system has enough throughput for the first implementation to matter.

Re:Proposal: Add bare metal support to Go by 90s_dev on Wednesday May 07, 2025 @04:51PM (#43920440)
I wonder if this is related to that bare metal bios os post from a week or so ago. I asked the author why he used tty asm calls to print instead of calling int 10 directly and he said it was more efficient, but for different reasons.

https://news.ycombinator.com/item?id=43873822

Re:Proposal: Add bare metal support to Go by Someone on Thursday May 08, 2025 @01:44AM (#43923387)
> The method for printing uses an Intel UART driver to print characters

The spec (rightfully) says “(e.g. serial console)”, not “Intel UART driver”.

You cannot know what bare metal you’re running on. On some hardware it could be sending data out over Bluetooth, USB or WiFi because that’s the only connection to the outside world.