News for hackers. Stuff that matters.
Re:Show HN: A Go unikernel capable of running GUI programs by klysm on Monday April 13, 2020 @10:49PM (#22862300)
Repo is here: https://git.sr.ht/~eliasnaur/unik

Some key points from the article:

> Unik pretends to be a Linux kernel, implementing enough system calls to fool the Go runtime.

> The gui program is run with https://gioui.org/

I could see this being useful to write GUI apps that need to run on tiny hardware to reduce the footprint, but the real sweet spot for unikernels I think is backend services. Cool project though!

Re:Show HN: A Go unikernel capable of running GUI programs by pjmlp on Tuesday April 14, 2020 @03:59AM (#22863644)
Another alternative for bare metal Go is TamaGo, developed by F-Secure for their USB armory pen.

https://labs.f-secure.com/blog/tamago/

Re:Show HN: A Go unikernel capable of running GUI programs by eyberg on Tuesday April 14, 2020 @10:53AM (#22866734)
Also Nanos - https://github.com/nanovms/nanos for those who want to run go unikernels on gcloud || aws. (I'm involved in the project).
Re:Show HN: A Go unikernel capable of running GUI programs by pjmlp on Tuesday April 14, 2020 @02:04PM (#22869293)
Thanks for the heads up.
Re:Show HN: A Go unikernel capable of running GUI programs by Matt3o12_ on Tuesday April 14, 2020 @05:14AM (#22864017)
Wow super cool project and it's super impressive that you could do that with only 6400 logical lines of code (according to cloc) and without any dependencies (expect one for the gui part & material icons).

Can you explain how you implemented the GPU? What resources did you use?

Re:Show HN: A Go unikernel capable of running GUI programs by meddlepal on Tuesday April 14, 2020 @12:14AM (#22862688)
Absolutely terrible naming collision with another Go Unikernel project:

https://github.com/solo-io/unik

Re:Show HN: A Go unikernel capable of running GUI programs by TACIXAT on Tuesday April 14, 2020 @02:37AM (#22863282)
It is just a naming collision, not sure you need the superlative and adjective to point it out.
Re:Show HN: A Go unikernel capable of running GUI programs by Semaphor on Tuesday April 14, 2020 @04:05AM (#22863662)
isotope (the JS layout library) and isotope.js (the JS view library) are arguably a naming collision despite having slightly different names. I feel like two projects having exactly the same name can have a qualifier to their collision added.
Re:Show HN: A Go unikernel capable of running GUI programs by lainga on Tuesday April 14, 2020 @12:45AM (#22862832)
As is the idiomatic Go style
Re:Show HN: A Go unikernel capable of running GUI programs by xyproto on Tuesday April 14, 2020 @07:21AM (#22864673)
It's convention to try to avoid to use the same name as a different project of the same type, though.
Re:Show HN: A Go unikernel capable of running GUI programs by mapgrep on Tuesday April 14, 2020 @07:44AM (#22864762)
Parent is making a joke, since Go itself was a namespace collision, arguably:

https://en.wikipedia.org/wiki/Go!_(programming_language)#Con...

Re:Show HN: A Go unikernel capable of running GUI programs by eyberg on Tuesday April 14, 2020 @10:56AM (#22866768)
Yeh. Unik is more of a unikernel orchestrator, like OPS is, versus the actual kernel itself. For the go implementation it uses gorump which we sponsored and then retired years ago in favor of Nanos our new kernel.

The naming "collision" though is so bad it really feels like a case of squatting the seo though. Outside of Nanos, Unik is the very first thing you'll find when searching for go unikernels.

Re:Show HN: A Go unikernel capable of running GUI programs by gitgud on Tuesday April 14, 2020 @09:15AM (#22865490)
What's the use-case for this? Is it for limited hardware devices or Docker containers?...
Re:Show HN: A Go unikernel capable of running GUI programs by amscanne on Tuesday April 14, 2020 @02:18AM (#22863194)
Super cool!

One question: why a UEFI boot loader? QEMU and others have mechanisms that support direct loading of an ELF binary. Was the original thinking to support bare metal? (Or maybe it's still in the cards?)

Re:Show HN: A Go unikernel capable of running GUI programs by eliasnaur on Tuesday April 14, 2020 @02:53AM (#22863354)
It happened by accident. Originally I wanted to run on bare-metal, and thought UEFI would be a good starting point. THen I never got around to adding multiboot and similar support.
Re:Show HN: A Go unikernel capable of running GUI programs by cpach on Tuesday April 14, 2020 @05:17AM (#22864027)
Very cool!

Some thoughts:

Out of curiosity, did you do it for the hack value and learning or do you also see a practical use-case for this project?

Have you considered doing any demo videos/GIFs? Would be fun to see.

Re:Show HN: A Go unikernel capable of running GUI programs by jbverschoor on Tuesday April 14, 2020 @04:03AM (#22863658)
I was just looking for something similar last week. Cool work.
Re:Show HN: A Go unikernel capable of running GUI programs by nurettin on Tuesday April 14, 2020 @10:51AM (#22866713)
> GPU+mouse works, I ran out of time to implement a keyboard driver

Keyboard driver is usually the first and only thing I implement before getting demotivated and giving up.