Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
noneback
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
noneback
2y ago
v0.1.2 released. I refactored and simplified APIs. I guess it is more coherent and easier to use than it used to be. https://pkg.go.dev/github.com/noneback/go-taskflow
2.
▲
by
noneback
2y ago
Yes. Data is attached to tasks via Go Native variable binding. Values are captured by task function once defined (closure). In some cases, You can change the value of the variable(like changing the value of ptr, rather than ptr itself) and
3.
▲
by
noneback
2y ago
I added a more realistic example, parallel_merge_sort, which demonstrates how to pass values and how to avoid a data race among tasks. https://github.com/noneback/go-taskflow/blob/main/examples/p...
4.
▲
by
noneback
2y ago
Good point. I will add some typically realistic scenario examples.
5.
▲
by
noneback
2y ago
Totally agree. Dependency handling is quite tricky in a changing Dynamic Graph.
6.
▲
by
noneback
2y ago
It just uses native go function closure to hold and pass data among tasks, and it requires users to consider the data race problem. Cuz in some cases, tasks are executed in parallel.
7.
▲
by
noneback
2y ago
Most credit to taskflow: https://github.com/taskflow/taskflow
8.
▲
by
noneback
2y ago
Visualizer and Profiler for graph-based task execution are crucial to improve user experience.
9.
▲
by
noneback
2y ago
That's why I decided to support static graphs in the first place. After all, in most cases, static graph programming is enough, and being a user-friendly really matters.
10.
▲
by
noneback
2y ago
Yep. Rendering dynamic graphs is complicated, cuz dependencies change all the time.
11.
▲
by
noneback
2y ago
Agree. lightweight embedded libs like go-taskflow are used in a much different way compared to distributed workflow systems. Coders should be aware of the pros and cons of those repos or systems.
12.
▲
by
noneback
2y ago
Not quite like although they may share some same concepts while using. go-taskflow is more like a lib or an embedded framework to organize task dependency and execute tasks in parallel rather than a platform.
13.
▲
by
noneback
2y ago
A taskflow-like General-purpose Task-parallel Programming Framework with an integrated visualizer and profiler for Go, inspired by taskflow-cpp, with Go's native capabilities and simplicity, suitable for complex dependency management i
14.
▲
Go-taskflow: A taskflow-like General-purpose Task-parallel Programming Framework
(github.com)
76 points
by
noneback
2y ago
|
22 comments
15.
▲
Show HN: Go-taskflow, A taskflow-like Golang DAG Task Execution
(github.com)
1 points
by
noneback
2y ago
|
0 comments