Thereare a lotofotherpeopleinvolvedinnote, andnaturally, I wanttoseeeverythingthesameway.
Justtwodaysago, wasdecidedtoremove a handfulofdeprecateidAPeyesfromthecodebasethat I thinkweshouldjustleaveinthere.
Soclearlymyopinionsarenotthoseofnotenecessarily.
But I wasn't nearlyasangryasthispersonwasaboutitanyway, withoutofthewaybacktonote.
Hey, haveyouheardaboutworkerthreats?
Um, theywereintroducedinno 10.5 dotzero, butitrequired a commandlineflagtousingthatversion.
SoinNo.
12 youdon't need a commandlineflag, andyoureallywanttouse 12 11 ornewerbecausethat's thefirstversionwhereworkerthreadsweredeterminedtobestableratherthanexperimental.
Andreally, youwanttouse 12 15 0 becausethat's theversionthatwasreleasedlike a dayortwoagothatfixessomesecurityissues.
Ifyouliketoliveontheedge, usethecurrentversionthatthatwon't besupportedyetin a fewmonths.
Butit's No.
13 80 whichistheversionthatwasreleased a fewdaysago.
Thenlet's justsaythatthedefaultstateofthingsinnodeandinjavascripteyesnotas a synchronoussopriortoworkerthreadstheusualwaypeoplewouldoffloadCPUin a nonblockingway.
Basically, we'rechecking, youknow, we'recheckingthatwe'renotawareofthreatssothatweknowthat's okaytolaunch a workerthreat.
Ifwedidn't dothat, wemightbein a workerthreatthatlaunches a workerthreatthatlaunches a workerthreatthatlaunchesworkthreatandjustworkingthreatsallthewaydownuntilyou'rerunoutof, I don't know, stackheapsomething, somekindoframp.
Um, anyway, therearealreadywebsitesthatsolvesixdegreesofKevinBaconbyusingIMDBdataSeveralyearsago, I wantedtodothisformusiciansplayingonrecordingsofindividualsongs, so I made a sitecalledMusicRoots, andit's beenbrokenfor a longtimebecausesomeonewho I wantsay, whatwhowasbutremovedin a P I that I wasdependenton.
Andtheneverybody, they'refixingitanyway.
It's beenbrewingfor a longtime, solet's fixitSoFirst.
Soaskedmeforexamplesafterthetalk, because I lovetalkingaboutthissortofstuff, butotherwise, justknowthatdisguisedatacorrectlyreflectorsonanalbumsleeve, whichdoesnotcorrectlyreflectwhatisinrealityallthetime.
Thatbringsusto a wickydata, whichhassomedataallalongtheselines, butwaylessthanyouthink.
That's cool, though.
It's wickydatasoeveryonecanadddatatoit.
Butit's very, veryunusable.
E slowforthemany, many, manyqueriesthatwouldberequiredtodothis.
So I builtmyowndatabaseandpublishedit.
It's veryincomplete, butitwilldohere.
Uh, I alsobuilt a rudimentarylittlevisualizeerforit, andwe'llseethatin a bit.
Uh, soOkay, inordertosolvethesethings, wecouldusebreathfirstsearch, andmanyofyou, maybemostofyou, maybeallofyou, I don't knowmayalreadyknowwhatbreathforsearches.
Butjustincase, I amnowgoingtogivetheworld's worstoverviewofbreathfor a search.
Let's gobacktoconnected.
KatyPerrytoKevinBacon.
SteponeisKatyPerry.
KevinBacon.
That's a jobtripleequalthereinthemiddle.
TheanswerisobviouslynoSteptwo.
Findeveryonethatwasin a moviewithKatyPerry.
DoanyofthosepeoplehavingtobeKevinBacon?
AndtheanswerisstillnoStepthree.
Findeveryonethatwasinthemoviewithanyofthosepeoplethatwerein a moviewithKatyPerry.
Now, I didn't dothat, but I didscrawlthisbluerunlinearoundthingstoshowwheretheouterringofcircleswouldbeandthenumberofcirclesthenumberofcirclesinthatringisgoingtogrowexponentiallyoratleastexponentiallyish.
It's gonnagrowvery, veryquickly.
Partofwhy I didn't doit, Um, soyoudon't wanttoseeallthesurfaceanyway, But I'm heretotellyousomethingexcitingaboutthatouterringittotallyasKevinBaconinit, andthat's basicallybreathfor a search.
Thenthenexttimeitruns, it's allthepeopleontrackswithremovingpeople, trading, etc.
Outerblueline, um, andsoonandsoforth.
Andthislineupdatesmatches, um, list.
Sothewildloopwillstopifwefound a matcheachtimethroughthelastwildloop, like I said, growsexponentiallyish, getsslowerandslowerandslowerwithlongerandlongerpaths.
Whybeboundby a singlethreadratherthandoingonebreathfirstsearchfromKatyPerryandthenwaitingforittofinishandthencheckingagainstKevinBaconandwaitingforthattofinishandthenbouncingbackKatyPerrywhen I justsortofjustlethimbothrunandgiveyoudataasfastastheycan.
So I'm I'm upheretalkingaboutworkerthreads, butlikeshedid 99.999% ofthehardworkgetthisdone, andtheother 0.1% wasaren't meanyway, backtothisnonsenseafterDollyParton's track, MaryChapinCarpentergoesthroughSaturdayLivebandleader G.
SmithandTomWaitstrumpetplayerbeforegettingtome.
Butwhyshould I restrictfundvantheexerciseslikethistome?
I putthisupin a glitch.
Youare l whichisyouknow, works, eh?
Soifyouwantto, youknow, trytoconnect.
No, I mean, it's justgreat, but I mean, youknow, it's like, uh, youknow, like, youcanjustalsogettherepositoryandjustruntheexpressapponyourlocalmachinewillbefaster.