<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-4757118446768919900.post4835397305347739608..comments</id><updated>2011-10-26T04:43:53.259-07:00</updated><category term='darwin'/><category term='loop'/><category term='optimisation'/><category term='tools'/><category term='robot'/><category term='privacy'/><category term='benchmark'/><category term='events'/><category term='altera'/><category term='koch curve'/><category term='forth'/><category term='8080'/><category term='museum'/><category term='demo'/><category term='assembly'/><category term='cellular automata'/><category term='easter'/><category term='compression'/><category term='bf'/><category term='128b'/><category term='ssem'/><category term='core war'/><category term='bookshelf'/><category term='programming books'/><category term='corewar'/><category term='semaphore'/><category term='cave'/><category term='z80'/><category term='operating system'/><category term='sin'/><category term='contest'/><category term='arduino'/><category term='text adventure'/><category term='home computers'/><category term='basic'/><category term='programming'/><category term='8086'/><category term='subneg'/><category term='optimise'/><category term='rssb'/><category term='font'/><category term='bf joust'/><category term='game'/><category term='#songsincode'/><category term='asm'/><category term='microcontroller'/><category term='editor'/><category term='primes'/><category term='infinite loop'/><category term='emulator'/><category term='redcode'/><category term='subleq'/><category term='twitter'/><category term='kernel'/><category term='corelife'/><category term='history'/><category term='alife'/><category term='quotes'/><category term='urisc'/><category term='til'/><category term='oisc'/><category term='8088'/><category term='sbn'/><category term='recursion'/><title type='text'>Comments on Retro Programming: Computus: Calculating Easter Sunday</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.retroprogramming.com/feeds/4835397305347739608/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4757118446768919900/4835397305347739608/comments/default'/><link rel='alternate' type='text/html' href='http://www.retroprogramming.com/2011/04/computus-calculating-easter-sunday.html'/><author><name>John Metcalf</name><uri>http://www.blogger.com/profile/09108374348083307900</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_kDyMtZ_dJwQ/SPJWvCQ5QpI/AAAAAAAAAWY/cnwIw9hloA0/S220/me.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4757118446768919900.post-228489740583673785</id><published>2011-05-03T20:16:16.916-07:00</published><updated>2011-05-03T20:16:16.916-07:00</updated><title type='text'>Greetings! for posting such a useful blog. Your we...</title><content type='html'>Greetings! for posting such a useful blog. Your weblog is not only informative and also very artistic too. There usually are extremely couple of people who can write not so easy articles that creatively. Keep up the good work !</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4757118446768919900/4835397305347739608/comments/default/228489740583673785'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4757118446768919900/4835397305347739608/comments/default/228489740583673785'/><link rel='alternate' type='text/html' href='http://www.retroprogramming.com/2011/04/computus-calculating-easter-sunday.html?showComment=1304478976916#c228489740583673785' title=''/><author><name>ppc agency</name><uri>http://www.mediamax.com.au/search-engine-marketing/paid-search.html</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.retroprogramming.com/2011/04/computus-calculating-easter-sunday.html' ref='tag:blogger.com,1999:blog-4757118446768919900.post-4835397305347739608' source='http://www.blogger.com/feeds/4757118446768919900/posts/default/4835397305347739608' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1537688300'/></entry><entry><id>tag:blogger.com,1999:blog-4757118446768919900.post-4942744245433515475</id><published>2011-04-24T05:06:50.774-07:00</published><updated>2011-04-24T05:06:50.774-07:00</updated><title type='text'>I coded this algorithm years ago in C (1986). I ca...</title><content type='html'>I coded this algorithm years ago in C (1986). I can&amp;#39;t remember where I got it but I whereever I got it, it was referred to as &amp;#39;Butcher&amp;#39;s Method&amp;#39;.&lt;br /&gt;&lt;br /&gt;Here is my original code: Note that this uses another function to convert the y/m/d to a Julian day number.&lt;br /&gt;&lt;br /&gt;/** Calculates Easter Sunday for given year.&lt;br /&gt; *&lt;br /&gt; * @return Julian day number for Easter Sunday.&lt;br /&gt; *&lt;br /&gt; * @Param   year : Year number.&lt;br /&gt; *&lt;br /&gt; * @note    I know this works for 1980 on, I can&amp;#39;t guarantee before&lt;br /&gt; *          this date. The algorithm I&amp;#39;m using is called Butchers&lt;br /&gt; *          method (I think).&lt;br /&gt; */&lt;br /&gt;INT32 TEaster( INT32 year)&lt;br /&gt;{&lt;br /&gt; TDATE date;&lt;br /&gt; INT32 m,n,x,a,b,c,d,e,f,g,h,i,j,k,l,t;&lt;br /&gt;&lt;br /&gt; x = year;&lt;br /&gt; a = x/100;&lt;br /&gt; b = x%100;&lt;br /&gt; c = a&amp;gt;&amp;gt;2;&lt;br /&gt; d = (a-15)/25;&lt;br /&gt; e = (a-d)/3;&lt;br /&gt; f = (a+15-c-e)%30;&lt;br /&gt; g = (a+4-c)%7;&lt;br /&gt; h = x%19;&lt;br /&gt; i = b&amp;amp;3;&lt;br /&gt; j = b%7;&lt;br /&gt; k = ((h*19)+f)%30;&lt;br /&gt; l = (14+a+g+(i&amp;lt;&amp;lt;1)+(j*4)-k)%7;&lt;br /&gt; t = (21+k+l);&lt;br /&gt; m = t/31+2;&lt;br /&gt; n = t%31+1;&lt;br /&gt; if (n==26 &amp;amp;&amp;amp; m==3) n = 19;&lt;br /&gt; if (n==25 &amp;amp;&amp;amp; m==3 &amp;amp;&amp;amp; k==28 &amp;amp;&amp;amp; h&amp;gt;10) n = 18; &lt;br /&gt;&lt;br /&gt; date.Year  = year;&lt;br /&gt; date.Month = (INT16) m+1;&lt;br /&gt; date.Day   = (INT16) n;&lt;br /&gt;&lt;br /&gt; return TNumDays( &amp;amp;date);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Tim...</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4757118446768919900/4835397305347739608/comments/default/4942744245433515475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4757118446768919900/4835397305347739608/comments/default/4942744245433515475'/><link rel='alternate' type='text/html' href='http://www.retroprogramming.com/2011/04/computus-calculating-easter-sunday.html?showComment=1303646810774#c4942744245433515475' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.retroprogramming.com/2011/04/computus-calculating-easter-sunday.html' ref='tag:blogger.com,1999:blog-4757118446768919900.post-4835397305347739608' source='http://www.blogger.com/feeds/4757118446768919900/posts/default/4835397305347739608' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2089392760'/></entry><entry><id>tag:blogger.com,1999:blog-4757118446768919900.post-4071918172640381858</id><published>2011-04-23T22:12:31.568-07:00</published><updated>2011-04-23T22:12:31.568-07:00</updated><title type='text'>I think you did a pretty good job of making it pre...</title><content type='html'>I think you did a pretty good job of making it pretty in C. I think the only thing you could to to improve readability would split some of those up onto multiple lines but that would be wasteful. Good job all around.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4757118446768919900/4835397305347739608/comments/default/4071918172640381858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4757118446768919900/4835397305347739608/comments/default/4071918172640381858'/><link rel='alternate' type='text/html' href='http://www.retroprogramming.com/2011/04/computus-calculating-easter-sunday.html?showComment=1303621951568#c4071918172640381858' title=''/><author><name>SergeDavid</name><uri>http://www.blog.knolif.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.retroprogramming.com/2011/04/computus-calculating-easter-sunday.html' ref='tag:blogger.com,1999:blog-4757118446768919900.post-4835397305347739608' source='http://www.blogger.com/feeds/4757118446768919900/posts/default/4835397305347739608' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1693343897'/></entry><entry><id>tag:blogger.com,1999:blog-4757118446768919900.post-1015505783254973080</id><published>2011-04-23T09:25:43.375-07:00</published><updated>2011-04-23T09:25:43.375-07:00</updated><title type='text'>Anonymous, here&amp;#39;s a quick explanation of the v...</title><content type='html'>Anonymous, here&amp;#39;s a quick explanation of the variables:&lt;br /&gt;&lt;br /&gt;gold - the golden number - 1&lt;br /&gt;cent - century - 1&lt;br /&gt;sa - solar cycle adjust&lt;br /&gt;la - lunar cycle adjust&lt;br /&gt;epact - epact moon age&lt;br /&gt;a18 - April 18th correction&lt;br /&gt;da - day of week adjust</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4757118446768919900/4835397305347739608/comments/default/1015505783254973080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4757118446768919900/4835397305347739608/comments/default/1015505783254973080'/><link rel='alternate' type='text/html' href='http://www.retroprogramming.com/2011/04/computus-calculating-easter-sunday.html?showComment=1303575943375#c1015505783254973080' title=''/><author><name>John | Retro Programming</name><uri>http://retroprogramming.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.retroprogramming.com/2011/04/computus-calculating-easter-sunday.html' ref='tag:blogger.com,1999:blog-4757118446768919900.post-4835397305347739608' source='http://www.blogger.com/feeds/4757118446768919900/posts/default/4835397305347739608' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1903226464'/></entry><entry><id>tag:blogger.com,1999:blog-4757118446768919900.post-5965127147312681826</id><published>2011-04-23T05:54:35.272-07:00</published><updated>2011-04-23T05:54:35.272-07:00</updated><title type='text'>What? It&amp;#39;s a small function with no loops of c...</title><content type='html'>What? It&amp;#39;s a small function with no loops of conditionals. The function simply flows from beginning to end. Aside from poorly chosen variable names, this is quite elegant and beautiful.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4757118446768919900/4835397305347739608/comments/default/5965127147312681826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4757118446768919900/4835397305347739608/comments/default/5965127147312681826'/><link rel='alternate' type='text/html' href='http://www.retroprogramming.com/2011/04/computus-calculating-easter-sunday.html?showComment=1303563275272#c5965127147312681826' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.retroprogramming.com/2011/04/computus-calculating-easter-sunday.html' ref='tag:blogger.com,1999:blog-4757118446768919900.post-4835397305347739608' source='http://www.blogger.com/feeds/4757118446768919900/posts/default/4835397305347739608' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1444781437'/></entry></feed>
