Announcement

Collapse
No announcement yet.

BASIC Chat

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #76
    Originally posted by astcell
    Can any program be written in any language?
    Slight modification to that question: can any program be written in Brainfuck?

    That language seems to me to more or less be the software implementation of the front panel of an Altair 8800 than anything else...

    Comment


    • #77
      Originally posted by astcell
      Can any program be written in any language? Nevermind about bulk or waste.
      Theoretically yes, because if the language was missing a certain function, used by the program, you could code an inline routine to perform that function.
      Of course, thats in theory.


      Originally posted by astcell
      Can you technically write Windows in basic?
      Isn't it allready written in interpreted basic ?

      Dutch
      All your answers are belong to Google. Search dammit!!!

      Comment


      • #78
        Aw, I missed all the fun. Geez, I leave you kids alone for a few days and look at all the banned tards... >:)

        *Some* basics can be useful-

        LosT

        Comment


        • #79
          Useful BASIC crap

          Hey, kids! Wanna slow down yer VAX? Sure you do! Crunch some big prime numbers in VAX-11 BASIC!

          10 rem big prime number cruncher
          20 DECLARE GFLOAT a,b,c,d,e,f
          21 declare GFLOAT x
          25 input "odd num, please.";f
          26 input "Enter search width :";h
          29 d=f+h
          30 for a=f to d step 2.0
          40 c=REAL(sqr(a)+1,GFLOAT)
          50 for b=3.0 to c step 2.0
          60 x=real(a/b,GFLOAT)
          70 if REAL(fix(x)=x,GFLOAT) then goto 90
          80 next b
          85 print using "##################";a;
          86 print " is a prime number."
          88 next a
          90 print using "##################";a;
          91 print " is not a prime, factor :";
          92 print using "##################";b
          95 goto 88
          100 end

          Too boring? Draw a Mandelbrot set on your GiGi terminal w/ ReGIS graphics. That thar's a useful program! (original progs by kevino, lest anyone call me a code-thievin' math geek)

          10 declare gfloat a,b,c,za,zb,zza,zzb
          20 declare integer color,px,py,d,e
          25 clrflag=1
          30 rem clear screen
          31 print chr$(27);"Pp s(E)"
          33 print "S(I0) W(V) W(I1) "
          36 il=3
          gosub 40
          print "W(E) "
          il=4
          gosub 40
          print "W(V) "
          print "W(I2) "
          il=5
          gosub 40
          print "W(E) "
          il=7
          gosub 40
          print "W(V) "
          il=17
          gosub 40
          print "W(E) "
          il=80
          gosub 40
          37 goto 370
          40 for py=0 to 478 step 2
          50 for px=0 to 766
          60 a=3.6*px/766-2.3
          70 b=2.8*py/478-1.4
          80 za=0
          90 zb=0
          100 for d=1 to il
          110 zza=za*za-zb*zb+a
          120 zzb=2*za*zb+b
          130 if zza*zza+zzb*zzb > 4
          then goto 300
          end if
          160 za=zza
          170 zb=zzb
          180 next d
          300 if d<il
          then color =1
          else color =0
          end if
          340 rem set point px,py color=color
          341 if color=0 and clrflag=1
          then print "P[";px;",";py;"] "
          clrflag=0
          end if
          342 if color=1 and clrflag=0
          then print "V[";px-1;",";py;"] "
          clrflag=1
          end if
          350 next px
          360 next py
          365 return
          370 rem end of program loop here to save picture
          390 end

          Or, do yourself a favor and learn C
          Surreal
          Last edited by skroo; August 26, 2005, 17:54. Reason: I'm too fucking illiterate to know the difference between 'edit' and 'reply'

          Comment


          • #80
            GOD DAMN IT.

            Surreal, I'm sorry. This is now the second time I've edited someone's post instead of replying to it. That wasn't intentional; it's just me hitting the wrong fucking button and tarding it all up.

            Teh computar is hard. I'm going to go drink now.

            Comment


            • #81
              How about a program to calculate pi?

              Comment


              • #82
                Originally posted by minihacker316
                Is it just me or does python work a lot similar to basic.
                I think your example misrepresents python a bit. But python was initially designed to have straight forward syntax.

                Comment

                Working...
                X