From geert.josten at dayon.nl Tue Nov 19 10:47:42 2013 From: geert.josten at dayon.nl (Geert Josten) Date: Tue, 19 Nov 2013 19:47:42 +0100 Subject: [xquery-talk] Group starting with in XQuery? Message-ID: <3fe5d2bfa5b7631fd1856beaa2ecc8c4@mail.gmail.com> Just wondering, is there an elegant way of doing something like this in XQuery? Example input:

blah blah blah1blah blah

blah blah blah2blah blah

blah blah blah3blah blah

blah blah blah4blah blah

Cheers, Geert M.Sc. G.P.H. (Geert) Josten Senior Developer Dayon B.V. Delftechpark 37b 2628 XJ Delft The Netherlands T +31 (0)88 26 82 570 geert.josten at dayon.nl www.dayon.nl De informatie - verzonden in of met dit e-mailbericht - is afkomstig van Dayon BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. From mike at saxonica.com Tue Nov 19 16:09:15 2013 From: mike at saxonica.com (Michael Kay) Date: Wed, 20 Nov 2013 00:09:15 +0000 Subject: [xquery-talk] Group starting with in XQuery? In-Reply-To: <3fe5d2bfa5b7631fd1856beaa2ecc8c4@mail.gmail.com> References: <3fe5d2bfa5b7631fd1856beaa2ecc8c4@mail.gmail.com> Message-ID: If you're asking about XQuery 1.0, the answer is no, unless you regard the solution using recursion as elegant. In XQuery 3.0 there are "tumbling windows" which give you the capability of XSLT's group-starting-with, and a lot more besides. Michael Kay Saxonica On 19 Nov 2013, at 18:47, Geert Josten wrote: > Just wondering, is there an elegant way of doing something like this in > XQuery? > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > > > > > > > > > > > > group-starting-with="pg"> > > > select="$P/@*|current-group()[not(self::pg)]"/> > > > > > > > Example input: > > > >

blah blah blah1blah blah

>

blah blah blah2blah blah

>
> >

blah blah blah3blah blah

>

blah blah blah4blah blah

>
>
> > Cheers, > Geert > > M.Sc. G.P.H. (Geert) Josten > Senior Developer > > > Dayon B.V. > Delftechpark 37b > 2628 XJ Delft > The Netherlands > > T +31 (0)88 26 82 570 > > geert.josten at dayon.nl > www.dayon.nl > > De informatie - verzonden in of met dit e-mailbericht - is afkomstig van > Dayon BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit > bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan > dit bericht kunnen geen rechten worden ontleend. > _______________________________________________ > talk at x-query.com > http://x-query.com/mailman/listinfo/talk From dlee at calldei.com Tue Nov 19 17:31:45 2013 From: dlee at calldei.com (David Lee) Date: Wed, 20 Nov 2013 01:31:45 +0000 Subject: [xquery-talk] Group starting with in XQuery? In-Reply-To: References: <3fe5d2bfa5b7631fd1856beaa2ecc8c4@mail.gmail.com> Message-ID: <09f5f27807eb4415a70ed9aabf84afab@BN1PR08MB009.namprd08.prod.outlook.com> Everything in XQuery is elegant. ---------------------------------------- David A. Lee dlee at calldei.com http://www.xmlsh.org -----Original Message----- From: talk-bounces at x-query.com [mailto:talk-bounces at x-query.com] On Behalf Of Michael Kay Sent: Tuesday, November 19, 2013 7:09 PM To: Geert Josten Cc: talk at x-query.com Talk Subject: Re: [xquery-talk] Group starting with in XQuery? If you're asking about XQuery 1.0, the answer is no, unless you regard the solution using recursion as elegant. In XQuery 3.0 there are "tumbling windows" which give you the capability of XSLT's group-starting-with, and a lot more besides. Michael Kay Saxonica On 19 Nov 2013, at 18:47, Geert Josten wrote: > Just wondering, is there an elegant way of doing something like this in > XQuery? > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > > > > > > > > > > > > group-starting-with="pg"> > > > select="$P/@*|current-group()[not(self::pg)]"/> > > > > > > > Example input: > > > >

blah blah blah1blah blah

>

blah blah blah2blah blah

>
> >

blah blah blah3blah blah

>

blah blah blah4blah blah

