From owner-freebsd-questions@freebsd.org Fri Apr 17 11:02:52 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D3E512B3FBE for ; Fri, 17 Apr 2020 11:02:52 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 493Y8p56Z4z3DlT for ; Fri, 17 Apr 2020 11:02:50 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by mail-io1-xd30.google.com with SMTP id 19so1831927ioz.10 for ; Fri, 17 Apr 2020 04:02:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=e+7Rnlz373b5WymodEYkI+337r6+pw085kczrQBRtFo=; b=dOvBT2pqZVYPqsapJzYv1c+sWNyYHbCJyqxP/fNpjTVCiXXy5WF5+YNAMELb340hMG JFutdqOdfH7vmnorTmadVjjG4PVzxFsS7h2QouGVG7ayr4LQs/BNlcbYOe9MijWt6st6 SnueKo7zB19KYjJ5ia4yidE9FzgzhTQ4Ly/+Xm7QllmbGW8Q5lAPABt4UjWnlDAi/ItP MCY+UOkPnpljGbUBb5P6A9/ec9XeO/GK6bR8dIYFIYRUjGA7cf6QpIru+zMhMet61XGW GlgOwUYnsOLyxi/6u34+23f76bALrNzW7TYPWQ1yaSz8F7DwOO1vBneCy8dRd9HME0q+ A60A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=e+7Rnlz373b5WymodEYkI+337r6+pw085kczrQBRtFo=; b=JlIMUcHf1ooPLy02gGAk9sl2jwMTZkQEmb9uPzFSDkVzTYcCiK1d2TdjsFH087qyZB MPoN339/IBVy03hhffi5SobhRVBawd6uE0Tl/A118mqIVrgPDLkIv/bhGjO9Fr5ehZ+W oidAa6Q4RkeLUfTOIeYyLvOr/Yao2cWD7HwhKIjEPJbaTXON2dxZY0xvjutvtw0weuL0 KibOOMUjzAsi4phQ33c1tuN9wfHo7jzP+QeauR/prfWOrlClSpUZMbQvDW+TlGfUefTx Ywjq5H5z7gDX8R+lvkD2/1duF1Wfhf7XVtoWu8HMkRRclXgphtwnO0N+2OieGNg9/eZ6 E8Hg== X-Gm-Message-State: AGi0PuYb+FwcUG9rGXRxMMUIyqC2x93xuY+elcxJaBfc7LkDBSpiBEk3 XrcF7dVV4O2gFtKgXGdfdnENyVIi0CMuaSnWSbE= X-Google-Smtp-Source: APiQypL9liztQDaGG/KH6+dN3/FQpuAYkmVWr08r1ur8Gous6D2Sff549i49UhAI5KA2n0aEix/zwzCCLc94hbuy4uk= X-Received: by 2002:a05:6602:2f08:: with SMTP id q8mr2478623iow.103.1587121369580; Fri, 17 Apr 2020 04:02:49 -0700 (PDT) MIME-Version: 1.0 References: <3f1496d1f598c84b3871b630f161256e152aca75.camel@tom.com> In-Reply-To: <3f1496d1f598c84b3871b630f161256e152aca75.camel@tom.com> From: Aryeh Friedman Date: Fri, 17 Apr 2020 07:02:37 -0400 Message-ID: Subject: Re: freebsd should be rewritten based on microkernel architecture To: malaizhichun@tom.com Cc: FreeBSD Mailing List X-Rspamd-Queue-Id: 493Y8p56Z4z3DlT X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=dOvBT2pq; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of aryehfriedman@gmail.com designates 2607:f8b0:4864:20::d30 as permitted sender) smtp.mailfrom=aryehfriedman@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; URI_COUNT_ODD(1.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[tom.com]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-6.15), ipnet: 2607:f8b0::/32(-0.33), asn: 15169(-0.43), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[0.3.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Apr 2020 11:02:53 -0000 Before getting into detail in the inline comments it is important to note there is small but very important philosophical difference in the design of FreeBSD and Linux. FreeBSD follows the core concept of the Hippocratic Oath: "Do no harm" (aka "if it is not broken don't fix it!") and Linsucks follows the completely idiotic Facebook mantra of: "Iterate fast and break things" (aka Only an idiot would use it in a life critical application.) Note I use FreeBSD in a "soft" life critical application... i.e. the application will not directly kill anyone if it fails, but a failure could lead to critical life saving information not being passed in a timely manner since the data being processed, in real-time, is from medical equipment. In short both as a personal preference and for reasons listed about I would rather use Windows then use Linsucks if FreeBSD was not available in roughly its current form. On Fri, Apr 17, 2020 at 3:16 AM kindu smith wrote: > Hello, I am a user who likes UNIX-like systems. I have some experience > using GNU / Linux and some experience using freebsd. I like the > architecture of UNIX-like systems, but I am not proficient, so I just > want to mention some improvements. The idea of freebsd experience, > what is unscientific, welcome to advise. > What ever "improvements" are made to FreeBSD must IMO follow the do no harm thinking. Recently there has been a rash of linisms in the ports collection that completely violate the if it is not broken don't fix it aspect. > First of all, freebsd's architecture is very good, no need to invent > the wheel, but freebsd's installation interface and startup interface > are too old. It is time to make some changes. I think the freebsd with > microkernel will be more stable. The / boot / kernel directory is very > suitable for writing a small kernel, such as named core, and then > design some modules around and package it in this directory. Then, > under / boot, create some new directories such as EFI, API, ABI, model, > etc. to do EFI boot and application program interface, and user space > modules. I think this will be a perfect design. As for the design > pattern of the microkernel, you can refer to haiku (a clone of beos). > In addition, you need to redesign the installation interface and a > complete desktop environment, because this is very important for > novices. I don't think Gnome / kde / xfce or the like is used anymore. > It is designed for Linux, and the systemd it uses is not supported by > Freebsd. > I am writing this response in Firefox on XFCE on a FreeBSD 12.1 machine. So it is provably wrong that no one uses those desktops any more! If anything the GUI team needs to stop chasing after linsucks in every last possible way. I have experienced 5 waves of if is not broken don't fix issues in the last year and all 5 can be traced to the GUI team deciding to fix something that is not broken for no other reason (in their words) "to be more like how linux does it". The current one I am dealing with nothing that depends on QT will compile (including KDE) and the logging from cmake is to opaque to identify what the issue is. > The GPL agreement does not affect the use of freebsd code. Only > in this way can freebsd and linux form a differentiated competition, > can freebsd survive the huge wave of linux. > *NOT* according to GNU who says that all code linked against GPL (even if only calling it very indirectly) most be free beer (not just intellectual freedom). The BSD license allows small indedpend developers, like me, to actually make a living from selling our even when "linked" (as defined by GNU) against a BSD licensed product. A larger example is do you really think Apple (iOS and MacOS are based on BSD) in it's right mind would *EVER* sink billions (by now) into the R&D of something they where forced to give free to anyone who asked for it! (If you do think they should be forced to then you would likely be happier in N. Korea since it is the one remaining communist country). The BSD license is the perfect balance between intellectual freedom and the freedom to not starve unless you are subsidized by a large organization. -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org