Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
19 June, 2013, 23:25:31 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 ... 3 4 [5]   Go Down
  Print  
Author Topic: Solar89 SDK -  (Read 5236 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
TC01
LV6 Super Member (Next: 500)
******
Offline Offline

Last Login: 07 May, 2013, 18:48:11
Date Registered: 01 July, 2010, 18:00:38
Posts: 339


Topic starter
Total Post Ratings: +8

View Profile
« Reply #60 on: 30 September, 2010, 01:43:33 »
0

I've gotten the file type/extension (whatever you want to call it) implemented. This is only a feature if you're using a compiled token file- otherwise, all files will be given the 8XP file type by default.

I've also added code to automatically archive the resultant files- both for my token compiler (on calc-name is maketok) and Solar89 itself.

I added whitespace support, so Solar89 will automatically discard all extra spaces in front of lines. It won't replace them with : characters or anything like that (that's a way to waste memory)- it just trims them out at the start.

I'm also trying to get empty lines supported, but I'm having some weird issues with that. If the line is at the top of the program, it works fine. If it's in the middle, between two other lines of code, tokenization takes much longer than usual and then it hangs. And if it's at the end, the program runs as normal but the lines at the end don't appear for some reason.

The last problem isn't a huge one (because Solar89 already inserts an extra newline character at the end of the each program), but the first problem definitely is.
Logged




The userbars in my sig are links embedded links.

And in addition to calculator (and Python!) stuff, I mod Civilization 4 (frequently with Python).
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 22:29:06
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50643


Total Post Ratings: +2640

View Profile WWW
« Reply #61 on: 30 September, 2010, 05:52:54 »
0

Nice to see more progress Smiley

Btw on the 83+,

Disp A:Pause

is the same size as

Disp A
Pause

So : doesn't take more space as it is the equivalent of a linebreak.

Good luck fixing your empty lines issue x.x
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
TC01
LV6 Super Member (Next: 500)
******
Offline Offline

Last Login: 07 May, 2013, 18:48:11
Date Registered: 01 July, 2010, 18:00:38
Posts: 339


Topic starter
Total Post Ratings: +8

View Profile
« Reply #62 on: 30 September, 2010, 14:02:22 »
0

I know that, what I meant is if I was using whitespace like this in the text file:


1
2
: ClrHome
: Disp "HELLO WORLD"

Then I could either parse it as this:


1
2
::ClrHome
::Disp "HELLO WORLD"

Or as this, and save two bytes:


1
2
:ClrHome
:Disp "HELLO WORLD"
Logged




The userbars in my sig are links embedded links.

And in addition to calculator (and Python!) stuff, I mod Civilization 4 (frequently with Python).
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 22:29:06
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50643


Total Post Ratings: +2640

View Profile WWW
« Reply #63 on: 30 September, 2010, 15:19:44 »
0

Oh I see. I would just parse it as the latter. Was it what caused you issues?
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
TC01
LV6 Super Member (Next: 500)
******
Offline Offline

Last Login: 07 May, 2013, 18:48:11
Date Registered: 01 July, 2010, 18:00:38
Posts: 339


Topic starter
Total Post Ratings: +8

View Profile
« Reply #64 on: 30 September, 2010, 21:50:36 »
0

Oh I see. I would just parse it as the latter. Was it what caused you issues?

Nope, what caused issues would be this:


1
2
3
:ClrHome
:
:Disp "HELLO WORLD"

I've fixed it- partially. Now two empty lines are produced in between instead of one.
Logged




The userbars in my sig are links embedded links.

And in addition to calculator (and Python!) stuff, I mod Civilization 4 (frequently with Python).
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 22:29:06
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50643


Total Post Ratings: +2640

View Profile WWW
« Reply #65 on: 01 October, 2010, 01:37:12 »
0

Ah ok. Well, good luck x.x
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
TC01
LV6 Super Member (Next: 500)
******
Offline Offline

Last Login: 07 May, 2013, 18:48:11
Date Registered: 01 July, 2010, 18:00:38
Posts: 339


Topic starter
Total Post Ratings: +8

View Profile
« Reply #66 on: 03 October, 2010, 05:10:40 »
0

I've fixed the bug. And I've released 0.3, with versions uploaded to ticalc.org, Cemetech, and Omnimaga. Can't download until they're approved, though.

The full list of changes are:

