From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12146 Path: news.gmane.org!.POSTED!not-for-mail From: Nicholas Wilson Newsgroups: gmane.linux.lib.musl.general Subject: WebAssembly (Wasm) support in Musl Date: Mon, 27 Nov 2017 19:11:44 +0000 Message-ID: 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 1511809922 8094 195.159.176.226 (27 Nov 2017 19:12:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 27 Nov 2017 19:12:02 +0000 (UTC) To: "musl@lists.openwall.com" Original-X-From: musl-return-12162-gllmg-musl=m.gmane.org@lists.openwall.com Mon Nov 27 20:11:59 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 1eJOor-0001Yv-CM for gllmg-musl@m.gmane.org; Mon, 27 Nov 2017 20:11:53 +0100 Original-Received: (qmail 29879 invoked by uid 550); 27 Nov 2017 19:11:58 -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 29845 invoked from network); 27 Nov 2017 19:11:57 -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=DIf0pEZHutKwRnG7p1Mej44xCL4aauxVKQIz0S8WTjw=; b=D8BSvSqVS5gqClpuLu5kpid2Wl2n3KvnVC2OM+1yjwUyF68Bgz3XK3vM8O4rkBwFzO4u4FqOlozKGZv9fDkZkAhYTaiDMjdLinQKP8YtSQ/+uRNsi8FHPjiCCay1Lnw3OABOjINULD75wM3DCsgfIn0snf2lzx8Vf6BrAC5kcZs= Thread-Topic: WebAssembly (Wasm) support in Musl Thread-Index: AQHTZ7KH5Q9Qxg2IOUuKSE06Q8Oq9A== 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;VI1PR0502MB3886;6:I4cadoCl185+lmXMU1v9/Q+BwTQce20xNl6sXmbc3zvo5ofXv+/ix7ffsqAWAtK8Ew0Pxe6+qXmhu01yYnduBk2wJVE9lH4PyfSsnCtpSAVbcQjjbSYJHxQP8kd/9rA+m+kpg97AemFvoQQg0D2zG365bjrXioS3Vl/YewjZbr/9XK0HIGsg2z4lnuEVi/neMzuZILmhwPlBRIdykFxFHi1vc0LABjqBfbBowDAPwT6XFA/GzzLPrWnxjoKxrnVO+Sgdkgq+eLfIrtIxcudmGnEK0CZ6xQEJT95AMC84bIP3M0aOz7BuSObH2fAQm9na3190fmG8VEPL8VDq5Dxi/K40h3XnDxLtTi1JCd2KIJ0=;5:egHlk63O8VzuEZOXnppU7PjICMs9QVGQ0HlKqNCwQgw6pLAzEdKL5u0H6xY4IkbsAUL0NPTYaTRBXlJ1d4f9/eN35ZHK3H9+eAAOe+ZiQC76G0KDmg7hyI+cGPN4Yp5j62EBYC07szDsJYbNUGBq6HsA/pg3qqtHwr0UxOayRbw=;24:9xlbvQCkL24fLYh0L4Y95GV5q2hSBhVYcKjq9sW3jMCA++xYqml8msw9ecPvFh1KlofdML9fdnJz+Z0HAYJqSJ0LOJrwR2TjodMsHMXXKZE=;7:xBpyX0sUdkATRkjiVqKw36Dk9R4qZA3Gyrx+B5HmBPZkAXaIZ2+7zJaYmqDFzwMkNx9TLI8JgFhQ87BamErRkmnKAdhA UHa/2YMBGWblKf0w/AjxpJ4UvsXYOweutyvi9wccYRz9lc7eQ7MUCjJYZHxIu6brGm/cxB5ex3YTpFS23U/vlDX1pBTq1oTwZb x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 37e9dfc2-b39c-49aa-8dd4-08d535cab30a x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(4534020)(4602075)(4603075)(4627115)(201702281549075)(2017052603258);SRVR:VI1PR0502MB3886; x-ms-traffictypediagnostic: VI1PR0502MB3886: authentication-results: spf=none (sender IP is ) smtp.mailfrom=nicholas.wilson@realvnc.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231022)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123555025)(2016111802025)(20161123560025)(20161123562025)(6072148)(6043046)(201708071742011);SRVR:VI1PR0502MB3886;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:VI1PR0502MB3886; x-forefront-prvs: 0504F29D72 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(366004)(376002)(346002)(199003)(189002)(86362001)(33656002)(7736002)(8676002)(102836003)(101416001)(6116002)(74316002)(8936002)(305945005)(97736004)(106356001)(2906002)(55016002)(478600001)(316002)(6436002)(189998001)(7696005)(25786009)(6506006)(14454004)(54356999)(3280700002)(50986999)(3660700001)(5660300001)(99286004)(53936002)(2351001)(2900100001)(2501003)(9686003)(81156014)(68736007)(81166006)(1730700003)(6916009)(105586002)(5640700003)(5250100002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0502MB3886;H:VI1PR0502MB3885.eurprd05.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX: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: 37e9dfc2-b39c-49aa-8dd4-08d535cab30a X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Nov 2017 19:11:44.5334 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 9ad766d3-c6a5-4458-8c58-244e7c118728 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0502MB3886 X-OriginatorOrg: realvnc.com Xref: news.gmane.org gmane.linux.lib.musl.general:12146 Archived-At: Hi, I'm interested in the plans for WebAssembly support in Musl. (Background: WebAssembly is a new portable Virtual Machine instruction set,= designed for use in browsers to run performance-critical code. It's suppor= ted now in all major browsers, and could be a significant part of the web p= latform in future.) The Emscripten project has previously used Musl internally, based on a fork= , and that's using a quite complicated compiler that performs many legacy p= re- and post-processing stages. (I have previously contributed to LLVM and = Emscripten, but I'm not affiliated with either project.) Recently, LLVM/Clang have been working on a brand new & clean compiler targ= et, designed to generate WebAssembly output directly in a clean way, withou= t Emscripten's existing convoluted intermediate steps. The native Clang sup= port for WebAssembly is nearing the point where it's ready to use - at whic= h point it will need a libc! I'd like to see that added to Musl natively, as part of the upstream releas= e. Is that something that you would be willing to accept patches for? I've got some patches ready, and apart from adding some new directories ("a= rch/wasm", "src/internal/wasm") there are hardly any changes at all needed = to the core code to get it all compiling for Wasm. All the best, Nick --- Nick Wilson RealVNC Ltd=