Better HN
topnewbestaskshowjobs
Log inSign up

ashish_negi_

5 karma · joined Jan 18, 2019 (7y ago) · 5 submissions

Submissions

comment 4y ago · link · parent

if you write harder concurrent program in JS, single threaded event loop does not help. It still has also same concurrency problems. e.g. if there is shared global mutable state: a) in workflow 1 you have, do_some_work_on_global_state; do some IO; in IO callback, finish more do_some_work_on_global_state. b) in workflow 2 .. same like above work on global_state.

Now, in IO callback, you don't know if workflow 2 ran and have to handle all possible combinations of global_state above.

Replace global_state with common_state and problem still remains.

If you don't have common_state between multiple workflows, then it is not a hard concurrency problem and should be easy to do in all languages.

comment 4y ago · link · parent

@verdagon Can you please explain https://verdagon.dev/blog/generational-references comment that: "programs dereference less than they alias and dealias" ?

Does deference means accessing a field of object ? Does alias/dealias mean creating/destroying another variable reference ?

If answer of above is true, isn't programs deference more than alias/dealias ? i mean, in:

var alias = shared_ptr_of_some_object; for (int i = 0; i < 1000; ++i) { alias.foo += bar_fn(alias.baz) }

is just creating 1 alias but defrences 1k times and above looks like very typical code.

3.

Finding Tail Latency P99 Bottlenecks(whatcoolwelearnedtoday.blogspot.com ↗)

2 points · by ashish_negi_ · 6y ago · discuss

4.

Finding Tail Latency Bottlenecks(whatcoolwelearnedtoday.blogspot.com ↗)

1 points · by ashish_negi_ · 6y ago · discuss

comment 7y ago · link · parent

Cosmosdb is Microsoft multi model, multi master, geo database with five consistency levels for performance.

https://github.com/Azure/azure-cosmos-tla