This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
BenAgain's profile picture

TRS-80 BASIC

Started by BenAgain, 14 March 2012 - 10:59 PM
BenAgain #1
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.
DarkNinja2462 #2
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
BenAgain #3
Posted 15 March 2012 - 01:04 AM
http://en.wikipedia.org/wiki/TRS-80#Model_III
6677 #4
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
BenAgain #5
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.
Sebra #6
Posted 15 March 2012 - 03:13 PM
Lua is so flexible…. learn it and forget basic.
I started to learn lua with this mod.
BenAgain #7
Posted 15 March 2012 - 09:07 PM
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.
Espen #8
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/>/>
Sebra #9
Posted 16 March 2012 - 02:38 PM
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?
Neowulf #10
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?
BenAgain #11
Posted 16 March 2012 - 08:01 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/>/>

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.
Liraal #12
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/
PatriotBob #13
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….
ETHANATOR360 #14
Posted 21 June 2012 - 03: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")
kazagistar #15
Posted 21 June 2012 - 04: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/>/>
ETHANATOR360 #16
Posted 21 June 2012 - 03: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
BenAgain #17
Posted 25 June 2012 - 04:20 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

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'.
kazagistar #18
Posted 25 June 2012 - 04: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.