Yan Cui's blog articles

0
comment
on 11/30/2011 5:10 PM
I stumbled upon this interesting question on StackOverflow today, Jon Harrop’s answer mentions a significant overhead in adding and iterating over a SortedDictionary and Map compared to using simple arrays. Thinking about it, this makes sense, the SortedDictionary class sorts its constituent key-value pairs by key, which will naturally incur some performance overhead. F#‘s Map [...]
>> Read the full article
.
0
comment
on 11/18/2011 12:30 AM
Following my back-to-back talks with the UK Developers Group and NxtGenUG Southampton, I just like to say thanks those guys for having me, it’s been a great pleasure For anyone interested, here are the links to the slides and the source code I used for the demo. Slides: http://www.slideshare.net/theburningmonk/introduction-to-aspect-oriented-programming Source Code: http://aop-demo.s3.amazonaws.com/AopDemo.zip
>> Read the full article
.
0
comment
on 11/13/2011 4:19 AM
Problem The square root of 2 can be written as an infinite continued fraction. The infinite continued fraction can be written, ?2 = [1;(2)], (2) indicates that 2 repeats ad infinitum. In a similar way, ?23 = [4;(1,3,1,8)]. It turns out that the sequence of partial values of continued fractions for square roots provide the [...]
>> Read the full article
.
0
comment
on 11/12/2011 6:47 PM
Problem Consider the fraction, n/d, where n and d are positive integers. If n < d and HCF(n,d)=1, it is called a reduced proper fraction. If we list the set of reduced proper fractions for d <= 8 in ascending order of size, we get: 1/8, 1/7, 1/6, 1/5, 1/4, 2/7, 1/3, 3/8, 2/5, 3/7, [...]
>> Read the full article
.
0
comment
on 11/11/2011 1:17 AM
Fol­low on from my pre­vi­ous test which showed that the ServiceStack.Text JSON seri­al­izer was the top dog in town, I came across a lit­tle library called fastJ­son on code­plex so nat­u­rally I had to test it out and see how it com­pares to the rest! So using my Sim­ple­SpeedTester and repeat­ing the same test as [...]
>> Read the full article
.
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper