May 27, 2017 General » Re: std.functional.memoize : thread local or __gshared memoization? | |||
|---|---|---|---|
| |||
Like volatile? Volatile doesn't work. Why would you want that? __gshared has purpose to... | |||
May 27, 2017 General » Re: std.functional.memoize : thread local or __gshared memoization? | |||
|---|---|---|---|
| |||
If you don't share data, you don't need to worry how to share... | |||
May 27, 2017 General » Re: std.functional.memoize : thread local or __gshared memoization? | |||
|---|---|---|---|
| |||
But this should fail since foo doesn't take shared? Why isn't it always... | |||
May 27, 2017 General » Re: std.functional.memoize : thread local or __gshared memoization? | |||
|---|---|---|---|
| |||
Nope. __gshared isn't even part of the type so it can't do that... | |||
May 27, 2017 General » Re: std.functional.memoize : thread local or __gshared memoization? | |||
|---|---|---|---|
| |||
Hm, I would think that using __gshared would not be affected by compiler improvements, since... | |||
May 27, 2017 General » Re: std.functional.memoize : thread local or __gshared memoization? | |||
|---|---|---|---|
| |||
Actually, not so much, because in D, most variables are _not_ shared across threads (unlike... | |||
May 27, 2017 General » Re: std.functional.memoize : thread local or __gshared memoization? | |||
|---|---|---|---|
| |||
People don't have to use shared, D supports old good "anything can be shared... | |||
May 26, 2017 General » Re: std.functional.memoize : thread local or __gshared memoization? | |||
|---|---|---|---|
| |||
I checked the source, and it's thread-local. (Specifically, it's declared as 'static'.) | |||
May 25, 2017 General » Re: std.functional.memoize : thread local or __gshared memoization? | |||
|---|---|---|---|
| |||
I think Pony uses a GC (also to collect dead threads/actors). But I have... | |||
May 25, 2017 General » Re: std.functional.memoize : thread local or __gshared memoization? | |||
|---|---|---|---|
| |||
https://www.youtube.com/watch?v=YIp-0V6YKfQ | |||
Copyright © 1999-2021 by the D Language Foundation