Suggestion: "Julia Happy Releases" on Happy dates/numbers ( marketing )


#1

:slight_smile:

For Marketing reason
I suggest the habit of "Julia Happy Releases"
based on: https://en.wikipedia.org/wiki/Happy_number

for example: ideal ( happy ) days for Julia 1.1.0 (2019.Q1)

YYYYMMDD
20190102 Happy
20190104 Happy
20190113 Happy
20190120 Happy
20190123 Happy
20190131 Happy
20190201 Happy
20190202 Happy
20190207 Happy
20190210 Happy
20190213 Happy
20190220 Happy
20190223 Happy
20190226 Happy
20190309 Happy
20190311 Happy
20190312 Happy
20190321 Happy
20190322 Happy

calculated by:

using Dates
function is_happy( n::Int64 )
 x=n 
 seen_numbers = Set{Int64}()
 while (x>1) && (x ∉ seen_numbers)
   push!(seen_numbers,x )
   x = sum(digits(x).^2)
 end
 if x==1
    println( n ,"  Happy  ")
 end   
end
function is_happy_release_day(d::Date)
    n=year(d)*10000 + month(d)*100+ day(d)    
    is_happy(n)
end    
for d=Date(2019,1,1):Day(1):Date(2019,3,31)
  is_happy_release_day(d)
end

Julia Conference 2019 - Happy days:

The ideal release day :

julia> for d=Date(2019,7,21):Day(1):Date(2019,7,27)
         is_happy_release_day(d)
       end
20190727  Happy