mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Ariadne Conill <ariadne@dereferenced.org>
To: musl@lists.openwall.com
Subject: Re: [musl] Advocating musl to in windows subsystem and OS X
Date: Fri, 12 Jun 2020 13:25:34 -0600	[thread overview]
Message-ID: <2268137.trlylqD8t3@localhost> (raw)
In-Reply-To: <e391984d-a6a4-6941-715e-eb7bf389beda@gentoo.org>

On Friday, June 12, 2020 1:05:02 PM MDT Luca Barbato wrote:
> On 12/06/2020 19:37, Rich Felker wrote:
> > On Fri, Jun 12, 2020 at 06:56:28PM +0200, Brian Peregrine wrote:
> >> Hey all,
> >> 
> >> after thinking about my previous post (Advocating musl to the chromium
> >> OS developers ), it struck me that both Microsoft and Apple use some
> >> sort of libc too (Microsoft has the "subsystem for linux" on windows
> >> 10 now, and Apple's OS X is based on linux too -I think it was based
> >> on the "Darwin" linux distro.
> > 
> > No, OSX is in some sense a BSD fork, but with major architectural
> > changes, and has nothing to do with Linux. Their libc is a BSD one
> > (FreeBSD I think) with tons of gratuitous changes made that did little
> > but intentionally break things, basically for NIH purposes/justifying
> > the existence of the project. (This is much like Google's Fuchsia fork
> > of musl.)
> > 
> > musl does not run on OSX and while all of the pure-library code and
> > stdio code could in principle be used, actually making "musl for OSX"
> > would be a large project that doesn't make sense. What would make much
> > more sense is either reusing code or making corresponding improvements
> > based on things that are better in musl.
> > 
> >> Microsoft probably uses glibc (as the subsystem seems to be
> >> canonical-made and they use glibc in ubuntu), for os x, I'm not sure
> >> what is being used.
> >> See https://itsfoss.com/install-bash-on-windows/
> >> https://www.makeuseof.com/tag/microsoft-linux-distros-windows-10/
> >> https://news.ycombinator.com/item?id=3601092
> >> 
> >> In either case, Rich, perhaps you can propose to both that they use
> >> musl,
> > 
> > In some sense WSL doesn't "use" any libc; it's a thin syscall
> > emulation layer (WSL1) or near-full-linux-vm (WSL2) that's supposed to
> > be able to run any Linux userspace. My understanding is that they ship
> > some glibc-based distro, and I don't see that being viable for them to
> > change because they're supporting whatever users have built on it, but
> > anyone's free to use whatever they prefer.
> > 
> > On a higher level, I don't really want anyone shipping musl in places
> > where the end user who receives it doesn't intend to use musl, for
> > much the same reason that I don't like it when distros ship systemd to
> > folks who don't intend to use systemd. It leads to gratuitous
> > complaints from people who are unhappy that it's different from what
> > they expect, and keep asking for changes to make it more glibc-like.
> > I'd much rather seek out a user base that *wants* what's different
> > about musl rather than "puts up with" what's different about musl.
> 
> https://www.microsoft.com/en-us/p/alpine-wsl/9p804crf0395#activetab=pivot:ov
> erviewtab
> 
> This seems available.

It is also not supported at all by Alpine team itself, and apk-tools 3 will 
break with WSL1 due to the way the new database code uses mmap access.

In other words, if it breaks, you get to keep both pieces.

Ariadne



  reply	other threads:[~2020-06-12 19:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-12 16:56 Brian Peregrine
2020-06-12 17:37 ` Rich Felker
2020-06-12 19:05   ` Luca Barbato
2020-06-12 19:25     ` Ariadne Conill [this message]
2020-06-12 19:38       ` Szabolcs Nagy
2020-06-12 19:08   ` Dmitry Samersoff
2020-06-12 19:24     ` Ariadne Conill
2020-06-14 19:17 ` Markus Wichmann
2020-06-14 20:43   ` [musl] RE: [EXTERNAL] " John Starks
2020-06-15 23:30     ` Rich Felker
2020-06-15 23:59 ` Jeffrey Walton
2020-06-16  0:11 John Starks

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2268137.trlylqD8t3@localhost \
    --to=ariadne@dereferenced.org \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).