? Dedicated Machine to run SmileBASIC? (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password
💀

Dedicated Machine to run SmileBASIC?

  • #1 ✎ 244 Shelly It might sound like a stretch, but it has actually been done in the past (Wang 2200). How would it work?: We would microcode a CPU so that it would take the BASIC instructions, and execute them. We could also run it at a higher level (such as assembly), but that would result in slower execution times. Is it feasible?: Maybe. The computer would definitely run at a lower clock speed than the 3ds, but it would also use the clock cycles FAR more efficiently. Its hard to tell. Posted Edited by Shelly
  • #2 ✎ 485 ToadIsTheBest Video Games I like to play video games! Hobbies Drawing I like to draw! Hobbies Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength
    It might sound like a stretch, but it has actually been done in the past (Wang 2200). How would it work?: We would microcode a CPU so that it would take the BASIC instructions, and execute them. We could also run it at a higher level (such as assembly), but that would result in slower execution times. Is it feasible?: Maybe. The computer would definitely run at a lower clock speed than the 3ds, but it would also use the clock cycles FAR more efficiently. Its hard to tell.
    hasn't this already happened? oh wait that was just a raspberry pi with SB, a screen, an emulator for some obscure console and a keyboard, so it wasn't technically built for SB, but it's included with it.
    Posted Edited by ToadIsTheBest
  • #3 ✎ 286 spaceturtles Video Games I like to play video games! Hobbies Avatar Block I didn't change my avatar for 30 days. Website Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength The Pasocom Mini exists. Posted Edited by spaceturtles
  • #4 ✎ 115 CyberYoshi64 Night Person I like the quiet night and sleep late. Express Yourself Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength
    The Pasocom Mini exists.
    There's even an extra thread on the Pasocom Mini.
    Posted
  • #5 ✎ 485 ToadIsTheBest Video Games I like to play video games! Hobbies Drawing I like to draw! Hobbies Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength
    The Pasocom Mini exists.
    uh i already mentioned that, turtles... 2 days before you posted your post actually LOL
    Posted
  • #6 ✎ 286 spaceturtles Video Games I like to play video games! Hobbies Avatar Block I didn't change my avatar for 30 days. Website Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength You didn't say "Pasocom Mini" :p Posted
  • #7 ✎ 485 ToadIsTheBest Video Games I like to play video games! Hobbies Drawing I like to draw! Hobbies Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength
    You didn't say "Pasocom Mini" :p
    i was talking about it
    Posted
  • #8 ✎ 158 MochaProbably Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Night Person I like the quiet night and sleep late. Express Yourself Drawing I like to draw! Hobbies
    You didn't say "Pasocom Mini" :p
    i was talking about it
    You could have talked about something else.
    Posted
  • #9 ✎ 61 ninjagnu It'll be like the LISP machines of yore but, more fun to program. Posted
  • #10 ✎ 244 Shelly
    It might sound like a stretch, but it has actually been done in the past (Wang 2200). How would it work?: We would microcode a CPU so that it would take the BASIC instructions, and execute them. We could also run it at a higher level (such as assembly), but that would result in slower execution times. Is it feasible?: Maybe. The computer would definitely run at a lower clock speed than the 3ds, but it would also use the clock cycles FAR more efficiently. Its hard to tell.
    Another possibility is something like a FPGA being ran as a coprocessor (the most likely way this could be done is with something like an esp8266, a FPGA, and branching off of Coinz's work).
    Posted
  • #11 ✎ 172 CoinzReturns
    It might sound like a stretch, but it has actually been done in the past (Wang 2200). How would it work?: We would microcode a CPU so that it would take the BASIC instructions, and execute them. We could also run it at a higher level (such as assembly), but that would result in slower execution times. Is it feasible?: Maybe. The computer would definitely run at a lower clock speed than the 3ds, but it would also use the clock cycles FAR more efficiently. Its hard to tell.
    Another possibility is something like a FPGA being ran as a coprocessor (the most likely way this could be done is with something like an esp8266, a FPGA, and branching off of Coinz's work).
    With TCP SmileNet, you could easily set up a SmileBasic program that sends opcodes over the network to another machine, to have it co-process that, and then have a wait-on loop in the main loop of the SmileBasic program for the recieved transmission of opcode completed running but, this isn't practical for JUST in time complications or compilations because of the fact that it would always take more time for packets to transfer to another machine, be processed, and then be returned. That's just due to SmileBasic and SmileNet requiring MORE loop cycles to complete packet transmissions than is needed for SmileBasic to run the calculation on it's own (unless the calculation is so specialized the gains from network transmission co-processing would be greater than the time-wait loss.) That's just my two cents. Alternatively, you coudl set up a dummy server within SmileNet that runs a SmileBasic program who's only job is to parse and run transmitted code results from another machine. A good example of this, is an nes Emulator running on the PC side, transmitting pixel frame data to the 3ds, and recieving 3ds-side input data and sending it to the Nes-Emulator on PC. This is something that would benefit from co-processing, even if the lag would be pretty reasonable, it wouldn't be impossibly unreasonable you'd probably get up to 30 plus frames considering that SmileNet can transmit alot of packets in a little time.
    Posted
  • #12 ✎ 244 Shelly I am doing some math to figure out how feasible a coprocessor board would be based on Parallax Propellers. The screen would require 1907220 bits of data per frame, and the DAC I have in mind would be able to transmit data in the form of audio at a rate of around 2400000 bits per second (12 bit DAC transmitting at around 200Khz). That means we would get a little over a frame per second, which is totally unplayable. The framerate could likely be increased by having the 3DS do some processing, while allowing the Parallax Propellers to do most of it. I doubt the increase would be significant though. [EDIT] One possible way to increase the framerate is to use 12 bit colors. This would mean the screen would only use 1144332 bits per frame, which would mean I could get about 2.1 frames per second, which is almost double what it would've been with 20 bit color. If anyone wants to suggest some ways to increase the speed it would be much appreciated. Posted Edited by Shelly