This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Updates on the new compiler / interpreter in 0.7.


Updates on the new compiler / interpreter in 0.7.

Postby kornalius » Jul 15, 2004 @ 9:03pm

Just a quick update to let you guys know that I was hard at work with PPL (hence my less active posts here).

As a lot of you have read in a previous email, I rewrote the compiler and the interpreter in total C code instead of using the dynamic compiler to solve a really agravating problem with memory addressing.

Tests shows that the new interpreter is the same speed (faster in some cases) as the old interpreter and is obviously more portable and I can now make PPL compatible with SH3 and MIPS.

After a few weeks of head bashing, I finally found out why PPL was slowing down in some weird situations. Each time a proc or a func was called, PPL created new variables to memory dynamically and freed them after the proc or func exited. This proves to be a very bad design decision when done automatically (by the garbage collector). What I do now is I keep the variables (not the content that is allocated by the user but the internal variable structure content which is about 76 bytes per variable) in memory at all time and reuse them when needed. This technic improves the speed and also it's great for game development. Games need to run at the same speed all along. Memory will not get fragmented as much, therefore speed won't suffer.

I still have to work on the issue of structures. They are still running at variable speed. This should be fixed soon, now that I found out about the bad memory allocation in PPL.

Hope this post makes sense.
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby webba » Jul 16, 2004 @ 9:51am

Kornalius,

Well done! It's good to hear that you've sorted the issues out. Now you can get back to work on new features and other improvements! We're a selfish lot aren't we? :twisted:
It'll all be worth it when you get it to final release.

Kind regards,
Andy
webba
pm Member
 
Posts: 70
Joined: Jul 12, 2004 @ 9:55am


Postby kornalius » Jul 16, 2004 @ 3:07pm

User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby kornalius » Jul 16, 2004 @ 11:39pm

User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby kornalius » Jul 20, 2004 @ 2:27am

User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby webba » Jul 20, 2004 @ 10:38am

webba
pm Member
 
Posts: 70
Joined: Jul 12, 2004 @ 9:55am


Postby kornalius » Jul 20, 2004 @ 2:21pm

User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby kornalius » Jul 21, 2004 @ 12:54am

User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby kornalius » Jul 21, 2004 @ 5:43pm

Today's updates so far:

1. GetFile and PutFile dialogs have enhanced. (Very nice!)

2. Accelerator keys support in menu items.

3. Toolbar buttons added to the main.ppl, editor.ppl and progman.ppl programs.

4. Editor.ppl support for font selection and added an ini file to store editor's preferences.

Regards,
Kornalius
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby PointOfLight » Jul 21, 2004 @ 6:07pm

Eric Pankoke
Programmer
Point Of Light Software
http://www.polsoftware.com/
PointOfLight
pm Member
 
Posts: 525
Joined: Nov 2, 2003 @ 8:39pm


Postby kornalius » Jul 21, 2004 @ 6:49pm

User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby PointOfLight » Jul 21, 2004 @ 6:55pm

Eric Pankoke
Programmer
Point Of Light Software
http://www.polsoftware.com/
PointOfLight
pm Member
 
Posts: 525
Joined: Nov 2, 2003 @ 8:39pm


Postby kornalius » Jul 21, 2004 @ 8:44pm

Sounds good to me but you still have about a good week to play with them if you want. :wink:

Regards,
Kornalius
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Return to Pocket Programming Language (PPL)


Sort


Forum Description

Discuss this new development tool.

Moderator:

kornalius

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron