Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Nao
9556
Plugins / Re: Plugin hooks
« on March 31st, 2011, 08:39 AM »
Dragooon, I thought you said you had a PHP template hook in mind?

Pete, looks like we replied at the same time ;)

texasman, line-breaks are good but you really should consider using the spell-check function in your browser, eh... And capitals, too! Right now I need a break! tl:dr :^^;:
9558
The Pub / [Archive] Re: Logo Madness
« on March 31st, 2011, 08:06 AM »
What do you mean?
9559
Plugins / Re: Plugin hooks
« on March 31st, 2011, 12:16 AM »
Are you in trouble with the punctuation police? :P
Quote from texasman1979 on March 31st, 2011, 12:01 AM
2 things id like to comment on: integration hook system and template system. Integration hook system. Think of a switch statement. You have a list of conditions and a default. The very nature of a switch is faster than a nested if.
Well, if there are not a lot of different possibilities, the if is faster. Plus, I think it's more readable.
Quote
Make a small c prog and look at the machine code/object code.
Does a Pascal program count?
Quote
Instead of waiting till you get there to ask and see if there is a hook, already know when you get there. The theory is in my head but it is difficult to express in words. Each action has a path. Find out if that action has a hook then contenue through the action then knowing the path needed to go. Make hooks one of the first things done when an action is requested by way of a switch.
Implementing hooks is not easy in terms of performance. However, it's not realistic to optimize this, especially at this point. Alpha status should be there for implementation new functions. We can start optimizing for speed when in beta. And even then, I'm not sure that many 'wasted' hooks would account for more than a few milliseconds. You have an array with all possible hooks in memory -- any calls to call_hook() (well, that's the name of the function in Wedge) will be negligible really.
Quote
Use switches in every possible time, instead of ifs.
I don't know where you got that from... (And there are so many ways to optimize common PHP code. This particular example is not that good really.)
Anyway, if you're interested in micro-optimizations, you should follow SMF 2.1's development instead. Apparently they're very keen on changing "==" to "===" everywhere.
Quote
Dont use memory/hd unless there is no other way to do it. Mysql and apache are already using resourses, reuse those in every conceivable fashion instead of drawing more resources. If you dont need a particular setting, dont load it. Even comments generate more lines of code cause it has to determine if it is a comment or not.
That's what opcode caching is for.
And *any* webmaster that has a critical need for performance, will definitely install an opcode cache. At that point, who cares whether we use ifs or switches? It's all going to be the same, as it'll be precompiled...

On the contrary, comments are faster. Not because the code executes faster -- but because it's faster to understand what the code does, and thus, to optimize it.
9560
The Pub / [Archive] Re: Logo Madness
« on March 31st, 2011, 12:03 AM »
I want a Times New Roman logo with animated flowers coming out of it. So 1996! :niark:
9561
Off-topic / Re: Still beautiful...
« on March 30th, 2011, 11:23 PM »
Nicely done!
Too bad that the video's title spoils the twist... :(
9562
Off-topic / Re: Post count fever
« on March 30th, 2011, 07:16 PM »
Oh, crap! I'll have to watch my back :lol:
9563
The Pub / [Archive] Re: Logo Madness
« on March 30th, 2011, 07:14 PM »
Quote from Deezel on March 30th, 2011, 05:17 PM
and feel free to pop in to our site... there is actually discussion about you guys there which is what brought me here in the first place.
Not sure if I can post it here but you can remove it if ya like... :whistle:
http://www.pixelmansion.com
No problems with linking websites. Actually nothing is prevented for now around here. (Except for friends to discuss anything they saw mentioned in the Private area. But that's a given.)

I used the opportunity to move the Logo Madness topic to this place. It's the huge topic where we exchanged ideas -- just make sure to read it thoroughly if you don't want to reinvent the wheel ;)

Basically, we don't NEED a new logo, because we all love the current one. But we're not closed to other ideas, either! Doing this logo was a lot of fun (hopefully it was for Bloc too... Or at least not too unpleasant :^^;:), and I don't see why we can't keep up like that.
Just in passing -- regarding size, this is the biggest we could afford. And we have a small (75x30) version of the logo that I like even better (it doesn't have the slogan and the stylized wedge/ship/triangle picture behind the logo.) I don't like it better because of the lack of these elements, but because I don't enjoy logos that take the whole screen, if you know what I mean. Small is beautiful.
Posted: March 30th, 2011, 07:13 PM

Split topic and merged posts to the right one.
9564
Off-topic / Re: Hi all!
« on March 30th, 2011, 07:07 PM »
Quote from Gazmanafc on March 30th, 2011, 06:04 PM
Howdy. People recognise me, so I don't need to introduce myself right? :P
Hi!
Quote
Hey look, my badges from SM.org got re-made. :P
Yeah, I just loved them so I rebuilt them. :) (Remember how I made my own "Consulting Developer" badge last year? Well, I'd kept the custom background so I just re-used that.)
Posted: March 30th, 2011, 07:06 PM
Quote from texasman1979 on March 30th, 2011, 06:19 PM
That could if it is currently possible push wedge number one world wide for performance almost over night.
Keep in mind that the fastest code is the code you don't run, actually ;)
9565
Plugins / Re: Plugin hooks
« on March 30th, 2011, 05:32 PM »
So... Dragooon, what do you think we could do, either by adopting ToxG or by using a purely PHP solution?
9566
The Pub / Re: Logo Madness 2
« on March 30th, 2011, 05:05 PM »
Well we're always open to logo ideas :)
The current one is a joint collaboration between me and Bloc.
9567
Off-topic / Re: Post count fever
« on March 30th, 2011, 05:01 PM »
Hmm... Previously, I did 1000 posts in two months apparently... Well I'm only at 790 posts or so this time after the same delay. Still, a pretty good number :P
Hey Pete, you gotta do something! You don't want me to be first at 4k do you? You've got a reputation to maintain! :niark:
9568
Off-topic / Re: Hi all!
« on March 30th, 2011, 04:03 PM »
Yeah.
Speaking about software error -- I fixed the "à" in the time format. I forgot about SMF's option to set a default timezone and it was hardcoded in French once again.
It's very odd because it means it doesn't support multilingual default time formats. Do we have this in Wedge anyway? :P
9569
Off-topic / Re: Hi all!
« on March 30th, 2011, 03:55 PM »
Quote from texasman1979 on March 30th, 2011, 02:22 AM
i made a signature, where is it? lol did yall eat it. :(
Not me. And not anyone else, I suspect.
9570
Plugins / Re: Plugin hooks
« on March 30th, 2011, 01:34 PM »
Quote from dorje on March 30th, 2011, 07:12 AM
Why not $wtf?  :lol:
We already finished the rewrite ;)

It's one of these "nice little features" in Wedge... You no longer have to declare the $smcFunc global anywhere. It's all encapsulated inside nice little thematic classes.