Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Config possibilities#106

eriknw started this conversation inIdeas
Discussion options

I want to brainstorm the possibilities and usefulness of introducing a runtime config system togrblas.

  • Allowexpr to be arguments so thatexpr.new() is not always required.
  • Allow e.g.expr.apply(op) to auto-computeexpr and return a new expression.
  • Show the value ofexpr.new() in_repr_html_ for expressions (I now think we should do this by default).
  • Allow common infix and prefix operations such asA + B and-A, which will return expressions.
    • What rules should these follow? Should there be configs to allow different rules?
    • What about in-place operations likeA += 1?

What other configurations might be useful?

Would we be comfortable usingdonfig for this?

CC@jim22k

You must be logged in to vote

Replies: 1 comment

Comment options

eriknw
Sep 13, 2021
Maintainer Author

Auto-compute option could be controlled by output type:

  • autocompute_scalar: auto-compute scalars (similar to what we had originally)
  • autocompute_vector: auto-compute vector results
  • autocompute_matrix: auto-compute matrix results

More possibilities:

  • infix_scalar_args: infix operations with scalar arguments.v + 1,A > 0, etc are all very clear and intuitive. Well, mostly. Scalars can probably return Scalars, whereas Vector and Matrix objects will return expressions.
    • What about in-place? WouldA += 1 turnA into an expression, or do we compute for in-place? Or, do we have another config for this?
  • inplace: enable common accumulations to be spelled with e.g.A += expr.
    • What doesA += B mean? If inplace means accumulation, then this implies outer join / ewise_mult behavior. Hmph.

In general, I don't like the idea of adding lots of configs to enable variations of spelling. I am in favor of exploring syntax that we may want to add. And, we may find that some syntax can be handy at times, so I'm open to the idea of adding configs. Fwiw, I think auto-compute is worth having a config for.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Ideas
Labels
None yet
1 participant
@eriknw

[8]ページ先頭

©2009-2025 Movatter.jp