You know you've been writing too much Java when...
Your head explodes at seeing a method signature like void *do_stuff(void[])
=)
1 writebacks [/src/c] permanent link
Fri, 29 Oct 2004Really, really wrong. But it works, and FAST.
[mccallister@knight mccallister]$ cat tcc-test
#!/usr/local/bin/tcc -run
#include
int main()
{
printf("Hello World\n");
return 0;
}
[mccallister@knight mccallister]$ time ./tcc-test
Hello World
real 0m0.019s
user 0m0.020s
sys 0m0.000s
[mccallister@knight mccallister]$
Check out the compile and execution time! on a p2-450
1 writebacks [/src/c] permanent link
Sat, 27 Dec 2003
New Year, New Language - Sort Of
Trying to follow the advice of those smarter than myself, I am sticking to the new-language-per-year plan. Last year was Ruby. It was a good year, and Ruby has replaced Perl for most things scripted for me.
This year was a close contest between Common Lisp, Objective-C, and C. C won, I just picked up the Kernighan and Ritchie book. I used to be pretty good with C++ (rusty as heck now), and have hacked at C, but never spent the time to really learn it in terms of idioms, design, etc. It seems about time.
Medium term I think Amanda, the smart load-balancing http proxy server, will be a good project to learn on -- short term... classic "hello, world\n"