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
3016
Plugins / Re: Wand
« on July 15th, 2012, 11:38 PM »
Probably because all the @ constructs in CSS generally are fall into the same general traps as things like the HTML5 audio/video tags, designed by people who have little idea how people would actually want to use these things and base it on what they think people might like.

Keyframes is a great idea, but it's not even standard CSS yet, it's solely in @-moz-keyframes and @-webkit-keyframes constructs, which I didn't even think were legal.
3017
Features / Re: Github & stuff
« on July 15th, 2012, 11:36 PM »
Yes and no. Being open means you open the doors to a potential flood of submissions. You then have the joy of wading through the submissions in the hopes of finding good things. If you get a collection of great coder submissions, great, but the odds are not in favour of that being the case, given what has been approved as mods in the past.

Seriously, being open is not the magical panacea it's supposed to be. Being open means you get more input. It doesn't mean it's any *better* input. If anything I'd almost say that it will eventually dilute things because there will be pressure to accept patches that aren't up to snuff.

Consider the past of SMF. It was hard enough getting to be a beta tester, let alone a dev badge. Consider the people who earned that badge. Consider also the people who've submitted patches in the past to SMF, and how few of those were historically accepted. It's not merely a lack of time that caused all those things to be the case, it was the overall low quality of submissions.

In fact, going back it was pretty much only the people who were team members who ever got patches approved, and even then you're pretty much talking about the Cust. team people who ever got anything into the core who weren't the dev team. I haven't been through 2.1 but I suspect the people whose patches have been approved are the people who didn't make it into the Cust. team primarily out of politics or not wanting to be involved, but the same people nonetheless who would have been eligible anyway.

In short: I don't think it's really as open as might want to be believed[1] and while I want to believe the best, I'm not sure it's the right path for them to take.

To be brutally honest, I want to be wrong about this. But I want to see SMF take their main repo public and see what happens, I see no reason to think our experience will be substantially different. Everything I'm predicting is almost certain to come true sometime after SMF makes the 2.1 repo public, and I do not want us to fall into the same trap.
 1. It's not even under the main public account but away in someone else's repos. Security by obscurity, you might say.
3018
Features / Re: Github & stuff
« on July 15th, 2012, 08:47 PM »
Not quite my point.

If you open the doors and appear to accept patches, there is then a pressure on you to accept everything and anything that comes in. There is not the same pressure when the repository is not open.
3019
Features / Re: Media boards: fishing for opinions
« on July 15th, 2012, 03:48 PM »
Quote
How would that work...? That plugin doesn't benchmark anything...
No, but you get a lot of data to work with to be able to understand how running a larger forum is likely to handle the extra load.
Quote
I haven't decided whether to vote or A or B. For B, how would viewing albums work?
That's a very good question. What it means to me is that MessageIndex.php needs an overhaul, possibly loadBoard() needs to identify the type of board involved and when we would otherwise divert to MessageIndex, we figure out which file needs to be loaded for that type of board.
Quote
Pete, that reminds me of this post I saw this week...
I don't think it's true, I know it is, but I also know the author's an idiot in the first place - SELECT * and SELECT field, table.* levy their own issues, and I suspect something interesting would happen if the author didn't just blindly select * from anywhere.

Anyway, yes, the point is correct: if you do a query where you're sorting by any column and there's a TEXT or larger field in there, it will generate a disk-based temporary table (this is what a filesort is). Getting around it using a subselect is an interesting way of doing it, but essentially yes it's correct, it fools the query parser as to how the table is generated and it means it isn't implicitly a filesort. At that point you just have to hope MySQL can get enough memory to do it in memory otherwise you end up with a filesort anyway.

It's also why Display, for example, gets the message ids first, then fetches messages separately.
3020
Plugins / Re: Wand
« on July 15th, 2012, 03:20 PM »
The style submitted to SMF by Nas ;)
3021
Features / Re: Github & stuff
« on July 15th, 2012, 03:19 PM »
It is referring to pull requests - from the perspective of contributors, they're pushing to the project and expecting the project to take it onboard.

Nothing says 'get stuffed' than not accepting any inward contributions, but if there's no obvious way to do that, that's actually better than appearing to solicit such things without accepting them.
3022
Features / Re: Media boards: fishing for opinions
« on July 15th, 2012, 01:19 AM »
OK, here's the deal. If you expand the type of boards to include albums, you drastically expand the scope of that IN() clause.

Remember how MySQL optimises those: it's basically pre-processed into WHERE var = x OR var = y OR var = z OR var = a. There's no faster way of optimising it, and if you expand it too far it gets ugly quickly.