-Support for binary token files (with included program- maketok- to make them)
-Support for whitespace in text files
-Bugfix where empty lines in the middle of a program caused infinite loop
-Solar89 and maketok auto-archive output files
Logged




The userbars in my sig are links embedded links.

And in addition to calculator (and Python!) stuff, I mod Civilization 4 (frequently with Python).
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 22:29:06
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50643


Total Post Ratings: +2640

View Profile WWW
« Reply #67 on: 03 October, 2010, 10:10:40 »
0

Nice!

I'm gonna head into the pending queue soon Smiley
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
TC01
LV6 Super Member (Next: 500)
******
Offline Offline

Last Login: 07 May, 2013, 18:48:11
Date Registered: 01 July, 2010, 18:00:38
Posts: 339


Topic starter
Total Post Ratings: +8

View Profile
« Reply #68 on: 08 November, 2010, 01:30:05 »
0

Just a few brief updates.

First thing, I made a minor interface change- the tokenizer now outputs each line of the file to the status bar as it runs. I made this mainly to convince the user that the calc hasn't frozen- it's actually doing something. (Since tokenizing can take some time).

Second, I recently wrote another example- a quadratic solver. Tongue Just as an example as a slightly longer program (and how much time a mathematical program might be expected to take).

Third, I talked with thepenguin77 earlier today about making a better tokenizing algorithm- a tree based system- to increase speed. I plan to code that when I have the time (unfortunately, not now).
Logged




The userbars in my sig are links embedded links.

And in addition to calculator (and Python!) stuff, I mod Civilization 4 (frequently with Python).
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 22:29:06
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50643


Total Post Ratings: +2640

View Profile WWW
« Reply #69 on: 08 November, 2010, 03:14:25 »
0

Nice, any screenshot?
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
TC01
LV6 Super Member (Next: 500)
******
Offline Offline

Last Login: 07 May, 2013, 18:48:11
Date Registered: 01 July, 2010, 18:00:38
Posts: 339


Topic starter
Total Post Ratings: +8

View Profile
« Reply #70 on: 08 November, 2010, 03:40:54 »
0

Nice, any screenshot?

Here are two- one of my quadratic solver in the text editor, and one of the Disp "HELLO WORLD" status message (as Solar89 tokenizes a hello world program).


* SolarQuadsolv.png (1.61 KB, 160x100 - viewed 52 times.)

* SolarStatusBar.png (1.19 KB, 160x100 - viewed 56 times.)
Logged




The userbars in my sig are links embedded links.

And in addition to calculator (and Python!) stuff, I mod Civilization 4 (frequently with Python).
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 22:29:06
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50643


Total Post Ratings: +2640

View Profile WWW
« Reply #71 on: 08 November, 2010, 04:32:59 »
0

Ah cool. I am confused at the Hello world message, though. I assume it shows the lines of code in the status bar as it compiles? I wonder if it would be too slow for large programs, since Text routines are generally slow?
« Last Edit: 08 November, 2010, 04:34:04 by DJ Omnimaga » Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
TC01
LV6 Super Member (Next: 500)
******
Offline Offline

Last Login: 07 May, 2013, 18:48:11
Date Registered: 01 July, 2010, 18:00:38
Posts: 339


Topic starter
Total Post Ratings: +8

View Profile
« Reply #72 on: 08 November, 2010, 04:38:21 »
0

Ah cool. I am confused at the Hello world message, though. I assume it shows the lines of code in the status bar as it compiles? I wonder if it would be too slow for large programs, since Text routines are generally slow?

Right, that's what it's doing.

It's not noticeably slower with that turned on. But if it becomes a problem once the tokenizer itself is made faster, I could make it an option or something.
Logged




The userbars in my sig are links embedded links.

And in addition to calculator (and Python!) stuff, I mod Civilization 4 (frequently with Python).
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 22:29:06
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50643


Total Post Ratings: +2640

View Profile WWW
« Reply #73 on: 08 November, 2010, 04:40:03 »
0

AH ok, because in Axe Parser, compiling refreshed the % every byte or so, and it was like 4 times slower than it is, now. TI's text routines aren't known to be fast, although on 68K calcs this might not be as bad, but on the 83+, several ASM and Axe coders prefer to use their own font routines using sprites to save speed.
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
Pages: 1 ... 3 4 [5]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.218 seconds with 29 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.