Author Topic: CIL (C#) Interpreter for TI-Nspire  (Read 10842 times)

0 Members and 1 Guest are viewing this topic.

SirCmpwn

  • Guest
Re: CIL (C#) Interpreter for TI-Nspire
« Reply #15 on: May 25, 2011, 08:05:03 pm »
Usually, you can find the occasional mishaps and fix them manually, but it still saves enormous amounts of time.  In addition to that, hand typing lots of code causes the same problems.
« Last Edit: May 25, 2011, 08:05:18 pm by SirCmpwn »

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: CIL (C#) Interpreter for TI-Nspire
« Reply #16 on: May 25, 2011, 08:07:19 pm »
If it wasn't implied by my last post, the search space of solutions to a general programming problem is almost unfathomably massive. Scripts might generate functional code most of the time, but there will always be some situations in which they can't generate functional code and even more situations in which the produced program is not efficient at runtime.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

SirCmpwn

  • Guest
Re: CIL (C#) Interpreter for TI-Nspire
« Reply #17 on: May 25, 2011, 08:08:31 pm »
If it wasn't implied by my last post, the search space of solutions to a general programming problem is almost unfathomably massive. Scripts might generate functional code most of the time, but there will always be some situations in which they can't generate functional code and even more situations in which the produced program is not efficient at runtime.
This is true.  However, in most situations, the generated code works great, it works efficiently, and it was finished days before the hand-written code was.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: CIL (C#) Interpreter for TI-Nspire
« Reply #18 on: May 25, 2011, 08:10:43 pm »
I think you generally produce good code, so if that's how you do it, more power to you. It's an interesting (read: cool) method, I'll admit.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

SirCmpwn

  • Guest
Re: CIL (C#) Interpreter for TI-Nspire
« Reply #19 on: May 25, 2011, 08:12:01 pm »
I think you generally produce good code, so if that's how you do it, more power to you. It's an interesting (read: cool) method, I'll admit.
Give it a try next time you have something big to write, you'll be pleasantly surprised.  The emulation code in Stetson is generated by such means, for example.

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: CIL (C#) Interpreter for TI-Nspire
« Reply #20 on: May 25, 2011, 08:15:31 pm »
so how do you make a script that does all of this for you? It seems like an interesting idea
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

SirCmpwn

  • Guest
Re: CIL (C#) Interpreter for TI-Nspire
« Reply #21 on: May 25, 2011, 08:17:58 pm »
so how do you make a script that does all of this for you? It seems like an interesting idea
The same way I write any other program.  Each script is custom-made to suit an individual purpose.  If your scripting language/programming language of choice has string manipulation, you just make it write code into a string and display it.  Sometimes I pull in external data, such as an instruction set.

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: CIL (C#) Interpreter for TI-Nspire
« Reply #22 on: May 25, 2011, 08:41:27 pm »
That sounds liek a complicated idea for programming an interpreer form. It also sounds very fun. I'll have to try it sometime
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: CIL (C#) Interpreter for TI-Nspire
« Reply #23 on: May 25, 2011, 08:47:34 pm »
I think you generally produce good code, so if that's how you do it, more power to you. It's an interesting (read: cool) method, I'll admit.
Give it a try next time you have something big to write, you'll be pleasantly surprised.  The emulation code in Stetson is generated by such means, for example.

I have a genetic algorithm that does generate code for me, but frankly I could beat it without too much effort.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