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 - Arantor
8206
Off-topic / Re: PHP 5.3
« on November 12th, 2010, 10:14 AM »
I still can't think of a solution that would really benefit from using goto versus well written non-goto code; the only example I can see that might be viable is the use of it for multiple breaks but even that doesn't strike me as massively easier to follow.
8207
Off-topic / Re: PHP 5.3
« on November 12th, 2010, 09:18 AM »
Quote from live627 on November 12th, 2010, 06:15 AM
ugh sounds like work
Oh hell yeah, especially since the specific PHP configuration I want is PHP core + GD + ext/mongo and literally nothing else, don't want XML handling (there are about 7 extensions that are built seemingly by default that rely on libxml which wasn't installed... I hate crap like that)

The result will be worth it though once I get the app running.

Specifically it's a multi-user app that wouldn't look out of place on Google Apps - and where AJAX just isn't going to scale, so a Comet type methodology of long polling is what I'm after, except that you need to be able to idle on potentially thousands of connections simultaneously, which is where nginx comes in.
8208
Features / Re: Scheduled tasks interface
« on November 12th, 2010, 09:00 AM »
Quote
Seriously, who would use "drawers" to discuss mods
Me :P

The terminology you propose is good :)
8209
Plugins / Re: Plugin hooks
« on November 12th, 2010, 08:58 AM »
SMC = Simple Machines Core, for things that wouldn't necessarily be strictly forum based but usable in other SM apps; it was in the mists of time actually $smfFunc.

There are other things we can do at this point, more on that elsewhere.
8210
Off-topic / Re: PHP 5.3
« on November 12th, 2010, 12:38 AM »
* Arantor does his best :D

In other news, the configuration I need/want is sufficiently special, that I'm going to be compiling PHP from source, I haven't done that in years so I feel somewhat nostalgic.

For those wondering what the hell I could be doing to need PHP home compiled, let me sum it up thus: the application stack isn't Apache <-> PHP <-> MySQL, but... nginx+NHPM <-> FastCGI <-> PHP <-> MongoDB

Yes, this is special in so many ways... and FUN :D Especially since each of those elements has to be compiled by hand for the magic configuration I need >_<
8211
Off-topic / Re: PHP 5.3
« on November 12th, 2010, 12:30 AM »
(see picture in above link :P)
8212
Off-topic / PHP 5.3
« on November 12th, 2010, 12:21 AM »
I've been looking at PHP 5.3 today, never really touched it before since prior to what I'm doing this moment, everything had to be reasonably compatible, which meant being less bleeding edge, but what I'm working on tonight is something I'm running myself so I thought I'd look at PHP 5.3.

Overall, vs 5.2 there's little there I think I'd use but it's nice to see some of what they're adding. What did catch my eye however, was this: http://uk2.php.net/manual/en/control-structures.goto.php

The picture at the bottom for one, but more relevantly, why the hell did PHP's devs think adding goto was a GOOD idea?! Seriously... I haven't yet found a situation in PHP where a goto would be the truly best answer.

I foresee this causing lots of bad mojo with PHP which it was doing so well at shaking off.
8213
Features / Re: Scheduled tasks interface
« on November 11th, 2010, 11:35 PM »
There is a logic to it, albeit a twisted one.

* A mod is a set of instructions of how to modify the code in a certain way.
* A plugin is a drop-in extra that requires merely configuration and is often not directly involved in current operation.
* An extension is a mostly drop-in extra that takes current operation and extends its scope.
* A package (in SMF terms at least) is a bundle containing the information for one or more of the above.

I'd encourage us to run with 'plugin' as a term since that's closer to how I see it working but here's a thought. Something I suggested tongue-in-cheek during the latter days I was with SimpleDesk, after I'd started the plugin system there, was to rename it 'drawers' (as they fit into a desk).

Other systems name them differently, I seem to recall being told that PHP Fusion names them InFusions, so why not go nuts and think of a different name entirely.
8214
Plugins / Re: Plugin hooks
« on November 11th, 2010, 11:31 PM »
Quote
For instance, create a global local array (if I may say), something like $local_array, which we'd global everytime we write a function that offers hooks.
That's called $context :P
Quote
Aaaaand, once again, I'm totally obscure and probably offering to do something that would complicate everything needlessly.
It's an interesting idea but not entirely practical, mostly because there's already $context, and partly because hooks are there for a specific purpose, not just a convenient place in time; the actions hook for example is there specifically to be used with modifying the list of actions.

Anything already in $context, $settings, $options, $modSettings etc is already available if the hook wants it, it's only really if the hook needs to send something through to the hooked function that's not a global scope, e.g. the list of actions, or if calling the new-topic one, the details for the new topic and so on.

