--
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com.
To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
The alternative is not having xml literals in the language.e4x has pretty much been abandoned and I believe it's not even in the latest Spidermonkey.We've got sax parsers and pure js dom implementations, we don't need literals and can process xml like normal people.
Of all the things we would like to have in JavaScript this has to be at the bottom of the list.Changes to the language are not going to happen in node. node will take v8, vanilla.We aren't interested in language features, we're building a platform and not concerning ourselves with the language and vm allows us to build and iterate on this platform significantly faster than if we were building a language.
We aren't interested in language features
But I wouldn't vote for E4X either, that's clear. What I would vote for is macros (I mean real macros, a-la Lisp, not the lame substitute that C has). Which unfortunately is not quite possible in the "clean" syntax of JavaScript...
On Fri, Nov 19, 2010 at 12:15 PM, Mikeal Rogers <mikeal...@gmail.com> wrote:The alternative is not having xml literals in the language.e4x has pretty much been abandoned and I believe it's not even in the latest Spidermonkey.We've got sax parsers and pure js dom implementations, we don't need literals and can process xml like normal people.E4X has not been abandoned and nor has it been removed from Spidermonkey. Stop making stuff up and spreading FUD.
Also, stop being an ass. If you don't like e4x, don't use it, jeez.
"like normal people"... wow. I know you're normally a nice dude; you must just be a bit off about some other stuff going on in your life right now to have been so rude there.
Anywho, Marcel, that's awesome. E4X is fantastic for templating (IMHO that was the killer feature in Jaxer when it was still alive). Of course, js isn't the ideal layer to implement it because of the need to then preprocess/etc.There is a ton of interest from people nearly begging someone at Google to get on it for V8: http://code.google.com/p/v8/issues/detail?id=235Keep it up! Maybe you can be the one to augment V8 natively once you've got it all working nicely from js.
On Fri, Nov 19, 2010 at 1:31 PM, Ryan Gahl <ryan...@gmail.com> wrote:On Fri, Nov 19, 2010 at 12:15 PM, Mikeal Rogers <mikeal...@gmail.com> wrote:The alternative is not having xml literals in the language.e4x has pretty much been abandoned and I believe it's not even in the latest Spidermonkey.We've got sax parsers and pure js dom implementations, we don't need literals and can process xml like normal people.E4X has not been abandoned and nor has it been removed from Spidermonkey. Stop making stuff up and spreading FUD.It has in fact been abandoned as a spec and I have it on good authority (Wes Garland) that while there's no schedule to deprecate it in Spidermonkey it is roundly despised by the devs and will eventually get kicked to the curb. I wouldn't be so quick to call this FUD, it's hyperbole at worst.Also, stop being an ass. If you don't like e4x, don't use it, jeez."like normal people"... wow. I know you're normally a nice dude; you must just be a bit off about some other stuff going on in your life right now to have been so rude there.It was just a simple comment -- a little snarky, sure, but that's no reason to question someone's mental state. Mikeal is a nice dude, but he's not nice at all about language bloat -- he's downright hostile to it. But it's personal :)
If the discussion is: "Here's a thing that needs to be added to
node-core's Script binding, and we should convince Ryan to accept the
patch!" then please for the love of all that is right and holy in the
world, no.
--i
No, you had it right the first time. Mikeal takes language bloat personally.
We javascripters are lucky to have him for that reason.
--i
If the discussion is: "Hey, guys, I built this userland addon that can
be used by you if you want and like E4X, and ignored safely if you
don't!" than I'm all for it. I'd prefer that it not monkey-patch
node, but instead provide some other mechanism for parsing code that
does the E4X thing, but whatever.
If the discussion is: "Here's a thing that needs to be added to
node-core's Script binding, and we should convince Ryan to accept the
patch!" then please for the love of all that is right and holy in the
world, no.
--i
What we need are better, probably competing, xml libraries, built on node.js.
That is about backwards-compatibility in Python. A separate (but
related) issue. A lot of the XML libs in core Python are a fuster
cluck and that is mostly acknowledged. However the ElementTree
(xml.etree in the stdlib) and lxml (not in the core, ElementTree API
using libxml2) libs for working with XML are awesome... and also what
I gather most Python-land folks use these days.
Trent
--
Trent Mick
--
> and [I] can process xml like normal people.
am I missing something?
afaict redis processes json natively, but is not currently a native
xml database such as eXist for instance.
ie there is no simple and direct way to parse xml, use XQuery, Xpath...
and xml is effectively stored as a blob.
for the present I'm content to save as json and add an xml wrapper and
use an xslt transform,
but that's not to say that I wouldn't prefer the option of a native
xml database,
even one that stripped and wrapped behind the screen.
regards
Jonathan Chetwynd
peepo.com
({ "json" : "might"
, "not be" : "the best example"
, "of" : ["the", "point", "you're", "trying", "to", "make"] })
We had "JSON Literals" long before we had JSON.parse().
--i