18 posts
Location
Mississauga
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.
102 posts
Location
The 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
18 posts
Location
Mississauga
Posted 15 March 2012 - 01:04 AM
195 posts
Location
Cambridgeshire, 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
18 posts
Location
Mississauga
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.
724 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.
18 posts
Location
Mississauga
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.
715 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/>/>
724 posts
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?
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?
18 posts
Location
Mississauga
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.
473 posts
Location
Poland
Posted 16 March 2012 - 08:06 PM
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….
419 posts
Location
your hardrive
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")
351 posts
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/>/>
419 posts
Location
your hardrive
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
18 posts
Location
Mississauga
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'.
351 posts
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.