Thread: Why I hate c
View Single Post
  #58   Spotlight this post!  
Unread 20-03-2004, 01:43
meatmanek meatmanek is offline
Programmer/physicist/mathematician
FRC #0868 (TechHounds)
Team Role: Programmer
 
Join Date: Mar 2004
Rookie Year: 2004
Location: Carmel, Indiana
Posts: 142
meatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to beholdmeatmanek is a splendid one to behold
Re: Why I hate c

If you really want to see a pointless language, check out Befunge(http://kotisivu.mtv3.fi/quux/befunge.html); they call it a '2 dimensional, lower than assembly' language. Scary thought. Here's a bit of code:

Code:
>1+>:~::"0"-:v>$:v>>21p    :0#v_1-::::6g:" "-!88+*+v
p  +v_:#`0 #<_|_ " |-+77:+1g12_!v!-"!":+0-"0"+gg12\<
6v 3>#$"9"-:v#<|_/ >$11g3+:6g4v->88+*+:"9"`:"0"+85*v
\| p#_!:`"#0_ ^"|" vp3p04+1:g0<^+2g11p+1g12\-*+55p1<
^< ^6+1p11:\_!-6#<^>1+:6g:84*#^-#4 _$$40g:"+"\:"|"v
                         v59:+1p3+1\g6p12:<1:p2p3\<
                         >*\2p:21g1+:11g-#^_$$31p70p11gv
2x                  v06:g22p124 p42 -\p22+1:g04p00::-3-<
3x                  >p80p >22g::3g:" "-!88#v+#*<
4x                  v g42_^#!:-1p22+1pg12\+<>+90p650p11v
5x                  >:23p 3g60g:1+60p21ggv  ^77p08p06:<g
6x                  ^+1g32_v#!:- _v#-" ":<vg12\+*+88!<-2
7x                       # >0`!#v_22g:1+22p  :3g:" "-^++ >v
8x                       !   >$$>#_       >    22g00g1^: 0g
9x                        v_v#`0_v#:-gg12g06 gg05 :    < 51
 vp*469"$"`-1g13:$_v#! -* 48 :g <_v>60g1+60p1+:70g-   #^_^+
v_>$>:#,_@>       #\    $^$ >50g1   +50p50g90g-1-  !#v_^  5
">v>50p:!#^_50g:vv6 8-6g05<       #                  < !p0<
0:2^+1\-1\p1\"0"<>* +22g1-1p!#v_ :50g1-g>   80g:1+80p21g1+pv
"+1^g22:: <  v_ #` #g13g2$#2!#<^   #    ^_v#-" ":g-1g05: +1<
\1g >64*-#^_$| >$   60g21g2+p           v >$$80p22g>1-::60p:21v
 p2 ^p12:+2g12p 08p06:\-<v06gg09 :<$#   >#    #<   ^vg+1g12\gg<
 +>+g"0"-!#v_:22g\- 00g\^>g21gg-:!#^_0`90g\-90p^    >:" "-!#v_v
 ^2g12\" ":<$!_^#!-+88-gg12-1g06 :+"0"<   p080_v#<`0+1:-g08-  <
>:#-1g #2\  #<     >1-:31g-"."\#|_\:< ^++55p081< ^10     :$$<JJ
... Yep, that's code. I swear. Don't ask me how it works, I'm as clueless as you are. Apparently that divides two numbers.

Also, Assembly is by far not the lowest language. Many programmers (decades ago) have programmed by punching holes in punch cards, using direct binary values, and even wiring vaccuum tubes together to perform a specific task.