Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 2019 15:06

    ldionne on gh-pages

    Update benchmarks to 490dbf6 fo… (compare)

  • Jan 24 2019 07:47

    ldionne on gh-pages

    Update benchmarks to 490dbf6 fo… (compare)

  • Jan 23 2019 02:04
    pthom commented #432
  • Jan 18 2019 12:46

    ldionne on gh-pages

    Update benchmarks to 490dbf6 fo… (compare)

  • Jan 16 2019 22:27
    ricejasonf commented #434
  • Jan 05 2019 06:22
    ricejasonf commented #330
  • Jan 03 2019 11:40

    ldionne on gh-pages

    Update benchmarks to 490dbf6 fo… (compare)

  • Jan 02 2019 00:33
    ricejasonf closed #434
  • Jan 02 2019 00:33
    ricejasonf commented #434
  • Jan 02 2019 00:04
    ricejasonf opened #434
  • Dec 27 2018 13:11

    ldionne on gh-pages

    Update benchmarks to 490dbf6 fo… (compare)

  • Dec 22 2018 11:56
    pthom commented #432
  • Dec 22 2018 11:55
    pthom commented #432
  • Dec 21 2018 15:48
    pthom synchronize #432
  • Dec 21 2018 09:19
    sdebionne opened #433
  • Dec 21 2018 00:08
    ricejasonf commented #432
  • Dec 21 2018 00:03
    ricejasonf commented #432
  • Dec 20 2018 23:36
    pthom commented #432
  • Dec 20 2018 23:36
    pthom commented #432
  • Dec 20 2018 23:13
    ricejasonf commented #432
Louis Dionne
@ldionne
Conceptually, this is similar to calling std::vector::reserve before pushing back a bunch of elements in the vector
But we don’t have anything similar for tuples.
Jason Rice
@ricejasonf
gears are turning :P
Louis Dionne
@ldionne
lol
hint: It’s possible to implement tuple using std::aligned_storage and computing the offsets of the members within that storage at compile-time.
To construct the members, you use in-place new at the right place in that storage.
Jason Rice
@ricejasonf
in the docs the 'Initial value' of hana::value is a little misleading since it is a vanilla function
Louis Dionne
@ldionne
I’ll fix it, thanks.
Uh wait, no it’s not sugar.
It really is tag-dispatched.
Jason Rice
@ricejasonf
oh i meant that it is not a high order function
... i dont think
Louis Dionne
@ldionne
Can you provide a link to the docs you are referring to please?
Just to be sure we’re talking about the same thing.
at_c is kind of the same way
Louis Dionne
@ldionne
Ok, what’s the problem with both of them?
hana::value is documented as being template <typename T> auto value = []() -> decltype(auto) { return tag-dispatched; }.
That seems accurate to me?
Jason Rice
@ricejasonf
mabye I'm being a noob, but the lambda makes it look like it could be used like a function object
at_c actually has a note stating this though
tiny, tiny nitpick
lol sorry
Louis Dionne
@ldionne
OH
Jason Rice
@ricejasonf
wait.. is it a function object?
that's why value_of exists right?
"Equivalent to value, but can be passed to higher-order algorithms."
Louis Dionne
@ldionne
Correct.
I’ll add a note to value saying it can’t be passed to higher order algorithms"
Added note in boostorg/hana@18346fd
Jason Rice
@ricejasonf
thanks :grinning:
Louis Dionne
@ldionne
Well, thanks to you actually.
Jason Rice
@ricejasonf
index_if.hpp
detail/wrong.hpp
hash.hpp
remove_at.hpp
I think these are vestigal in map.hpp
in pr/hash_map
Louis Dionne
@ldionne
Fixed locally; thanks a lot. I’ll push when the current CI finishes.
Jason Rice
@ricejasonf
ricejasonf/hana@a339cba
I branched that off of pr/types. I was thinking about giving it a stuple_detail::make_uninitialized and let functions like append, drop_front do the placement new stuff.
(it's incomplete btw)

stuple :laughing:

Jason Rice
@ricejasonf
This message was deleted
Jason Rice
@ricejasonf
reinterpret_cast denied
apparently placement new is not allowed in constexpr either
Jason Rice
@ricejasonf
constexpr is right out
:P
Louis Dionne
@ldionne
Interesting. I’ll push what I had done.
Some algorithms can be written very efficiently using this representation, like scan_left.
Jason Rice
@ricejasonf
cool
Louis Dionne
@ldionne
@ricejasonf v0.7.0 is officially out and features the new hash table! There will surely be things to fix and improve, but at least this (big) change is in.
Thanks a lot for your work!