• 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
  • mrdoob Profile Picture

    mrdoob @mrdoob

    7 years ago

    @mathias @v8js Isn't TimSort slower than QuickSort? Sorting scene graphs is one of the things 3D engines spend most of the time on.

    0 0 3 0 0
  • aarondfrancis Profile Picture

    Aaron Francis @aarondfrancis

    7 years ago

    @mathias @sarah_edo @v8js Cc @dog_rates

    0 0 1 0 0
  • styfle Profile Picture

    Steven ⬢ @styfle

    7 years ago

    @mathias @v8js How did you decide to use TimSort? Is that what Java uses?

    0 0 1 0 0
  • elibelly Profile Picture

    🦋 E L I A N N E 🦋 @elibelly

    7 years ago

    @mathias @v8js @koste4 you might need to update your material 😅

    0 0 0 0 0
  • omermic Profile Picture

    Omer M @omermic

    7 years ago

    @mathias @v8js This tweet just saved my company days of work. An AngularJS legacy webapp broke after Chrome 70 and we couldn’t figure out what happened. After finding the bad bad sort function and fixing it everything works

    1 1 2 0 0
  • sergio_fm Profile Picture

    Sergio Mendonça @sergio_fm

    7 years ago

    @mathias @v8js Have the keynote of @koste4 at @braziljs influenced this decision? :D #braziljs2018

    1 0 3 0 0
  • ShaneHudson Profile Picture

    Shane Hudson @ShaneHudson

    7 years ago

    @mathias @v8js What does "stable" mean in this context?

    1 0 2 0 0
  • AliGTheOtherOne Profile Picture

    Ali G @AliGTheOtherOne

    7 years ago

    @mathias @v8js Lots of badly written sort functions will start breaking now. A common one is `[3,1,2].sort( (a, b) => a > b );` Oh well, now is as good as any time to make this change I guess.

    1 0 2 0 0
  • haeric Profile Picture

    Haakon Erichsen @haeric

    7 years ago

    @mathias @chandlerprall @v8js Good news, cheers! 👏 Now, will we ever get rid of the default comparator doing ascii comparison even if the array is all numbers? 😇

    0 0 1 0 0
  • alexjoverm Profile Picture

    Alex Jover Morales @alexjoverm

    7 years ago

    @mathias @sarah_edo @v8js @FlavioCorpa

    0 0 1 0 0
  • romancortes Profile Picture

    romancortes @romancortes

    7 years ago

    @mathias @v8js What is the performance impact? Is there any easy and fully reliable way to check stability?

    2 0 1 0 0
  • m_schuetz Profile Picture

    Markus Schütz @m_schuetz

    7 years ago

    @mathias @v8js Does this TimSort implementation perform better than the previous sort, for small arrays (~300ish) that are already partially in order?

    1 0 1 0 0
  • albertgao Profile Picture

    Albert Gao🇺🇦 @albertgao

    7 years ago

    @mathias @v8js Oh, alright, now the interview becomes much more easier... 🤣

    0 0 0 0 0
  • jska13 Profile Picture

    Invest Journey - Le voyage de l'investisseur @jska13

    7 years ago

    @mathias @v8js @dog_rates 😆

    0 0 0 0 0
  • Wallacy Profile Picture

    Wallacy @Wallacy

    7 years ago

    @mathias @v8js Next on the Queue: Interpolation search (for array find?) The best sort algorithm (TimSort) and the best search together.

    0 0 0 0 0
  • luisibanhi Profile Picture

    Luis Ibanhi @luisibanhi

    7 years ago

    @mathias @v8js Congratzzz 🙌🏻🙌🏻🎉🎉🎊

    0 0 0 0 0
  • qtmsheep Profile Picture

    Nathanael Demacon @qtmsheep

    7 years ago

    @mathias @v8js Oh yeaaah!

    0 0 0 0 0
  • Saadlaggoun Profile Picture

    Saad Laggoun @Saadlaggoun

    7 years ago

    @mathias @v8js ah! now i see. Btw i wanna know what is the name of your color scheme, it's fabulous!!

    1 0 0 0 0
  • u1f602 Profile Picture

    what @u1f602

    7 years ago

    @mathias @ChromiumDev @v8js

    u1f602 tweet picture

    0 0 0 0 0
    Download Image
  • lnfnunes Profile Picture

    Leandro Nunes @lnfnunes

    7 years ago

    @mathias @_ericelliott @v8js @mvallim

    0 0 0 0 0
  • camsjams Profile Picture

    Cameron Manavian @camsjams

    7 years ago

    @mathias @v8js "Move fast and break things", only if you use Array.sort() incorrectly

    0 0 0 0 0
  • iulia_tweets Profile Picture

    Julia @iulia_tweets

    7 years ago

    @mathias @v8js So this can lead to a different result for any array with > 10 elements with the newest chrome version. Suggestions for refactoring code to keep legacy compatibility ?

    1 0 0 0 0
  • Download Image
    • Privacy
    • Term and Conditions
    • About
    • Contact Us
    • TwStalker is not affiliated with X™. All Rights Reserved. 2024 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