Is all this Invarient **** er... stuff, premature optimisation?

Bill Baxter dnewsgroup at billbaxter.com
Tue Apr 29 22:09:46 PDT 2008


Sean Kelly wrote:
> If it's speed you're looking for, Tango is it ;-)  The IO subsystem trounces pretty much everything
> I've seen it compared to, for example.  In practice, I think you'll find that one reason for this is that
> no hidden allocations take place anywhere in Tango.  This tends to conflict with convenient use in
> some cases for simple apps however, so as things stand now I do think that some users would
> benefit from convenience wrappers.  

Yes please! votes++
I don't need blazing speed for my debug printfs. I need the most 
convenient API possible. Stdout.print("hi").newline is not quite that.

> I tend to do this sort of thing myself for my own projects,
> but a third-party package would be nice for those less inclined.  

I don't know why, but I just really dislike seeing little "mytools" 
dependencies dangling off of what would otherwise be nice little 
self-contained modules.  Maybe I just find it makes it harder to reuse 
code.  This module depends on "mytools" but over there we're using 
"yourtools".  Do we merge them to become "ourtools", or keep both, or 
port my code to use yourtools instead?  It's just easier to mix and 
match if a module doesn't have such frivolous external dependencies.

--bb



More information about the Digitalmars-d mailing list