Author Topic: JIT-compiled languages on the TI?  (Read 4740 times)

0 Members and 1 Guest are viewing this topic.

Offline harold

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 226
  • Rating: +41/-3
    • View Profile
JIT-compiled languages on the TI?
« on: July 24, 2011, 12:01:05 pm »
What do you all think, should it be done?
I see some good and bad things about it, for example
good: faster than basic, smaller than asm, almost no code size limit (could be run from archive and non-executable ram)
bad: it will take a year before a program starts even with lots of lazy loading, requires the 'runtime' to be installed (embedding it in the program would negate pretty much all benefits), hard to debug code generation bugs
Blog about bitmath: bitmath.blogspot.nl
Check the haroldbot thread for the supported commands and syntax.
You can use haroldbot from this website.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: JIT-compiled languages on the TI?
« Reply #1 on: July 24, 2011, 12:07:17 pm »
You mean something like Java Bytecode? Or make our own bytecode? I think it's doable, but not sure of how it would work out.

Offline harold

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 226
  • Rating: +41/-3
    • View Profile
Re: JIT-compiled languages on the TI?
« Reply #2 on: July 24, 2011, 12:14:44 pm »
Probably something simpler than that (no classes but just raw code (maybe methods), only 16 and 8 bit integers, no IEEE floats, etc)
But yea I'm wondering more about whether any JIT compiling should be done on the TI at all, do you recon the pro's outweigh the con's?
Blog about bitmath: bitmath.blogspot.nl
Check the haroldbot thread for the supported commands and syntax.
You can use haroldbot from this website.

Offline Ti-Programmer

  • LV3 Member (Next: 100)
  • ***
  • Posts: 84
  • Rating: +3/-0
  • Whats this? so many features...
    • View Profile
    • Ti-Programmer's website
Re: JIT-compiled languages on the TI?
« Reply #3 on: July 24, 2011, 12:21:18 pm »
I don't think its worth it, cause that would be sorta like BBC Basic, or whatever its called.
You have one Huge app that integrates functions that could be done with some persistence in asm.
It'll slow down the program, maybe not the time to compile.
If you program in VB.net and compare that to C++ on speed issues, C++ wins every time, except maybe the time to compile.
Thats my opinion. Feel free to disagree.
Spoiler For Sig:







Offline harold

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 226
  • Rating: +41/-3
    • View Profile
Re: JIT-compiled languages on the TI?
« Reply #4 on: July 24, 2011, 12:56:59 pm »
That's true, all things being equal, compiled is always going to be faster.
Blog about bitmath: bitmath.blogspot.nl
Check the haroldbot thread for the supported commands and syntax.
You can use haroldbot from this website.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: JIT-compiled languages on the TI?
« Reply #5 on: July 24, 2011, 01:10:59 pm »
It's going to be faster, we all know that. But it's doable, right? I think that's his point.

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: JIT-compiled languages on the TI?
« Reply #6 on: July 24, 2011, 01:27:15 pm »
* Possible ? Hard on the register-starved Z80, easier on the 68000, and clearly doable on ARM: the Zero/Shark JVM and LuaJIT have ARM backends.
* Worth the trouble ? Probably not on the old Z80 and 68000 :)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline ZippyDee

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +83/-8
  • Why not zoidberg?
    • View Profile
Re: JIT-compiled languages on the TI?
« Reply #7 on: July 24, 2011, 01:31:04 pm »
I'd say it's definitely possible for it to be done, but I would also question whether it's actually worth the trouble. If it really is worth it, then it would be pretty interesting to see what could come out of this!
There's something about Tuesday...


Pushpins 'n' stuff...


SirCmpwn

  • Guest
Re: JIT-compiled languages on the TI?
« Reply #8 on: July 24, 2011, 01:50:32 pm »
I think that a JIT language would be a bad idea on such a restricted platform.  However, languages that are traditionally JIT compiled could probably be pre-compiled for this specific platform.

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: JIT-compiled languages on the TI?
« Reply #9 on: July 24, 2011, 02:34:57 pm »
* Possible ? Hard on the register-starved Z80, easier on the 68000, and clearly doable on ARM: the Zero/Shark JVM and LuaJIT have ARM backends.
* Worth the trouble ? Probably not on the old Z80 and 68000 :)

I think Lionel pretty much sums up my opinions on the subject nicely. :)