develooper Front page | perl.perl5.porters | Postings from February 2020

WebPerl patches for core

Thread Next
From:
Hauke D
Date:
February 10, 2020 16:13
Subject:
WebPerl patches for core
Message ID:
20200210161306.22839.qmail@lists-nntp.develooper.com
Hi everyone,

As some of you may know, a while back I ported Perl to WebAssembly using 
Emscripten (https://webperl.zero-g.net/, https://youtu.be/bT17TCMbsdc). 
This required me to make a few fairly small patches to the Perl core. 
The way I did this for now is by forking the perl5 repo on GitHub and 
applying my patches there (https://github.com/haukex/emperl5). I talked 
to Sawyer about this in Riga last year, and it would be great if I could 
start submitting some patches to get them into the core. Before I set up 
the pull requests, I just wanted to check with you on style issues etc., 
please let me know if you have any more suggestions:

1. All changes to the Perl core (which are pretty minor) will be guarded 
using "#ifdef __WEBPERL__", an environment variable "__WEBPERL__", or 
"$^O eq 'emscripten'".

2. I guess I would include "WebPerl" in all commit subject lines (?)

3. For now, I think I'd manage *adding* files specific to WebPerl in a 
separate branch on my own repository - unlike the above patches, that 
should be trivial to rebase/replay. These would be "/README.WebPerl", 
"hints/webperl.sh", "/webperl/", and "/ext/WebPerl/".

Thanks, Best,
-- Hauke D

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About