Jump to content




TRS-80 BASIC


  • You cannot reply to this topic
17 replies to this topic

#1 BenAgain

  • New Members
  • 18 posts
  • LocationMississauga

Posted 14 March 2012 - 11:59 PM

It looks like this thread is for suggestions for the official thing, and I'm requesting an add on thing, but.. eh. Now, I like this mod. Alot. I see plenty of potential, and I have many plans of my own. However, I don't know CRAP about Lua. And tutorails aren't really helping. But, I do know enough about TRS-80 Model 3 BASIC to write programs. So:

THE POINT:
I'd love it if someone could make an 'OS' for ComputerCraft that lets you write programs in BASIC, like the one in the TRS-80 Model 3 so I can more easly write my own thing-a-ma-jigs. Of course, some new things would need to be added for crap like redstone. I don't expect this to actually be made, but it's worth a shot.

#2 DarkNinja2462

  • Members
  • 107 posts
  • LocationThe 4th Dimension

Posted 15 March 2012 - 12:16 AM

Is the TRS-80 a calculator, cuz ik how to program in TI-BASIC on a TI-84 Plus

#3 BenAgain

  • New Members
  • 18 posts
  • LocationMississauga

Posted 15 March 2012 - 01:04 AM

http://en.wikipedia....RS-80#Model_III

#4 6677

  • Members
  • 197 posts
  • LocationCambridgeshire, England

Posted 15 March 2012 - 08:48 AM

For this to work a full BASIC interpreter would have to be written in lua, seeming as lua is already an interpreter language this would be terribly slow. I'm not sure it's even possible.


lua isn't hard to learn. Just go read some tutorials

#5 BenAgain

  • New Members
  • 18 posts
  • LocationMississauga

Posted 15 March 2012 - 02:46 PM

So I guess BASIC would only really be possible if it was offerd as an officialy made alternative to lua? Oh well. I will learn lua eventually, I'm just saying it would help if I could start with what I already know.

#6 Sebra

  • Members
  • 726 posts

Posted 15 March 2012 - 03:13 PM

Lua is so flexible.... learn it and forget basic.
I started to learn lua with this mod.

#7 BenAgain

  • New Members
  • 18 posts
  • LocationMississauga

Posted 15 March 2012 - 09:07 PM

View PostSebra, on 15 March 2012 - 03:13 PM, said:

Lua is so flexible.... learn it and forget basic.
I started to learn lua with this mod.

But I like my old TRS-80! And BASIC is nice and basic.

#8 Espen

    Curious Explorer

  • Members
  • 708 posts

Posted 15 March 2012 - 10:21 PM

But learning Lua is more nice and basic than having someone develop a BASIC interpreter for CC.
Don't expect more work from others if you're not willing to do some work of your own. :D/>

#9 Sebra

  • Members
  • 726 posts

Posted 16 March 2012 - 02:38 PM

View PostBenAgain, on 15 March 2012 - 09:07 PM, said:

But I like my old TRS-80! And BASIC is nice and basic.
Then clean the dust from your old TRS-80 and use it. And why not fortran or machine coding? Why not assembler as a most basic language?

#10 Neowulf

  • Members
  • 33 posts

Posted 16 March 2012 - 03:54 PM

Screw text programming, why don't they give me the option to program in stone henge formations like the good old days?

#11 BenAgain

  • New Members
  • 18 posts
  • LocationMississauga

Posted 16 March 2012 - 08:01 PM

View PostEspen, on 15 March 2012 - 10:21 PM, said:

But learning Lua is more nice and basic than having someone develop a BASIC interpreter for CC.
Don't expect more work from others if you're not willing to do some work of your own. :D/>

How do I do work of my own if I don't know how? I have learend a bit, though. I made a couple sister programs for sending messages through RedNet, then posting them on a large monitor with a timestamp. But that's it so far.

#12 Liraal

  • New Members
  • 477 posts
  • LocationPoland

Posted 16 March 2012 - 08:06 PM

How to learn:
http://www.lua.org/m...5.1/manual.html
http://www.computerc...torial-in-game/

#13 PatriotBob

  • New Members
  • 38 posts

Posted 22 March 2012 - 01:58 AM

And besides, we all know if another interpreter was added it should be the V8 javascript engine... cause... oh God... the speed....

#14 ETHANATOR360

  • Members
  • 423 posts
  • Locationyour hardrive

Posted 21 June 2012 - 02:09 AM

lua and basic are almost the same
example:
BASIC lua
x = rnd (3) x = math.random (1,6)
print "hello world" print ("hello world")

#15 kazagistar

  • Members
  • 365 posts

Posted 21 June 2012 - 03:32 AM

Basic being basic is the most horrible lie. Basic is hard, because by centring on gotos and functions, you have to track way more of the state then you should in your head while programming.

But yeah, they are rather close in a lot of ways. For example, the annoying block starting and ending statements, the horrible use of global namespace, etc. :P/>

#16 ETHANATOR360

  • Members
  • 423 posts
  • Locationyour hardrive

Posted 21 June 2012 - 02:03 PM

my uncle had a trs-80 color computer in his garage like the one in my profile pic and he gave it to me and i can see why you want basic as a language in computercraft but lua basic allmost the same

#17 BenAgain

  • New Members
  • 18 posts
  • LocationMississauga

Posted 25 June 2012 - 03:20 PM

View PostETHANATOR360, on 21 June 2012 - 02:03 PM, said:

my uncle had a trs-80 color computer in his garage like the one in my profile pic and he gave it to me and i can see why you want basic as a language in computercraft but lua basic allmost the same

I actually have a few CoCos of my own. My dad used to collect computers. And I know Lua and BASIC are almost the same, but it's written so differently. I could easily write up some sauce in BASIC, but now with Lua, I have to learn a whole 'nother language to say the exact same words, to what feels like the same 'person'.

#18 kazagistar

  • Members
  • 365 posts

Posted 25 June 2012 - 03:55 PM

Being trapped in one particular vocabulary is a burden, not a blessing. Basic is, by and large, considered to be a bad programming language by the programming community, and for good reason; while I don't want to be too hard on it, it encourages you to use very bad constructs like goto and create spaghetti code. Look at it this way... every time I have learned a new language, I also learned how my previous languages had been limiting me in some way, and became better at programming all around. I know it might seem like a slog, but I am sure you will find it to be beneficial eventually.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users