Kira is a programming language that compiles to PHP. PHP is the best platform for web applications, but the language operating the platform is out-dated for a modern world. In fact, the PHP language sucks. Kira is designed to bring a good language and modern techniques into play whilst taking advantage of all existing PHP and a massive army of PHP developers.
Input:
int[] imap(int[] a, int->int f)
{
int[] b;
for(int k = 0; k < a.length; k++)
{
b[k] = f(a[k]);
}
return b;
}
unit main()
{
int[] a = [1,2,3,4,5];
print a;
int->int f = function int (int x)
{
return x*x;
};
print imap(a,f);
}
Output:
function demo_NS_imap($a,$f)
{
for($k=0;$k<count($a);$k++)
{
$b[$k]=_I_($f)->Ev($a[$k]);
}
return $b;
}
class funptr_demo_NS_imap
{
public function Ev($a,$f)
{
return demo_NS_imap($a,$f);
}
}
function Anony_demo_0_Fun($Hid,$x)
{
{
return $x*$x;
}
}
class Closure_Anony_demo_0_Fun
{
public $_Hidden;
public function Ev($x)
{
return Anony_demo_0_Fun($this->_Hidden,$x);
}
public function __construct($h)
{
$this->_Hidden = $h;
}
}
function main()
{
$a=array(0=>1,1=>2,2=>3,3=>4,4=>5);
print_r($a);
$f=new Closure_Anony_demo_0_Fun(array());
print_r(demo_NS_imap($a,$f));
}
http://www.mathgladiator.com/documents/why.php I am goal directed person, and I have a goal. My goal is simple: surpass Euler. That is correct; I aim to surpass one of the greatest mathematicians in the history of the world. In some sense, the world has not yet seen a computer scientist that has been as prolific as Euler. The closest are Von Neumann, Dijkstra, and Knuth. Is this too ambitious? Perhaps, but I will do it. I don't do it for fame. I do it for personal satisfaction (and the money).
Hahahahahaha.
Name:
Anonymous2008-06-26 13:46
This guy can't be serious. Says he's a genius but can't properly distinguish "to" from "too".
Name:
Anonymous2008-06-26 14:05
"I abhor false prophets for I am the chosen one; I am super coder. I like coders who are willing to learn, and I want to teach you. If I teach you, then you will be loyal to me and help me with my goals. In some sense, I am building an army to build paradise."
Technically, I had all the hours needed, but I need to write a Masters Thesis. As I was trying to prove that NP != P, I think dropping out was a good idea; it is a hard idea (but the trick requires saying that P can not implement a stack: I conjecture that NP = P + stack).
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy