frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Another lawsuit blames an AI company of complicity in a teenager's suicide

https://www.engadget.com/ai/another-lawsuit-blames-an-ai-company-of-complicity-in-a-teenagers-sui...
1•mikece•1m ago•0 comments

Tyler Robinson charged with aggravated murder, DNA found on gun trigger

https://apnews.com/article/charlie-kirk-tyler-robinson-court-death-penalty-f541df08a936e06497ee23...
1•donsupreme•2m ago•0 comments

Meta RayBan AR Glasses Shows Lumus Waveguide Structures in Leaked Video

https://kguttag.com/2025/09/16/meta-rayban-ar-glasses-shows-lumus-waveguide-structures-in-leaked-...
1•speckx•3m ago•0 comments

Metal Barrels Dumped Off the Coast of LA Are Encircled by Mysterious White Halos

https://www.smithsonianmag.com/smart-news/metal-barrels-dumped-off-the-coast-of-los-angeles-are-e...
1•timr•4m ago•0 comments

Show HN: SubKeep – Nested Labels for Google Keep (Chrome Extension)

https://chromewebstore.google.com/detail/subkeep/mhikglflelkigbdlaebmfoopkoejecic
1•skorudzhiev•4m ago•0 comments

Details Emerge on U.S.-China TikTok Deal

https://www.wsj.com/tech/details-emerge-on-u-s-china-tiktok-deal-594e009f
1•mfiguiere•4m ago•0 comments

'The bombing has been insane': Palestinians flee Israeli assault on Gaza City

https://www.bbc.com/news/articles/cly0qnnx5w5o
3•ciconia•5m ago•0 comments

Reverse engineering a flight spotting app

https://blog.jonlu.ca/posts/skycards
1•jonluca•5m ago•0 comments

Cereal Box Records Sound Horrible. They Still Look Incredible

https://www.nytimes.com/2025/09/15/arts/music/cereal-box-records.html
1•bookofjoe•5m ago•1 comments

Taste

https://www.moderndescartes.com/essays/taste/
1•brilee•9m ago•0 comments

Fetch streams are great, but not for measuring upload/download progress

https://jakearchibald.com/2025/fetch-streams-not-for-progress/
1•hebelehubele•9m ago•0 comments

Alex Karp Insists Palantir Doesn't Spy on Americans. Here's What He's Not Saying

https://theintercept.com/2025/09/12/palantir-spy-nsa-snowden-surveillance/
2•leotravis10•10m ago•0 comments

The Open Source Initiative's director departs: What it means for open AI

https://www.zdnet.com/article/the-open-source-initiatives-executive-director-departs-what-it-mean...
1•CrankyBear•12m ago•0 comments

National park to remove photo of enslaved man's scars

https://www.washingtonpost.com/climate-environment/2025/09/15/national-parks-slavery-information-...
2•shitter•12m ago•1 comments

Workday signs agreement to aquire Sana Labs

https://newsroom.workday.com/2025-09-16-Workday-Signs-Definitive-Agreement-to-Acquire-Sana
2•ida-silver•13m ago•0 comments

How to make the Framework Desktop run even quieter

https://noctua.at/en/how-to-make-the-framework-desktop-run-even-quieter
2•lwhsiao•16m ago•0 comments

AIDir – The first AI directory turns 3 today

https://aidir.wiki
2•mahsima•17m ago•1 comments

Millions turn to AI chatbots for spiritual guidance and confession

https://arstechnica.com/ai/2025/09/millions-turn-to-ai-chatbots-for-spiritual-guidance-and-confes...
1•quantified•18m ago•0 comments

Ask HN: Claude file creation/edit feature leading to worse coding performance?

2•arjunchint•19m ago•0 comments

Building a better LLM augmented Search Engine (Blog)

https://www.saipraneeth.in/ml/atreya
1•Sai_Praneeth•19m ago•0 comments

Transparency done right: Buttondown's OSS stack and donations

https://buttondown.com/open-source
2•mustaphah•20m ago•0 comments

Fastest Shoelace Knot

https://www.fieggen.com/shoelace/ianknot.htm
2•mhb•20m ago•0 comments

FM4NPP: A Scaling Foundation Model for Nuclear and Particle Physics

https://arxiv.org/abs/2508.14087
1•PaulHoule•21m ago•0 comments

A new report finds China's space program will soon equal that of the US

https://arstechnica.com/space/2025/09/a-new-report-finds-chinas-space-program-will-soon-equal-tha...
2•duxup•21m ago•1 comments

Pica Numbers

https://home.octetfont.com/blog/pica-number.html
1•speckx•23m ago•0 comments

Live Updates: Shai-Hulud, the Most Dangerous NPM Breach in History

https://www.koi.security/blog/shai-hulud-npm-supply-chain-attack-crowdstrike-tinycolor
17•chha•23m ago•1 comments

Ask HN: Startup with Small Children

2•IronyMan100•24m ago•1 comments

Mozilla's Lifeline Is Safe After Judge's Google Antitrust Ruling

https://news.itsfoss.com/mozilla-lifeline-is-safe/
1•ptrhvns•25m ago•0 comments

Japan to subsidize undersea cable vessels over serious national security concern

https://www.tomshardware.com/networking/japan-to-subsidize-undersea-cable-vessels-over-very-serio...
1•giuliomagnifico•25m ago•0 comments

Show HN: Quizquestions.org – A free library for quiz questions

https://www.quizquestions.org/
1•Salim99•27m ago•0 comments
Open in hackernews