Really, pushing things to a 'global local' function is bad juju because really one thing I want to do is empty some stuff out of $context rather than fill it up more.
Quote
Yeah, $context could be a place to store most of these vars. We could also delete the vars after they become useless, but I don't know, maybe it'd be a waste of time.
Also, rename $context to $cx or something, to make it faster to type?
Faster, yes, more likely to collide with new local (temporary) variables but no real issue either way. Pruning only helps with saving memory in low memory configurations; it isn't an issue normally.
Quote
And we should/would/will try to be open about hook addition requests. Like, "if you add a hook here, I could do this or that without modding the code". If it seems like something that would benefit more mods, then it'll definitely warrant a mod.
Sure :) Though a fair amount will be anticipation as well, I have a litany of mods in mind that I'm constantly thinking... "how can I make that work without editing the code?" That's really my baseline when I'm thinking of the changes to make.
Quote
Seriously, I think there are many places that should never have been moddable in the first place -- like, adding menu entries. It should be done exclusively via hooks. We just need to educate modders about it.
Yes on both counts.
Quote
PS: maybe this conversation should be split into the private area.
I'm actually fine with it here, because I want to not only explain why things won't work but also the rationale behind the level of changes we're doing and the real benefits of hooks - while I'm actively going to be encouraging hooks, I want people to understand not only the 'how' but the 'why' as well. Remember, those modders who migrate from SMF are going to initially want to reuse what they've done before, and while I'm not planning on pruning the package manager that far, I really don't want to encourage them to continue bad habits. I want them to learn new ones, better ones, ones that will help them grow as developers, knowing as I do that most mod writers are not professional grade programmers.
8215
Off-topic / Re: This is how I feel about IE
« on November 11th, 2010, 05:46 PM »
* Arantor uses the Force to nudge Nao's hand on the merge button

The Force is strong with this one ... damn.
8216
Off-topic / This is how I feel about IE
« on November 11th, 2010, 02:18 PM »
For the project I've been on for 2 1/2 months, I'm slowly getting towards a resolution, which is rather nice, but the hardest part of what I've been doing is compositing divs in the DOM. (Don't worry if that sounds technical; it's just a fancy way of saying about putting what look and act like mini-windows into the page and making them sort of independently manipulatable)

But IE keeps coming back to bite me in the ass; I do the principle dev in Firefox, test in Opera, Safari, Chrome - works fine. But IE8? I've had to fudge so many little bits and pieces just for IE's stupidity (like for instance, a lack of max-height... it's been in the specification for YEARS)

So when in doubt...


IE is Being Mean to Me
8217
Off-topic / Re: COD Black Ops
« on November 11th, 2010, 12:54 PM »
The game or the forum? :P
8218
Plugins / Re: Plugin hooks
« on November 10th, 2010, 10:55 PM »
SMF's integration hooks were mostly useless up until 2.0 RC4 wherein they were upgraded to support multiple functions being called at the same point in the execution.

We're keeping most of the existing hooks and adding a lot more of them generally, and combined with SMF's general structure of keeping the current running state in $context (while we'd like to phase that out, doing so is less than trivial), means that you can manipulate an awful lot of things whilst running in the hooks without having to do any editing of the code itself.

So yeah, we're not getting rid of them, we're jugging a few around and adding plenty more.
8219
Off-topic / Re: COD Black Ops
« on November 10th, 2010, 08:28 PM »
Medal of Honour.

* Arantor stopped playing FPS games shortly after DOOM. Minecraft is more awesome even if there isn't a shooting element to it :whistle:
8220
FAQs / [FAQ] Will my SMF mods and themes work?
« on November 10th, 2010, 02:49 PM »
We've been asked this more than once, so I thought it was about time I answered it.

The short answer is no: SMF mods and themes will not work properly on Wedge without significant overhaul, and this is completely intentional.

It's not about being petty and intentionally breaking it just to annoy people, there are major factors that we sat down - both of us being experienced mod writers - and decided we wanted to tackle.


SMF mods explicitly rely on the code, a mod package is really just a set of find/replace instructions on the code. The only way to retain a reasonable level of compatibility with SMF mods is to not change the code. It isn't ideal, of course, but it is the only way to go about that in the SMF world.

This causes multiple problems, file permissions giving everyone grief, as well as more and more mods being installed causes them to collide further and further until the point where mods just refuse to install because the code they look for has already been installed.

Add to that, that mods on custom themes are at best variable in terms of success and you find yourself in a world of hassle after a while, even when you're using mods written by people who know the code well enough to avoid most of the trouble.


The consequence is a serious amount of rearchitecting the core of SMF in Wedge, to make it far less dependent on mods having to edit the code itself. The downside is that in the short term, users may find a restricted choice of features available to them, while modders learn how to leverage the power of modding in Wedge without code editing.

As for themes, the amount of change is smaller, but still we've made a large number of changes to the default theme, meaning that any theme will need reworking for Wedge as well, but the compatibility should be greater in the long term.


tl:dr; No, themes and mods won't work. But for the hassle of modders and themers learning how to work on Wedge, everyone wins because you'll be able to drop things in with less hassle (if they're written properly), and both the modders and themers should find there is a lower support requirement because the base is that much more flexible.
Also, we will document the main changes we made, so that modders can easily adapt to them.