2
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> all right. if i&#39;m trying to implement &quot;putc&quot; by pulling fd_write out of preview1 and telling it to print a single char from a single iov , am I to your knowledge missing a simpler method?</p>
<p><span class="h-card" translate="no"><a href="https://frankwiles.social/@frank" class="u-url mention">@<span>frank</span></a></span> <span class="h-card" translate="no"><a href="https://mastodon.social/@dabeaz" class="u-url mention">@<span>dabeaz</span></a></span> i did it already and have forgotten what it was</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@mcc" class="u-url mention">@<span>mcc</span></a></span> the functions in preview1 were chosen based on something called &quot;cloudlibc&quot; / &quot;cloudabi&quot;</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@dabeaz" class="u-url mention">@<span>dabeaz</span></a></span> its a metaphor, kid. The guy is from mit. Probably doesn’t even know how to make a fist</p>
<p><span class="h-card" translate="no"><a href="https://with.iridium.ink/@artemis" class="u-url mention">@<span>artemis</span></a></span> this but unironically</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@mcc" class="u-url mention">@<span>mcc</span></a></span> there is preview2 (and preview3) but the latter two are component model based. component model is an additional layer of complexity on top of wasm, comparable with wasm itself in terms of the amount required to learn</p>
<p>Wasm question</p><p>I was given <a href="https://hachyderm.io/@unlambda/114582671790895240" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">hachyderm.io/@unlambda/1145826</span><span class="invisible">71790895240</span></a> as some example code for printing to stdout from inside wasmtime/WASI</p><p>It calls a function named &quot;fd_write&quot; taken from &quot;wasi_snapshot_preview1&quot;</p><p>&quot;wasi_snapshot_preview1&quot; does not Google well and one link <a href="https://github.com/WebAssembly/WASI/blob/main/legacy/preview1/docs.md" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/WebAssembly/WASI/bl</span><span class="invisible">ob/main/legacy/preview1/docs.md</span></a> seems to suggest this is deprecated. How were the functions in wasi_snapshot_preview1 chosen? Is there a wasi_snapshot_preview2 or whatever?</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@shriramk" class="u-url mention">@<span>shriramk</span></a></span> I haven&#39;t watched these videos and maybe you have, but just in case: seems relevant: <a href="https://www.youtube.com/playlist?list=PLl5qdV4C5xJdzOt8Y4pVk7gDSNuIzmMUx" target="_blank" rel="nofollow noopener noreferrer" translate="no"><span class="invisible">https://www.</span><span class="ellipsis">youtube.com/playlist?list=PLl5</span><span class="invisible">qdV4C5xJdzOt8Y4pVk7gDSNuIzmMUx</span></a> (RCB&#39;s IPL 2025 Auction Planning)</p>
<p><span class="h-card" translate="no"><a href="https://pleroma.envs.net/users/easrng" class="u-url mention">@<span>easrng</span></a></span> <span class="h-card" translate="no"><a href="https://mastodon.social/@mcc" class="u-url mention">@<span>mcc</span></a></span> <span class="h-card" translate="no"><a href="https://social.treehouse.systems/@rcombs" class="u-url mention">@<span>rcombs</span></a></span> yep looks reasonable to me!</p>