Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以把 progress bar API 做成像 python tqdm 一樣包在 loop iterator 上 #2

Closed
moshiba opened this issue Sep 25, 2019 · 4 comments
Labels
enhancement New feature or request

Comments

@moshiba
Copy link
Collaborator

moshiba commented Sep 25, 2019

除了原本的手動 update() 之外,若是能做成一個 iterator wrapper 應該是挺不錯的,
直接放在迴圈內就能預設綁定 max_num 跟迴圈大小,又不會失去手動調整的彈性

我想的是 python 上的 tqdm package 這樣的一個介面

@moshiba moshiba changed the title 可以把 progress bar API 做成像 可以把 progress bar API 做成像 python tqdm 一樣包在 loop iterator 上 Sep 25, 2019
@moshiba
Copy link
Collaborator Author

moshiba commented Sep 25, 2019

不過這個東西在 c++ 上實作若要保有簡單易用的介面,
在使用的時候可能要搭配 c++14 推出的 auto placeholder type specifier

@moshiba
Copy link
Collaborator Author

moshiba commented Sep 25, 2019

是說名叫 progress bar
他的 bar 卻總不 progress 有點不習慣
有沒有什麼實作規劃讓我來發個 PR 吧

@moshiba
Copy link
Collaborator Author

moshiba commented Sep 30, 2019

possible implementation demonstrated in the official tqdm c++ porting
(the project is pretty much dead now, the only feature implemented inside is this iterator wrapper)

@moshiba moshiba added the enhancement New feature or request label Sep 30, 2019
@moshiba
Copy link
Collaborator Author

moshiba commented Dec 6, 2019

我把 progress bar 的部分搬出去了,留下 logger 在 cpp-logger 裡面

@moshiba moshiba closed this as completed Dec 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant