Author Topic: Petit Computer  (Read 43262 times)

0 Members and 1 Guest are viewing this topic.

Offline IAmAPerson

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 19
  • Rating: +0/-0
    • View Profile
Re: Petit Computer
« Reply #150 on: January 27, 2014, 12:13:05 am »
Is Petit Computer as slow as TI-BASIC?
I'm not sure, but when I ran this code:

@LOOP
V=V+1
?V
[email protected]

It cycled about 1,000 times a second, compared to a language like C# which has about 20,000.
Main programmer and developer for Minecraft DS!
Currently working on Beta 2.0
Wiki page! Minecraft DS
<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/8a6534f9cb6212b1.png" alt="NerdTests.com says I'm a Light-Weight Nerd.  Click here to take the Nerd Test, get nerdy images and jokes, and talk to others on the nerd forum!">
</a>

Offline annoyingcalc

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1950
  • Rating: +140/-72
  • Found in Eclipse.exe
    • View Profile
Re: Petit Computer
« Reply #151 on: January 27, 2014, 11:29:01 pm »
Thats much better than TI-BASIC :3
This used to contain a signature.

Offline DJ Omnimaga

  • Now active at https://codewalr.us
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55821
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Petit Computer
« Reply #152 on: January 27, 2014, 11:47:30 pm »
I think TI-84+ BASIC does For(Z,0,1000:End in 1.5 or 2 seconds, but there is no sprite nor rectangle command, so sprites have to be drawn pixel by pixel, using line or text commands, and maths are not very fast.


« Last Edit: January 27, 2014, 11:48:16 pm by DJ Omnimaga »
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF


Bandcamp|Reverbnation|Facebook|Youtube|Twitter

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2897
  • Rating: +467/-17
    • View Profile
    • TI-Boy CE
Re: Petit Computer
« Reply #153 on: January 29, 2014, 02:14:11 pm »
I think TI-84+ BASIC does For(Z,0,1000:End in 1.5 or 2 seconds, but there is no sprite nor rectangle command, so sprites have to be drawn pixel by pixel, using line or text commands, and maths are not very fast.



Actually, in the program above, the ?V line is a shorthand for PRINT V. So it's actually looping and printing each value. (Though, that's usually more a test of the speed of the print statement than that of the loop.)
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline IAmAPerson

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 19
  • Rating: +0/-0
    • View Profile
Re: Petit Computer
« Reply #154 on: January 29, 2014, 02:21:14 pm »
Petit Computer runs your code FOR I=0TO 1000:NEXT in about a tenth of a second. Petit Computer is actually very fast for an interpreted language.
Main programmer and developer for Minecraft DS!
Currently working on Beta 2.0
Wiki page! Minecraft DS
<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/8a6534f9cb6212b1.png" alt="NerdTests.com says I'm a Light-Weight Nerd.  Click here to take the Nerd Test, get nerdy images and jokes, and talk to others on the nerd forum!">
</a>

Offline DJ Omnimaga

  • Now active at https://codewalr.us
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55821
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Petit Computer
« Reply #155 on: January 29, 2014, 02:49:03 pm »
I think TI-84+ BASIC does For(Z,0,1000:End in 1.5 or 2 seconds, but there is no sprite nor rectangle command, so sprites have to be drawn pixel by pixel, using line or text commands, and maths are not very fast.



Actually, in the program above, the ?V line is a shorthand for PRINT V. So it's actually looping and printing each value. (Though, that's usually more a test of the speed of the print statement than that of the loop.)
Oh, right, then it's even better. In TI-84+ BASIC I think this would loop 100 times per second using Disp (with scrolling) and almost 200 times a second using output. So Petit Computer is definitively pretty nice when it comes to speed.

The only issue I have is if a game has a particularly high amount of QC codes (eg 100), it must takes hours to scan everything D:
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF


Bandcamp|Reverbnation|Facebook|Youtube|Twitter

Offline IAmAPerson

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 19
  • Rating: +0/-0
    • View Profile
Re: Petit Computer
« Reply #156 on: January 29, 2014, 02:57:13 pm »
@DJ_Omnimaga it can definitely be a pain, but I've never spent more than 20 minutes scanning codes, even MM2.
Main programmer and developer for Minecraft DS!
Currently working on Beta 2.0
Wiki page! Minecraft DS
<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/8a6534f9cb6212b1.png" alt="NerdTests.com says I'm a Light-Weight Nerd.  Click here to take the Nerd Test, get nerdy images and jokes, and talk to others on the nerd forum!">
</a>

Offline IAmAPerson

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 19
  • Rating: +0/-0
    • View Profile
Re: Petit Computer
« Reply #157 on: February 18, 2014, 09:23:28 am »
Minecraft DS Beta 2.0.0 Prerelease 1! http://petitcomputer.wikia.com/wiki/Minecraft_DS
Main programmer and developer for Minecraft DS!
Currently working on Beta 2.0
Wiki page! Minecraft DS
<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/8a6534f9cb6212b1.png" alt="NerdTests.com says I'm a Light-Weight Nerd.  Click here to take the Nerd Test, get nerdy images and jokes, and talk to others on the nerd forum!">
</a>

Offline LeviCelJir

  • LV0 Newcomer (Next: 5)
  • Posts: 3
  • Rating: +0/-0
  • Bloopy
    • View Profile
Re: Petit Computer
« Reply #158 on: February 21, 2014, 10:21:35 am »
Bloopy