{"payload":{"allShortcutsEnabled":false,"fileTree":{"content":{"items":[{"name":"blog","path":"content/blog","contentType":"directory"},{"name":"about.html.haml","path":"content/about.html.haml","contentType":"file"},{"name":"contests.html.haml","path":"content/contests.html.haml","contentType":"file"},{"name":"cvitae.html.haml","path":"content/cvitae.html.haml","contentType":"file"},{"name":"external.png","path":"content/external.png","contentType":"file"},{"name":"favicon.ico","path":"content/favicon.ico","contentType":"file"},{"name":"haptic.html.haml","path":"content/haptic.html.haml","contentType":"file"},{"name":"howglobalami.html.haml","path":"content/howglobalami.html.haml","contentType":"file"},{"name":"index.html","path":"content/index.html","contentType":"file"},{"name":"master-thesis.html.haml","path":"content/master-thesis.html.haml","contentType":"file"},{"name":"mergesort.html.haml","path":"content/mergesort.html.haml","contentType":"file"},{"name":"neatsqueak.html.haml","path":"content/neatsqueak.html.haml","contentType":"file"},{"name":"site.css.sass","path":"content/site.css.sass","contentType":"file"}],"totalCount":13},"":{"items":[{"name":"content","path":"content","contentType":"directory"},{"name":"layouts","path":"layouts","contentType":"directory"},{"name":"lib","path":"lib","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":"Gemfile","path":"Gemfile","contentType":"file"},{"name":"Gemfile.lock","path":"Gemfile.lock","contentType":"file"},{"name":"README.rdoc","path":"README.rdoc","contentType":"file"},{"name":"Rules","path":"Rules","contentType":"file"},{"name":"nanoc.yaml","path":"nanoc.yaml","contentType":"file"}],"totalCount":9}},"fileTreeProcessingTime":11.161992000000001,"foldersToFetch":[],"repo":{"id":916420,"defaultBranch":"main","name":"hugopeixoto.net","ownerLogin":"hugopeixoto","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2010-09-16T18:39:31.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/111554?v=4","public":true,"private":false,"isOrgOwned":false},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"3dde962b17e193e8c28c0268b2d80136190ec3a8","listCacheKey":"v0:1676763076.406052","canEdit":false,"refType":"tree","currentOid":"3dde962b17e193e8c28c0268b2d80136190ec3a8"},"path":"content/mergesort.html.haml","currentUser":null,"blob":{"rawLines":["---","title: Mergesort madness","---","%h1 Mergesort madness","","%p.question What's my goal?","%p To implement mergesort in 42 different languages.","","%p.question Why?","%p Back in June 2006, I enrolled the Numeric Analysis course, in which we had three weeks to do an assignment.","","%p The assignment consisted in analyzing several implementations of Euler's Method. My goal was to implement it in the largest number of languages possible. As time ran out (as it always does), I was forced to abandon the project. Not happy about it, I decided to leave for a crusade against several computer languages, implementing Mergesort in each one of them.","","%p.question How's it going?","","%p"," Here's the list of"," = surround '(', ')' do"," = mergesorts.count"," completed implementations, hosted on"," = succeed '.' do"," = external_link_to 'github', 'https://github.com/hugopeixoto/mergesort'","","%ol"," - mergesorts.each do |mergesort|"," %li= external_link_to mergesort[0], \"https://github.com/hugopeixoto/mergesort/blob/master/#{mergesort[1]}\""],"stylingDirectives":[[{"start":1,"end":3,"cssClass":"pl-sre"}],[],[{"start":1,"end":3,"cssClass":"pl-sre"}],[{"start":1,"end":3,"cssClass":"pl-ent"}],[],[{"start":1,"end":2,"cssClass":"pl-ent"},{"start":2,"end":11,"cssClass":"pl-ent"}],[{"start":1,"end":2,"cssClass":"pl-ent"}],[],[{"start":1,"end":2,"cssClass":"pl-ent"},{"start":2,"end":11,"cssClass":"pl-ent"}],[{"start":1,"end":2,"cssClass":"pl-ent"}],[],[{"start":1,"end":2,"cssClass":"pl-ent"}],[],[{"start":1,"end":2,"cssClass":"pl-ent"},{"start":2,"end":11,"cssClass":"pl-ent"}],[],[{"start":1,"end":2,"cssClass":"pl-ent"}],[],[{"start":3,"end":24,"cssClass":"pl-sre"},{"start":22,"end":24,"cssClass":"pl-k"}],[{"start":5,"end":22,"cssClass":"pl-sre"}],[],[{"start":3,"end":18,"cssClass":"pl-sre"},{"start":16,"end":18,"cssClass":"pl-k"}],[{"start":5,"end":75,"cssClass":"pl-sre"}],[],[{"start":1,"end":3,"cssClass":"pl-ent"}],[{"start":3,"end":34,"cssClass":"pl-sre"},{"start":33,"end":34,"cssClass":"pl-s1"}],[{"start":5,"end":7,"cssClass":"pl-ent"},{"start":8,"end":110,"cssClass":"pl-sre"},{"start":40,"end":110,"cssClass":"pl-s"},{"start":40,"end":41,"cssClass":"pl-pds"},{"start":94,"end":96,"cssClass":"pl-pse"},{"start":96,"end":108,"cssClass":"pl-s1"},{"start":106,"end":107,"cssClass":"pl-c1"},{"start":108,"end":109,"cssClass":"pl-pse"},{"start":109,"end":110,"cssClass":"pl-pds"}]],"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/hugopeixoto/hugopeixoto.net/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"mergesort.html.haml","displayUrl":"https://github.com/hugopeixoto/hugopeixoto.net/blob/3dde962b17e193e8c28c0268b2d80136190ec3a8/content/mergesort.html.haml?raw=true","headerInfo":{"blobSize":"1018 Bytes","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":null,"isGitLfs":false,"onBranch":false,"shortPath":"ec7e02a","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fhugopeixoto%2Fhugopeixoto.net%2Fblob%2F3dde962b17e193e8c28c0268b2d80136190ec3a8%2Fcontent%2Fmergesort.html.haml","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"26","truncatedSloc":"20"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Haml","languageID":154,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/hugopeixoto/hugopeixoto.net/blob/3dde962b17e193e8c28c0268b2d80136190ec3a8/content/mergesort.html.haml","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/hugopeixoto/hugopeixoto.net/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/hugopeixoto/hugopeixoto.net/raw/3dde962b17e193e8c28c0268b2d80136190ec3a8/content/mergesort.html.haml","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":true,"symbols":[]}},"copilotInfo":null,"copilotAccessAllowed":false,"csrf_tokens":{"/hugopeixoto/hugopeixoto.net/branches":{"post":"j8xEGz_UIz8a-3WV2F8FS1XNz8sYk9uownh_JssCRK5ZOgVqNQIStrKeGG6yWLIvCwWKBRqTtHGNq4j-CzH2Cg"},"/repos/preferences":{"post":"8tKGDumgN-t_KrWwI4IjY3ErJEhvpVXomHwah--a5KvL6bp4F_PJWmAzZ0YrRC8TmaSVgIUFNwonZyebh5RWcQ"}}},"title":"hugopeixoto.net/content/mergesort.html.haml at 3dde962b17e193e8c28c0268b2d80136190ec3a8 ยท hugopeixoto/hugopeixoto.net"}