Sep. 4th, 2009

bolson: (Default)
Back in the mid nineties I got a C file I got from my dad who got it from someone who ported a FORTRAN program that people had been using to test the math functions of new supercomputers (Cray, etc.). It doesn't do any clever system benchmarking, it just tests how fast a CPU can do math, in Millions of FLOating Point OPerations per Second, or Mega-FLOPS.
I've since ported it to Java, which with a good 1.6+ JVM runs around 95% of the speed of C compiled '-02 -m64' with gcc on x86_64.
Most recently I've ported it to create a MegaFLOPS benchmark in Javascript. This gets 1-4% of the speed of the C program, but that means between browsers on the same machine there's a 1-4x speed difference.
Oh, and javascript on my current desktop at work can run this faster than native code on my home computer of 12-15 years ago, which in turn compared favorably to the supercomputers of a few years before it.
bolson: (Default)
Jon Siracusa writes in ArsTechnica:
In Snow Leopard, Apple has introduced a C language extension called "blocks." Blocks add closures and anonymous functions to C and the C-derived languages C++, Objective-C, and Objective C++.

Profile

bolson: (Default)
bolson

September 2017

S M T W T F S
     12
3456789
1011121314 1516
17181920212223
24252627282930

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 9th, 2025 02:34 pm
Powered by Dreamwidth Studios