Jump to content




Raspberry pi + ComputerCraft


  • This topic is locked This topic is locked
35 replies to this topic

#1 jadelade

  • Members
  • 43 posts

Posted 18 October 2012 - 05:08 AM

Hi,

This is mostly to dan but I have just got a Raspberry ∏ and the OS (I don't know how you spell more then one OS, it would be grate it someone told me thanks.) that are out there are a bit to steep to learn hopefully this is not to much to ask but will someone create a ComputerCraft OS for the Raspberry ∏ that would be grate you would need a input output API for it and it would be cool for a input output API for rednet.

thanks

#2 ChunLing

  • Members
  • 2,027 posts

Posted 18 October 2012 - 06:32 AM

Are you suggesting making a version of ComputerCraft that runs on your Raspberry or making a Raspberry in CC? Or are you suggesting that Computer Craft support Python in addition to Lua?

#3 jadelade

  • Members
  • 43 posts

Posted 18 October 2012 - 01:44 PM

a version of computercraft that runs on the raspberry ∏ and making the raspberry ∏ a cc terminal

#4 ChunLing

  • Members
  • 2,027 posts

Posted 18 October 2012 - 04:32 PM

Well, who's to say that the CC terminal isn't a raspberry powered box? Not me. Perhaps you could give some specific ideas of what you would like to see changed to make it seem more like a raspberry?

But as for the other, whether you can run forge/modloader powered mods on different platforms is ultimately not up to the CC development team. It's up to forge and modloader.

#5 papaer12345

  • New Members
  • 1 posts

Posted 21 October 2012 - 08:24 PM

I read this post and I went and asked my dad who is a EE if you can program the raspberry pi to run like a LUA terminal and he said it is possible to do it.But it would be a challenge to add programs on pastebin.

#6 ChunLing

  • Members
  • 2,027 posts

Posted 21 October 2012 - 09:12 PM

See, the CC computers are raspberries that use lua. That's why they're so cheap.

#7 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 21 October 2012 - 10:49 PM

Surely Lua can just run on the pi? You could add some stuff to control the pins etc - could be neat!

#8 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 05 November 2012 - 06:18 PM

Om nom nom

#9 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 05 November 2012 - 11:32 PM

 dlcruz129, on 05 November 2012 - 06:18 PM, said:

Om nom nom
What the hell is this? -.-

#10 Sammich Lord

    IRC Addict

  • Members
  • 1,212 posts
  • LocationThe Sammich Kingdom

Posted 05 November 2012 - 11:59 PM

 tiin57, on 05 November 2012 - 11:32 PM, said:

 dlcruz129, on 05 November 2012 - 06:18 PM, said:

Om nom nom
What the hell is this? -.-
He was obviously hungry so he ate a cookie.

#11 Jasonfran

  • Members
  • 148 posts
  • LocationEngland

Posted 07 November 2012 - 06:43 AM

I doubt anyone would want to work with assembly. So this suggestion is highly unlikely to be made. And why buy a raspberry pi and complain it is too hard to understand, its the whole point. If you start hard you will be a great programmer. Lua is a cool language but you can't use it in many things as its just a scripting language. If you want to make programs and games I suggest just sticking with the OSes supported by the device and learn from there.

For Dan to make this possible he would have to create a shell in assembly and then make it so assembly has all the Lua functions as there will be no APIs for it like the Java Lua api that CC uses. Hard stuff

#12 immibis

    Lua God

  • Members
  • 1,033 posts
  • LocationWellington, New Zealand

Posted 07 November 2012 - 04:49 PM

Jasonfran, you have tempted me to write an OS in Lua just to prove you wrong....

#13 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 07 November 2012 - 07:43 PM

 immibis, on 07 November 2012 - 04:49 PM, said:

Jasonfran, you have tempted me to write an OS in Lua just to prove you wrong....
Do it.

#14 Jasonfran

  • Members
  • 148 posts
  • LocationEngland

Posted 07 November 2012 - 08:49 PM

Go for it. Its such a shame you can't write an operating system in Lua though

#15 Xtansia

  • Members
  • 492 posts
  • LocationNew Zealand

Posted 07 November 2012 - 11:29 PM

 Jasonfran, on 07 November 2012 - 08:49 PM, said:

Go for it. Its such a shame you can't write an operating system in Lua though

And why not?

#16 Jasonfran

  • Members
  • 148 posts
  • LocationEngland

Posted 08 November 2012 - 04:48 AM

 tomass1996, on 07 November 2012 - 11:29 PM, said:

 Jasonfran, on 07 November 2012 - 08:49 PM, said:

Go for it. Its such a shame you can't write an operating system in Lua though

And why not?
Uh because its not a machine language, its a scripting language. You CANNOT write a computer operating system in Lua as CPUs don't comprehend it, they are built to run on Assembly.
The only way computercraft works is because it uses a Java API that emulates it. About 50% of the Lua functions in CC are Java, all the OS api is Java based. You can write and operating system then add a Lua scripting environment but you'd need an API that emulates Lua, and you can't get them for Assembly. Go ahead, try but fail early on

#17 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 08 November 2012 - 06:43 AM

All you need is a C compiler, and you can write an OS with Lua. That is the MINIMUM requirement for Lua to work. If you read about Lua in their documentation, you see it's already embedded in microprocessors, and several other small footprint areas such as smartphones and toys. Can't you put a C compiler on the raspberry pi and then run Lua through it?

#18 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 08 November 2012 - 08:56 AM

 Cranium, on 08 November 2012 - 06:43 AM, said:

All you need is a C compiler, and you can write an OS with Lua. That is the MINIMUM requirement for Lua to work. If you read about Lua in their documentation, you see it's already embedded in microprocessors, and several other small footprint areas such as smartphones and toys. Can't you put a C compiler on the raspberry pi and then run Lua through it?
Then from there, it'd be child's play to port the CC APIs over. But it's useless - the Raspberry Pi is a novelty, not a serious computer.

#19 kazagistar

  • Members
  • 365 posts

Posted 08 November 2012 - 09:12 AM

 tiin57, on 08 November 2012 - 08:56 AM, said:

Then from there, it'd be child's play to port the CC APIs over.

I don't believe anyone has done this "childs play" though some people have tried. Maybe you can do better, and give us a luac emulator of CC?

#20 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 08 November 2012 - 11:17 AM

 kazagistar, on 08 November 2012 - 09:12 AM, said:

I don't believe anyone has done this "childs play" though some people have tried. Maybe you can do better, and give us a luac emulator of CC?
-.- It would be quite simple, having already created a Lua port to the Pi, to implement some redstone emulation and rednet. I can't do it: I don't know C or any of its variants very well.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users