Document implementing new instructions and apis

Aperta
#252 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
c, javascript, ocaml, wasm

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C
Stelle
54
Fork
9
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di grain-lang/binaryen.ml

Tutte le issue di grain-lang/binaryen.ml

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.