FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Seamlessness and native API design

 
Post new topic   Reply to topic     Forum Index -> MiniD
View previous topic :: View next topic  
Author Message
JarrettBillingsley



Joined: 20 Jun 2006
Posts: 457
Location: Pennsylvania!

PostPosted: Fri May 02, 2008 8:36 am    Post subject: Seamlessness and native API design Reply with quote

In an attempt to make the native API more seamless than, say, Lua's, I've taken advantage of things like using D's builtin GC. This certainly makes things easier to use, but at the cost of performance. The language can't use its own GC or any kind of reference-counting scheme.

The other problem with the current API is that no matter how hard you try, it's never going to be as terse and easily-usable as MiniD itself. So it seems like a fruitless venture to keep at it the way it is.

What now seems to me like a better approach is to use a more traditional API design - fairly low-level and ugly. Then, on top of that, make a very powerful binding lib, much more powerful than the current one. Then most meaningful interaction between the scripting language and the host happens at the binding library level. Seamlessness is then achieved at a high level rather than a low level.

So this is going to be another big thing in MiniD 2!
Back to top
View user's profile Send private message
csauls



Joined: 27 Mar 2004
Posts: 278

PostPosted: Fri May 09, 2008 2:11 pm    Post subject: Reply with quote

Sounds good! Also, having the "ugly" API available may prove useful for those of us who want to make MiniD do "weird" things. Wink
_________________
Chris Nicholson-Sauls
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> MiniD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group