ianmackenzie / ianmackenzie/opensolid

Try generating Dart bindings

Open
#71 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
18
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Will have to figure out a nice way to implement operators, probably something like:

- `+` and `-` are always for two values of the same type
- `*` and `/` always take a plain `double` argument?
- `a.times(b)` means `b` is unitless, `a.product(b)` means `b` has the same units as `a`?
- `a.dot(b)`, `a.cross(b)` mean `b` is a unitless vector?
- can use `componentIn` for dot product with direction, or convert a direction to a unit vector
- `~/` and `%` for `Quantity` div/mod

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the operator questions listed in the issue and the existing approach to generated bindings. Determine how the proposed Dart operators should map to the listed quantity and vector operations. Done means the Dart binding approach and operator behavior are specified well enough to implement.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.