From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12157 Path: news.gmane.org!.POSTED!not-for-mail From: Nicholas Wilson Newsgroups: gmane.linux.lib.musl.general Subject: Re: WebAssembly (Wasm) support in Musl Date: Tue, 28 Nov 2017 13:09:14 +0000 Message-ID: References: ,<20171128130301.GL15263@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1511874578 16169 195.159.176.226 (28 Nov 2017 13:09:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 28 Nov 2017 13:09:38 +0000 (UTC) To: "musl@lists.openwall.com" Original-X-From: musl-return-12173-gllmg-musl=m.gmane.org@lists.openwall.com Tue Nov 28 14:09:33 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1eJfdd-0003Ht-AM for gllmg-musl@m.gmane.org; Tue, 28 Nov 2017 14:09:25 +0100 Original-Received: (qmail 19976 invoked by uid 550); 28 Nov 2017 13:09:28 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 19958 invoked from network); 28 Nov 2017 13:09:27 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=realvnc.onmicrosoft.com; s=selector1-realvnc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=mCWKQ/Ow5E/evjZO4LW55zee3WNWc4g/2BaGsqxCsqY=; b=ARAE7/xrAaY9dontvpcNRAQwVjXYkv7/kaPYuKdNqmNxKzRl39TbrC0xCB0lehsjEkKoYM1le4IbLSaNIE/4z/q31KgroptNnOKtFeZgoqn66E6/rGbuAthcKrk1z8+ifUZ9fgORsqj0ZA6LRM8jWyoCx5LEyQZzOljIG5d2kLc= Thread-Topic: [musl] WebAssembly (Wasm) support in Musl Thread-Index: AQHTZ7KH5Q9Qxg2IOUuKSE06Q8Oq9KMpwwuAgAAAUbg= In-Reply-To: <20171128130301.GL15263@port70.net> Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2a02:390:a001:192:d6be:d9ff:fe9c:1892] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR0502MB3888;6:tK+LFoWnURjewquFtbKxl2+psX4nMr6uLU5VRvYb3GOw13Cg0130OVcQ46n5Pa5nMs9VVF+8TI26QnMiYQDx4ulyg2D5QDHBTNTTEkvWh2B2TZ2wmni38/6jt2ErGGkvYuzAuRpkceNYKpSh5cEuCpXhbdYupux/Od9eAqMRoYexpaJ6PHvNjlR9H4gLbGg0S4YFG+25DvVVqolfE4H/eyQXd3aFkbo638mal0O6xqXwrRFz6rzSH1yMc0hclBADSEO1qGFUk1QnNuaCJ+RGTUoY1yuCz10gCRu0iF4HuhjIauPYZAPSYaC+Zg+B4cWQmzp499k8pOWb83Oh+PPxRf/O+lcw2UU1hKaPPDKRG1s=;5:QaHXhWTNpo/yGufsnoaU8YQ9hXlb15FKzLd+ZiaNLPjx5JXzVa+MRVKDcQUY12MyA4pRK0PUvSem+gcI5byMpq9Rh3phYMWH3vqIlLPxXx9EEy9Snn4DhNj0UG9la6vjY5LT/9yA1ZZDPZemIzwMia2KGZXlP6SjNxfnMO5vJhE=;24:lr2UKPfP248QPvOCTbg2V2VRlJSsi6m7p7EvXbaE8sy3EH/MgQFeQfvohasvEEgYP8n3lKeIv26hZuh9iXgzcYEhrQA0sNXtlds9VaNazl4=;7:QQ03Lq1C5o4SKW72euO53s6UmKifJSXugF28HdW2dugO6MKJtVqegIWU3/C9sOdqSEGKO01UirSDEi5hUrGN5b+MWlqC Me17pK0x1L9eQnDKi0FV0i0tLV4wdQ73AkuhE1OacMspd4mRxKqhEsy/kRqFVCzYoVcOubySfCrYr6PgzTgzRyFudp9LMHDt0o x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 41b1f508-3f27-4dc3-93a6-08d536613946 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(4603075)(4627115)(201702281549075)(5600026)(4604075)(2017052603258);SRVR:VI1PR0502MB3888; x-ms-traffictypediagnostic: VI1PR0502MB3888: authentication-results: spf=none (sender IP is ) smtp.mailfrom=nicholas.wilson@realvnc.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(166708455590820); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231022)(93006095)(93001095)(6041248)(20161123560025)(20161123564025)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(2016111802025)(6043046)(6072148)(201708071742011);SRVR:VI1PR0502MB3888;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:VI1PR0502MB3888; x-forefront-prvs: 0505147DDB x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(366004)(346002)(376002)(51444003)(189002)(199003)(68736007)(2906002)(74316002)(2950100002)(966005)(25786009)(316002)(6916009)(6506006)(55016002)(2501003)(189998001)(3660700001)(14454004)(8936002)(7736002)(105586002)(305945005)(1730700003)(6436002)(106356001)(2900100001)(101416001)(102836003)(6116002)(5640700003)(81166006)(8676002)(81156014)(478600001)(2351001)(229853002)(54356999)(3280700002)(76176999)(50986999)(5660300001)(86362001)(6246003)(97736004)(33656002)(99286004)(53936002)(9686003)(7696005)(5250100002)(6306002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0502MB3888;H:VI1PR0502MB3885.eurprd05.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: realvnc.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM X-MS-Exchange-CrossTenant-Network-Message-Id: 41b1f508-3f27-4dc3-93a6-08d536613946 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Nov 2017 13:09:14.2041 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 9ad766d3-c6a5-4458-8c58-244e7c118728 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0502MB3888 X-OriginatorOrg: realvnc.com Xref: news.gmane.org gmane.linux.lib.musl.general:12157 Archived-At: > i thought there was already support for wasm somewhere, > at least there were some discussions on this list some > time ago.. with a quick search i could find > https://github.com/WebAssembly/musl > (and varius forks of it) That's a good question! (I think that particular github repo is a throwaway "experiment".) The thing that people are actually using currently (including my company) i= s Emscripten's fork of Musl, which doesn't support the "wasm" target direct= ly, but rather supports asm.js, a precursor to Wasm. Emscripten's fork play= s around with Musl the internals quite a bit, and contains a lot of "FIXME"= comments, so it's not really quite ready for pushing upstream to you yet. Given that asm.js is being replaced with wasm, I thought that a fresh start= would really be the way to go regarding getting wasm into upstream Musl. My patches are similar in spirit to what Emscripten has done, but only supp= ort wasm (rather than asm.js), and do so natively rather than via the emscr= ipten glue. With wasm, a lot less glue should be needed, since it's now a pretty "norma= l" Clang compiler again. Nick=