Options:
- # Session Start: Mon May 04 00:00:01 2009
- # Session Ident: #whatwg
- # [00:06] * Quits: ZombieLoffe (n=e@unaffiliated/zombieloffe)
- # [00:11] <Dashiva> "You can not argue this because it is factual opinion."
- # [00:12] <Dashiva> Axiomatic proof, move over
- # [00:12] * Quits: MikeSmith (n=MikeSmit@EM114-48-160-91.pool.e-mobile.ne.jp) (Read error: 110 (Connection timed out))
- # [00:12] <hsivonen> Dashiva: what are you quoting?
- # [00:13] <Dashiva> Nothing related, it just reminded me of The Proof.
- # [00:20] * Quits: zalan (n=kvirc@catv-80-99-193-98.catv.broadband.hu) ("KVIrc 3.4.0 Virgo http://www.kvirc.net/")
- # [00:27] * Quits: weinig (n=weinig@nat/apple/x-4bc87e6d32d66cba)
- # [00:35] * Joins: weinig (n=weinig@nat/apple/x-84eab42023b5a976)
- # [00:37] * Quits: Lachy (n=Lachlan@85.196.122.246) ("This computer has gone to sleep")
- # [00:38] * Quits: svl (n=me@ip565744a7.direct-adsl.nl) ("And back he spurred like a madman, shrieking a curse to the sky.")
- # [00:55] <Hixie> http://identi.ca/notice/3921839
- # [00:55] <Hixie> now people want to physically beat us :-(
- # [00:56] <weinig> Hixie: that can only mean you are doing things right
- # [00:59] <Dashiva> First they flame you, then they assault you, then you reach CR
- # [01:13] * Joins: itpastorn1 (n=itpastor@139.57.227.87.static.th.siw.siwnet.net)
- # [01:30] * Quits: itpastorn (n=itpastor@139.57.227.87.static.th.siw.siwnet.net) (Read error: 110 (Connection timed out))
- # [01:33] * Joins: Lachy (n=Lachlan@85.196.122.246)
- # [01:47] * Joins: davidb (n=davidb@bas4-toronto06-1279277838.dsl.bell.ca)
- # [01:48] * Quits: davidb (n=davidb@bas4-toronto06-1279277838.dsl.bell.ca) (Client Quit)
- # [01:49] <Hixie> interesting
- # [01:50] <Hixie> setTimeout() doesn't seem to throw if you pass it non-code non-string first arguments
- # [01:52] * Quits: gsnedders (n=gsnedder@host86-136-52-180.range86-136.btcentralplus.com) (Remote closed the connection)
- # [01:55] * Quits: heycam (n=cam@203-217-72-53.dyn.iinet.net.au) ("bye")
- # [01:57] <weinig> Hixie: we recently changed that WebKit
- # [01:58] <Hixie> webkit returns undefined
- # [01:58] <Hixie> firefox actually just works
- # [01:58] <Hixie> (and doesn't do anything when the timeout comes)
- # [01:58] <weinig> well, I am not sure we threw, but we now call toString on whatever is passed if it is not a function
- # [01:58] <weinig> so setTimeout({ toString : function() { }, 0) now works as it does in firefox
- # [01:58] <Hixie> that doesn't seem to be the behaviour
- # [01:59] <Hixie> setTimeout(true, 0); should return a number if that was the case
- # [01:59] <Hixie> but it returns undefined
- # [01:59] <weinig> Hixie: this is a very recent change
- # [01:59] <weinig> Hixie: in the last week or so
- # [01:59] * weinig checks to make sure it was actually landed
- # [01:59] * Hixie updates to the latest build in case he last updated just before it landed or something
- # [02:00] <weinig> yeah, javascript:alert(setTimeout(true, 0)) returns a number in ToT
- # [02:00] <weinig> in shipping, we return undefined
- # [02:00] <Hixie> i never test shipping builds
- # [02:01] <Hixie> shipping is just another word for "obsolete"
- # [02:01] <weinig> Hixie: a trunk build from a week ago would do the same :)
- # [02:01] * weinig was playing around with setTimeout and noticed this difference so fixed it
- # [02:01] <Hixie> yup, it is indeed changed
- # [02:01] <Hixie> cool
- # [02:02] <weinig> happy to help :)
- # [02:03] <weinig> weird coincidence though
- # [02:04] <Hixie> well in my case it's just a matter of going down a list and this was the next item
- # [02:07] <Hixie> you do the same with the second argument?
- # [02:09] * Joins: davidb (n=davidb@bas4-toronto06-1279277838.dsl.bell.ca)
- # [02:41] * Joins: heycam (n=cam@zot.infotech.monash.edu.au)
- # [02:48] <Hixie> can anyone think of any unusual objects in JavaScript that have a [[Call]] thingy defined but aren't what you would consider regular functions?
- # [02:48] <Hixie> ...and which have some detectable side-effect?
- # [02:50] <olliej> Hixie: huh?
- # [02:50] <olliej> Hixie: what do you mean?
- # [02:51] <olliej> Hixie: you mean standard runtime functions that aren't 'pure'?
- # [02:51] <Hixie> well e.g. select.options can be invoked as a function
- # [02:51] <Hixie> like select.options('a')
- # [02:51] * Joins: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [02:51] <Hixie> as well as being a regular object in its own right
- # [02:52] <Hixie> with select.options.length, etc
- # [02:52] <olliej> Hixie: all functions are objects in their own right
- # [02:52] <olliej> Hixie: anyFunction.length
- # [02:52] <olliej> Hixie: will return the number of arguments to said function
- # [02:52] <olliej> Hixie: that said
- # [02:52] <Hixie> oh i should have said in the DOM, not in JS, my bad
- # [02:52] <olliej> Hixie: iirc /a/("foo") in js
- # [02:52] <olliej> Hixie: oh
- # [02:52] <olliej> only the dom
- # [02:53] <Hixie> well in js too is fine
- # [02:53] <Hixie> does /a/("foo") have any detectable side-effects?
- # [02:53] * Quits: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net) (Read error: 104 (Connection reset by peer))
- # [02:53] <Hixie> does it change state when you invoke it or something?
- # [02:53] * Joins: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [02:53] <olliej> Hixie: evaluating a regex puts the results on the RegExp constructor
- # [02:54] <Hixie> come again?
- # [02:54] <Hixie> wait, really?
- # [02:54] <olliej> Hixie: yeah
- # [02:54] <olliej> i discovered this last week
- # [02:54] <Hixie> that's awesome
- # [02:54] <olliej> or maybe two weeks ago
- # [02:54] <olliej> that made me sad
- # [02:54] <olliej> Hixie: just a mo
- # [02:54] <olliej> i'll dig up the details
- # [02:55] * Quits: Amorphous (i=jan@unaffiliated/amorphous) (Read error: 110 (Connection timed out))
- # [02:55] <Hixie> /.+/('eueouue'); RegExp.lastMatch
- # [02:55] <Hixie> that's super
- # [02:55] * Joins: MikeSmith (n=MikeSmit@EM114-48-137-234.pool.e-mobile.ne.jp)
- # [02:56] <Hixie> hahaha yes!
- # [02:56] <Hixie> olliej: thanks, that's what i needed
- # [02:56] <Hixie> setTimeout(/.*/, 0, 'test'); affects RegExp.lastMatch
- # [02:56] <olliej> ah ha
- # [02:56] <Hixie> man in this API ridiculous or what
- # [02:56] * Quits: MikeSmith (n=MikeSmit@EM114-48-137-234.pool.e-mobile.ne.jp) (Client Quit)
- # [02:56] <olliej> Hixie: hehe
- # [02:56] <olliej> it made me very sad
- # [02:56] <olliej> Hixie: when i discovered that
- # [02:56] <Hixie> heycam: i need a new thing in WebIDL which means "this interface is only for JS if you're even thinking of using this in another language please go have a cold shower right now"
- # [02:57] <heycam> hah
- # [02:57] <Hixie> maybe, say, as a [HereBeDragons] interface decorator
- # [02:57] <heycam> can i ask, what interface is this?
- # [02:57] <Hixie> WindowTimers
- # [02:58] <heycam> huh. how come?
- # [02:58] * Joins: Amorphous (i=jan@unaffiliated/amorphous)
- # [02:58] <Hixie> it has setTimeout and company on it, so that i can reuse them in workers without taking all of Window with it
- # [02:58] <Hixie> but if you mean "why is setTimeout so bad", consider that its signature is:
- # [02:58] <Hixie> long setTimeout(in any handler, [Optional] in any timeout, [Variadic] in any args)
- # [02:59] <Hixie> and the function's behaviour depends on whether handler has a [[Call]] method or not
- # [02:59] <heycam> so overloading a DOMString and a Callback interface isn't enough?
- # [03:00] <Hixie> what's the interface that defines a callback that the object /foo/ matches?
- # [03:00] <Hixie> (but which the string "foo" doesn't)
- # [03:01] <heycam> not sure what you mean
- # [03:01] <Hixie> how could overloading a DOMString and a Callback interface be enough?
- # [03:01] <heycam> currently i think you can overload and distinguish between DOMStrings and an object of an interface
- # [03:01] <Hixie> setTimeout() takes anything
- # [03:02] <Hixie> its first argument can be { toString: function() { return 'alert(0)'; } }
- # [03:02] <Hixie> and you'll get an alert
- # [03:02] <Hixie> it can also be window.alert
- # [03:02] <Hixie> you'll also get an alert
- # [03:02] <heycam> ok maybe the rules don't exactly fit, since when you have overloading any old type won't get stringified to match the DOMString
- # [03:02] <heycam> iirc
- # [03:02] <heycam> but i should check...
- # [03:04] <Hixie> setTimeout(handler, { toString: function() { return '20.1'; } }) is treated the same as setTimeout(handler, 20);
- # [03:04] <Hixie> if you give me the webidl to do that and i'll use it, but i think our time might be better spent just writing a few lines of prose
- # [03:05] <heycam> yeah
- # [03:05] <heycam> ok
- # [03:05] <heycam> you want a [Language=ECMAScript] or something?
- # [03:05] <heycam> or a term you can use in prose?
- # [03:06] <Hixie> actually i kinda think [HereBeDragons] would be pretty neat. but i could work with Language=ECMAScript too if you like.
- # [03:06] <Hixie> i just want something that prevents the idl from compiling
- # [03:06] <heycam> ?
- # [03:06] <Hixie> so that people who use it have to go figure out wtf is going on
- # [03:07] <heycam> then perhaps idl is not what you're looking for?
- # [03:07] <Hixie> possibly
- # [03:07] <heycam> well, there's a slight advantage to still using it; you get the long return value
- # [03:07] <heycam> and the association of arguments to the argument names
- # [03:08] <heycam> but i guess that's about it =)
- # [03:08] <Hixie> it also implies that the methods are on the object, etc
- # [03:08] <Hixie> i think i'll keep using it
- # [03:08] <heycam> yeah
- # [03:08] <heycam> ok
- # [03:08] <Hixie> don't worry about it
- # [03:08] <Hixie> they'll have to implement this anyway i guess
- # [03:09] <Hixie> so they'll soon find what a... poorly designed API it is
- # [03:09] <heycam> are you going to supply a big idl file of all the definitions (or a zip file of separate idl files)?
- # [03:09] <Hixie> (not my first choice of words)
- # [03:09] <Hixie> wasn't planning on it
- # [03:09] <Hixie> but people might want it
- # [03:09] <Hixie> it's pretty easy to make it
- # [03:09] <Hixie> just strip all the blocks with class=idl
- # [03:09] <heycam> that's what i do currently (with a bookmarklet)
- # [03:10] <Hixie> though a few things will fail, e.g. WindowProxy isn't defined in idl
- # [03:10] <Hixie> only in prose
- # [03:10] <heycam> hmm
- # [03:10] <heycam> because it's difficult to specify?
- # [03:10] <Hixie> (and, well, see above are setTimeout()!)
- # [03:10] <Hixie> I have no idea how I'd define WindowProxy in IDL
- # [03:11] <Hixie> it is in every sense indistinguishable from Window
- # [03:11] <Hixie> and you can't get a hold of the Window object anyway
- # [03:11] <Hixie> so...
- # [03:11] <heycam> if it's indistinguishable, and you've got a definition of Window, then it should be easy to come up with a definition for WindowProxy
- # [03:12] <heycam> (i.e., just copy it)
- # [03:12] <Hixie> all it does is forward every operation to the underlying Window
- # [03:13] <Hixie> for example, it's prototype changes when the underlying Window changes
- # [03:13] <Hixie> its
- # [03:14] <heycam> does that mean it's impossible to specify in idl though?
- # [03:14] <Hixie> i think it means that it's not useful to specify in idl
- # [03:14] <heycam> ok
- # [03:15] <heycam> so what i'm concerned about is whether it'd be possible to "compile" or process however all the idl for html5
- # [03:15] <heycam> if there are dangling references to interfaces like WindowProxy...
- # [03:15] <Hixie> there are bits that need to be provided first
- # [03:15] <Hixie> but after they are provided, sure
- # [03:15] <Hixie> (such as WindowProxy)
- # [03:17] * Quits: weinig (n=weinig@nat/apple/x-84eab42023b5a976)
- # [03:23] * Quits: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [03:27] * Joins: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [03:28] <Hixie> i wonder how to spec the whole "compile the string" thing
- # [03:29] * Quits: davidb (n=davidb@bas4-toronto06-1279277838.dsl.bell.ca)
- # [03:31] * Quits: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net) (Client Quit)
- # [03:32] * Joins: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [03:32] * Quits: dbaron (n=dbaron@c-98-234-51-190.hsd1.ca.comcast.net) ("8403864 bytes have been tenured, next gc will be global.")
- # [03:40] * Quits: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [03:42] * Joins: itpastorn (n=itpastor@139.57.227.87.static.th.siw.siwnet.net)
- # [03:43] * Joins: mpilgrim (n=mark@rrcs-96-10-240-189.midsouth.biz.rr.com)
- # [03:43] * Joins: archtech (n=stanv@83.228.56.37)
- # [03:48] * Joins: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [03:53] * Quits: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net) (Client Quit)
- # [03:53] * Joins: weinig (n=weinig@c-67-180-35-124.hsd1.ca.comcast.net)
- # [03:57] * Joins: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [04:03] * Quits: itpastorn1 (n=itpastor@139.57.227.87.static.th.siw.siwnet.net) (Read error: 110 (Connection timed out))
- # [04:12] * Quits: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [04:18] * Joins: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [04:24] * Joins: tantek_ (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [04:24] * Quits: mpilgrim (n=mark@rrcs-96-10-240-189.midsouth.biz.rr.com) (Remote closed the connection)
- # [04:25] * Joins: mpilgrim (n=mark@rrcs-96-10-240-189.midsouth.biz.rr.com)
- # [04:27] * Joins: tantek__ (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [04:40] * Quits: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net) (Read error: 110 (Connection timed out))
- # [04:47] * Quits: tantek__ (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [04:47] * Joins: MikeSmith (n=MikeSmit@EM114-48-173-49.pool.e-mobile.ne.jp)
- # [04:48] * Quits: tantek_ (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net) (Read error: 110 (Connection timed out))
- # [04:52] * Joins: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [04:57] * Quits: mpilgrim (n=mark@rrcs-96-10-240-189.midsouth.biz.rr.com) (Remote closed the connection)
- # [04:57] * Joins: mpilgrim (n=mark@rrcs-96-10-240-189.midsouth.biz.rr.com)
- # [05:21] * Quits: MikeSmith (n=MikeSmit@EM114-48-173-49.pool.e-mobile.ne.jp) ("Tomorrow to fresh woods, and pastures new.")
- # [05:21] * Quits: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net) (Read error: 104 (Connection reset by peer))
- # [05:21] * Joins: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [05:28] * weinig is now known as weinig|yum
- # [05:28] * Joins: tantek_ (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [05:45] * Quits: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net) (Read error: 110 (Connection timed out))
- # [06:01] * Quits: tantek_ (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net) (Read error: 110 (Connection timed out))
- # [06:15] <hsivonen> I wonder which one of jd's posts has resonated http://twitter.com/jbowtie/status/1691112133
- # [06:27] * Joins: ojan (n=ojan@203.39.247.241)
- # [06:27] <ojan> Hixie: ping
- # [06:28] <Hixie> here
- # [06:29] <ojan> Hixie: i'm trying to see if it's worth trying to add undo/redo events to webkit...
- # [06:29] <ojan> Hixie: seems like they are tied to the UndoManager though...so we'd need to hash all that stuff out before moving forward?
- # [06:29] <Hixie> pretty much
- # [06:29] <Hixie> though nobody has suggested a better solution yet
- # [06:32] <ojan> Hixie: to be sure i'm understanding the intent, onundo/onredo would fire when the user picks undo/redo from a menu, fires the undo/redo execCommands or hits the appropriate key-command, right?
- # [06:32] <Hixie> yup
- # [06:42] <ojan> Hixie: i don't quite follow some bits here...
- # [06:42] <ojan> in 6.11.4
- # [06:42] <ojan> "If the entry immediately before the undo position is an undo object entry"
- # [06:43] <ojan> what else could it be?
- # [06:43] <Hixie> The entries are of two type: DOM changes and undo objects.
- # [06:43] <Hixie> click "undo transaction history"
- # [06:43] <Hixie> for more details
- # [06:44] <ojan> right, i saw that...so, undo/redo events don't fire for DOM changes?
- # [06:45] <Hixie> the undo/redo events are there just to let scripts perform the changes that need doing for the relevant objects they put on the list
- # [06:45] <ojan> ah
- # [06:45] <ojan> that's what i wasn't understanding
- # [06:45] <Hixie> the whole section is a mess imho
- # [06:45] <Hixie> i don't really like it
- # [06:46] * Joins: harig (n=opera@59.90.71.35)
- # [06:46] <Hixie> (i don't have anything better to suggest though)
- # [06:46] <ojan> so, the thing you pass in to the add method is any arbitrary JS object of your choosing?
- # [06:46] <Hixie> right
- # [06:46] <ojan> i see
- # [06:46] <ojan> i'm starting to get the intention here now at least :)
- # [06:47] <Hixie> hehe
- # [06:47] <ojan> Hixie: i feel like it would be a ton simple to just have the object you pass in be required to have undo/redo methods
- # [06:48] <ojan> Hixie: gives more flexibility to the web developer in terms of when they setup the undo/redo state
- # [06:48] <ojan> (i.e. they can do it at the time of the change or at the time of the undo)
- # [06:48] <ojan> I guess you can do that already with the current API
- # [06:48] <Hixie> how would you handle the case where an undo operation has no matching redo?
- # [06:49] <Hixie> i recommend sending a more concrete proposal to the list
- # [06:49] <ojan> sure
- # [06:49] <Hixie> it really wouldn't take much to convince me to change the spec
- # [06:49] <ojan> have you considered undo/redo events for DOM changes?
- # [06:49] <Hixie> anything even semi-coherent would probably be convincing enough :-)
- # [06:50] <Hixie> i don't think i had use cases for those
- # [06:50] <Hixie> so probably not
- # [06:50] <ojan> ok, i'll try and draft an email then...
- # [06:50] <Hixie> (i'm not opposed though)
- # [06:50] <ojan> the use-case is for apps that want to capture the undo/redo and handle it themselves
- # [06:51] <Hixie> that's not a use case, that's a description of what it can do :-)
- # [06:53] <ojan> Hixie: as an example, the google rich text editor keeps its own undo stack. right now it doesn't do the right thing if you undo/redo from the menu because the JS code doesn't know that an undo happened. it can't catch and cancel the event.
- # [06:53] <ojan> Hixie: anyways, I'll put this stuff in an email
- # [06:54] <Hixie> k
- # [06:55] <Hixie> (why would an editor _want_ to do things itself, assuming an ideal implementation?)
- # [06:58] <ojan> Hixie: yeah, that's true, the google editor would use the browser's undo if it didn't suck so much
- # [07:01] <ojan> Hixie: if you have an editor where the backing store is not HTML, you want to be able to update your sense of the state when an undo/redo happens
- # [07:02] <Hixie> if you have an editor where the backing store is not HTML, surely you just want to catch any DOM changes
- # [07:02] <Hixie> not necessarily undo/redo ones in particular
- # [07:04] * Joins: myakura (n=myakura@p1120-ipbf2303marunouchi.tokyo.ocn.ne.jp)
- # [07:10] * weinig|yum is now known as weinig
- # [07:10] <ojan> yes, but you want to be able to know what happened, and in most cases, be able to cancel the event
- # [07:11] <ojan> in practice, mutation events are far too noisy and hard to work with
- # [07:11] <Hixie> it's possible that we need to fix mutation events
- # [07:13] <hsivonen> Hixie: posting them on the event loop or something more drastic?
- # [07:13] <ojan> Hixie: in practice, mutation events are useless for anything other than a high level sense that something changed
- # [07:14] <Hixie> hsivonen: i haven't studied the problem, so i don't know
- # [07:14] <ojan> Hixie: maybe that's a bit harsh, but i've never heard of them actually being used for anything else
- # [07:14] <Hixie> ojan: it would be good to tell www-dom@w3.org this, as that is where the DOM3 Events spec is being discussed
- # [07:14] <Hixie> and mutation events are on the table
- # [07:15] * ojan goes to join yet another mailing list
- # [07:15] <Hixie> yeah not sure why that's not on public-webapps
- # [07:16] <Hixie> (in particular, not sure why that's elsewhere but widgets are on public-webapps)
- # [07:29] * Joins: ap (n=ap@194.154.88.36)
- # [07:33] * Quits: weinig (n=weinig@c-67-180-35-124.hsd1.ca.comcast.net)
- # [07:51] <ojan> Hixie: yeah, the more i look at mutation events for this, the more i think that they're just at the wrong granularity for the use-case in question. you actually want something that conveys the semantics of the user-action, not something the just tells you all the details of what changed after the fact
- # [08:01] * Joins: itpastorn1 (n=itpastor@139.57.227.87.static.th.siw.siwnet.net)
- # [08:07] * Joins: maikmerten (n=merten@ls5dhcp196.cs.uni-dortmund.de)
- # [08:09] * Joins: pesla (n=retep@procurios.xs4all.nl)
- # [08:11] <ojan> Hixie: more random questions...
- # [08:12] <ojan> dataTransfer only supports "Text" and "URL" as types
- # [08:12] <ojan> is that just because that's what IE does? or is there some reason not to also support HTML?
- # [08:15] <Hixie> dataTransfer supports any type
- # [08:15] <Hixie> where does it say it only supports Text and URL?
- # [08:17] <ojan> under setData/getData it only list Text and URL as options
- # [08:17] <ojan> i guess it doesn't forbid other options
- # [08:18] <Hixie> oh those are just two values that are supported for legacy reasons
- # [08:18] <Hixie> because the value is supposed to be a mime type
- # [08:18] * Quits: itpastorn (n=itpastor@139.57.227.87.static.th.siw.siwnet.net) (Read error: 110 (Connection timed out))
- # [08:18] <ojan> oh, i see...so to support HTML text we would just use the mime type directly?
- # [08:18] <ojan> i.e. text/html
- # [08:19] <Hixie> yup
- # [08:19] * Quits: maikmerten (n=merten@ls5dhcp196.cs.uni-dortmund.de) (Read error: 60 (Operation timed out))
- # [08:19] * Joins: maikmerten (n=merten@ls5dhcp196.cs.uni-dortmund.de)
- # [08:19] <ojan> Hixie: great. we'll attempt adding such to webkit.
- # [08:19] <Hixie> cool
- # [08:20] <ojan> thanks for talking through all my random questions :)
- # [08:20] <Hixie> np
- # [08:21] * Quits: dolske (n=dolske@firefox/developer/dolske) (Read error: 60 (Operation timed out))
- # [08:21] * Quits: heycam (n=cam@zot.infotech.monash.edu.au) ("bye")
- # [08:27] * Joins: heycam (n=cam@dyn-130-194-221-98.its.monash.edu.au)
- # [08:29] <Hixie> feedback i just got from someone not (as far as i know) affiliated with any existing solution for microdata:
- # [08:30] <Hixie> * they'd like to share event listing data on their city "what's on" guide web site "in a way that retains the event information in a meaningful way"
- # [08:30] * Quits: onar_ (n=onar@c-98-234-65-251.hsd1.ca.comcast.net)
- # [08:31] <Hixie> asked why microformats don't work for them, they had several replies that apply equally to microformats and other technologies, and one that is specific to microformats:
- # [08:31] <Hixie> "There are no obvious parsing tools for people to actually do anything with the data (other than add an event to a calendar)"
- # [08:31] * Joins: itpastorn (n=itpastor@139.57.227.87.static.th.siw.siwnet.net)
- # [08:37] * sid0_ is now known as sid0
- # [08:38] * Joins: zcorpan (n=zcorpan@c83-252-196-43.bredband.comhem.se)
- # [08:38] <zcorpan> Hixie: <li><p>If none of the values (if any) result in an access key being
- # [08:38] <zcorpan> + assigned, then the element has no <span>assigned access
- # [08:38] <zcorpan> + key</span>.</p></li>
- # [08:39] <zcorpan> Hixie: why not allow the UA to make up its own shortcut in that case?
- # [08:39] <zcorpan> Hixie: e.g. based on textContent
- # [08:39] <zcorpan> Hixie: or based on the keys available in the UA
- # [08:41] <Hixie> i guess we could...
- # [08:42] * Joins: Maurice (n=ano@a80-101-46-164.adsl.xs4all.nl)
- # [08:44] * Parts: itpastorn (n=itpastor@139.57.227.87.static.th.siw.siwnet.net)
- # [08:45] <zcorpan> Hixie: there's some magic required with focusing and accesskey that i don't quite remember
- # [08:46] <zcorpan> Hixie: e.g. for fieldset you should focus the first descendant form control or something
- # [08:46] <Hixie> send mail for these issues, i'll look at them in due course
- # [08:50] * Quits: itpastorn1 (n=itpastor@139.57.227.87.static.th.siw.siwnet.net) (Read error: 110 (Connection timed out))
- # [08:57] * Joins: othree (n=othree@admin39.ct.ntust.edu.tw)
- # [08:59] * Quits: othree (n=othree@admin39.ct.ntust.edu.tw) (Client Quit)
- # [08:59] * Joins: othree (n=othree@admin39.ct.ntust.edu.tw)
- # [09:22] * Joins: zalan (n=kvirc@catv-80-99-193-98.catv.broadband.hu)
- # [09:23] * Joins: sid0_ (n=sid0@unaffiliated/sid0)
- # [09:30] * Joins: sid0__ (n=sid0@unaffiliated/sid0)
- # [09:34] <zcorpan> maybe accesskeyLabel should be available to css 'content'
- # [09:36] <zcorpan> :has-accesskey::after { content:'(' accesskey ')' }
- # [09:39] <hendry> how are you supposed to express last modified time (mtime) and creation time (ctime) of a page in markup?
- # [09:41] * Joins: virtuelv (n=virtuelv@pat-tdc.opera.com)
- # [09:41] <Philip`> hendry: <p>Last modified: 2009-05-04.</p>
- # [09:42] * Joins: svl (n=chatzill@a194-109-2-36.dmn.xs4all.nl)
- # [09:42] * Quits: roc (n=roc@65.123.0.210)
- # [09:42] * Quits: svl (n=chatzill@a194-109-2-36.dmn.xs4all.nl) (Client Quit)
- # [09:43] * Quits: sid0 (n=sid0@unaffiliated/sid0) (Read error: 110 (Connection timed out))
- # [09:44] <hendry> Philip`: so no time element? :)
- # [09:45] <Philip`> hendry: What's the use case for using a special element here? :-)
- # [09:45] <zcorpan> "You would say just "n" for now, then, when the new feature is wildly deployed, " -- Hixie expects accesskey to be *wildly* deployed?
- # [09:46] <zcorpan> Philip`: maybe you would add the date to your calendar so you can compare next time you look at the page if it has been modified since you last read it
- # [09:47] <hendry> Philip`: i'm helping out moving ikiwiki templates to html5. every page has a ctime and mtime in there, and i was wondering how best to mark it up
- # [09:47] * Joins: svl (n=chatzill@a194-109-2-36.dmn.xs4all.nl)
- # [09:49] * Quits: sid0_ (n=sid0@unaffiliated/sid0) (Read error: 110 (Connection timed out))
- # [09:49] <hendry> Philip`: here is an example of the markup so far http://h.dabase.com/html5-tmp/html5/
- # [09:50] * Joins: dolske (n=dolske@76.103.40.203)
- # [09:56] <Lachy> Philip`, in hendry's example, the benefit of using the time element would be that the browser can, at the user's request, present the date in a more familiar format. (Though, this depends on future UAs implementing such a feature)
- # [09:58] <Lachy> although, such a feature would be more useful on sites that insist on using ambiguous localised date formats like 04/05/09
- # [10:00] <hendry> Lachy: thanks, that's a good use case
- # [10:03] * Quits: myakura (n=myakura@p1120-ipbf2303marunouchi.tokyo.ocn.ne.jp) ("Leaving...")
- # [10:08] * Quits: heycam (n=cam@dyn-130-194-221-98.its.monash.edu.au) ("bye")
- # [10:10] <jgraham> Lachy: Hopefully UAs won't implement such a feature
- # [10:10] <jgraham> Since I guess it will be more confusing than the status-quo
- # [10:11] <jgraham> (although I suppose some good implementation is possible like displaying the time as the author wrote it and giving the option to display it in some other format)
- # [10:12] <Philip`> They could display the localised time in a tooltip, perhaps
- # [10:12] * jgraham notes that js also has magic $1-$9 variables on the RegExp object which point to the first 9 match groups in the last regexp called
- # [10:13] <jgraham> I shoul really document that on the web ecmascript page, I guess
- # [10:15] <Lachy> jgraham, that's one of the major problems solved by having the time element, so I hope they do implement it in some way.
- # [10:19] <jgraham> Lachy: Mixing up author supplied content and UA supplied content is likely to be really confusing though
- # [10:19] * Quits: ojan (n=ojan@203.39.247.241)
- # [10:19] <Philip`> Lachy: That's a problem solved by having authors write dates like "2009-05-04" instead of "04/05/09", with no need for any markup
- # [10:21] * Joins: ROBOd (n=robod@89.122.216.38)
- # [10:22] <Philip`> Anyway there'll be too much legacy content saying <time datetime=2007-10-05>December 3rd 2009</time> for UAs to replace the textual content with something derived from the datetime
- # [10:22] * Quits: harig (n=opera@59.90.71.35) (Read error: 110 (Connection timed out))
- # [10:25] <Lachy> Philip`, getting authors to write dates in pages only using unambiguous date formats isn't a viable solution in practice. Letting authors use whatever date format they like like in the page, while providing a way to mark up the date unambiguously and letting UAs expose that to users somehow is
- # [10:26] <Lachy> jgraham, I'm not proposing that UAs replace the text in the page with the unambiguous format by default, but rather provide a way for the user to access it on request
- # [10:27] <Philip`> Lachy: Why is getting authors to write dates in pages only using unambiguous date formats not a viable solution in practice?
- # [10:28] * Philip` very rarely sees pages that say "01/02/03" so it seems like most people already use unambiguous date formats
- # [10:28] <Lachy> because we have ~15 years of experience showing us that authors still publish ambiguous date formats
- # [10:28] <Lachy> I see it relatively often
- # [10:30] * jgraham wonders if authours who use ambiguous date formats would be likely to use <time>
- # [10:30] <Lachy> here's a page I recall seeing http://news.zdnet.com/2100-9595_22-293658.html scroll down to the comments
- # [10:33] <Lachy> if authors see practical benefits for users provided by UAs by using it, then they will
- # [10:34] <Lachy> but if <time> is just seen as useless metadata that doesn't help users at all in major browsers, then it's less likely
- # [10:35] <Philip`> They would also have to think the aesthetic advantages of writing mm/dd/yy outweigh the practical benefits for users of just writing yyyy-mm-dd with no markup
- # [10:35] * Joins: gavin____ (n=gavin@CPE001346f5db49-CM0018c0db9a8a.cpe.net.cable.rogers.com)
- # [10:36] * gavin____ is now known as gavin
- # [10:36] <Philip`> Actually: They would also have to think the aesthetic advantages of writing mm/dd/yy, plus the practical benefits for users of whatever their UA does with <time>, minus the cost of adding and maintaining the extra <time> markup, outweigh the practical benefits for users of just writing yyyy-mm-dd with no markup
- # [10:37] <Philip`> Also they would have to know about and care about the issue, which I presume many people don't
- # [10:40] <Lachy> Philip`, from my experience, a lot of american sites do seem to prefer the asthetics of writing mm/dd/yy over the less ambiguous yyyy-mm-dd format
- # [10:40] <olliej> Lachy: yeah
- # [10:41] <olliej> Lachy: i've actually taken to writing dd-mmm-yyyy on everything
- # [10:41] <olliej> simply to avoid confusion
- # [10:41] <Lachy> and when I was doing web development a few years ago, many of the clients/designers demanded that I use dd/mm/yy (for Australian sites) despite my objectinos
- # [10:41] <olliej> Lachy: (NZ does dd/mm/yy so i keep getting confused)
- # [10:41] <Lachy> olliej, I know
- # [10:41] <Lachy> so does Australia
- # [10:42] <olliej> Lachy: yeah, you said above
- # [10:42] <olliej> (i hit enter just after your comment)
- # [10:42] <Lachy> and, IIRC, the UK (though I could be wrong about that)
- # [10:45] * Joins: ojan (n=ojan@203.39.247.241)
- # [10:45] <Rik`> why mm/dd/yy exists ?
- # [10:50] <olliej> Rik`: because the US exists
- # [10:50] <Rik`> yeah but how did they come up with that ?
- # [10:50] <Philip`> Lachy: (It's dd/mm/yy in the UK)
- # [10:51] <olliej> Rik`: they went "how does the rest of the world do this? let's do it differently"
- # [10:51] <olliej> Rik`: you can't talk you don't even have the right names for your months ;)
- # [10:52] <Rik`> hum ?
- # [10:52] <olliej> Rik`: i'm joking :D
- # [10:52] <olliej> Rik`: referring to france not using english month names :D
- # [10:52] <olliej> for obvious reasons :D
- # [10:53] <Philip`> "The mm/dd/yy format is used in: Belize, Canada, Federated States of Micronesia, Kenya, Palau, Philippines, Puerto Rico, United States"
- # [10:53] <Philip`> (says Wikipedia)
- # [10:53] <Rik`> ohh, like the rest of the world except england, australia and new zealand ? :)
- # [10:54] <olliej> Rik`: hehe
- # [10:55] <Rik`> and we're not yet talking about miles and gallons :)
- # [10:56] <olliej> shudder
- # [10:56] * Parts: zcorpan (n=zcorpan@c83-252-196-43.bredband.comhem.se)
- # [10:56] <olliej> hatehatehate
- # [10:57] * Joins: zcorpan (n=zcorpan@c83-252-196-43.bredband.comhem.se)
- # [11:00] * Philip` wonders whether those are the big gallons or the little gallons
- # [11:02] <Lachy> I suspect the US went with mm/dd/yy so that the numerical order matched the order when spoken as words, like May 4th 2009
- # [11:03] <Lachy> whereas Australians tend to say 4th of May, 2009, and use dd/mm/yy
- # [11:06] <Lachy> wow, apparently the US also do crazy street address formats by putting the apartment number after the street number/name http://en.wikipedia.org/wiki/Endianness#Clarifying_analogy
- # [11:08] <olliej> Lachy: yeah
- # [11:08] <olliej> Lachy: that took me a while as well
- # [11:08] <olliej> Lachy: the US is a bizarre place
- # [11:09] <olliej> Lachy: oh, and i say 4th May, 2009 :D
- # [11:09] * Parts: ojan (n=ojan@203.39.247.241)
- # [11:09] <Lachy> I'd better get used to it since I'm moving there in July
- # [11:10] <olliej> Lachy: where abouts?
- # [11:10] <Lachy> Mountain View, California
- # [11:10] <olliej> Lachy: ah ha
- # [11:11] <olliej> Lachy: we should meet up at some point
- # [11:11] <Lachy> ok
- # [11:34] * Joins: gsnedders (n=gsnedder@host86-136-52-180.range86-136.btcentralplus.com)
- # [11:38] * Quits: Lachy (n=Lachlan@85.196.122.246) ("This computer has gone to sleep")
- # [11:40] * sid0__ is now known as sid0
- # [11:51] * Joins: Lachy (n=Lachlan@pat-tdc.opera.com)
- # [11:51] * Quits: Lachy (n=Lachlan@pat-tdc.opera.com) (Client Quit)
- # [11:53] * Joins: Lachy (n=Lachlan@pat-tdc.opera.com)
- # [11:59] * Joins: annevk42 (n=annevk@53568A94.cable.casema.nl)
- # [12:02] <annevk42> http://www.webdirections.org/blog/ask-the-browser-makers-pete-lepage-from-the-internet-explorer-team/ -- see question 5
- # [12:17] <jgraham> So, say I had a reasonably well structured word document and I wanted to convert it to HTML in a way that roughly preserved the structure but that also added links e.g. from the TOC and from certain terms to their defining instance (which would always be a subsection). WWhat tools could I use to help me achieve that?
- # [12:20] * Joins: Mau`werk (n=ano@80.101.46.164)
- # [12:21] <Lachy> jgraham, depending on the techniques used to create the Word document, then I've found copying and pasting from Word into Dreamweaver to be a rather successful technique for maintaining structure
- # [12:22] <Lachy> though it requires the use of the Styles and Formatting task pane in word to do the styles, and the use of the some HTML specific styles (available from the customisation dialog), and there's a Word specific setting in dreamweaver that needs to be turned on to get paragraphs to work right
- # [12:22] <jgraham> Lachy: Let's assume for the sake of argument that I don't have dreamweaver :)
- # [12:23] <jgraham> (I could probably download a trial version at home or something but it's not quite convenient)
- # [12:23] <Lachy> what HTML editor do you have?
- # [12:24] <Lachy> http://www.google.com/search?q=word+to+HTML+converter
- # [12:24] * Quits: Maurice (n=ano@a80-101-46-164.adsl.xs4all.nl) (Read error: 110 (Connection timed out))
- # [12:24] <jgraham> Lachy: emacs
- # [12:24] * jgraham thinks that might not have been the right answer
- # [12:26] <Lachy> then I can't help you with that.
- # [12:27] <jgraham> It seems like the oo.o HTML export + a considerable amount of scripting might be a good enough solution
- # [12:31] <Lachy> have you tried MS Word's own HTML saving feature?
- # [12:31] <Lachy> it has a clean HTML option
- # [12:31] <jgraham> Lachy: I don't have MS Word either
- # [12:31] <Lachy> ok
- # [12:31] <Philip`> You could copy-and-paste from Word into a JavaScript editing component
- # [12:31] <Philip`> Oh
- # [12:32] <Lachy> jgraham, I have Word. If you sent me the file, I could try doing that for you
- # [12:32] <jgraham> On the other hand, since the document in question is readily publically avaliable it is not a problem if someone else does these things for me and sends me the result
- # [12:33] <jgraham> Lachy: It is the ES5 spec :) http://wiki.ecmascript.org/lib/exe/fetch.php?id=es3.1%3Aes3.1_proposal_working_draft&cache=cache&media=es3.1:candidate-draft-tc39-2009-025.doc
- # [12:36] <Lachy> this is going to take a while. I have to do it on my Windows machine at home over VNC, which is itself being ssh-tunnelled over a wifi connection through my imac, so the connection is a little slow
- # [12:38] <jgraham> Lachy: It's not a problem. Getting a TML version of the document is more of a long-term solution to the issue that I spend too long searching for stuff in the spec :)
- # [12:38] <jgraham> *HTML
- # [12:40] <Lachy> ah, ok. Good, then it can wait till after I go have some lunch
- # [12:42] <jgraham> Lachy: Sure. Take as long as you like. Thanks for the help :)
- # [12:45] * Quits: pesla (n=retep@procurios.xs4all.nl) ("( www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com )")
- # [13:21] <Lachy> jgraham, http://lachy.id.au/temp/ecma-tc39.zip
- # [13:24] <jgraham> Lachy: That gives me a 403
- # [13:25] * Joins: gavin___1 (n=gavin@people.mozilla.com)
- # [13:25] * Quits: gavin___1 (n=gavin@people.mozilla.com) (Client Quit)
- # [13:28] <Lachy> fixed
- # [13:31] <jgraham> Lachy: Thanks
- # [13:32] <jgraham> (at a glance it doesn't seem like the Word output is substantailly better than the Oo.o output; both will need substantial cleanup)
- # [13:33] <jgraham> Or rather either since I don't intend to do both
- # [13:38] <olliej> is it just me or does the ES5 spec not document deletability/replacability of standard properties?
- # [13:41] <jgraham> olliej: What do you mean standard properties? Properties have the Writable:true attribute set unless otherwise specified
- # [13:42] <jgraham> s/Properties/Properties of built in objects/
- # [13:42] <jgraham> (see section 15, pg 98 or PDF page 112)
- # [13:44] <jgraham> (oh and Configurable: true)
- # [13:50] <olliej> jgraham: yeah, cheers for that
- # [13:50] <olliej> jgraham: terminology changed from DontDelete to writable:false
- # [13:54] <jgraham> olliej: Indeed. There's no point in releasing a new spec without a few cosmetic changes to screw with the brains of people familar with the old spec ;)
- # [13:54] <olliej> jgraham: hehehe
- # [14:18] <jgraham> zcorpan: YT?
- # [14:19] * Joins: starjive (i=beos@213.66.216.93)
- # [14:27] * Quits: sid0 (n=sid0@unaffiliated/sid0) (Read error: 104 (Connection reset by peer))
- # [14:27] * Joins: sid0 (n=sid0@unaffiliated/sid0)
- # [14:34] * Joins: pmuellr (n=pmuellr@nat/ibm/x-ebeb71e218cb6158)
- # [14:41] <Lachy> looking at a couple of rental sites for Mountain View, they all seem to share a major usability problem! They don't state whether the prices are monthly, fortnightly or weekly! :-(
- # [14:42] <Lachy> oh, yeah, one of them does actually. Was just hard to find
- # [14:43] <jgraham> Lachy: Sweden has that underlying poblem writ large; it is assumed that everyone already knows all the rules so they don' bother to state them until you violate them
- # [14:46] * Lachy realises that finding an apartment in the right area is hard for someone who knows absolutely nothing about US geography.
- # [14:47] <olliej> Lachy: typically monthly
- # [14:47] <olliej> Lachy: and they will almost cetainly be assuming a 12 month lease
- # [14:47] <Lachy> yeah, 12 month lease is normal
- # [14:48] <jgraham> Lachy: For where? e.g. here it is rather unusual or illegal or something
- # [14:48] <Lachy> olliej, what sort of price range is reasonable for that area?
- # [14:49] <olliej> Lachy: honestly not sure about MV
- # [14:49] <olliej> Lachy: i have a flatmate and our aparments rent is i think $US2400/mo (in cupertino)
- # [14:49] <Lachy> jgraham, illegal to offer 12 month leases? wtf?
- # [14:50] <Lachy> in Australia, leases are generally either 6 or 12 months
- # [14:50] <jgraham> Lachy: I'm not sure it is actually illegal. It's more that contracts aren't usually (legally?) for fixed periods but are continuous. And it is rather hard for landlords to kick you out unless you don't pay the rent
- # [14:51] <Lachy> jgraham, are there minimum lease terms imposed?
- # [14:52] <olliej> jgraham: leases are more about ensuring a minimum time
- # [14:52] <olliej> rather than a maximum
- # [14:52] <jgraham> Lachy: I think the only requirement in our contract is that we give 3 months notice if we want to leave
- # [14:52] <jgraham> So that is a kind of minimum
- # [14:53] <Lachy> wow, 3 months is an absurdly long notice period
- # [14:53] <olliej> yeah
- # [14:53] <jgraham> Yeah, it is pretty long
- # [14:53] <Lachy> but I think that's like Norway
- # [14:53] <olliej> when i wasn't in a lease, i only had to give 2 weeks notice
- # [14:54] <Lachy> in Australia, the term means that neither the tennant or landlord can break the lease before that period, and then after that it continues with a requirement for 2 weeks notice
- # [14:54] <jgraham> It seems to be the Swedish way. The landlord has no right to get rid of you (wwhich is good) but it is rather hard to leave (which is bad)
- # [14:55] <Lachy> (except when the tennant does something like significantly damages the property, then the landlord can evict the tennant before the end of the lease and keep the bond)
- # [14:56] <Lachy> olliej, is it usually a 1 month bond as well?
- # [14:56] <olliej> yeah
- # [14:56] <Lachy> ok
- # [14:56] <olliej> i may have had a bit more
- # [14:56] <jgraham> (We didn't have to pay any deposit or anything either)
- # [14:56] <olliej> due to my complete absence of a credit history
- # [14:57] <Lachy> I should check if Opera will be providing me with temporary accommodation so I can look for an apartment when I get there
- # [14:57] <Lachy> I'd rather not have to rent something before I get a chance to actually go over there and see the place
- # [14:57] <jgraham> (and the landlady seems to be part of some collective which negotiates the rent with the tennants association and then assigns the right rent to each apartment based on size, facilities, condition, etc.)
- # [14:58] <jgraham> (at least that's how I understand it)
- # [14:58] <Lachy> I like the deal I get in Norway by staying in one of Opera's apartments :-)
- # [14:58] <Rik|work> in France, you have to give a 3 months notice before leaving but you can arrange with the owner if you find someone to replace you
- # [15:00] * Joins: aroben (n=aroben@unaffiliated/aroben)
- # [15:00] * Joins: heycam (n=cam@203-217-72-53.dyn.iinet.net.au)
- # [15:18] * Joins: sid0_ (n=sid0@unaffiliated/sid0)
- # [15:18] * Quits: sid0 (n=sid0@unaffiliated/sid0) (Nick collision from services.)
- # [15:19] * sid0_ is now known as sid0
- # [15:19] * Joins: rubys (n=rubys@cpe-075-182-092-038.nc.res.rr.com)
- # [15:23] * Quits: virtuelv (n=virtuelv@pat-tdc.opera.com) ("Ex-Chat")
- # [15:25] * Joins: mlpug (n=mlpug@a91-156-60-13.elisa-laajakaista.fi)
- # [15:26] <gsnedders> Germany is similar to France, but it is 1 month, IIRC
- # [15:27] <gsnedders> Wow. It is almost two hours by bus from Stirling to here
- # [15:27] <olliej> erk
- # [15:27] <olliej> bed time i think
- # [15:27] * gsnedders shakes his head at olliej
- # [15:27] <olliej> gsnedders: ?
- # [15:28] <gsnedders> olliej: Your sleeping his hours…
- # [15:28] <Lachy> gsnedders, do you need to travel to Stirling?
- # [15:28] <gsnedders> s/his//
- # [15:28] <olliej> gsnedders: are awesome? ;D
- # [15:28] <gsnedders> Lachy: Well, yes, but only from Stirling to here; I'll be coming from London
- # [15:28] <gsnedders> olliej: :D
- # [15:28] <olliej> gsnedders: i hate x86 assembly
- # [15:28] <Lachy> gsnedders, where is "here"?
- # [15:28] <Rik|work> Stirling, like the engine ?
- # [15:28] <olliej> i have been up all night fighting it
- # [15:28] * Joins: hdh (n=hdh@118.71.78.38)
- # [15:29] <Rik|work> olliej is a knight fighting evil while you sleep
- # [15:30] * Quits: sid0 (n=sid0@unaffiliated/sid0) (pratchett.freenode.net irc.freenode.net)
- # [15:30] * Quits: zcorpan (n=zcorpan@c83-252-196-43.bredband.comhem.se) (pratchett.freenode.net irc.freenode.net)
- # [15:30] * Quits: annevk5 (n=annevk@53568A94.cable.casema.nl) (pratchett.freenode.net irc.freenode.net)
- # [15:30] * Quits: riven (n=colin@pdpc/supporter/professional/riven) (pratchett.freenode.net irc.freenode.net)
- # [15:30] * Quits: Philip` (n=philip@zaynar.co.uk) (pratchett.freenode.net irc.freenode.net)
- # [15:30] * Quits: takkaria (n=takkaria@isparp.co.uk) (pratchett.freenode.net irc.freenode.net)
- # [15:30] * Quits: jtcranmer (n=jcranmer@ltsp1.csl.tjhsst.edu) (pratchett.freenode.net irc.freenode.net)
- # [15:30] * Quits: jan____ (n=njan@web.traeumt.net) (pratchett.freenode.net irc.freenode.net)
- # [15:30] * Quits: eighty4 (n=eighty4@eighty4.se) (pratchett.freenode.net irc.freenode.net)
- # [15:30] <Lachy> 2 hours doesn't seem too long though. Is that about 180 to 200km distance?
- # [15:30] * Joins: sid0 (n=sid0@unaffiliated/sid0)
- # [15:30] * Joins: zcorpan (n=zcorpan@c83-252-196-43.bredband.comhem.se)
- # [15:30] * Joins: annevk5 (n=annevk@53568A94.cable.casema.nl)
- # [15:30] * Joins: riven (n=colin@pdpc/supporter/professional/riven)
- # [15:30] * Joins: jtcranmer (n=jcranmer@ltsp1.csl.tjhsst.edu)
- # [15:30] * Joins: jan____ (n=njan@web.traeumt.net)
- # [15:30] * Joins: takkaria (n=takkaria@isparp.co.uk)
- # [15:30] * Joins: eighty4 (n=eighty4@eighty4.se)
- # [15:30] * Joins: Philip` (n=philip@zaynar.co.uk)
- # [15:30] <gsnedders> Lachy: St Andrews
- # [15:30] <gsnedders> Lachy: No
- # [15:30] <Lachy> how far is it?
- # [15:30] * gsnedders looks up
- # [15:30] <gsnedders> 70km or so, I'd guess
- # [15:31] * gsnedders has to do 6502 Assembly for a practical computing assessment
- # [15:31] <gsnedders> How useful!
- # [15:31] <Lachy> google maps says 83
- # [15:32] <gsnedders> Yeah, 83km
- # [15:32] <Lachy> that must be an incredibly slow bus, travelling at an average speed less than 50km/h
- # [15:33] <gsnedders> The route it takes is unusually sane for a bus around here
- # [15:33] <Lachy> hmm, I guess it's passing through a fair few towns on the way, which would slow it down
- # [15:33] <gavin_> average speed of less than 50km for a bus in a city is not "incredibly slow"
- # [15:33] <gsnedders> A lot of towns.
- # [15:34] * Joins: pesla (n=retep@procurios.xs4all.nl)
- # [15:34] <gsnedders> gavin_: This is certainly not a city whatsoever.
- # [15:35] * Joins: mstange (n=markus@buntes215.wohnheim.uni-kl.de)
- # [15:35] <Lachy> gsnedders, is the maximum speed limit for a bus there about 100km/h, outside of towns?
- # [15:35] <gsnedders> I think it is 60mph, so yeah.
- # [15:35] <Lachy> like on highways, etc.
- # [15:35] <gsnedders> 100 is 62.3km/h
- # [15:35] <Lachy> wtf? You measure in miles there?!
- # [15:35] <gsnedders> Oh sure.
- # [15:35] <Lachy> why? I though only the US was backwards enough to be using miles
- # [15:35] <gsnedders> We also measure fuel economy in miles per gallon (imperial gallons, not US gallons), and buy petrol in litres.
- # [15:36] <olliej> Lachy: i believe the highway speed limit is 60 or 65mph
- # [15:36] <Lachy> huh?
- # [15:36] <olliej> Lachy: and i wouldn't plan on relying on buses/public transport
- # [15:36] * Quits: hdh (n=hdh@118.71.78.38) (Read error: 104 (Connection reset by peer))
- # [15:36] <gsnedders> olliej: We aren't talking about CA
- # [15:36] <gsnedders> olliej: We're talking about somewhere more awesome. :D
- # [15:36] <olliej> gsnedders: oh?
- # [15:36] <olliej> gsnedders: not hard
- # [15:36] <olliej> :D
- # [15:36] <gsnedders> olliej: Scotland, here.
- # [15:37] <gsnedders> olliej: Unless you want to find my house in CA :D
- # [15:37] * Quits: zalan (n=kvirc@catv-80-99-193-98.catv.broadband.hu) ("KVIrc 3.4.0 Virgo http://www.kvirc.net/")
- # [15:37] <olliej> hehe
- # [15:37] <Lachy> olliej, I've been warned about the poor bus services in CA before.
- # [15:37] <olliej> erk
- # [15:37] <gsnedders> http://www.stagecoachbus.com/timetables/23pckttt18082008[1].pdf doesn't ever seem to be overly slow, anywhere, it just seems to be slightly slow for the entire route and it just adds up
- # [15:38] <zcorpan> jgraham: pong
- # [15:38] <beowulf> Lachy: what's wrong with miles?
- # [15:39] <Lachy> beowulf, the fact that they aren't metric, and doing maths with them is hard
- # [15:39] <olliej> gah
- # [15:39] <olliej> why am i still up
- # [15:39] <olliej> night all
- # [15:39] * Quits: olliej (n=oliver@c-67-164-125-23.hsd1.ca.comcast.net)
- # [15:39] <gsnedders> Hm, Google Maps says only 16 hours and 18 minutes on foot.
- # [15:40] <Lachy> beowulf, try making sense out of why there's 12 inches/foot, 3 feet/yard, and 1760 yards/mile, or 5280 feet/mile. There's just no logic there.
- # [15:40] <gsnedders> Lachy: You actually know that? I don't.
- # [15:41] <Lachy> (and I had to look those last 2 values up, cause I've got no hope of remembering them)
- # [15:41] <Lachy> gsnedders, what's the difference between imperial and US gallons?
- # [15:42] <gsnedders> Lachy: They are a different amount.
- # [15:42] <gsnedders> Lachy: More detailed than that, I don't know and don't care.
- # [15:42] * Lachy looks it up
- # [15:42] <gsnedders> (I have software to convert it to litres, so I don't care.)
- # [15:43] * beowulf wonders when in real life Lachy needed to know how many feet where in a mile
- # [15:43] * beowulf lives in Ireland, on one side of the border we measure in miles, on the other, km
- # [15:44] * gsnedders ought to go to Ireland some time
- # [15:44] <Lachy> beowulf, luckily, I come from a sensible country that uses the metric system, so I don't need to know. But I might need to when I go to the US
- # [15:44] * gsnedders is going to be taking a stupid route home from Linköping, via Berlin, London, Southampton, and finally Stirling before getting back to St Andrews
- # [15:45] <Lachy> gsnedders, so you did get the internship at Opera?
- # [15:45] <gsnedders> Lachy: Yes
- # [15:45] <Lachy> cool
- # [15:45] * beowulf makes note to invite gsnedders to the next whatever camp to talk about html5 or something
- # [15:45] <Lachy> when?
- # [15:45] <gsnedders> Lachy: June 29th to August 28th
- # [15:45] <gsnedders> beowulf: Also: get me money to go there :P
- # [15:45] <Lachy> ok
- # [15:46] <beowulf> gsnedders: would sir prefer HSS or regular ferry?
- # [15:46] <gsnedders> HSS?
- # [15:46] <gsnedders> http://en.wikipedia.org/wiki/High-speed_Sea_Service?
- # [15:46] <beowulf> gsnedders: high speed ... service? the catamaran thing
- # [15:47] <gsnedders> Ah. I wouldn't really care :)
- # [15:47] <beowulf> :)
- # [15:47] * Joins: zdobersek (n=zan@cpe-92-37-70-11.dynamic.amis.net)
- # [15:47] <gsnedders> Provided I'm not meant to be doing anything else at the time (which is not much next year) I don't care how long it takes
- # [15:47] <gsnedders> Actually, more to the point, I'm not doing anything that involves me being anywhere specific, I can live fine with my laptop and do what is needed.
- # [15:48] <jgraham> Lachy: Mathematics with miles: 0.1 miles, 0.5 miles, 1.0 miles 100 miles. Cars on the motorway travel at an average of about 1 mile/minute
- # [15:48] <beowulf> Lachy: so you'd struggle if i told how how far my house is from here in fields?
- # [15:48] * Joins: tantek (n=tantek@63.195.114.133)
- # [15:49] <Lachy> beowulf, is "fields" a standardised unit of measure?
- # [15:49] * Joins: zdobersek1 (n=zan@cpe-92-37-74-29.dynamic.amis.net)
- # [15:50] <Dashiva> Fields medal radii
- # [15:50] <Lachy> Dashiva, what?
- # [15:51] <Dashiva> I figured that would be standardized :)
- # [15:51] <beowulf> Lachy, the distance from one hedge to the other?
- # [15:51] * Lachy assumes beowulf is now just being silly
- # [15:52] <gsnedders> Only 10:36 from train station to arriving by ferry in Dublin :P
- # [15:52] * Joins: myakura (n=myakura@p1120-ipbf2303marunouchi.tokyo.ocn.ne.jp)
- # [15:52] <gsnedders> Oh, and five changes :P
- # [15:53] <Lachy> oh, wow, apparently there are 128 ounces in a gallon (US). That also makes things complicated
- # [15:54] * jgraham wonders why gsnedders is taking such a convoluted route home
- # [15:54] <gsnedders> 128 is a nice round number!
- # [15:54] <Lachy> is there a smaller unit than a fluid ounce?
- # [15:54] <Lachy> gsnedders, only if doing maths in binary
- # [15:55] <jgraham> Lachy: Sure. But I guess you mean a smaller imperial unit
- # [15:55] <gsnedders> jgraham: Well, I'm dropping into Berlin to see my sister (and my probable niece), then off to London to spend the night there, to Southampton for uni open day, then off to Stirling for conference on the same evening
- # [15:55] <Lachy> jgraham, yes
- # [15:55] <gavin_> you have a probable niece?
- # [15:55] <gsnedders> Yes.
- # [15:55] <jgraham> |niece>
- # [15:56] <gsnedders> She might be a nephew.
- # [15:56] <Lachy> jgraham, actually, I mean in US units, not imperial units
- # [15:56] <beowulf> Lachy: a dram?
- # [15:56] <beowulf> Lachy: not a dram then
- # [15:56] <Lachy> oh, I forgot about the pint. Better find out how much that is
- # [15:56] * beowulf knows nothing of US units
- # [15:56] * Quits: nessy (n=nessy@203-214-157-222.perm.iinet.net.au) ("This computer has gone to sleep")
- # [15:57] <gsnedders> Very approx. 500ml
- # [15:57] <jgraham> Lachy: A pint is the unit that ber comes in. That is all that you need to know
- # [15:57] <jgraham> *beer
- # [15:57] * gsnedders thinks going to Dublin would be easier by air :)
- # [15:59] <beowulf> gsnedders: dublin is expensive coming from the uk, euro/sterling exchange rate and then the recession
- # [15:59] <Lachy> jgraham, beer should come in either a Schooner or a Middy
- # [16:00] * jgraham laughs
- # [16:00] <gsnedders> beowulf: Peh. I have no money any way. What difference does it make? :)
- # [16:01] <Lachy> jgraham, why is that funny?
- # [16:02] <jgraham> Uh because they are such silly names? A schooner is a type of boat and, well, if you can't see why "middy" sounds funny there is no hope for you :)
- # [16:03] * Quits: zdobersek (n=zan@cpe-92-37-70-11.dynamic.amis.net) (Read error: 110 (Connection timed out))
- # [16:04] * Joins: hdh (n=hdh@118.71.78.38)
- # [16:05] * Quits: tantek (n=tantek@63.195.114.133) (Connection timed out)
- # [16:10] * Quits: broquaint (n=dbrook@spc1-brig11-0-0-cust544.asfd.broadband.ntl.com) (Remote closed the connection)
- # [16:22] * Joins: billmason (n=billmaso@ip28.unival.com)
- # [16:24] * Quits: gsnedders (n=gsnedder@host86-136-52-180.range86-136.btcentralplus.com) (Remote closed the connection)
- # [16:25] * Joins: gsnedders (n=gsnedder@host86-136-52-180.range86-136.btcentralplus.com)
- # [16:29] <gsnedders> Lachy: Avoid wearing glasses.
- # [16:32] * Joins: maikmerten_ (n=merten@vp-c-74.cs.uni-dortmund.de)
- # [16:33] * Quits: maikmerten (n=merten@ls5dhcp196.cs.uni-dortmund.de) (Read error: 110 (Connection timed out))
- # [16:33] <Lachy> gsnedders, my choices are: wear glasses, or avoid needing to look at anything that isn't close enough to see clearly
- # [16:34] <gsnedders> Lachy: I do the latter.
- # [16:34] * Lachy notes that even the computer screen at arms length in front of me is a little blurry without glasses
- # [16:37] * jgraham did the latter for rather a long time
- # [16:39] * gsnedders does have glasses, just only wears them when he can't do the latter
- # [16:40] * Quits: zcorpan (n=zcorpan@c83-252-196-43.bredband.comhem.se) (Remote closed the connection)
- # [16:41] * Joins: zcorpan (n=zcorpan@c83-252-196-43.bredband.comhem.se)
- # [16:41] <Lachy> I'm getting new lenses when I go to Australia next week. I was really hoping the insurance would cover the cost :-(
- # [16:42] * Joins: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [16:45] * Joins: broquaint (i=516c2d1b@spc1-brig11-0-0-cust544.asfd.broadband.ntl.com)
- # [16:46] * Quits: zcorpan (n=zcorpan@c83-252-196-43.bredband.comhem.se) (Remote closed the connection)
- # [16:55] * gsnedders isn't really convinced by the ending of Pride and Prejudice
- # [16:57] <Lachy> how does it end?
- # [16:58] <gsnedders> It just quickly says a lot trying to wrap up all the story arcs, instead of properly ending.
- # [16:59] * jgraham isn't really convinced that finding only 16 / 1289370 pages with a <html> element is realistic and not, say, a bug in his script
- # [17:00] <jgraham> (As a collary, the 1289370 number might well be wrong)
- # [17:07] <Lachy> jgraham, are you searching for pages that use the start tag compared with those that don't?
- # [17:08] <jgraham> Lachy: No, I'm just testing the code that I wrote to look at the dotnetdotcom data. My conclusion is that the code is broken. This is not really surprising :)
- # [17:12] * Quits: Mau`werk (n=ano@80.101.46.164) ("Disconnected...")
- # [17:14] * Quits: drostie (n=hopkins@5354256F.cable.casema.nl) (Remote closed the connection)
- # [17:16] * gsnedders thought jgraham was a brilliant programmer ;P
- # [17:17] * Joins: ZombieLoffe (n=e@unaffiliated/zombieloffe)
- # [17:17] * Joins: davidb (n=davidb@mozca02.ca.mozilla.com)
- # [17:21] * Joins: drostie (n=hopkins@5354256F.cable.casema.nl)
- # [17:22] <jgraham> Because gsnedders never has bugs
- # [17:23] <gsnedders> No, never.
- # [17:23] * Joins: cgriego (n=cgriego@out-02.hotels.com)
- # [17:23] <beowulf> not closing your lists in an <a> is a bad idea, you get the same blocks within a element thing as from packet boundaries
- # [17:26] <beowulf> http://carisenda.com/sandbox/blocka/
- # [17:32] * Quits: Lachy (n=Lachlan@pat-tdc.opera.com) ("This computer has gone to sleep")
- # [17:37] * Joins: roc (n=roc@65.123.0.210)
- # [17:44] * Joins: hasather (n=hasather@90-231-107-133-no62.tbcn.telia.com)
- # [17:46] * Quits: drostie (n=hopkins@5354256F.cable.casema.nl) (Remote closed the connection)
- # [17:51] * Joins: drostie (n=hopkins@5354256F.cable.casema.nl)
- # [17:52] * Quits: maikmerten_ (n=merten@vp-c-74.cs.uni-dortmund.de) (Read error: 60 (Operation timed out))
- # [17:52] <Philip`> jgraham: There should be something like 425K pages, not 1.3M
- # [17:53] * Quits: svl (n=chatzill@a194-109-2-36.dmn.xs4all.nl) ("And back he spurred like a madman, shrieking a curse to the sky.")
- # [17:53] <Philip`> jgraham: By the way, I hope you're planning to process all the ~20GB of data in Python in finite time :-)
- # [17:53] <Philip`> Uh
- # [17:53] <Philip`> *not planning
- # [17:54] * Joins: dave_levin (n=dave_lev@72.14.227.1)
- # [17:54] * gsnedders points at the parallelizm module
- # [17:55] * Philip` points at the orders of magnitude by which Python is slower than fast languages
- # [17:55] * Joins: Lachy (n=Lachlan@85.196.122.246)
- # [17:55] <Philip`> and the non-corresponding orders of magnitudes more processing cores that you can run it on
- # [17:56] * gsnedders notes he has been wondering about using C to do some processing with the 20GB of data
- # [17:56] <jgraham> Philip`: I was planning on seeing how hard it was to process in python and then hen that failed to process it using hadoop, perhaps using python for the map/reduce functions. But that may not be a sensible plan :)
- # [17:57] <jgraham> Also, since the process is mainly IO bound it's not clear why using python is a bad idea
- # [17:58] * jgraham was following the approach in http://effbot.org/zone/wide-finder.htm which did OK: http://www.tbray.org/ongoing/When/200x/2007/10/30/WF-Results
- # [18:00] <gsnedders> jgraham: Shouldn't you be doing it in Perl if you're basing it on WF?
- # [18:00] <jgraham> gsnedders: No. :)
- # [18:01] * Quits: roc (n=roc@65.123.0.210)
- # [18:01] * jgraham has to go but wants to find out why he is doing everything wrong :)
- # [18:06] * Quits: archtech (n=stanv@83.228.56.37)
- # [18:08] * Quits: pesla (n=retep@procurios.xs4all.nl) ("( www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com )")
- # [18:18] * Joins: aroben_ (n=aroben@unaffiliated/aroben)
- # [18:18] * Quits: sid0 (n=sid0@unaffiliated/sid0) (Read error: 104 (Connection reset by peer))
- # [18:20] * Quits: aroben (n=aroben@unaffiliated/aroben) (Read error: 104 (Connection reset by peer))
- # [18:20] * aroben_ is now known as aroben
- # [18:23] * Joins: sid0 (n=sid0@unaffiliated/sid0)
- # [18:37] * Quits: ROBOd (n=robod@89.122.216.38) ("http://www.robodesign.ro")
- # [18:38] * Joins: Maurice (i=copyman@5ED548D4.cable.ziggo.nl)
- # [18:40] * Joins: zalan (n=kvirc@dsl54009DA0.pool.t-online.hu)
- # [18:45] * Joins: roc (n=roc@guest-226.mountainview.mozilla.com)
- # [18:53] * gsnedders wonders whether we really need to treat U+000C as whitespace
- # [18:53] <hsivonen> http://xformstest.org/klotz/shibumiscript/2009/04/tv-raman-on-xforms-and-screen-scraping.html
- # [18:53] * Joins: onar_ (n=onar@17.244.69.252)
- # [18:54] <hsivonen> the post that seemed to be about HTML5 and XHTML2 seems to have comments increasingly about XForms--not XHTML2
- # [18:57] * Quits: hsivonen (n=hsivonen@kekkonen.cs.hut.fi) ("leaving")
- # [18:58] * Joins: hsivonen (n=hsivonen@kekkonen.cs.hut.fi)
- # [19:02] * Joins: ROBOd (n=robod@89.122.216.38)
- # [19:07] * Parts: billmason (n=billmaso@ip28.unival.com)
- # [19:07] <Philip`> jgraham: It shouldn't be IO bound for the current dotnetdotcom data - there's not even 4GB, so it should fit in RAM with no IO at all
- # [19:09] * Joins: svl (n=me@ip565744a7.direct-adsl.nl)
- # [19:10] * Quits: dolske (n=dolske@firefox/developer/dolske)
- # [19:10] <Philip`> jgraham: Also, IO should be on the order of 100MB/s, which seems much faster than you can decompress and parse data
- # [19:15] * Joins: taf2_ (n=taf2@38.99.201.242)
- # [19:15] * Joins: weinig (n=weinig@nat/apple/x-cd9e9ebbf8cba5f7)
- # [19:18] * Joins: billmason (n=billmaso@ip28.unival.com)
- # [19:30] * Quits: onar_ (n=onar@17.244.69.252)
- # [19:37] <Philip`> jgraham: (By "IO" I mean raw disk IO)
- # [19:40] * Joins: dolske (n=dolske@corp-241.mountainview.mozilla.com)
- # [19:42] * Quits: fishd (n=darin@nat/google/x-a463241a8706d600) ("Leaving")
- # [19:48] * aroben is now known as aroben|lunch
- # [19:49] * Quits: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [19:50] * Joins: archtech (n=stanv@83.228.56.37)
- # [19:52] <gsnedders> If you have a text/html document within an object element, is it within a new browsing context?
- # [19:52] <Philip`> Why wouldn't it be?
- # [19:52] * Joins: maikmerten (n=maikmert@U1305.u.pppool.de)
- # [19:52] * gsnedders claims ignorance
- # [19:55] <gsnedders> Does anyone serve XHTML as application/xml or text/xml?
- # [19:56] <hsivonen> gsnedders: mozillaquestquest uses text/xml, IIRC
- # [19:56] * gsnedders was hoping he could just ignore such content, oh well
- # [19:56] <hsivonen> gsnedders: also, I believe there's MathML content that uses application/xml for IE XSLT hooks
- # [19:58] <rubys> what do browsers do with xhtml served as appliction/xml or text/xml?
- # [19:59] <hsivonen> rubys: dispatch on namespace, but at least old versions have issues with what interfaces the document object exposes
- # [19:59] <rubys> what does IE do?
- # [19:59] <hsivonen> rubys: also, I'd expect createElement not to be magic
- # [20:00] <hsivonen> rubys: shows a prettyprint tree or applies XSLT if available
- # [20:00] <gsnedders> rubys: It treats it as any other XML document, so you can use XSLT to transform it to HTML
- # [20:00] <rubys> Can the link to the XSLT be in an HTTP header?
- # [20:01] <hsivonen> unlikely
- # [20:01] <hsivonen> but I don't know
- # [20:03] * Joins: onar_ (n=onar@17.244.69.252)
- # [20:03] <rubys> I will run a test to verify, but to be clear: webkit + presto + gecko all are thought to dispatch based on namespace when they encounter text/xml ?
- # [20:03] <hsivonen> rubys: yes, except the document object is created on MIME type
- # [20:04] <hsivonen> which is a bug per HTML5
- # [20:04] <hsivonen> I don't know what the implementation reality on that point is today
- # [20:05] <rubys> I wasn't thinking of starting with HTML, but testing it out on separate SVGs.
- # [20:05] <annevk5> differs
- # [20:05] <annevk5> DOM behavior for e.g. createElement differs too
- # [20:05] <hsivonen> rubys: If you run tests, I suggest testing what interfaces you get on document and testing what document.createElement("foo") returns
- # [20:06] <rubys> the first thing I would likely try is to see how jquery reacts. :-)
- # [20:07] <rubys> but I like the idea of svg images being like feeds were a few years ago: displayed as raw xml to backlevel browsers and as something usable by modern browsers.
- # [20:08] <hsivonen> rubys: you find an XML tree better user experience than a download dialog?
- # [20:11] <Philip`> hsivonen: You could write a polyglot document that displays the same content via XHTML and via ASCII art in the XML tree
- # [20:13] <hsivonen> Philip`: should there be validation for that? :-)
- # [20:18] * Quits: hdh (n=hdh@118.71.78.38) (Remote closed the connection)
- # [20:19] * aroben|lunch is now known as aroben
- # [20:27] * Quits: zalan (n=kvirc@dsl54009DA0.pool.t-online.hu) ("KVIrc 3.4.0 Virgo http://www.kvirc.net/")
- # [20:29] <annevk42> hmm, great, any form of pasting makes my chromium build crash
- # [20:29] * gsnedders ought to do physics, but reading Anna Karenina is awfully tempting
- # [20:29] * Joins: zalan (n=kvirc@dsl54009DA0.pool.t-online.hu)
- # [20:30] * Joins: dbaron (n=dbaron@corp-241.mountainview.mozilla.com)
- # [20:30] * Philip` wonders how Larry sees hundreds of messages when loading whatwg.org/issues (presumably without manually clicking on all the links)
- # [20:30] <Philip`> since I just get the 15 folders, in Chrome 1.0 and Chrome 2.0 and Firefox 3.0 and Opera 9.6
- # [20:30] <annevk42> I was trying to find out, but Chromium crashes on me
- # [20:30] <hsivonen> I replied to Larry
- # [20:31] <annevk42> (when I enter the address manually I get the same as Philip`)
- # [20:31] <Philip`> hsivonen: I noticed, just before I sent the reply I'd written myself :-)
- # [20:31] <Philip`> (saying basically the same thing)
- # [20:31] * Quits: Lachy (n=Lachlan@85.196.122.246) ("This computer has gone to sleep")
- # [20:31] <Philip`> annevk42: Fortunately Chromium has lots of clever process isolation so that the browser won't crash
- # [20:32] <annevk42> you know, not working
- # [20:32] <annevk42> :)
- # [20:32] <hsivonen> has Chrome 2.0 already been pushed to users?
- # [20:32] <Philip`> hsivonen: No
- # [20:32] <hsivonen> Philip`: do you have separate VMs for different versions of Chrome?
- # [20:32] <Philip`> hsivonen: (I had to manually find and install the beta)
- # [20:33] <Philip`> hsivonen: No; I tested in Chrome 1.0, then upgraded to 2.0 and tested again
- # [20:33] * Quits: onar_ (n=onar@17.244.69.252)
- # [20:33] <hsivonen> ah
- # [20:33] * Philip` has no VMs at all
- # [20:34] <Philip`> mostly because VMware on Linux started panicking my kernel after I updated something
- # [20:34] * Joins: onar_ (n=onar@17.244.69.252)
- # [20:34] <Philip`> and then I decided there were more useful uses of several gigabytes of disk space than a VM which I never use
- # [20:42] * Quits: mstange (n=markus@buntes215.wohnheim.uni-kl.de) (Remote closed the connection)
- # [20:43] * Joins: mstange (n=markus@buntes215.wohnheim.uni-kl.de)
- # [20:44] * Quits: mstange (n=markus@buntes215.wohnheim.uni-kl.de) (Remote closed the connection)
- # [20:44] * Joins: mstange (n=markus@buntes215.wohnheim.uni-kl.de)
- # [20:56] <hsivonen> Hixie: what's your take on http://mxr.mozilla.org/mozilla-central/source/layout/reftests/bugs/228856-2.html ?
- # [21:01] <jgraham> Philip`: My plan was to decompress the data upfront rather than on the fly. Possibly that isn't sensible (but I'm no sure how the compressed size of the data relative to the ram size matters since presumably it has o be decompressed at some point)
- # [21:03] <Philip`> jgraham: I think that isn't sensible, because of disk IO speed and RAM buffer sizes
- # [21:03] <Philip`> The decompressed data will get processed and discarded and garbage-collected very quickly
- # [21:03] <Philip`> so it won't take up much RAM in total
- # [21:04] <Philip`> which leaves all the rest available for buffering the disk
- # [21:04] <jgraham> Philip`: I'm not sure I understand. Maybe I don't understand gzip well enough
- # [21:05] <Philip`> jgraham: You decompress and process it streamingly, you don't decompress the entire thing into RAM and then process it all at once
- # [21:06] * Quits: dolske (n=dolske@firefox/developer/dolske)
- # [21:06] <jgraham> Philip`: But that limits you to a single process operating on the data, right?
- # [21:06] <jgraham> (i.e. you can't look at it in chunks)
- # [21:06] <Philip`> jgraham: If you've got a single gzipped file, then yes
- # [21:07] <Philip`> so I suggest doing some pre-processing to split it into several chunks, each of which can be gzipped independently
- # [21:07] <Philip`> (and also change it to a format that can be read more easily than null-terminated fields)
- # [21:08] <Philip`> and then you can parallelise by having each process process one of the chunks
- # [21:08] <Philip`> (so make them pretty small chunks, like a hundred megabytes or whatever)
- # [21:08] <jgraham> Philip`: All of that sounds like a sensible optimisation but essentially not that different to the (broken) code I already have
- # [21:09] <Philip`> Much more sensible than storing the uncompressed data on disk :-)
- # [21:09] <jgraham> Which processed the whole file in ~5 minutes. Although that might change a lot when it actually does the right thing
- # [21:09] <jgraham> Philip`: It's not really that big a file compared to the amount of free disk space I have :)
- # [21:10] <Philip`> jgraham: The point is that it's big compared to the amount of RAM you have
- # [21:10] <Philip`> and so it'll be slower to process
- # [21:10] * Parts: hasather (n=hasather@90-231-107-133-no62.tbcn.telia.com)
- # [21:11] <Philip`> I suppose unless you've got 4GB of RAM (or you restrict yourself to a subset of the data) you'll have to do some disk IO anyway, and if the OS does FIFO buffering then it'll be the worst possible case, which isn't so good
- # [21:12] * gsnedders always gets FIFO and FILO mixed up
- # [21:12] <jgraham> FILO is a type of pastry
- # [21:12] * jgraham is sure he has said that before
- # [21:13] <Philip`> gsnedders: It's easy to remember, because people never use the term FILO :-)
- # [21:13] <Philip`> (They're called stacks instead)
- # [21:13] <gsnedders> Philip`: Assuming the SQA has logic
- # [21:13] <gsnedders> (Unlikely)
- # [21:14] * Joins: dolske (n=dolske@corp-241.mountainview.mozilla.com)
- # [21:14] <rubys> LIFO is common, however
- # [21:14] <Philip`> jgraham: Is that ~5 minutes with some parallelisation?
- # [21:15] * jgraham can find no evidence in the logs that he has actually made the pastry bun before so he is safe in the knowledge that people will only think him unfunny rather than unfunny and repetitive
- # [21:15] <jgraham> Philip`: Yes. 4 processes processing 50Mb chunks
- # [21:15] <Philip`> Pastry bun? :-p
- # [21:16] <jgraham> Argh
- # [21:17] <Philip`> jgraham: Hmm, seems to take me ~5 minutes to grep for a string in the 425K pages with no parallelisation
- # [21:17] <Philip`> (and it's all CPU bound, so it should parallelise embarrassingly)
- # [21:18] <Philip`> (Actually I suppose it's memory bound, so that's not really true; oh well)
- # [21:25] * Quits: jwalden (n=waldo@c-24-6-168-212.hsd1.ca.comcast.net) ("inbound")
- # [21:32] * Joins: othree_ (n=othree@admin39.ct.ntust.edu.tw)
- # [21:33] * Quits: othree (n=othree@admin39.ct.ntust.edu.tw) (Read error: 104 (Connection reset by peer))
- # [21:35] <Hixie> hsivonen: is the spec ambiguous?
- # [21:39] <Philip`> hsivonen: Did you see http://krijnhoetmer.nl/irc-logs/whatwg/20090424#l-503 ?
- # [21:39] * Philip` wonders if he should report it via the bug tracker or something
- # [21:40] * Quits: dbaron (n=dbaron@corp-241.mountainview.mozilla.com) ("8403864 bytes have been tenured, next gc will be global.")
- # [21:42] <rubys> Hixie: what's the status/outlook on RDFa?
- # [21:42] <Philip`> jgraham: (For comparison: It takes ~70 seconds to read all the pages and extract the HTTP headers, with 4 processes in parallel; and ~400 seconds to parse all the HTML (via SAX2) and extract all the <meta> elements)
- # [21:43] <Hixie> rubys: just had a meeting with the last group of people i know of who had input they wanted to give on the issue, having lunch now, plan to start going down the use cases this afternoon
- # [21:44] <rubys> so you will have a proposal by the end of the... week? month? Don't need a firm date, just a guess.
- # [21:45] <Hixie> there are a number of use cases each of which will likely get their own proposals
- # [21:45] <Hixie> i expect the easiest ones will have proposals by tonight
- # [21:46] <Hixie> and the more complex ones likely by the end of the week
- # [21:46] <rubys> thanks!
- # [21:47] <Hixie> np
- # [21:51] * Quits: mlpug (n=mlpug@a91-156-60-13.elisa-laajakaista.fi) (Remote closed the connection)
- # [21:53] <annevk42> "Estimated date for last e-mail: 2009-11-01" fun
- # [21:55] <Hixie> it was april 2010 last week :-)
- # [21:55] <annevk42> it's making a nose dive atm
- # [21:56] * Joins: jwalden (n=waldo@63.245.220.241)
- # [21:56] <jgraham> Philip`: OK, now I have some idea what to aim for :)
- # [21:56] * Quits: ap (n=ap@194.154.88.36)
- # [21:57] <Hixie> annevk42: it's gonna flatline this week as i go back to microdata stuff :-)
- # [21:58] <Philip`> jgraham: (This is on a 2.4GHz quad Core 2)
- # [21:58] * Joins: Lachy (n=Lachlan@85.196.122.246)
- # [22:01] * Quits: maikmerten (n=maikmert@U1305.u.pppool.de) (Remote closed the connection)
- # [22:13] <gsnedders> Where is the estimate?
- # [22:14] <Philip`> http://tomayko.com/ - <meta http-equiv='X-UA-Compatible' content='YOUR MOM'>
- # [22:15] * Quits: starjive (i=beos@213.66.216.93)
- # [22:15] <annevk42> hehe
- # [22:16] * Quits: myakura (n=myakura@p1120-ipbf2303marunouchi.tokyo.ocn.ne.jp) ("Leaving...")
- # [22:21] <annevk42> W3C QA blog needs karl back; this latest post doesn't even provide some simple pointers
- # [22:23] <annevk42> Hixie, if you could reply to my email about sync fetch that'd great btw
- # [22:24] * Parts: rubys (n=rubys@cpe-075-182-092-038.nc.res.rr.com)
- # [22:24] <Philip`> http://philip.html5.org/data/ua-compatible-contents.txt
- # [22:24] * Joins: virtuelv (n=virtuelv@084202133045.customer.alfanett.no)
- # [22:25] * Quits: archtech (n=stanv@83.228.56.37)
- # [22:25] <annevk42> Hixie, especially if you have any tips on how to share an algorithm between a sync and async fetch at the same time (where the algorithm would only dispatch events in the async case, but would share a bunch of common that do not affect the event loop (apart from completely killing the network request; i.e. the current task))
- # [22:25] <Hixie> annevk42: do you want other events, timeouts, etc, to fire during the sync request?
- # [22:26] <annevk42> nope
- # [22:26] <Hixie> k
- # [22:26] <annevk42> it would be sync very much like alert() is sync I guess
- # [22:26] <annevk42> but I still need it to follow redirects, throw on network errors, etc. (and dispatch events if invoked as async)
- # [22:27] * Quits: Lachy (n=Lachlan@85.196.122.246) ("This computer has gone to sleep")
- # [22:27] <Hixie> i don't think i'd recommend reusing the 'fetch' algorithm then
- # [22:27] <Hixie> i'd just write a new one
- # [22:27] <Hixie> that happens to have bits in common
- # [22:28] <Hixie> not really sure what to suggest, tip wise
- # [22:28] <Hixie> how can i help you?
- # [22:30] <annevk42> from http://dev.w3.org/2006/webapi/XMLHttpRequest/#send step 9 and 10 are basically the part that the UA needs to do while fetching regardless of sync/async
- # [22:30] <annevk42> now I was thinking that if fetch qeued some kind of task I could just wait for that task to complete in the sync case
- # [22:30] <annevk42> and for async return early
- # [22:31] <Hixie> the task will not complete if you're waiting
- # [22:31] <Hixie> the tasks only ever run when the event loop runs
- # [22:31] <Hixie> this is really just a regular event loop pattern
- # [22:32] * Parts: zdobersek1 (n=zan@cpe-92-37-74-29.dynamic.amis.net)
- # [22:32] <annevk42> I see
- # [22:32] <annevk42> writing out everything two times seems like the wrong approach though
- # [22:33] * Joins: Lachy (n=Lachlan@85.196.122.246)
- # [22:34] <annevk42> I suppose writing a sync fetch isn't too hard; hmm
- # [22:36] <annevk42> does XHR delay the load event?
- # [22:39] <annevk42> so you'd have ... fetch resource; return send(); follow loading algorithm; ... or ... sync fetch resource; follow loading algorithm; return send()
- # [22:41] <annevk42> this still requires some kind of event loop for the sync case in the UA of course, but I guess that's always required, because otherwise you'd get stuck
- # [22:41] <annevk42> but it doesn't have to be explicit in the spec
- # [22:43] * Joins: akamike (n=mikerobi@92.3.35.15)
- # [22:43] * Quits: ROBOd (n=robod@89.122.216.38) ("http://www.robodesign.ro")
- # [22:50] <Philip`> http://philip.html5.org/data/ua-compatible-headers.txt
- # [22:51] <Philip`> I like the first one
- # [22:52] <gsnedders> IE=8;FF=3;OtherUA=4: X-UA-Compatible: IE=8;FF=3;OtherUA=4
- # [22:52] <gsnedders> WTF?
- # [22:52] * Joins: nessy (n=nessy@203-214-157-222.perm.iinet.net.au)
- # [22:53] <annevk42> Hixie, did the above make some amount of sense?
- # [22:55] <Philip`> gsnedders: *shrug*
- # [22:55] <Hixie> annevk42: sorry, was afk. reading.
- # [22:56] <Hixie> annevk42: you don't need an event loop in the sync case if you just avoid queueing tasks in that case
- # [22:56] * Quits: pmuellr (n=pmuellr@nat/ibm/x-ebeb71e218cb6158)
- # [22:56] <Hixie> annevk42: i would just have on algorithm, and every now and then say "if sync... else if async ..."
- # [22:57] <annevk42> Hixie, yeah, that is "follow loading algorithm" :)
- # [22:57] <annevk42> I suppose I could do it for fetching as well
- # [22:59] * Quits: nessy (n=nessy@203-214-157-222.perm.iinet.net.au) ("This computer has gone to sleep")
- # [22:59] <annevk42> defining the Web sometimes feels like building a house of cards
- # [23:00] * Quits: Lachy (n=Lachlan@85.196.122.246) ("This computer has gone to sleep")
- # [23:01] * Philip` wobbles the table
- # [23:03] * Quits: ZombieLoffe (n=e@unaffiliated/zombieloffe)
- # [23:13] * Joins: weinig_ (n=weinig@17.246.16.148)
- # [23:19] * Quits: davidb (n=davidb@mozca02.ca.mozilla.com)
- # [23:22] * Quits: Maurice (i=copyman@5ED548D4.cable.ziggo.nl) ("Disconnected...")
- # [23:28] * Quits: weinig (n=weinig@nat/apple/x-cd9e9ebbf8cba5f7) (Read error: 110 (Connection timed out))
- # [23:30] * Quits: mstange (n=markus@buntes215.wohnheim.uni-kl.de) ("ChatZilla 0.9.84-2009030221 [Firefox 3.6a1pre/20090426031353]")
- # [23:34] * Quits: dave_levin (n=dave_lev@72.14.227.1)
- # [23:35] <Hixie> oops
- # [23:35] <Hixie> i just XSSed myself
- # [23:35] <Hixie> <iframe src="data:text/html,<script>document.write(location)</script>"></iframe> doesn't do quite what you might think it does
- # [23:48] * Quits: zalan (n=kvirc@dsl54009DA0.pool.t-online.hu) ("KVIrc 3.4.0 Virgo http://www.kvirc.net/")
- # [23:54] * Joins: Lachy (n=Lachlan@85.196.122.246)
- # [23:55] * gsnedders wonders how it does that
- # Session Close: Tue May 05 00:00:00 2009
The end :)