Proposal: Add bare metal support to Go

https://github.com/golang/go/issues/73608
85•rbanffy•4mo ago

Comments

Someone•4mo ago
FTA:

  // printk emits a single 8-bit character to standard output
  //
  //go:linkname printk runtime.printk
  func printk(c byte)
So, printing “Hello, world!”, necessarily will have to make 13 calls to this function. I think I would have required a printk that prints an array of bytes. I expect that can be significantly faster on lots of hardware.

In contrast, there’s

  // getRandomData generates len(b) random bytes and writes them into b
  //
  //go:linkname getRandomData runtime.getRandomData
  func getRandomData(b []byte)
Here, they seem to acknowledge that it can be faster to make a single call.
jeroenhd•4mo ago
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.

90s_dev•4mo ago
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

Someone•4mo ago
> 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.

ronsor•4mo ago
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`.

lcarsip•4mo ago
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.

timewizard•4mo ago
> Here, they seem to acknowledge that it can be faster to make a single call.

It calls the internal Fill function to fill 4 bytes of the slice at a time. That calls the rng assembly stub function which uses 'rdrand' to get 32bits of random data. Which gets called len(b)/4 times.

I don't think they did it for speed but rather to be more idiomatic.

Anyways, OSDev has had a "Go Bare Bones" page for quite a while:

https://wiki.osdev.org/Go_Bare_Bones

jasonthorsness•4mo ago
We use 'scratch' containers for many of our Go applications, so they have no user-space stuff other than our application binary. It reduces exposure for security vulnerabilities. This proposal seems to be taking that approach to the extreme - not even a kernel. Super-interesting; I wonder if it could run on cloud VMs? How tiny could the image become?
jasonthorsness•4mo ago
Looks like Tamago targets multiple VM runtimes https://github.com/usbarmory/tamago?tab=readme-ov-file
veggieroll•4mo ago
How do you handle temp file space, timezone data, and other things that a minimal image provide?
kfreds•4mo ago
Temp file space: Use RAM, or talk to host storage over Virtio.

Timezone data etc: You would have to fetch that over the network, or from a metadata API such as the one Firecracker provides to VM guests.

fpoling•4mo ago
Services rarely need timezone done. So if one is OK with supporting only UTC, Go runtime works fine without any timezene data.

We use a minimal image to run in on AWS Nitro VM and it contains only kernel, init.d, the Go application file and TLS certificate roots with the root filesystem mounted over tmpfs.

Note that Nitro VM uses a custom kernel provided by AWS so the new proposal is not relevant for us. But if we could run Go directly in that VM, it will surely makes things faster and saves like 10% memory overhead. And it will also avoid OOM killer and few other bad unwanted interactions between Go runtime and Linux kernel memory management.

champtar•4mo ago
For timezones data go already has https://pkg.go.dev/time/tzdata
kfreds•4mo ago
> This proposal seems to be taking that approach to the extreme - not even a kernel.

To be fair, there is a kernel - the Go runtime. But since there is no privilege separation it classifies as a unikernel. Performance gains should be expected compared to a system where you have to copy data to/from guest VM kernel space to guest VM user space.

> I wonder if it could run on cloud VMs?

Yes. TamaGo currently runs in KVM guests with the following VMMs: Cloud Hypervisor, Firecracker microvm, QEMU microvm.

> How tiny could the image become?

Roughly the same size as your current Go binary. TamaGo doesn't add much.

ignoramous•4mo ago
> To be fair, there is a kernel - the Go runtime.

I like Anil Madhavapeddy's definition for such setups. A compiler that just refuses to stop:

  MirageOS is a system written in pure OCaml where not only do common network protocols and file systems and high-level things like web servers and web stacks can all be expressed in OCaml but the compiler just refuses to stop ... compiler, instead of stopping and generating a binary that you then run inside Linux or Windows, will continue to specialize the application that it is compiling and ... emit a full operating system that can just boot by itself.
https://signalsandthreads.com/what-is-an-operating-system / https://archive.vn/yLfkq
eyberg•4mo ago
Cloud vms are a main target for unikernels, however, as Russ mentions in one of the linked issues there actually is quite a lot of other code you need to include in your system depending on what you are deploying to.

For instance systems with arm64 might need UEFI or if you enable SEV now you need additional support for that which is why I'd agree with Russ's stance on this.

Every time someone asks us to provide support for a new cloud instance type (like a graviton 4 or azure's arm) we have to go in and sometimes provide a ton of new code to get it working.

kfreds•4mo ago
I assume you're referring to this[1]. I don't think it's necessary to bring all of that into the Go runtime itself, or ask the Go team to maintain it. It would be part of your application, and similar to a board support package.

TamaGo already supports UEFI on x86, and that too would be part of the BSP for your application, not something that would need to be upstreamed to Go proper. Same for AMD SEV SNP.

As for you (nanovms) supporting new instance types, wouldn't it be nice to do that work in Go? :)

Edit: I wonder how big the performance impact would be if you used TamaGo's virtio-net support instead of calling from Go into nanos.

advanderveer•4mo ago
I would be interested in this if it enabled deterministic simulation testing for the Go programming languages. There have been some efforts in this area but with little success.
rcarmo•4mo ago
I use TinyGo, and it does that job well. Not sure if it’s necessary to mainline it.
lcarsip•4mo ago
TinyGo targets an entirely different class of systems and is not something that can be upstream being a different compiler, see https://github.com/usbarmory/tamago/wiki/Frequently-Asked-Qu...