>
>
> > Cheers, > Geert > > M.Sc. G.P.H. (Geert) Josten > Senior Developer > > > Dayon B.V. > Delftechpark 37b > 2628 XJ Delft > The Netherlands > > T +31 (0)88 26 82 570 > > geert.josten at dayon.nl > www.dayon.nl > > De informatie - verzonden in of met dit e-mailbericht - is afkomstig van > Dayon BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit > bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan > dit bericht kunnen geen rechten worden ontleend. > _______________________________________________ > talk at x-query.com > http://x-query.com/mailman/listinfo/talk _______________________________________________ talk at x-query.com http://x-query.com/mailman/listinfo/talk From christian.gruen at gmail.com Tue Nov 19 17:37:27 2013 From: christian.gruen at gmail.com (=?ISO-8859-1?Q?Christian_Gr=FCn?=) Date: Wed, 20 Nov 2013 02:37:27 +0100 Subject: [xquery-talk] Group starting with in XQuery? In-Reply-To: <09f5f27807eb4415a70ed9aabf84afab@BN1PR08MB009.namprd08.prod.outlook.com> References: <3fe5d2bfa5b7631fd1856beaa2ecc8c4@mail.gmail.com> <09f5f27807eb4415a70ed9aabf84afab@BN1PR08MB009.namprd08.prod.outlook.com> Message-ID: > Everything in XQuery is elegant. I wish I could agree? :) > ---------------------------------------- > David A. Lee > dlee at calldei.com > http://www.xmlsh.org > > -----Original Message----- > From: talk-bounces at x-query.com [mailto:talk-bounces at x-query.com] On Behalf Of Michael Kay > Sent: Tuesday, November 19, 2013 7:09 PM > To: Geert Josten > Cc: talk at x-query.com Talk > Subject: Re: [xquery-talk] Group starting with in XQuery? > > If you're asking about XQuery 1.0, the answer is no, unless you regard the solution using recursion as elegant. > > In XQuery 3.0 there are "tumbling windows" which give you the capability of XSLT's group-starting-with, and a lot more besides. > > Michael Kay > Saxonica > > On 19 Nov 2013, at 18:47, Geert Josten wrote: > >> Just wondering, is there an elegant way of doing something like this in >> XQuery? >> >> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> >> >> >> >> >> >> >> >> >> >> >> >> > group-starting-with="pg"> >> >> >> > select="$P/@*|current-group()[not(self::pg)]"/> >> >> >> >> >> >> >> Example input: >> >> >> >>

blah blah blah1blah blah

>>

blah blah blah2blah blah

>>
>> >>

blah blah blah3blah blah

>>

blah blah blah4blah blah

>>
>>
>> >> Cheers, >> Geert >> >> M.Sc. G.P.H. (Geert) Josten >> Senior Developer >> >> >> Dayon B.V. >> Delftechpark 37b >> 2628 XJ Delft >> The Netherlands >> >> T +31 (0)88 26 82 570 >> >> geert.josten at dayon.nl >> www.dayon.nl >> >> De informatie - verzonden in of met dit e-mailbericht - is afkomstig van >> Dayon BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit >> bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan >> dit bericht kunnen geen rechten worden ontleend. >> _______________________________________________ >> talk at x-query.com >> http://x-query.com/mailman/listinfo/talk > > > _______________________________________________ > talk at x-query.com > http://x-query.com/mailman/listinfo/talk > > _______________________________________________ > talk at x-query.com > http://x-query.com/mailman/listinfo/talk From john.snelson at marklogic.com Wed Nov 20 01:53:26 2013 From: john.snelson at marklogic.com (John Snelson) Date: Wed, 20 Nov 2013 09:53:26 +0000 Subject: [xquery-talk] map module for XQUERY ? In-Reply-To: References: Message-ID: <528C8696.3050306@marklogic.com> The following libraries are written in pure XQuery 3.0: rbtree.xq - https://github.com/jpcs/rbtree.xq Functional implementation of a red/black tree (ordered set) that allows a custom implementation of the comparison function. See the included "map.xq" for how this can be used to implement a map data structure using "lt" comparison. Should be easy to implement an alternative map that allows node keys with a suitable comparison function. hamt.xq - https://github.com/jpcs/hamt.xq Functional implementation of a hash array mapped trie (hash set) that allows a custom hash function and equality function. See the included "hashmap.xq" for how this can be used to implement a map data structure. Hope that helps, John On 20/11/13 09:43, jean-marc Mercier wrote: > Hello, > > I am looking for a map module in XQUERY that would have the following > behavior. Does somebody ever heard of such a module ? > > 1) The default behavior for inserting keys should be using the > fn:distinct-values(). Note that map module using this mechanism already > exists, see for instance BaseX map:module : > http://docs.basex.org/wiki/Map_Module > > 2) Accept functions as values. Why this could be useful ? Well, it is > really useful for a lot of things. The first very useful things would be > to use this functionality to bind external parameters to functions. > For instance I could write, (useful for the point 3) below) > > declare function > local:is_data1_smaller_than_data2($data1,$data2,$map_bindings){ > map:get($map_bindings,"less")($data1,$data2) > }; > > 3) Accept an optional, external ordering predicate. This is actually > what is done with every structured languages. For instance, set in C++ > (that are indeed maps) are defined as > > template < class T, // set::key_type/value_type > */_class Compare = less_/*, // set::key_compare/value_compare > class Alloc = allocator > // set::allocator_type > > class set; > > where the ordering predicate is optional (*/_class Compare = less). > _/*Why having an optional ordering predicate could be useful in ? > Because of point 4) below : to use node() as keys in map. > > 4) Accept node() as keys. This is very useful to a lot of things. > However, it does not exists a canonical ordering for nodes. The function > deep-equal() could be a candidate, but it does not define an ordering, > and performances in insertion using this function would be tremendous. > Thus, to accept node() as keys for maps, one need first to provide an > external ordering predicate for nodes, see point 3) above. -- John Snelson, Lead Engineer http://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com From john.snelson at marklogic.com Wed Nov 20 03:59:32 2013 From: john.snelson at marklogic.com (John Snelson) Date: Wed, 20 Nov 2013 11:59:32 +0000 Subject: [xquery-talk] map module for XQUERY ? In-Reply-To: References: <528C8696.3050306@marklogic.com> Message-ID: <528CA424.4000003@marklogic.com> On 20/11/13 11:31, jean-marc Mercier wrote: > Tell me if there is any interest in publishing the result, casewhere I > could reach something stable of course. I'd be interested in adding sample uses to the github repository if you wanted to donate one when you have something working. John -- John Snelson, Lead Engineer http://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com From geert.josten at dayon.nl Wed Nov 20 05:22:10 2013 From: geert.josten at dayon.nl (Geert Josten) Date: Wed, 20 Nov 2013 14:22:10 +0100 Subject: [xquery-talk] Group starting with in XQuery? In-Reply-To: References: <3fe5d2bfa5b7631fd1856beaa2ecc8c4@mail.gmail.com> Message-ID: <1ebfbbbe7f2f73467b043d6f29f9f04c@mail.gmail.com> Thnx Michael, Found a tumbling example, and fiddled until I had this: xquery version "3.0"; let $xml :=

