♻️ core dense adapter 제거#18
Merged
Merged
Conversation
This was referenced Apr 24, 2026
Collaborator
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Apr 24, 2026
Collaborator
Author
Merge activity
|
271e25d to
852c232
Compare
mingi3314
added a commit
that referenced
this pull request
Apr 27, 2026
## 요약 - 이 PR은 `#18` 위에 쌓인 stacked PR입니다. 리뷰는 `core-remove-dense-adapters` 대비로 봐주시면 됩니다. - `core`에 남아 있던 마지막 dense public indicator API를 nullable 입력 계약으로 전환해, 공개 surface 기준 nullable 마이그레이션을 마무리합니다. - rolling extrema helper까지 같은 규칙으로 정리해서, 이제 `core`의 공개 API에는 `&[f64]` 기반 indicator entrypoint가 남지 않도록 맞춥니다. ## 변경 사항 - `mom`, `roc`, `psl`, `cci`, `mfi`를 nullable 입력 기준으로 전환합니다. - `aroon`, `aroonosc`, `willr`, `pchan`, `stochf`, `stochs`, `ichimoku`를 nullable extrema/window semantics에 맞게 전환합니다. - `core/src/utils.rs`의 `rolling_max_min`, `rolling_argmax_argmin`, `rolling_midpoint`를 full valid window를 요구하는 nullable helper로 정리합니다. - `stochrsi` 경로를 새 nullable extrema helper에 맞게 정리합니다. - 공개 surface에서 역할이 끝난 dense utility 흔적을 숨기고, 마지막 test-only dense helper는 테스트 내부 인라인으로 정리합니다. ## 리뷰 포인트 - rolling extrema 계열이 gap이 포함된 window를 valid 값으로 취급하지 않는지 - lag/pairwise 기반 indicator가 series를 압축하지 않고 aligned output을 유지하는지 - 이번 PR 이후 `core` 공개 API에 `&[f64]` 기반 indicator가 더 이상 남지 않는지 - `stoch*`, `aroon*`, `ichimoku`, `cci`, `mfi`가 대표적인 확인 포인트입니다. ## 범위 외 - `plugin/polars` nullable adapter 마이그레이션은 여전히 후속 작업입니다. - 이번 PR은 `core` 공개 API와 helper semantics 정리에 집중하며, 별도의 성능 최적화 패스는 포함하지 않습니다. ## 테스트 계획 - [x] `cargo fmt --package techr-core --check` - [x] `cargo test -p techr-core` - [x] `rg '^pub fn .*\\[f64\\]' core/src` 결과 없음 확인
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

요약
#17위에 쌓인 stacked PR입니다. 리뷰는core-nullable-composites대비로 봐주시면 됩니다.ema_dense,rsi_dense를 제거하고, 마지막 adapter 의존 indicator를 직접 nullable 입력 계약으로 전환합니다.변경 사항
erbull,erbear,cv,stochrsi를&[Option<f64>]입력 기준으로 전환합니다.ema,rsi같은 nullable 본체를 직접 사용하도록 정리합니다.ema_dense,rsi_dense를 제거합니다.리뷰 포인트
EMA/RSI기반 파생 지표가 gap 이후 조기 emission 없이 기존 contract를 그대로 따르는지core내부에_denseadapter가 더 이상 남지 않는지범위 외
#19에서 다룹니다.plugin/polarsnullable adapter 마이그레이션은 이번 stack 범위 밖입니다.테스트 계획
cargo fmt --package techr-core --checkcargo test -p techr-core