TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Zeroperl: Sandboxing Perl with WebAssembly

68 pointsby ccakes3 months ago

11 comments

dang3 months ago
Since this is Part 1, we merged the comments from the Part 2 thread hither:<p><i>Get in loser. We&#x27;re rewinding the stack</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=43014070">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=43014070</a><p>Readers may want to look at both articles of course!
ncruces3 months ago
Oh I&#x27;m so interested in this.<p>I&#x27;ve wanted to use wazero to run my Exiftool [1] for quite a while. Just as I use wazero to sandbox dcraw [2].<p>But WASI Perl never materialized.<p>This may just be what I&#x27;m missing.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;ncruces&#x2F;go-exiftool">https:&#x2F;&#x2F;github.com&#x2F;ncruces&#x2F;go-exiftool</a><p>[2]: <a href="https:&#x2F;&#x2F;pkg.go.dev&#x2F;github.com&#x2F;ncruces&#x2F;rethinkraw@v0.10.7&#x2F;pkg&#x2F;dcraw" rel="nofollow">https:&#x2F;&#x2F;pkg.go.dev&#x2F;github.com&#x2F;ncruces&#x2F;rethinkraw@v0.10.7&#x2F;pkg...</a>
adolph3 months ago
Subhead is &quot;Sandboxing Perl with WebAssembly - Part 2.&quot;<p>The subhead sounds weird, but part 1 makes more sense and is pretty interesting. Perl has many modules to deal with file formats nobody has used since Perl&#x27;s prime. It isn&#x27;t totally clear to me if the goal is to compile the Perl interpreter into WASM or interpreter + modules. In any either case the goal is to re-use the original tools within new tooling.<p><i>I’m building a new startup and file metadata plays an important role. There are thousands of file formats, each format may have dozens of versions, and each stores metadata differently.</i><p><i>Our use-case also needs metadata to be present when a file is uploaded - extracting the data on our servers means we add considerable overhead to upload post-processing &amp; we lose data that is useful to customers.</i><p><i>So we need to extract metadata client-side and staple it to the upload. Herein begins a journey of self-inflicted pain and suffering.</i><p><i>ExifTool is written in Perl.</i><p><a href="https:&#x2F;&#x2F;andrews.substack.com&#x2F;p&#x2F;zeroperl-sandboxed-perl-with-webassembly" rel="nofollow">https:&#x2F;&#x2F;andrews.substack.com&#x2F;p&#x2F;zeroperl-sandboxed-perl-with-...</a>
评论 #43016062 未加载
ecmm3 months ago
Not sure if it is useful for your use-case, but at Wasmer we’ve been spending some time adding support for the eh proposal: <a href="https:&#x2F;&#x2F;github.com&#x2F;wasmerio&#x2F;wasmer&#x2F;pull&#x2F;5383">https:&#x2F;&#x2F;github.com&#x2F;wasmerio&#x2F;wasmer&#x2F;pull&#x2F;5383</a>
评论 #43022665 未加载
评论 #43025036 未加载
benatkin3 months ago
That&#x27;s really impressive. Like the author I am aware of the advantages&#x2F;drawbacks of emscripten and wasi-sdk. The author did well to look extensively into both of them. Here&#x27;s the repo. <a href="https:&#x2F;&#x2F;github.com&#x2F;uswriting&#x2F;zeroperl">https:&#x2F;&#x2F;github.com&#x2F;uswriting&#x2F;zeroperl</a><p>As increasingly is the case, a good starting point is the CI workflow: <a href="https:&#x2F;&#x2F;github.com&#x2F;uswriting&#x2F;zeroperl&#x2F;blob&#x2F;main&#x2F;.github&#x2F;workflows&#x2F;zeroperl.yml">https:&#x2F;&#x2F;github.com&#x2F;uswriting&#x2F;zeroperl&#x2F;blob&#x2F;main&#x2F;.github&#x2F;work...</a>
Animats3 months ago
setjmp&#x2F;longjmp in 2025? That&#x27;s kind of retro.
评论 #43019859 未加载
评论 #43018321 未加载
评论 #43027449 未加载
评论 #43020285 未加载
mdaniel3 months ago
The ongoing ... lively ... discussion about &quot;wasm all the things&quot; may interest this audience, too: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=43020684">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=43020684</a>
rurban3 months ago
&quot;percc&quot; just does not work?<p>He obviously he meant my perlcc, it is maintained for compatible perl versions and it works and is used in industry.
评论 #43022638 未加载
rurban3 months ago
This guy is just crazy. <a href="https:&#x2F;&#x2F;github.com&#x2F;libexif&#x2F;libexif">https:&#x2F;&#x2F;github.com&#x2F;libexif&#x2F;libexif</a> exists and is much easier to use than compiling perl to wasm, just to run the overly slow exiftool.
评论 #43022613 未加载
评论 #43022593 未加载
Gunax3 months ago
I do not understand this at all, but it looks cool.
hobs3 months ago
Honestly it seems like porting ExifTool would actually be easier than this nightmare.
评论 #43021854 未加载
评论 #43016325 未加载
评论 #43018827 未加载