• mathias Profile Picture

    Mathias Bynens @mathias

    7 years ago

    Array.prototype.sort is now stable in @v8js v7.0 / Chrome 70! 🎉 Previously, V8 used an unstable QuickSort for arrays with more than 10 elements. Now, we use the stable TimSort algorithm. Demo: mathiasbynens.be/demo/sort-stab…

    mathias tweet picture

    38 582 2K 0 25
    Download Image
  • mathias Profile Picture

    Mathias Bynens @mathias

    7 years ago

    Although not technically a spec violation, stable sort was one of the oldest and most popular developer requests in our @v8js bug tracker (issue #90!): bugs.chromium.org/p/v8/issues/de… Kudos to @nimODota for making it happen!

    4 2 31 0 0
  • mathias Profile Picture

    Mathias Bynens @mathias

    7 years ago

    Fingers crossed @ChakraCore eventually switches to a stable sorting algorithm, too. Then we could update the Array.prototype.sort spec to require stability and call it a day. One can dream… (@ChakraCore’s sort is currently only stable for arrays with 512 or fewer elements.)

    6 5 60 0 0
  • mathias Profile Picture

    Mathias Bynens @mathias

    7 years ago

    Update: @ChakraCore just landed a stable MergeSort, making its Array.prototype.sort stable — even for arrays with more than 512 elements! github.com/Microsoft/Chak… When this ships in Edge, Array.prototype.sort is finally 100% stable in all browsers! 🎉

    1 12 55 0 2
  • bterlson Profile Picture

    Brian Terlson @bterlson

    7 years ago

    @mathias @ChakraCore Curious how you see the benefits of stable sort stack up against the obscure site breaks in non-chrome, older browsers, xs, etc. as these subtle non-standard semantics become web-reality?

    2 0 4 0 0
  • _jonathancardos Profile Picture

    Jonathan Cardoso @_jonathancardos

    7 years ago

    @mathias @ChakraCore There is an issue there now btw github.com/Microsoft/Chak…

    0 0 1 0 0
  • kuvos Profile Picture

    Peter van der Zee @kuvos

    7 years ago

    @mathias @ChakraCore Wow! I didn't really think that was still going to happen.

    0 0 0 0 0
  • griffadev Profile Picture

    George Griffiths @griffadev

    7 years ago

    @mathias @ChakraCore Can we have a sort that doesn't sort in place

    0 0 0 0 0
  • Download Image
    • Privacy
    • Term and Conditions
    • About
    • Contact Us
    • TwStalker is not affiliated with X™. All Rights Reserved. 2024 www.instalker.org

    twitter web viewer x profile viewer bayigram.com instagram takipçi satın al instagram takipçi hilesi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al sosyalgram takipçi satın al instagram ücretsiz takipçi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al metin2 metin2 wiki metin2 ep metin2 dragon coins metin2 forum metin2 board popigram instagram takipçi satın al takipçi hilesi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al buyfans buy instagram followers buy instagram likes buy instagram views buy tiktok followers buy tiktok likes buy tiktok views buy twitter followers buy telegram members Buy Youtube Subscribers Buy Youtube Views Buy Youtube Likes forstalk postegro web postegro x profile viewer