News for hackers. Stuff that matters.
Re:Running unmodified Linux programs on Fuchsia by dlojudice on Thursday February 11, 2021 @01:58PM (#26105655)
Does anyone know how different a Fuchsia program is from a Linux program? OS APIs, memory model, security model, etc.
Re:Running unmodified Linux programs on Fuchsia by abarth on Thursday February 11, 2021 @02:56PM (#26106305)
The memory model is similar (a flat, linear address space). The OS APIs are quite different. Fuchsia's OS APIs are designed around an object-capability discipline. For example, almost all the syscalls take a zx_handle_t as their first argument, which means they are operations on an object the process has previously been granted access explicitly. In Linux, many OS APIs operate on the "ambient" environment rather than on a specific kernel object.

Disclosure: I work on Fuchsia.

Re:Running unmodified Linux programs on Fuchsia by CameronNemo on Thursday February 11, 2021 @02:00PM (#26105673)
If they do, they are likely a google engineer.
Re:Running unmodified Linux programs on Fuchsia by lima on Thursday February 11, 2021 @04:48PM (#26107808)
... aaand a Google engineer showed up to answer the question. The beauty of HN :)
Re:Running unmodified Linux programs on Fuchsia by CameronNemo on Thursday February 11, 2021 @07:39PM (#26109498)
It's all fun and games until I have to learn about Zircon to control the software running on hardware I "own".
Re:Running unmodified Linux programs on Fuchsia by PoignardAzur on Friday February 12, 2021 @07:26PM (#26120266)
Not really, you can be a microkernel hobbyist or just curious. I've had some idea of how Zirkon (Fuschia's microkernel) worked for about a year now, and I'm very much in the above categories.
Re:Running unmodified Linux programs on Fuchsia by CameronNemo on Saturday February 13, 2021 @06:59PM (#26128283)
You may be an atypical case. Are you working in anything microkernel related?
Re:Running unmodified Linux programs on Fuchsia by PoignardAzur on Thursday February 18, 2021 @08:14AM (#26179427)
No.
Re:Running unmodified Linux programs on Fuchsia by saagarjha on Thursday February 11, 2021 @03:07PM (#26106423)
It's fairly different; the OS is built on capabilities and exposing its system API via libc. By default applications get nothing. Resources are objects. IPC is done using a wire format called FIDL.
Re:Running unmodified Linux programs on Fuchsia by The_rationalist on Thursday February 11, 2021 @09:25PM (#26110126)
What does FIDl bring over d-bus or say mojo ?
Re:Running unmodified Linux programs on Fuchsia by tyingq on Thursday February 11, 2021 @02:02PM (#26105686)
Re:Running unmodified Linux programs on Fuchsia by linuxftw on Thursday February 11, 2021 @02:19PM (#26105873)
Fuchsia's not a real thing and it's never going to be. You don't have to worry about it, it's just a make-work project for some people at google to feel cool.
Re:Running unmodified Linux programs on Fuchsia by dane-pgp on Thursday February 11, 2021 @02:26PM (#26105955)
More likely, Google have done threat modelling of their entire business and worked out that if there was ever some legal problem with using Linux (like the infamous SCO case), the amount of economic damage it would do to them would be more than whatever resources they are spending on coming up with an alternative (which will hopefully never need to be used).

Also, just as Chrome gave them a seat at the table of web standardisation, and a chance to try new ideas that didn't have to go through Mozilla's approval process, having a kernel of their own allows them to influence the OS design space in ways that are more aligned to their business goals, and without needing Linus's approval.

Re:Running unmodified Linux programs on Fuchsia by linuxftw on Thursday February 11, 2021 @02:33PM (#26106028)
They can use BSD to build whatever they want if they're worried about the GPL.

I think that someone at google built fuschia for the sake of building it. Their core business is still search, that's all Android is. If they launch their own fuschia based handset, people are unlikely to switch, OEMs are unlikely to switch. It's just a failed concept.

Re:Running unmodified Linux programs on Fuchsia by cycloptic on Thursday February 11, 2021 @03:32PM (#26106720)
See some of the sibling comments, fuchsia is BSD-licensed and has a new design not based on any Unix.
Re:Running unmodified Linux programs on Fuchsia by linuxftw on Thursday February 11, 2021 @03:47PM (#26106919)
I'm talking about BSD the operating system concerning the OP's assertion of managing risk.

Last I checked (years ago), the userspace was implemented partially with musl, which reads

> 'musl, pronounced like the word "mussel", is an MIT-licensed implementation of the standard C library targetting the Linux syscall API,

Now, they're announcing running Linux programs on Fuchsia. Sure seems to me they're implementing a Unix-like system, even if their kernel was written from scratch.

The BSD world doesn't consider the userspace very separate from the kernel space, it's all part of a single system.

I would argue it's very much 'based on Unix' as soon as they start adding POSIX APIs. They're adding POSIX APIs because they work.

Re:Running unmodified Linux programs on Fuchsia by cycloptic on Thursday February 11, 2021 @04:09PM (#26107230)
They're using a fork of musl for compatibility that omits some things: https://fuchsia.dev/fuchsia-src/concepts/system/libc

>Fuchsia does not require that programs use libc's ABI. Programs are free to use their own libc, or to do without.

As has been said in other comments, it's not much different from Wine or Linux emulation in FreeBSD.

Re:Running unmodified Linux programs on Fuchsia by rvz on Thursday February 11, 2021 @03:12PM (#26106485)
I can take it from your username that you feel that Fuchsia is a threat to your beloved Linux Desktop to the point of having complete denial that the project is not real. It’s OK to be scared.

But I’m afraid you have to someday accept that some of Big Tech is ‘using’ Linux as a stop gap to either create their own proprietary subsystems around it or a completely new OS compatible with Android for which they pretend ‘they care’ about Linux.

They only care if it’s only for their interests as we can evidently see for Fuchsia Android support and WSL2 GPU hardware acceleration support.

Re:Running unmodified Linux programs on Fuchsia by est31 on Thursday February 11, 2021 @09:46PM (#26110217)
Google has been using Linux since before it was Google, since before it was cool to use Linux on the server. They pioneered it.
Re:Running unmodified Linux programs on Fuchsia by pjmlp on Friday February 12, 2021 @02:14AM (#26111371)
Nice history rewrite going on there.
Re:Running unmodified Linux programs on Fuchsia by linuxftw on Thursday February 11, 2021 @03:40PM (#26106828)
Just the opposite. I don't think Fuchsia is much of anything at all, let alone a threat.

As far as Big Tech, EEE is a legitimate concern.

As far as Google, they've demonstrated countless times they're not to be trusted. If someone does business with them, they are being foolish. Fortunately, outside of search and chrome, they're not very competent, so they're not much of a threat.

Re:Running unmodified Linux programs on Fuchsia by edgyquant on Thursday February 11, 2021 @08:45PM (#26109906)
I’m not sure how you can argue Fuchsia isn’t much of anything at all considering it’s mostly open source, you can see it’s development, and has came a long way since it was announced. You don’t want it to be much of anything but it is very real.
Re:Running unmodified Linux programs on Fuchsia by The_rationalist on Thursday February 11, 2021 @09:31PM (#26110151)
The amount of human resources dedicated toward improving Linux is order of magnitude higher than the amount of devs working of fuschia. That + the fact that Linux is actively improved since decades. It's quite obvious it's dead on arrival to anybody that allocate a few neurons to the economics question.
Re:Running unmodified Linux programs on Fuchsia by edgyquant on Thursday February 11, 2021 @09:35PM (#26110166)
People would have said the same thing about Linux compared to proprietary Unix or even early Windows in 1993-1994. Also Linux has millions of lines of legacy that people are having to maintain and work around while Fuchsia and their team gets to start from scratch with all the knowledge learned.

As to your ad hominem in the end there, perhaps you should learn to engage with a level of respect presented to you by your peers, as it is that kind of discourse does little but put on display how your harsh words are little more than a projection. A better type of conservation is expected here.

Re:Running unmodified Linux programs on Fuchsia by The_rationalist on Thursday February 11, 2021 @09:47PM (#26110227)
People would have said the same thing about Linux compared to proprietary Unix or even early Windows in 1993-1994. I don't think the comparison apply, linux had a unique value proposition at the time by being welcoming for opensource and free. Fuschia in comparison is redundant the same way BSDs are nowadays.

Also Linux has millions of lines of legacy that people are having to maintain and work around This claim lacks concrete evidence. The number of lines of code that are here for legacy reasons is unknown but 1 million since like an exageration. More importantly, most of legacy code is confined (does not affect non legacy code). Of course linux because of backwards compatibility has many suboptimalities and developer productivity could be higher without it, but this argument isn't enough to outweight the order of magnitude difference in human resources (and expertise (hardware makers))

with all the knowledge learned All? I think most of the fuschia devs had no significant role in the Linux kernel codebase, it's not like they had hired Greg kroah-hartman. But essentially, fuschia has not access to useful knowledge that is only encoded as comments in the Linux kernel. And the knowledge about past mistakes is lost unless you spend years reading the linux mailing lists and commit history.

Hence the economics point still stand, of course a world without my ad hominem would be better, but such an hypothetical world is precluded for as long as a community like HN is unable to see such striking NIH issues.

Re:Running unmodified Linux programs on Fuchsia by edgyquant on Thursday February 11, 2021 @10:14PM (#26110389)
Fuchsia isn’t redundant because the literal king of the internet is putting its weight behind it, so you’re economics point doesn’t just not stand, it’s almost a fallacy.

As for the point about Fuchsia not having knowledge because they didn’t personally build Linux, that isn’t my point. What I’m saying is that they can look at what Linux (and other OS’s) have done and skip over lots of pathways that have been proven over the last three decades to be dead ends or inefficient, while mimicking those systems and conventions that are proven to work. I’m sorry but you seem to be going out of your way to ignore the fact that Fuchsia is, whether or not you want it to be or think it should or will be.

Re:Running unmodified Linux programs on Fuchsia by CleverLikeAnOx on Thursday February 11, 2021 @06:40PM (#26109037)
What is an EEE? I am having trouble determining the meaning from context and I am having trouble searching for it.
Re:Running unmodified Linux programs on Fuchsia by saghm on Thursday February 11, 2021 @06:54PM (#26109178)
I believe they're referring to the phrase "embrace, extend, extinguish":

https://en.wikipedia.org/wiki/Embrace%2C_extend%2C_and_extin...

Re:Running unmodified Linux programs on Fuchsia by pitterpatter on Thursday February 11, 2021 @09:37PM (#26110176)
There are products already shipped that run fuchsia afaik.
Re:Running unmodified Linux programs on Fuchsia by IshKebab on Friday February 12, 2021 @03:49AM (#26111782)
I think you're thinking of Flutter, which powers the Nest Hub (or so I heard). I don't think they ship anything with Fuchsia yet.