Author Topic: C++ on the TI-Nspire  (Read 20622 times)

0 Members and 1 Guest are viewing this topic.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
C++ on the TI-Nspire
« on: June 16, 2013, 04:34:09 pm »
ExtendeD is still working on Ndless, and has just solved technical issues that prevented C++ support from being implemented in Ndless.
Here you go for a brand new version of Ndless :)

The first C++ programs for Nspire have been coded by tangrs a while ago, but the issue was that elf2flt was not handling some relocations with recent GCC versions for ARM. This caused issues with hoffa's nSDL, and was reducing the number of programs you could port for the Nspire.

Now that the issue has been identified, ExtendeD patched elf2flt and published :


Here's a preview of the new features of a direct port (with small changes to adapt to the platform itself, like keyboard, resolution...) showing what c++ with nSDL can provide, with a quick  port of Advanced Tetris by GDO, by Extended :


Have fun with Ndless, even if TI tries to prevent us from opening the Nspire - they have more to lose than we do :)




Source and downloads: http://ndlessly.wordpress.com/2013/06/15/cpp-for-the-ti-nspire/ & ExtendeD for tip

Cross posted from TI-Planet
« Last Edit: June 16, 2013, 04:34:44 pm by Jim Bauwens »

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: C++ on the TI-Nspire
« Reply #1 on: June 16, 2013, 04:49:07 pm »
Great! Thanks for your continued work on Ndless, ExtendeD! :)

So does the use of bFLT mean that the issues with global variables are now also solved?

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: C++ on the TI-Nspire
« Reply #2 on: June 16, 2013, 05:27:10 pm »
That's fantastic news. I'm sure a lot of coders will be really happy! :D

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: C++ on the TI-Nspire
« Reply #3 on: June 16, 2013, 05:47:57 pm »
Thanks for cross posting :)

This is great news. I believe that some people used minimal C++ stuff before, but they couldn't use the entire language. It's good news since some people prefer it to C.

Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Re: C++ on the TI-Nspire
« Reply #4 on: June 17, 2013, 02:21:19 am »
Oh great, now you're making me doubt again wether I should learn C or C++ :P J/k, fatastic work!
* ElementCoder will just learn both

Some people need a high five in the face... with a chair.
~EC

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: C++ on the TI-Nspire
« Reply #5 on: June 17, 2013, 05:20:18 am »
Oh great, now you're making me doubt again wether I should learn C or C++ :P J/k, fatastic work!
* ElementCoder will just learn both
Well, since they are so close in their cores, you could learn C first, then learn C++'s expansions.

And that's awesome by the way. :D
« Last Edit: June 17, 2013, 05:20:39 am by Streetwalker »

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: C++ on the TI-Nspire
« Reply #6 on: June 17, 2013, 07:21:52 am »
So does the use of bFLT mean that the issues with global variables are now also solved?

Yes :) You can thank tangrs for this.
Ndless.me with the finest TI-Nspire programs

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: C++ on the TI-Nspire
« Reply #7 on: June 17, 2013, 07:24:58 am »
Ha, that's awesome, i love c++ :D

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: C++ on the TI-Nspire
« Reply #8 on: June 17, 2013, 10:31:29 am »
That is very great news !
Iirc, some emulators people wanted to see ported (Sega for example) couldn't be be ported from C (because no one coded them in C) but existed in C++, so maybe we could see those emulators coming now ?
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: C++ on the TI-Nspire
« Reply #9 on: June 17, 2013, 11:08:10 am »
Yeah what Hayleia said. :D

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Re: C++ on the TI-Nspire
« Reply #10 on: June 17, 2013, 02:06:12 pm »
Just make sure that the emulator is properly coded in its current form before considering porting it to a weaker platform. I remember some NES emulators like JNES that could barely even run on a Pentium II 350 MHz (got like 8 FPS), yet Nesticle and FCEU would run at 60 FPS.

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: C++ on the TI-Nspire
« Reply #11 on: June 17, 2013, 03:25:51 pm »
This is really awesome, because people can port a lot of SDL games and emulators written in C++. :D

Offline AlexisVieira

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 100
  • Rating: +1/-1
    • View Profile
Re: C++ on the TI-Nspire
« Reply #12 on: June 17, 2013, 04:00:22 pm »
I think that we will see lots of new games on the next times :) I really want to see that SEGA emulator :) (working on the black/white nspires too)
by the way, it's now possible to make a GBA emulator compatible with the non-cx nspires?
« Last Edit: June 17, 2013, 04:07:08 pm by AlexisVieira »
I'm Portuguese, sorry bad English

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: C++ on the TI-Nspire
« Reply #13 on: June 17, 2013, 04:02:58 pm »
I think classics' hardware is too weak for GBA, else gpSP would have been realeased to it too. ;)

Offline AlexisVieira

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 100
  • Rating: +1/-1
    • View Profile
Re: C++ on the TI-Nspire
« Reply #14 on: June 17, 2013, 04:07:41 pm »
I think classics' hardware is too weak for GBA, else gpSP would have been realeased to it too. ;)
that's great news :)
I'm Portuguese, sorry bad English