Name: Anonymous 2011-12-22 19:52
How does /prague/ feel about Go?
package main
import (
"fmt"
"math"
)
func main() {
fmt.Printf("Now you have %g problems.",
math.Nextafter(2, 3))
}
(defun list-index (obj lst)
(if (null lst)
nil
(if (eql (car lst) obj)
0
(let ((z (list-index obj (cdr lst))))
(and z (+ z 1))))))
main())gcc -O0 -static $source). And just try the same with a C++ hello world...
[ Tue Dec 27 06:57:54 ]
[ @ ~/host/prog/he ] $ cat h.c
#include <stdio.h>
void main()
{
puts("Hello World\n");
}
[ Tue Dec 27 06:58:03 ]
[ @ ~/host/prog/he ] $ gcc -O0 -static h.c
[ Tue Dec 27 06:58:07 ]
[ @ ~/host/prog/he ] $ ls -s -h
total 669K
669K a.out 512 h.c
[~]-> cat h.c
#include <stdio.h>
void main(void){
printf("Hello, World!\n");
}
[~]-> gcc -static h.c -o h
[~]-> strip -s h
[~]-> upx -9 h
Ultimate Packer for eXecutables
Copyright (C) 1996 - 2010
UPX 3.07 Markus Oberhumer, Laszlo Molnar & John Reiser Sep 08th 2010
File size Ratio Format Name
-------------------- ------ ----------- -----------
736336 -> 289848 39.36% linux/ElfAMD h
Packed 1 file.
[~]-> ls -sh h
288K h`
UPX 3.0[b]7[/b]