blah blah blah1blah blah

blah blah blah2blah blah

blah blah blah3blah blah

blah blah blah4blah blah

return { for $doc in $xml/Doc return { for $P in $doc/P return for tumbling window $w in $P/node() start when true() end next $e when $e instance of element(pg) return ( $w[self::pg],

{ $w[not(self::pg)] }

) }
}
Tested with http://try.zorba.io .. :) Cheers, Geert > -----Oorspronkelijk bericht----- > Van: Michael Kay [mailto:mike at saxonica.com] > Verzonden: woensdag 20 november 2013 1:09 > Aan: Geert Josten > CC: talk at x-query.com Talk > Onderwerp: Re: [xquery-talk] Group starting with in XQuery? > > If you're asking about XQuery 1.0, the answer is no, unless you regard the > solution using recursion as elegant. > > In XQuery 3.0 there are "tumbling windows" which give you the capability of > XSLT's group-starting-with, and a lot more besides. > > Michael Kay > Saxonica > > On 19 Nov 2013, at 18:47, Geert Josten wrote: > > > Just wondering, is there an elegant way of doing something like this in > > XQuery? > > > > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > > > > > > > > > > > > > > > > > > > > > > > > > group-starting-with="pg"> > > > > > > > select="$P/@*|current-group()[not(self::pg)]"/> > > > > > > > > > > > > > > Example input: > > > > > > > >

blah blah blah1blah blah

> >

blah blah blah2blah blah

> >
> > > >

blah blah blah3blah blah

> >

blah blah blah4blah blah

