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
hkaiser has joined #ste||ar
hkaiser has quit [Ping timeout: 246 seconds]
hkaiser has joined #ste||ar
K-ballo has quit [Quit: K-ballo]
hkaiser has quit [Ping timeout: 264 seconds]
tufei__ has joined #ste||ar
tufei_ has quit [Remote host closed the connection]
hkaiser has joined #ste||ar
tufei_ has joined #ste||ar
tufei__ has quit [Ping timeout: 240 seconds]
srinivasyadav18[ has joined #ste||ar
Yorlik has joined #ste||ar
Yorlik has quit [Read error: Connection reset by peer]
hkaiser has quit [Ping timeout: 260 seconds]
hkaiser has joined #ste||ar
<gnikunj[m]> hkaiser gonidelis ^^
<hkaiser> gnikunj[m]: yes, and you can use static_cast, btw
<hkaiser> you have to explicitly construct and destruct user_type instances in the memory region, however
<gnikunj[m]> static_cast gives me a compilation error saying: static_cast from 'int *' to 'std::uint8_t *' (aka 'unsigned char *') is not allowed (user_type here is int). Yeah, I was just playing around with my own memory allocator so I'm explicitly constructing/destructing it.
<gnikunj[m]> hkaiser: AFAIK, static_cast from void* to any other type is possible. But otherwise, there are restrictions to what can be converted.
<hkaiser> ahh yes, it's a uint8_t, sure
<hkaiser> you should use the fun std::launder, then ;-)
<gonidelis[m]> hkaiser: smells like relocation
<gnikunj[m]> std::launder does guarantee same pointer location yes. But std::launder also assumes distinct lifetimes for the pointer that is passed in. How does that affect things?
<gnikunj[m]> hkaiser: Also, modern c++ design was a pleasant read. I'm about to finish it this weekend. Any other recommendations?
<hkaiser> gnikunj[m]: Alexandrescu's book?
<gnikunj[m]> hkaiser: yes
<hkaiser> nod, a bit oldish, but still ok
<gnikunj[m]> I converted his examples to modern c++ :P
<hkaiser> +1
<gnikunj[m]> Any other book that you liked reading and would recommend?
<hkaiser> gnikunj[m]: From Mathematics to Generic Programming, by Alexander A. Stepanov and Daniel E. Rose (ISBN 978-0321942043)
<gnikunj[m]> Will buy that next
<gnikunj[m]> How is elements of programming? (That yellow book)
<hkaiser> gnikunj[m]: if you're brave, then yes, eop is a must - but the fm2gp is an abridged version of it and simpler to read
<gnikunj[m]> I'll order EOP xD
<hkaiser> it's a free download, if that's ok
<gnikunj[m]> If I fail at the endeavor, I'll move to fm2gp
<gnikunj[m]> Thanks!
<hkaiser> ask questions early
<gnikunj[m]> I will ask them all here ;)
<hkaiser> gnikunj[m]: I also suggest to do the excercises and projects
<gnikunj[m]> hkaiser: that's the plan. I would've like if modern c++ design had those like the boost mpl book did.
<hkaiser> nod
K-ballo has joined #ste||ar
hkaiser has quit [Quit: Bye!]