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

0 Members and 2 Guests are viewing this topic.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: C++ on the TI-Nspire
« Reply #15 on: June 17, 2013, 04:09:41 pm »
Hmmm, I think you misunderstood me. The answer was no. :P
* Streetwalker runs
Sorry dude. :/

Offline sammyMaX

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 204
  • Rating: +9/-0
    • View Profile
Re: C++ on the TI-Nspire
« Reply #16 on: June 17, 2013, 04:34:59 pm »
There are many advantages C++ has over C, but what makes me especially happy is that dealing with strings is no longer a PITA  ;D

Are you wondering who Sammy is? My avatar is Sammy.
   

Offline AlexisVieira

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 100
  • Rating: +1/-1
    • View Profile
Re: C++ on the TI-Nspire
« Reply #17 on: June 17, 2013, 05:49:56 pm »
Hmmm, I think you misunderstood me. The answer was no. :P
* Streetwalker runs
Sorry dude. :/
oh :( sorry... my bad english again -.-
I'm Portuguese, sorry bad English

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: C++ on the TI-Nspire
« Reply #18 on: June 17, 2013, 09:32:13 pm »
Are there many ARM coders on Nspire?
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


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 #19 on: June 17, 2013, 09:55:16 pm »
Sadly, not much. We had a few in the early days of the Nspire, but when we discovered we could use C, everyone switched to C. And Nspire programming almost completely died for a while after OS 3.0.2 came out and it took almost half a year before Ndless 3.x is possible. Now it's pretty much like the 68K scene back in 2007-09.

Offline Hooloovoo

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 225
  • Rating: +22/-0
    • View Profile
Re: C++ on the TI-Nspire
« Reply #20 on: June 17, 2013, 10:10:28 pm »
There is one that I can think of now right off the top of my head, and that is jacobly with his calcemu, which is written completely in ARM asm. Also, Calc84 wrote gbc4nspire in assembly.
« Last Edit: June 17, 2013, 10:11:02 pm by fortytwo »
"My world is Black & White. But if I blink fast enough, I see it in Grayscale." -tr1p1ea
Spoiler For some of the calcs I own:



(actually I have quite a few more than this, but I don't feel like making bars for them all.)

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 #21 on: June 18, 2013, 12:16:41 am »
Oh I didn't know Jacobly used ARM ASM. I know ExtendeD did and calc84maniac too, but I thought calc84maniac switched to C after gbc4nspire.

Offline ajorians

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 105
  • Rating: +47/-0
    • View Profile
Re: C++ on the TI-Nspire
« Reply #22 on: June 18, 2013, 09:07:05 am »
Hey Guys,

I'm very happy to see C++ support implemented in Ndless!  AFAIK with bFLT format handling it should be easier to create a game with external A.I. players.  Like a plugin.  So imagine playing Connect 4 (for example) and somebody creates a new A.I. player to play with and all you got to do is add the one new A.I. file.

ikj: I tested the "issues with global variables" and they are indeed solved!  See Test_Globals attachment.  C++ exceptions are disabled (see Test_Exceptions attachment); but we can create some amazing things without them!

Have a great day!

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: C++ on the TI-Nspire
« Reply #23 on: June 18, 2013, 12:27:41 pm »
Meh. Exceptions are for pussies, you should catch the thing before an exception is thrown. :P

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: C++ on the TI-Nspire
« Reply #24 on: June 18, 2013, 12:53:40 pm »
I saw on tangrs blog that exceptions don't work because of some unimplemented functions. What are these functions??

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: C++ on the TI-Nspire
« Reply #25 on: June 18, 2013, 12:55:00 pm »
Exceptions do indeed have drawbacks. AFAIK, most secure / embedded C++ coding conventions ban them.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline ajorians

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 105
  • Rating: +47/-0
    • View Profile
Re: C++ on the TI-Nspire
« Reply #26 on: June 18, 2013, 01:56:38 pm »
Hey Guys,

Indeed!  I compiled the very simple Text_Exceptions and with the throw,try&catch commented out and there is a size difference (see below).  Personally I'm perfectly fine without exceptions; but I could see if somebody using Boost or something would need to write around their issue.

Thanks and have a wonderful day!

Offline ajorians

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 105
  • Rating: +47/-0
    • View Profile
Re: C++ on the TI-Nspire
« Reply #27 on: June 18, 2013, 02:04:10 pm »
I saw on tangrs blog that exceptions don't work because of some unimplemented functions. What are these functions??

Sorry, second post :(

For sure std::terminate.  I am under the impression that when an unhandled exception is called it would call that function.  I'd have to look up to know more.

Thanks!

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: C++ on the TI-Nspire
« Reply #28 on: June 18, 2013, 02:33:27 pm »
Also, std::unexpected, I guess.

Offline Hooloovoo

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 225
  • Rating: +22/-0
    • View Profile
Re: C++ on the TI-Nspire
« Reply #29 on: June 18, 2013, 03:03:48 pm »
ajorians: you can use the 'modify' button on the top-right of your post to edit the post and avoid double-posting.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale." -tr1p1ea
Spoiler For some of the calcs I own:



(actually I have quite a few more than this, but I don't feel like making bars for them all.)