> >
> >
> > > > Cheers, > > Geert > > > > M.Sc. G.P.H. (Geert) Josten > > Senior Developer > > > > > > Dayon B.V. > > Delftechpark 37b > > 2628 XJ Delft > > The Netherlands > > > > T +31 (0)88 26 82 570 > > > > geert.josten at dayon.nl > > www.dayon.nl > > > > De informatie - verzonden in of met dit e-mailbericht - is afkomstig van > > Dayon BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit > > bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. > Aan > > dit bericht kunnen geen rechten worden ontleend. > > _______________________________________________ > > talk at x-query.com > > http://x-query.com/mailman/listinfo/talk From john.snelson at marklogic.com Wed Nov 20 05:48:02 2013 From: john.snelson at marklogic.com (John Snelson) Date: Wed, 20 Nov 2013 13:48:02 +0000 Subject: [xquery-talk] map module for XQUERY ? In-Reply-To: References: <528C8696.3050306@marklogic.com> <528CA424.4000003@marklogic.com> Message-ID: <528CBD92.9080109@marklogic.com> On 20/11/13 13:16, jean-marc Mercier wrote: > ok. I've done a first draft that is working. I will keep the code a > little bit to tune and complete it. For instance, that could be an idea > to implement the remove($map,$key) function, or to implement key($map). Implenting keys($map) can be done using the fold() function. I recall the remove() algorithm being a fair amount harder to implement in a functional red/black tree, and I didn't need it so I didn't tackle it. > However, I have to modify your rbtree to do it. Very happy to accept contributions of a remove() implementation if you do it. :-) John -- John Snelson, Lead Engineer http://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com From john.snelson at marklogic.com Thu Nov 21 01:25:37 2013 From: john.snelson at marklogic.com (John Snelson) Date: Thu, 21 Nov 2013 09:25:37 +0000 Subject: [xquery-talk] map module for XQUERY ? In-Reply-To: References: <528C8696.3050306@marklogic.com> <528CA424.4000003@marklogic.com> <528CBD92.9080109@marklogic.com> Message-ID: <528DD191.1090301@marklogic.com> This conversation should probably move to personal email or the github issue tracker. This isn't a bug, it's by design. If it didn't work this way you'd never be able to replace a key that already existed in a map. John On 21/11/13 07:56, jean-marc Mercier wrote: > @John > > Hello. > I started modifying your RB tree. I noticed that, while inserting two > time the same keys, the last inserted value replace > the previous one into your rbtree. As an illustration the following query > > let $map := map:new( > (map:entry("dummy","rocks"),map:entry("dummy","roll")) ) > return map:get($map,"dummy") > > returns "roll" > > I was expecting to "rocks". First : can you reproduce it ? (I modified > your files, and use BaseX interpretor. It is better to check with > another implementation). > Second, should I "roll" your rbtree or is this expected (is this a bug > or not ?) ? > > > > > > > 2013/11/20 jean-marc Mercier > > > Yes you're right, using fold should be strightfroward. > > For the remove function, I'll try. Hopefully I won't spent too much > time :) > I'll keep you posted > > > 2013/11/20 John Snelson > > > On 20/11/13 13:16, jean-marc Mercier wrote: > > ok. I've done a first draft that is working. I will keep the > code a > little bit to tune and complete it. For instance, that could > be an idea > to implement the remove($map,$key) function, or to implement > key($map). > > > Implenting keys($map) can be done using the fold() function. I > recall the remove() algorithm being a fair amount harder to > implement in a functional red/black tree, and I didn't need it > so I didn't tackle it. > > > However, I have to modify your rbtree to do it. > > > Very happy to accept contributions of a remove() implementation > if you do it. :-) > > > John > > -- > John Snelson, Lead Engineer http://twitter.com/jpcs > MarkLogic Corporation http://www.marklogic.com > > > -- John Snelson, Lead Engineer http://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com From msokolov at safaribooksonline.com Mon Nov 25 06:42:12 2013 From: msokolov at safaribooksonline.com (Michael Sokolov) Date: Mon, 25 Nov 2013 09:42:12 -0500 Subject: [xquery-talk] [xml-dev] OT: Suggestion for new OSS SCC site / tool for xmlsh ? SourceForge has gone to the dark side. In-Reply-To: <449aaa9ae42548919fd928fc9157348f@BN1PR08MB009.namprd08.prod.outlook.com> References: <449aaa9ae42548919fd928fc9157348f@BN1PR08MB009.namprd08.prod.outlook.com> Message-ID: <529361C4.4050203@safaribooksonline.com> On 11/25/2013 09:23 AM, David Lee wrote: > I am so annoyed by this thread and the associated links which seem to clear the FUD > http://www.gluster.org/2013/08/how-far-the-once-mighty-sourceforge-has-fallen/ ... > > Do I need (want to?) learn "git" ? and move to github ? My "Git" experience so far has been disappointing (I cant figure it out ! The model makes no sense and I never know if stuff is checked in or not) > I have some projects on google code which has been sufficient and trustworthy as sites go ... but it has that "google owns you" creepiness factor. > David, I researched these options a year or so ago and concluded it was time to learn git/github; however lack of good support for hosting large binaries kind of forces you to host those elsewhere. Google code seems like the other main option. I wonder if there isn't a possibility SF will right the ship, though? About git: you can use git more-or-less like svn, although there are definitely extra steps. One thing I have come to really like about it is the ability to commit changes without immediately sharing them with the world (you commit, and then push, as two steps). You could do this with svn branches, kind of, but they seem so heavyweight and I never really use them as much as perhaps I should. I do find myself searching stackoverflow every so often when I get into weird git situations. -Mike From joewiz at gmail.com Mon Nov 25 06:46:25 2013 From: joewiz at gmail.com (Joe Wicentowski) Date: Mon, 25 Nov 2013 09:46:25 -0500 Subject: [xquery-talk] OT: Suggestion for new OSS SCC site / tool for xmlsh ? SourceForge has gone to the dark side. In-Reply-To: <449aaa9ae42548919fd928fc9157348f@BN1PR08MB009.namprd08.prod.outlook.com> References: <449aaa9ae42548919fd928fc9157348f@BN1PR08MB009.namprd08.prod.outlook.com> Message-ID: +1 for Github. It's definitely got a learning curve, but there are lots of resources out there for folks coming from an SVN world. But ultimately whatever works best for you. Just saw Mike's response and wanted to add that Github does allow you to package up releases for easy download: https://github.com/blog/1547-release-your-software From adam.retter at googlemail.com Mon Nov 25 06:52:09 2013 From: adam.retter at googlemail.com (Adam Retter) Date: Mon, 25 Nov 2013 14:52:09 +0000 Subject: [xquery-talk] OT: Suggestion for new OSS SCC site / tool for xmlsh ? SourceForge has gone to the dark side. In-Reply-To: <449aaa9ae42548919fd928fc9157348f@BN1PR08MB009.namprd08.prod.outlook.com> References: <449aaa9ae42548919fd928fc9157348f@BN1PR08MB009.namprd08.prod.outlook.com> Message-ID: Hi David, I have been upset by the decline of SourceForge for several years now. Even before this installer junk, it seemed to me that each consecutive website re-design that they forced on us was worse and slower than the previous. The final straw for me was that their new Subversion web browser interface (after they asked everyone to move their svn repo's) is now sooo slow it's basically broken! In eXist we made the decision to move to GitHub. It was not easy and there was a learning curve for those new to Git, but the collaborative coding mentality of GitHub is awesome. Also Git itself is just years ahead of SVN and I cannot imagine going back now. As a bonus, we now also receive pull-requests for fixes from people we have never heard of, presumably because its so simple to do that. I really think GitHub is the best game in town and has been for some time. We had a pig of a time moving from SourceForge (we have been there for longer than I can remember), we originally used their CSV before they had SVN. However, after going through the pain, if you want to do it, I can make your life easier by explaining how we migrated from SourceForge to GitHub without loosing any revision history. Cheers Adam. On 25 November 2013 14:23, David Lee wrote: > I am so annoyed by this thread and the associated links which seem to clear > the FUD > > http://www.gluster.org/2013/08/how-far-the-once-mighty-sourceforge-has-fallen/ > > > > Basically SourceForge has been bought by Dice and now is encouraging users > to use their Malware infected (well "Encouraged Additional Applications you > Didnt Ask For") > > installer (like the Oracle Java installer) that drive-by installs other > junk. > > I hosted on SourceForge originally 6 years ago because I felt it provided a > (by association with other good quality OSS) sense of quality and respect to > an OSS project. > > Now the opposite is true, I might as well host on aol.com > > > > Suggestions welcome ... I've really only used the deployment and SVN server > component of SF ... and event those I could host myself but I do find it > useful to let people > > browse the code history online. > > > > Do I need (want to?) learn "git" ? and move to github ? My "Git" experience > so far has been disappointing (I cant figure it out ! The model makes no > sense and I never know if stuff is checked in or not) > > I have some projects on google code which has been sufficient and > trustworthy as sites go ... but it has that "google owns you" creepiness > factor. > > > > Suggestions welcome ... > > Self host ? Github ? Google Code ? Others ? > > > > Oh yea, I *rarely* plug this ... but if you feel so inclined you may want to > spread the news about SF ... > > So far their drive-in installer download is "opt in" (to the developer) ... > but the direction is sad. It was ad sponsored enough already .... > "Infecting" installers, > > even if approved by the vendors, is just too much for me to take. > > > > > > ---------------------------------------- > > David A. Lee > > dlee at calldei.com > > http://www.xmlsh.org > > > > > _______________________________________________ > talk at x-query.com > http://x-query.com/mailman/listinfo/talk -- Adam Retter skype: adam.retter tweet: adamretter http://www.adamretter.org.uk From john.snelson at marklogic.com Mon Nov 25 06:53:35 2013 From: john.snelson at marklogic.com (John Snelson) Date: Mon, 25 Nov 2013 14:53:35 +0000 Subject: [xquery-talk] [xml-dev] OT: Suggestion for new OSS SCC site / tool for xmlsh ? SourceForge has gone to the dark side. In-Reply-To: <529361C4.4050203@safaribooksonline.com> References: <449aaa9ae42548919fd928fc9157348f@BN1PR08MB009.namprd08.prod.outlook.com> <529361C4.4050203@safaribooksonline.com> Message-ID: <5293646F.7060909@marklogic.com> Github's pretty good - I used this to become familiar with Git (your life will get better ;-)): http://ftp.newartisans.com/pub/git.from.bottom.up.pdf The main issue I have is it's lack of release management support. And yes, unlike HTML 5 I do believe having release checkpoints benefits users. :-) With a dig at HTML 5, I think this thread is now back on topic, right? John On 25/11/2013 14:42, Michael Sokolov wrote: > On 11/25/2013 09:23 AM, David Lee wrote: >> I am so annoyed by this thread and the associated links which seem to >> clear the FUD >> http://www.gluster.org/2013/08/how-far-the-once-mighty-sourceforge-has-fallen/ >> > ... >> >> Do I need (want to?) learn "git" ? and move to github ? My "Git" >> experience so far has been disappointing (I cant figure it out ! The >> model makes no sense and I never know if stuff is checked in or not) >> I have some projects on google code which has been sufficient and >> trustworthy as sites go ... but it has that "google owns you" >> creepiness factor. >> > David, I researched these options a year or so ago and concluded it was > time to learn git/github; however lack of good support for hosting large > binaries kind of forces you to host those elsewhere. Google code seems > like the other main option. I wonder if there isn't a possibility SF > will right the ship, though? > > About git: you can use git more-or-less like svn, although there are > definitely extra steps. One thing I have come to really like about it > is the ability to commit changes without immediately sharing them with > the world (you commit, and then push, as two steps). You could do this > with svn branches, kind of, but they seem so heavyweight and I never > really use them as much as perhaps I should. I do find myself searching > stackoverflow every so often when I get into weird git situations. > > -Mike > _______________________________________________ > talk at x-query.com > http://x-query.com/mailman/listinfo/talk -- John Snelson, Lead Engineer http://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com From adam.retter at googlemail.com Mon Nov 25 07:22:27 2013 From: adam.retter at googlemail.com (Adam Retter) Date: Mon, 25 Nov 2013 15:22:27 +0000 Subject: [xquery-talk] [xml-dev] OT: Suggestion for new OSS SCC site / tool for xmlsh ? SourceForge has gone to the dark side. In-Reply-To: <5293646F.7060909@marklogic.com> References: <449aaa9ae42548919fd928fc9157348f@BN1PR08MB009.namprd08.prod.outlook.com> <529361C4.4050203@safaribooksonline.com> <5293646F.7060909@marklogic.com> Message-ID: Actually I like that GitHub just expects 'tags' and 'milestones' because this is all that you need to integrate with your release management tools. I think here the 'less if more' approach is brilliant. We use several systems together for our release management but ultimately its all Maven at the root. On 25 November 2013 14:53, John Snelson wrote: > Github's pretty good - I used this to become familiar with Git (your life > will get better ;-)): > > http://ftp.newartisans.com/pub/git.from.bottom.up.pdf > > The main issue I have is it's lack of release management support. And yes, > unlike HTML 5 I do believe having release checkpoints benefits users. :-) > > With a dig at HTML 5, I think this thread is now back on topic, right? > > John > > > On 25/11/2013 14:42, Michael Sokolov wrote: >> >> On 11/25/2013 09:23 AM, David Lee wrote: >>> >>> I am so annoyed by this thread and the associated links which seem to >>> clear the FUD >>> >>> http://www.gluster.org/2013/08/how-far-the-once-mighty-sourceforge-has-fallen/ >>> >> ... >>> >>> >>> Do I need (want to?) learn "git" ? and move to github ? My "Git" >>> experience so far has been disappointing (I cant figure it out ! The >>> model makes no sense and I never know if stuff is checked in or not) >>> I have some projects on google code which has been sufficient and >>> trustworthy as sites go ... but it has that "google owns you" >>> creepiness factor. >>> >> David, I researched these options a year or so ago and concluded it was >> time to learn git/github; however lack of good support for hosting large >> binaries kind of forces you to host those elsewhere. Google code seems >> like the other main option. I wonder if there isn't a possibility SF >> will right the ship, though? >> >> About git: you can use git more-or-less like svn, although there are >> definitely extra steps. One thing I have come to really like about it >> is the ability to commit changes without immediately sharing them with >> the world (you commit, and then push, as two steps). You could do this >> with svn branches, kind of, but they seem so heavyweight and I never >> really use them as much as perhaps I should. I do find myself searching >> stackoverflow every so often when I get into weird git situations. >> >> -Mike >> _______________________________________________ >> talk at x-query.com >> http://x-query.com/mailman/listinfo/talk > > > > -- > John Snelson, Lead Engineer http://twitter.com/jpcs > MarkLogic Corporation http://www.marklogic.com > _______________________________________________ > talk at x-query.com > http://x-query.com/mailman/listinfo/talk -- Adam Retter skype: adam.retter tweet: adamretter http://www.adamretter.org.uk From james.fuller.2007 at gmail.com Mon Nov 25 07:24:12 2013 From: james.fuller.2007 at gmail.com (James Fuller) Date: Mon, 25 Nov 2013 16:24:12 +0100 Subject: [xquery-talk] [xml-dev] OT: Suggestion for new OSS SCC site / tool for xmlsh ? SourceForge has gone to the dark side. In-Reply-To: <5293646F.7060909@marklogic.com> References: <449aaa9ae42548919fd928fc9157348f@BN1PR08MB009.namprd08.prod.outlook.com> <529361C4.4050203@safaribooksonline.com> <5293646F.7060909@marklogic.com> Message-ID: On Mon, Nov 25, 2013 at 3:53 PM, John Snelson wrote: > Github's pretty good - I used this to become familiar with Git (your life > will get better ;-)): > > http://ftp.newartisans.com/pub/git.from.bottom.up.pdf > > The main issue I have is it's lack of release management support. And yes, > unlike HTML 5 I do believe having release checkpoints benefits users. :-) > > With a dig at HTML 5, I think this thread is now back on topic, right? > I think you mean, ahem, the 'living topic'.... Jim Fuller > > John > > > On 25/11/2013 14:42, Michael Sokolov wrote: > >> On 11/25/2013 09:23 AM, David Lee wrote: >> >>> I am so annoyed by this thread and the associated links which seem to >>> clear the FUD >>> http://www.gluster.org/2013/08/how-far-the-once-mighty- >>> sourceforge-has-fallen/ >>> >>> ... >> >>> >>> Do I need (want to?) learn "git" ? and move to github ? My "Git" >>> experience so far has been disappointing (I cant figure it out ! The >>> model makes no sense and I never know if stuff is checked in or not) >>> I have some projects on google code which has been sufficient and >>> trustworthy as sites go ... but it has that "google owns you" >>> creepiness factor. >>> >>> David, I researched these options a year or so ago and concluded it was >> time to learn git/github; however lack of good support for hosting large >> binaries kind of forces you to host those elsewhere. Google code seems >> like the other main option. I wonder if there isn't a possibility SF >> will right the ship, though? >> >> About git: you can use git more-or-less like svn, although there are >> definitely extra steps. One thing I have come to really like about it >> is the ability to commit changes without immediately sharing them with >> the world (you commit, and then push, as two steps). You could do this >> with svn branches, kind of, but they seem so heavyweight and I never >> really use them as much as perhaps I should. I do find myself searching >> stackoverflow every so often when I get into weird git situations. >> >> -Mike >> _______________________________________________ >> talk at x-query.com >> http://x-query.com/mailman/listinfo/talk >> > > > -- > John Snelson, Lead Engineer http://twitter.com/jpcs > MarkLogic Corporation http://www.marklogic.com > _______________________________________________ > talk at x-query.com > http://x-query.com/mailman/listinfo/talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From james.fuller.2007 at gmail.com Mon Nov 25 07:28:02 2013 From: james.fuller.2007 at gmail.com (James Fuller) Date: Mon, 25 Nov 2013 16:28:02 +0100 Subject: [xquery-talk] [xml-dev] OT: Suggestion for new OSS SCC site / tool for xmlsh ? SourceForge has gone to the dark side. In-Reply-To: References: <449aaa9ae42548919fd928fc9157348f@BN1PR08MB009.namprd08.prod.outlook.com> <529361C4.4050203@safaribooksonline.com> <5293646F.7060909@marklogic.com> Message-ID: I like github, but its git (or generically distributed source control) that I like articles like this http://thehackernews.com/2013/11/github-accounts-compromised-in-massive.html have me researching the path Eric van der Vlist has charted http://eric.van-der-vlist.com/blog/2013/11/06/from-trac-to-gitlab/ with gitlab ... so far my experience mirrors his and I can setup the security as well (or bad) as I like. Jim Fuller On Mon, Nov 25, 2013 at 4:22 PM, Adam Retter wrote: > Actually I like that GitHub just expects 'tags' and 'milestones' > because this is all that you need to integrate with your release > management tools. I think here the 'less if more' approach is > brilliant. We use several systems together for our release management > but ultimately its all Maven at the root. > > On 25 November 2013 14:53, John Snelson > wrote: > > Github's pretty good - I used this to become familiar with Git (your life > > will get better ;-)): > > > > http://ftp.newartisans.com/pub/git.from.bottom.up.pdf > > > > The main issue I have is it's lack of release management support. And > yes, > > unlike HTML 5 I do believe having release checkpoints benefits users. :-) > > > > With a dig at HTML 5, I think this thread is now back on topic, right? > > > > John > > > > > > On 25/11/2013 14:42, Michael Sokolov wrote: > >> > >> On 11/25/2013 09:23 AM, David Lee wrote: > >>> > >>> I am so annoyed by this thread and the associated links which seem to > >>> clear the FUD > >>> > >>> > http://www.gluster.org/2013/08/how-far-the-once-mighty-sourceforge-has-fallen/ > >>> > >> ... > >>> > >>> > >>> Do I need (want to?) learn "git" ? and move to github ? My "Git" > >>> experience so far has been disappointing (I cant figure it out ! The > >>> model makes no sense and I never know if stuff is checked in or not) > >>> I have some projects on google code which has been sufficient and > >>> trustworthy as sites go ... but it has that "google owns you" > >>> creepiness factor. > >>> > >> David, I researched these options a year or so ago and concluded it was > >> time to learn git/github; however lack of good support for hosting large > >> binaries kind of forces you to host those elsewhere. Google code seems > >> like the other main option. I wonder if there isn't a possibility SF > >> will right the ship, though? > >> > >> About git: you can use git more-or-less like svn, although there are > >> definitely extra steps. One thing I have come to really like about it > >> is the ability to commit changes without immediately sharing them with > >> the world (you commit, and then push, as two steps). You could do this > >> with svn branches, kind of, but they seem so heavyweight and I never > >> really use them as much as perhaps I should. I do find myself searching > >> stackoverflow every so often when I get into weird git situations. > >> > >> -Mike > >> _______________________________________________ > >> talk at x-query.com > >> http://x-query.com/mailman/listinfo/talk > > > > > > > > -- > > John Snelson, Lead Engineer http://twitter.com/jpcs > > MarkLogic Corporation http://www.marklogic.com > > _______________________________________________ > > talk at x-query.com > > http://x-query.com/mailman/listinfo/talk > > > > -- > Adam Retter > > skype: adam.retter > tweet: adamretter > http://www.adamretter.org.uk > _______________________________________________ > talk at x-query.com > http://x-query.com/mailman/listinfo/talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From msokolov at safaribooksonline.com Mon Nov 25 10:50:58 2013 From: msokolov at safaribooksonline.com (Michael Sokolov) Date: Mon, 25 Nov 2013 13:50:58 -0500 Subject: [xquery-talk] making of Lux Message-ID: <52939C12.1010800@safaribooksonline.com> It occurred to me folks on this list might be interested in an article I wrote a couple of weeks ago, but may not have seen it. http://blog.safariflow.com/2013/11/11/the-making-of-lux-xml-query-for-lucene/ Aside from some technical details, it talks a little more broadly about XML's relevance and our experience implementing sites both with extensive XML tooling, and without. I expect brickbats - let them fly! -Mike There's also a related presentation (and video should be forthcoming) from a talk I gave at the Lucene Dublin conference here: http://www.lucenerevolution.org/2013/Lucene-Solr-Revolution-2013-Dublin-Presentations#Michael_Sokolov From liam at w3.org Mon Nov 25 17:28:59 2013 From: liam at w3.org (Liam R E Quin) Date: Mon, 25 Nov 2013 20:28:59 -0500 Subject: [xquery-talk] [xml-dev] OT: Suggestion for new OSS SCC site / tool for xmlsh ? SourceForge has gone to the dark side. In-Reply-To: <449aaa9ae42548919fd928fc9157348f@BN1PR08MB009.namprd08.prod.outlook.com> References: <449aaa9ae42548919fd928fc9157348f@BN1PR08MB009.namprd08.prod.outlook.com> Message-ID: <1385429339.7045.48.camel@slave.barefootcomputing.com> On Mon, 2013-11-25 at 14:23 +0000, David Lee wrote: > Basically SourceForge has been bought [...] > Suggestions welcome ... The near-universal answer is "github". > Do I need (want to?) learn "git" ? and move to github ? Probably. It seems to be winning out as the replacement. The GIMP image editor recently moved away from sourceforge for the Microsoft Windows port download, because too many people were downloading malware or clicking on ads that said Download. The response has been very positive. Liam -- Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/ Pictures from old books: http://fromoldbooks.org/ Ankh: irc.sorcery.net irc.gnome.org freenode/#xml From mike at saxonica.com Mon Nov 25 07:19:34 2013 From: mike at saxonica.com (Michael Kay) Date: Mon, 25 Nov 2013 15:19:34 +0000 Subject: [xquery-talk] [xml-dev] OT: Suggestion for new OSS SCC site / tool for xmlsh ? SourceForge has gone to the dark side. In-Reply-To: <5293646F.7060909@marklogic.com> References: <449aaa9ae42548919fd928fc9157348f@BN1PR08MB009.namprd08.prod.outlook.com> <529361C4.4050203@safaribooksonline.com> <5293646F.7060909@marklogic.com> Message-ID: <7978E94C-41FF-480E-8590-8BDE136F0A54@saxonica.com> We've got a foot in both camps, with Saxon-HE hosted at SourceForge and Saxon-CE at github. We've never used SF for collaborative development, and we've moved our issue tracking and forums to a redmine site hosted at plan.io, so SF is really there now only as a download site and for preserving history, purposes which it seems to handle perfectly well -- given that we don't choose to go down the "unwanted malware" route (which they certainly haven't tried to encourage or bribe us to do as the post alleges). We of course develop Saxon-HE as a subset of a commercial code base, so the change management issues are rather different; our master source is on a Subversion system that we host ourselves. We tried a few years ago to move to Mercurial (hg) and failed; we've now got sufficient experience of both hg and git that we would probably succeed if we tried again, but there isn't enough incentive to change for its own sake. Someone tweeted a few weeks ago that we should move off SF because it wasn't cool any more. I responded that coolth wasn't one of our project objectives, and were there any genuine technical reasons? Perhaps now we're hearing one. Michael Kay Saxonica On 25 Nov 2013, at 14:53, John Snelson wrote: > Github's pretty good - I used this to become familiar with Git (your life will get better ;-)): > > http://ftp.newartisans.com/pub/git.from.bottom.up.pdf > > The main issue I have is it's lack of release management support. And yes, unlike HTML 5 I do believe having release checkpoints benefits users. :-) > > With a dig at HTML 5, I think this thread is now back on topic, right? > > John > > On 25/11/2013 14:42, Michael Sokolov wrote: >> On 11/25/2013 09:23 AM, David Lee wrote: >>> I am so annoyed by this thread and the associated links which seem to >>> clear the FUD >>> http://www.gluster.org/2013/08/how-far-the-once-mighty-sourceforge-has-fallen/ >>> >> ... >>> >>> Do I need (want to?) learn "git" ? and move to github ? My "Git" >>> experience so far has been disappointing (I cant figure it out ! The >>> model makes no sense and I never know if stuff is checked in or not) >>> I have some projects on google code which has been sufficient and >>> trustworthy as sites go ... but it has that "google owns you" >>> creepiness factor. >>> >> David, I researched these options a year or so ago and concluded it was >> time to learn git/github; however lack of good support for hosting large >> binaries kind of forces you to host those elsewhere. Google code seems >> like the other main option. I wonder if there isn't a possibility SF >> will right the ship, though? >> >> About git: you can use git more-or-less like svn, although there are >> definitely extra steps. One thing I have come to really like about it >> is the ability to commit changes without immediately sharing them with >> the world (you commit, and then push, as two steps). You could do this >> with svn branches, kind of, but they seem so heavyweight and I never >> really use them as much as perhaps I should. I do find myself searching >> stackoverflow every so often when I get into weird git situations. >> >> -Mike >> _______________________________________________ >> talk at x-query.com >> http://x-query.com/mailman/listinfo/talk > > > -- > John Snelson, Lead Engineer http://twitter.com/jpcs > MarkLogic Corporation http://www.marklogic.com > _______________________________________________ > talk at x-query.com > http://x-query.com/mailman/listinfo/talk From liam at w3.org Wed Nov 27 00:51:37 2013 From: liam at w3.org (Liam R E Quin) Date: Wed, 27 Nov 2013 03:51:37 -0500 Subject: [xquery-talk] map module for XQUERY ? In-Reply-To: References: <528C8696.3050306@marklogic.com> <528CA424.4000003@marklogic.com> <528CBD92.9080109@marklogic.com> Message-ID: <1385542297.7045.128.camel@slave.barefootcomputing.com> On Wed, 2013-11-27 at 07:43 +0100, jean-marc Mercier wrote: > [...] functions or nodes can > not be accepted as keys, How would you retrieve an item from a map if the key was a function? If functions don't have identity how would you ensure keys were unique? For a node you could maybe use generate-id() as a surrogate. Liam -- Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/ Pictures from old books: http://fromoldbooks.org/ Ankh: irc.sorcery.net irc.gnome.org freenode/#xml