Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Vincent Hanquez
    @vincenthz
    mconcatCollection :: (Monoid (Item c), Sequential c) => c -> Element c mconcatCollection c = mconcat (toList c)
    Vincent Hanquez
    @vincenthz
    I've created a haskell-foundation organisation on github
    to hopefully share permissions more easy and empower everyone
    Nicolas Di Prima
    @NicolasDP
    brilliant
    Nicolas Di Prima
    @NicolasDP
    gitter changed url too, but it seems to just transfer transparently things, so no downtime !
    Nicolas Di Prima
    @NicolasDP
    #50 hot bug on the foundation's repo
    @vincenthz this is for you
    ;)
    Nicolas Di Prima
    @NicolasDP
    PR #53 for the modified UTF8
    Jan Gerlinger
    @JanGe
    @vincenthz Can you take a look at WIP #48? I found a rather Java-ish solution to the problem for getting the elements of an unknown source collection when building a new collection.
    Is there a way to build a String that you do not know the size of (in bytes) beforehand (only an upper bound)?
    Vincent Hanquez
    @vincenthz
    @JanGe: for the later question, there's the array builder which is not quite optimal but allow to build an array chunks by chunks
    also all unboxed vector support native slicing now, so you could over allocate, and then trim the result slice to have a smaller length
    array builder : Core.Array.Unboxed.Builder, trimming during creation : unsafeFreezeShrink
    Vincent Hanquez
    @vincenthz
    new avatar in room !
    :)
    Nicolas Di Prima
    @NicolasDP
    yeah!
    Vincent Hanquez
    @vincenthz
    as it was started in my github workspace, it was my mug. didn't look professional ;)
    Vincent Hanquez
    @vincenthz
    and we're off. first release on hackage. definitely not finished, and far from perfect
    Nicolas Di Prima
    @NicolasDP
    🎉
    Neil Mitchell
    @ndmitchell
    👍
    Vincent Hanquez
    @vincenthz
    ah dear we're on reddit \o/
    Jan Gerlinger
    @JanGe
    Issue #51 can be closed as PR #87 was merged
    Nicolas Di Prima
    @NicolasDP
    thank you for the ping
    Jan Gerlinger
    @JanGe
    Are there any plans to implement slicing for boxed arrays?
    Neil Mitchell
    @ndmitchell
    Vincent said that was the intention on a reddit comment - it just got forgotten in the push for a first release. I assume PR welcome.
    Nicolas Di Prima
    @NicolasDP
    Neil is right, this is something we want in foundation. and of course, PRs are welcome
    Vincent Hanquez
    @vincenthz
    Definitely planning to add this; surprised I haven't created a ticket about this
    Jan Gerlinger
    @JanGe
    @vincenthz and @NicolasDP , you mentioned you'll be attending MuniHac. Any plans/milestones for foundation there?
    Nicolas Di Prima
    @NicolasDP
    Jan Gerlinger
    @JanGe
    Nice! Might be worth to add foundation to the wiki page early then, so people can have a glimpse at the tickets already.
    https://wiki.haskell.org/MuniHac2016/Projects
    Vincent Hanquez
    @vincenthz
    It's definitely in my plan
    Vincent Hanquez
    @vincenthz
    @JanGe still planning to be there btw ?
    Jan Gerlinger
    @JanGe
    Yes, I'll be joining you working on foundation again :) I also have some spare time today and tomorrow, so I'm trying to finish my Buildable PR before that ;)
    Vincent Hanquez
    @vincenthz
    great ! :)
    I put you in the contact list :)
    Please don't hesitate to add/correct/delete stuff as needed
    Jan Gerlinger
    @JanGe
    Haha ok ;)
    Jan Gerlinger
    @JanGe
    Is there a specific reason to restrict the length of a new mutable byte array / string to the size of one of its elements?
    new :: (PrimMonad prim, PrimType ty) => Size ty -> prim (MUArray ty (PrimState prim))
    
    new :: PrimMonad prim => Size ty -> prim (MArray ty (PrimState prim))
    Vincent Hanquez
    @vincenthz
    you mean Size ty vs Size ?
    Nicolas Di Prima
    @NicolasDP
    it is to know the size of the object. Size ty is only the number of elements. Binding ty to PrimType allows us to also get the size of one element.
    Vincent Hanquez
    @vincenthz
    ah yes ok
    Size ty is not the size of ty, it's the size in unit of ty
    5 :: Size Int => I want an array good for storing 5 Int's
    Jan Gerlinger
    @JanGe
    Oh, I'm apparently blind xD
    newtype Size ty = Size Int
    Vincent Hanquez
    @vincenthz
    well it's maybe a good opportunity to improve documentation or something :-)
    hint hint