2021-08-06 22:55
hkaiser changed the topic of #ste||ar to: STE||AR: Systems Technology, Emergent Parallelism, and Algorithm Research | stellar-group.org | HPX: A cure for performance impaired parallel applications | github.com/STEllAR-GROUP/hpx | This channel is logged: irclog.cct.lsu.edu
01:43
hkaiser has joined #ste||ar
02:17
K-ballo1 has joined #ste||ar
02:17
K-ballo has quit [Ping timeout: 268 seconds]
02:17
K-ballo1 is now known as K-ballo
02:55
hkaiser has quit [Quit: Bye!]
06:48
Yorlik has joined #ste||ar
08:47
K-ballo1 has joined #ste||ar
08:47
K-ballo has quit [Ping timeout: 252 seconds]
08:47
K-ballo1 is now known as K-ballo
12:18
hkaiser has joined #ste||ar
13:48
K-ballo1 has joined #ste||ar
13:49
K-ballo has quit [Ping timeout: 268 seconds]
13:49
K-ballo1 is now known as K-ballo
18:19
K-ballo1 has joined #ste||ar
18:20
K-ballo has quit [Ping timeout: 256 seconds]
18:20
K-ballo1 is now known as K-ballo
20:21
<
hkaiser >
it evaluates to front<As..., Ty>
20:21
<
hkaiser >
i.e. if sizeof...(As) == 0 it evaluate to front<As...>, otherwise to Ty
20:22
<
hkaiser >
satacker[m]: ^^
20:22
<
satacker[m] >
got it, thanks
20:22
<
hkaiser >
since it requires sizeof...(As) <= 1, it evaluates to As or Ty
20:27
<
satacker[m] >
if number of types in pack <= 1 then evaluate to what exatly?
20:27
<
satacker[m] >
s/<=/\<=/, s/exatly/exactly/
20:29
<
satacker[m] >
cause front will always give the first
20:34
<
satacker[m] >
For example what does `single_or<void>` evaluate to?
21:40
<
hkaiser >
satacker[m]: invoke<single_or<T1>> eavluates to T1, invoke<single_or<T1>, T2> evaluates to T2
21:43
<
satacker[m] >
So it’s just used to make it callable?
21:44
<
hkaiser >
making what callable?
21:45
<
satacker[m] >
Composing a function whose result on invoke is T1
21:45
<
hkaiser >
the runtime equivalent is the pair of functions: T1 single_or(T1 t1) { return t1; } and T2 single_or(T1, T2 t2) { return t2; }
21:45
<
hkaiser >
the result is T1 if T2 is not given
21:47
<
satacker[m] >
Okay, thanks, got it but not convinced why it’s used in that specific template argument, will think over and let you know
21:48
<
hkaiser >
satacker[m]: I don't know where it's used so I can't tell
21:51
<
hkaiser >
ok, makes sense
21:52
<
hkaiser >
elegant solution, actually ;-)
22:01
<
satacker[m] >
Let me think over this, will let you know if i am able to figure it out, going to sleep now
23:28
diehlpk_work has quit [Remote host closed the connection]