API for Buffer

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
julia
領域
api

調査の方向性

まず、issue で挙げられている TranscodingStream と Buffer の内部実装、特に data、markpos、bufferpos、marginpos を確認し、Automa がそれらにどのようにアクセスしているかを比較します。TranscodingStreams が、意図された Buffer へのアクセスを含む必要な状態をドキュメント化された API として公開し、Automa が内部実装を使用する必要がなくなれば、作業は完了です。

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

説明

I was taking with @nhz2 about how Automa (and presumably other packages) use internals from TranscodingStreams, and how it would be nice to make it stop doing that. However, TS was created by the same author as Automa, and the two packages' internals are entangled. So, for Automa to not rely on TS internals, TS needs to offer these things as API. In particular:

  • Access to the .data field of a TranscodingStream, either as a Vector{UInt8} or potentially Memory{UInt8} going forward
  • Get and set the .markpos and .bufferpos fields of the read Buffer of a stream
  • Get the .marginpos of the read Buffer of a stream

Ideally, the Buffer object can also be obtained so the user can manipulate the Buffer directly.

Another approach is for Automa to stop using TranscodingStreams, and instead use something like BufferedStreams.jl. However, I believe TranscodingStreams might have originally been implemented to support Automa.

主要言語
Julia
スター
90
フォーク
26
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

JuliaIO/TranscodingStreams.jl のほかの issue

JuliaIO/TranscodingStreams.jl の issue をすべて見る

似ている issue

Julia の issue をもっと見る

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

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