Using a subselect here is a bit of a misnomer vs an IN() because both potentially generate a decent amount of clauses to match against, and I'm not sure how beneficial it'll be, which is why benchmarking is our friend.
3023
Features / Re: New revs - Public comments
« on July 14th, 2012, 06:16 PM »
Hmm, I need to try it with both my IPS screen on my MacBook and perhaps the Samsung SyncMaster 193 I have (it runs to 1280x1024 though it's still basically 5:4 as a screen)
3024
Features / Re: Github & stuff
« on July 13th, 2012, 04:31 PM »
Quote
What does RH offer that others don't...?
Mostly it's about permissions. I can control who can write to a project, and anyone that can't, they just can't. Unlike Github where everyone can push things to a project and that puts an onus on the project leaders to review and accept patches.

There is also a vast array of facilities we actually don't use at RH but that we could should we decide we want to - we get a free wiki, free bug tracking etc.

I can certainly set up a Git repo in there.
3025
Features / Re: Auto_increment madness...
« on July 13th, 2012, 01:32 AM »
Yeah, that's the one, it's pretty insane and holds together by miracles I'm sure. It's still running on Apache for example >_> (Liroy needs to move that to nginx ASAP)
3026
Features / Re: Auto_increment madness...
« on July 13th, 2012, 12:09 AM »
Quote
Well, err... I thought you'd fixed that one...?
I fixed most of it but you since showed me that there are edge cases where it still happens which haven't yet been fixed.
Quote
Well, if the table is filled, I guess we can always tell them to do a TRUNCATE on it...
*nods*
Quote
Yeah, I just don't wanna be accused of thinking on the short term. But we've got a long way to go until Wedge is run on a billion-post forum!
I'll be happy with running it on a multi-million post forum. I've only seen one billion-post forum in the past and they started out on phpBB2 some years back (and have since rewritten it - that's Gaia Online), everyone else of that sort of scale (the likes of Slashdot et al) wrote their own.

Biggest SMF forum I've seen is 22m posts and growing daily.
3027
Features / Re: Auto_increment madness...
« on July 12th, 2012, 10:03 PM »
Quote
I dont remember this story about phantom rows.
You're the one who reported it - where drafts get saved even when they shouldn't be - the result is phantom rows that shouldn't really be saved in the first place.
Quote
We could add a maintenance task to flush the cache though. Like, "okay the forum is quiet these days, I can do that..."
If you mean the regular cache, there should be no need to do that automatically most of the time, it should just work with older data just being purged over time.

If you mean cases like this, I'd suggest not doing that on an automatic fashion. I'm not sure it's ever going to be a problem.

As per http://stackoverflow.com/questions/6130672/mysql-auto-increment-primary-key-running-out there are notes about keeping the primary key as small as possible (especially on InnoDB), and that's important as that's now the default in MySQL. Let's leave it as is and we can deal with it if and when we actually get near to those limits.
3028
Features / Re: Github & stuff
« on July 12th, 2012, 09:08 PM »
Me, I prefer to go with what works.

I'm comfortable with SVN, both Git and Hg are new to me. I don't like Bazaar.

I'm not too fussy about hosting provided that there's no chance of being held hostage - I trust free repo hosting as much as I trust free web hosting, which is very little. I pay a reasonable sum to RH per month for what I get, but I could just as easily set up my own repo (done that in the past) and I'm comfortable with the options provided by RH, I wouldn't want to give any of the flexibility up that I currently have with RH.
3029
Features / Re: Auto_increment madness...
« on July 12th, 2012, 08:44 PM »
I envision that it isn't really a problem if we end up avoiding making rows we don't need - right now there are phantom rows being introduced that leak ids even faster. If we reduce that from happening, we reduce the problem anyway.

But even as I've typed this, I can see we're only onto #8556 out of how many thousands of millions...?
3030
Features / Re: Auto_increment madness...
« on July 12th, 2012, 04:29 PM »
Quote from Nao on July 12th, 2012, 04:22 PM
Ah well, another good intention that comes down the toilet... :(
It is a good intention but I suspect we'll be better served by dealing with phantom drafts anyway ;)
Quote from Nao on July 12th, 2012, 04:22 PM
(And don't tell me "I know how you feel", I know you do :P)
Actually when you said that, it made me think of Song Of Myself from Nightwish's album Imaginaerum:
Quote
How can you 'just be yourself'
when you don't know who you are?
Stop saying 'I know how you feel'
How could anyone know how another feels?