{"id":570,"date":"2016-09-15T14:02:12","date_gmt":"2016-09-15T13:02:12","guid":{"rendered":"http:\/\/lig-membres.imag.fr\/denisb\/?p=570"},"modified":"2016-09-15T14:05:07","modified_gmt":"2016-09-15T13:05:07","slug":"un-milliard","status":"publish","type":"post","link":"https:\/\/lig-membres.imag.fr\/denisb\/un-milliard\/","title":{"rendered":"[:fr]Un milliard ?!?[:]"},"content":{"rendered":"<p>[:fr]ErlangSur nos machines, est-il possible de compter jusqu&#8217;\u00e0 1 000 000 000 (un milliard) en moins d&#8217;une seconde ?<\/p>\n<p>&nbsp;<\/p>\n<p>(1) Pour \u00eatre s\u00fbr d&#8217;y arriver, il est pr\u00e9f\u00e9rable de se lancer avec un langage de bas niveau (C ou m\u00eame assembleur) &#8230;<\/p>\n<p>&nbsp;<\/p>\n<p>(2) Avec nos processeurs multicoeur il est pr\u00e9f\u00e9rable de se lancer avec un langage qui permet de faire du parall\u00e9lisme (facilement) : Erlang par exemple ?<\/p>\n<p>&nbsp;<\/p>\n<p>R\u00e9sultats &#8230;<\/p>\n<p>(1) ok, c&#8217;\u00e9tait facile et pr\u00e9visible &#8230; (?)<\/p>\n<p>(2) hum, pas si simple &#8230; et puis avec des une suprise : pour aller plus vite, il ne faut pas r\u00e9partir le calcul sur 2 (resp. 4) processus l\u00e9gers si le processeur raconte qu&#8217;il est dual (ou resp. quad), mais plut\u00f4t sur une dizaine de processus l\u00e9gers (ou plus, &#8230; [mais pas trop, si on demande la partage du calcul sur plus d&#8217;un million de processus l\u00e9ger, \u00e0 la fin, la gestion de ces processus demande plus de temps que le calcul lui-m\u00eame !!!]) (?)[:]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[:fr]ErlangSur nos machines, est-il possible de compter jusqu&#8217;\u00e0 1 000 000 000 (un milliard) en moins d&#8217;une seconde ? &nbsp; [&hellip;]<\/p>\n","protected":false},"author":42,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[186,12,10,106,42,31,188],"tags":[],"class_list":["post-570","post","type-post","status-publish","format-standard","hentry","category-186","category-algorithmique","category-architecture-des-ordinateurs","category-arm","category-breve","category-c","category-erlang"],"_links":{"self":[{"href":"https:\/\/lig-membres.imag.fr\/denisb\/wp-json\/wp\/v2\/posts\/570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lig-membres.imag.fr\/denisb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lig-membres.imag.fr\/denisb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lig-membres.imag.fr\/denisb\/wp-json\/wp\/v2\/users\/42"}],"replies":[{"embeddable":true,"href":"https:\/\/lig-membres.imag.fr\/denisb\/wp-json\/wp\/v2\/comments?post=570"}],"version-history":[{"count":2,"href":"https:\/\/lig-membres.imag.fr\/denisb\/wp-json\/wp\/v2\/posts\/570\/revisions"}],"predecessor-version":[{"id":572,"href":"https:\/\/lig-membres.imag.fr\/denisb\/wp-json\/wp\/v2\/posts\/570\/revisions\/572"}],"wp:attachment":[{"href":"https:\/\/lig-membres.imag.fr\/denisb\/wp-json\/wp\/v2\/media?parent=570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lig-membres.imag.fr\/denisb\/wp-json\/wp\/v2\/categories?post=570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lig-membres.imag.fr\/denisb\/wp-json\/wp\/v2\/tags?post=570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}