Document implementing new instructions and apis

Đang mở
#252 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
c, javascript, ocaml, wasm

Hướng nghiên cứu

Start from the workflow steps in the issue and trace one instruction through src/binaryen-c.h, src/js/binaryen.js-post.js, the OCaml .ml and .mli bindings, and test/test.ml. Use the linked SIMD pull request as a worked example. Done means a written guide, in a location the maintainers choose, that a newcomer can follow to add one instruction end to end. The issue does not say where the guide should live or what format it should take, so ask in the discord first.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

documentation

We should properly document how to implement new instructions and api's and work with the bindings.

Currently, my workflow has been:

  • Find the instruction in src/binaryen-c.h
  • Find the instruction in src/js/binaryen.js-post.js (If it doesn't exist in both, we need downstream changes to binaryen)
  • Copy an existing instruction with similar requirements (parameter and return types)
  • Implement the c bindings
  • Implement the js bindings
  • Implement the ml OCaml binding.
  • Implement the mli OCaml interface
  • Add smoke tests in test/test.ml

Good example reference (SIMD implementation): https://github.com/grain-lang/binaryen.ml/pull/222

Feel free to ask for help in the grain discord in the binaryen-ml channel.

Ngôn ngữ chính
C
Star
54
Fork
9
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của grain-lang/binaryen.ml

Tất cả issue của grain-lang/binaryen.ml

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.