ruby / ruby/ruby.wasm

[FAQ] Is it possible to install simple gems? If not, how to simulate doing so?

オープン
#404 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Ruby
スター
875
フォーク
68
平均マージ
9日 5時間
マージ済み PR(30日)
1

説明

I suggest a new FAQ entry e. g. dealing with ruby gems via ruby.wasm.

Now, I assume right now this is not possible - that is ok. Please mention it in the FAQ.

But ... let's assume that some gems are simple.

Like a hello world gem:

class HelloWorld
  def initialize
  end
  def result?
    'Hello world!'
  end
end

So we can use the ruby.wasm .write() method onto result? (or any other
method name that is similar, this here is just an example).

Such code should work just fine. Just that it may be stored in a .gem file.

Is there a way to get support for that? In such a simple case we can probably
just embed the text (content of hello_world.rb) into the String that is evaluated,
so just File.read() should suffice. But I wonder whether there is some official
support for this via ruby.wasm. Many simple gems could be made to work
that way. (Of course other gems that are more complicated or require
Thread may not work, but perhaps in the future.)

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

既存の FAQ と、issue で説明されている ruby.wasm gem のサポートを確認してください。埋め込み Ruby ソースと File.read() を使用して単純な gem をインストールまたはシミュレートできるかを確認し、サポートされているアプローチ、制限事項、および HelloWorld のケースの例を文書化してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
ruby, wasm
領域
documentation
issue の種類
ドキュメント
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。