Author Topic: HACC  (Read 23671 times)

0 Members and 1 Guest are viewing this topic.

Offline JonimusPrime

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 389
  • Rating: +25/-5
    • View Profile
    • Jonimoose.net
HACC
« Reply #90 on: September 04, 2007, 05:00:00 am »
Wow now I have to go and learn C/C++ I didn't even know this project existed.

"Always code as if the person who will maintain your code is a maniac serial killer that knows where you live" -Unknown

"If you've done something right no one will know that you've done anything at all" -Futurama

"Have a nice day, or not, the choice is yours." Tom Steiner

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
HACC
« Reply #91 on: September 04, 2007, 05:41:00 am »
You've made a pretty nice discovery %)rolleyes2.gif

I am myself waiting for it as well, because maybe this could make porting 83+ games to 89 easier if i ever venture into C again

Offline Halifax

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1334
  • Rating: +2/-1
    • View Profile
    • TI-Freakware
HACC
« Reply #92 on: September 04, 2007, 06:17:00 am »
Yes it most definitely would. Also why do people group C/C++? C++ is an extension of C, and has many distinguishes differences in my mind. If based of extensions then shouldn't it be B/C/C++/D?
There are 10 types of people in this world-- those that can read binary, and those that can't.

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
HACC
« Reply #93 on: September 04, 2007, 06:19:00 am »
Just so you know, jr is actually faster than jp on average if there's a 50% chance of jumping... :oohmy.gif
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

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
HACC
« Reply #94 on: September 04, 2007, 06:21:00 am »
well technically the 89t can only have C, right? I don't think C++ is really that necessary

Offline Halifax

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1334
  • Rating: +2/-1
    • View Profile
    • TI-Freakware
HACC
« Reply #95 on: September 04, 2007, 07:36:00 am »
@calc84maniac: I understand that, but what you said was a little flawed. JR has a 25% chance of being faster literally. Which I don't really know if you meant literally though by your post. Anyways this is why the decision is up to the programmer.

Really there is no sense in basing the speed of your routine off of that unless you know that it is more likely to be false which is most definitely not applicable in a compiler!

Also just so you know that logic applies to any command supporting conditionals.

@DJ_Omnimaga: No the TI-89t can have C++ if some builds the compiler. Any system can have C or C++ if some builds the compiler. But the problem is no one wants to build the compiler because frankly parsing C++ sucks and is very very hard.
There are 10 types of people in this world-- those that can read binary, and those that can't.

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
HACC
« Reply #96 on: September 04, 2007, 07:40:00 am »
jr average=(7+12)/2=9.5, jp average=(10+10)/2=10. Assuming that there's about a 50% chance that it will do the jump.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline Halifax

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1334
  • Rating: +2/-1
    • View Profile
    • TI-Freakware
HACC
« Reply #97 on: September 04, 2007, 07:45:00 am »
If that's how you do probability...either way as I said there is no way in basing the speed of your routine off of this and it would be best just to stick with the constant of jp. If worst comes to worst then just specify -dump-intfiles, optimize it to your liking, and then assemble and link it with the rest of your program.
There are 10 types of people in this world-- those that can read binary, and those that can't.

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
HACC
« Reply #98 on: September 04, 2007, 07:56:00 am »
QuoteBegin-Halifax+4 Sep, 2007, 14:36-->
QUOTE (Halifax @ 4 Sep, 2007, 14:36)
@DJ_Omnimaga: No the TI-89t can have C++ if some builds the compiler. Any system can have C or C++ if some builds the compiler. But the problem is no one wants to build the compiler because frankly parsing C++ sucks and is very very hard.  

 yeah i was more talking about the fact there's no compiler that can do it yet, Idk what would be the point to write one tho, because C is alerady good enough and its a calc anyway ;)wink.gif

Offline Halifax

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1334
  • Rating: +2/-1
    • View Profile
    • TI-Freakware
HACC
« Reply #99 on: September 04, 2007, 08:00:00 am »
Hmm yes C is fine which is why I advocate for it, but many people say it is easier to program in C++. Although I must admit that C++ is better for engine development and also GUI development, it is nothing that C can't handle.
There are 10 types of people in this world-- those that can read binary, and those that can't.

Offline bfr

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 819
  • Rating: +4/-0
    • View Profile
    • bfr's website
HACC
« Reply #100 on: September 04, 2007, 11:09:00 am »
QuoteBegin-Halifax+4 Sep, 2007, 11:17-->
QUOTE (Halifax @ 4 Sep, 2007, 11:17)
Yes it most definitely would. Also why do people group C/C++? C++ is an extension of C, and has many distinguishes differences in my mind. If based of extensions then shouldn't it be B/C/C++/D?

For the most part, C++ is backwards-compatible with C, and C and C++ seem to be the most common.

Liazon

  • Guest
HACC
« Reply #101 on: September 04, 2007, 12:08:00 pm »
QuoteBegin-Halifax+4 Sep, 2007, 13:45-->
QUOTE (Halifax @ 4 Sep, 2007, 13:45)
If that's how you do probability...either way as I said there is no way in basing the speed of your routine off of this and it would be best just to stick with the constant of jp. If worst comes to worst then just specify -dump-intfiles, optimize it to your liking, and then assemble and link it with the rest of your program.  

 I agree with you.  Sometimes i find just by design, the chance of the jr jumping is less than not jumping by a lot.  when that's the case, I usually use jp.  the space is no big issue for me atm because i'm doing mainly apps.

btw, i think you might as well try to make a java interpreter/compiler for 8x+ instead of C++.  i started learning recently and it's awesome.

Offline Halifax

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1334
  • Rating: +2/-1
    • View Profile
    • TI-Freakware
HACC
« Reply #102 on: September 04, 2007, 12:34:00 pm »
@bfr: D is also backwards compatible with C and C++, and it holds immense popularity already! Mainly because you can link to C and C++ libraries which means OpenGL, DirectX, SDL, Qt, and every other great library is available for D!

*Halifax
There are 10 types of people in this world-- those that can read binary, and those that can't.

Liazon

  • Guest
HACC
« Reply #103 on: September 05, 2007, 12:09:00 pm »
^^ sorry i meant 68k lol.

Offline bfr

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 819
  • Rating: +4/-0
    • View Profile
    • bfr's website
HACC
« Reply #104 on: September 05, 2007, 12:14:00 pm »
Halifax:  Hmmm, I'll have to get into more D programming.  Hacc is going to support Flash applications?  That's awesome!  :Dbiggrin.gif