<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <id>http://groups.google.com/group/bson</id>
  <title type="text">BSON Google Group</title>
  <subtitle type="text">
  Discussion related to the BSON binary serialization format - http://bsonspec.org
  </subtitle>
  <link href="/group/bson/feed/atom_v1_0_msgs.xml" rel="self" title="BSON feed"/>
  <updated>2013-03-08T17:00:02Z</updated>
  <generator uri="http://groups.google.com" version="1.99">Google Groups</generator>
  <entry>
  <author>
  <name>Dan Kuebrich</name>
  <email>dan.kuebr...@gmail.com</email>
  </author>
  <updated>2013-03-08T17:00:02Z</updated>
  <id>http://groups.google.com/group/bson/browse_thread/thread/3beabe4210100157/e1733a4771593519?show_docid=e1733a4771593519</id>
  <link href="http://groups.google.com/group/bson/browse_thread/thread/3beabe4210100157/e1733a4771593519?show_docid=e1733a4771593519"/>
  <title type="text">Re: [bson] How to create a BSONObj in iterations? (C++)</title>
  <summary type="html" xml:space="preserve">
  Not sure about BSONObj but you can definitely do this append-style building &lt;br&gt; with mongo-c-driver: &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;https://github.com/mongodb/mongo-c-driver&quot;&gt;[link]&lt;/a&gt;
  </summary>
  </entry>
  <entry>
  <author>
  <name>Charles Monteiro</name>
  <email>charles.monte...@gmail.com</email>
  </author>
  <updated>2013-03-08T16:03:30Z</updated>
  <id>http://groups.google.com/group/bson/browse_thread/thread/2e5cfc40bbf0769c/71b213de89b735c4?show_docid=71b213de89b735c4</id>
  <link href="http://groups.google.com/group/bson/browse_thread/thread/2e5cfc40bbf0769c/71b213de89b735c4?show_docid=71b213de89b735c4"/>
  <title type="text">Re: how to post a bson object using curl from a c program</title>
  <summary type="html" xml:space="preserve">
  I&#39;m in the middle of this now. I&#39;m using the libcurl libs to interact with &lt;br&gt; a Sinatra service i.e. not command line curl, I want to post bson up to &lt;br&gt; Sinatra and thought about just using Base64 encoding. Is this not a &lt;br&gt; reasonable approach ? Pros and cons ? please &lt;br&gt; thanks &lt;br&gt; -Charles
  </summary>
  </entry>
  <entry>
  <author>
  <name>Shmerl</name>
  <email>shtetl...@gmail.com</email>
  </author>
  <updated>2013-03-07T23:18:54Z</updated>
  <id>http://groups.google.com/group/bson/browse_thread/thread/3beabe4210100157/dbb25d36f894d6b7?show_docid=dbb25d36f894d6b7</id>
  <link href="http://groups.google.com/group/bson/browse_thread/thread/3beabe4210100157/dbb25d36f894d6b7?show_docid=dbb25d36f894d6b7"/>
  <title type="text">How to create a BSONObj in iterations? (C++)</title>
  <summary type="html" xml:space="preserve">
  It looks like the current implementation if BSONObj revolves around &lt;br&gt; immutability, and one can&#39;t even modify an existing field without &lt;br&gt; recreating the whole object. Is there a way to *add* a field without &lt;br&gt; recreating the object? &lt;br&gt; I tried to use addFields, but it asserts that the object is empty. I need
  </summary>
  </entry>
  <entry>
  <author>
  <name>范永东</name>
  <email>daben1...@gmail.com</email>
  </author>
  <updated>2013-02-04T06:45:28Z</updated>
  <id>http://groups.google.com/group/bson/browse_thread/thread/743f6fd11d467f7a/df4607f4d72e0095?show_docid=df4607f4d72e0095</id>
  <link href="http://groups.google.com/group/bson/browse_thread/thread/743f6fd11d467f7a/df4607f4d72e0095?show_docid=df4607f4d72e0095"/>
  <title type="text">Json.parse error 。help</title>
  <summary type="html" xml:space="preserve">
  String sql=&amp;quot;{aggregate:\&amp;quot;cms_article\ &amp;quot;,pipeline:[{$match:{$and: &lt;br&gt; [{\&amp;quot;_id\&amp;quot;:{$ne:\&amp;quot;\&amp;quot;}},{\&amp;quot;edito r\&amp;quot;:{$regex:/sys/}}] &lt;br&gt; BasicDBObject bdr=(BasicDBObject)JSON.parse( sql); &lt;br&gt; there is error . &lt;br&gt; {aggregate:&amp;quot;cms_article&amp;quot;,pipel ine:[{$match:{$and: &lt;br&gt; [{&amp;quot;_id&amp;quot;:{$ne:&amp;quot;&amp;quot;}},{&amp;quot;editor&amp;quot;:{$ regex:/sys/}}] &lt;br&gt; ^ &lt;br&gt; at com.mongodb.util.JSONParser.pa rse(JSON.java:381)
  </summary>
  </entry>
  <entry>
  <author>
  <email>andrew.mor...@10gen.com</email>
  </author>
  <updated>2012-12-29T21:43:00Z</updated>
  <id>http://groups.google.com/group/bson/browse_thread/thread/41e7726544c7daf6/ef272d74c4a6fde0?show_docid=ef272d74c4a6fde0</id>
  <link href="http://groups.google.com/group/bson/browse_thread/thread/41e7726544c7daf6/ef272d74c4a6fde0?show_docid=ef272d74c4a6fde0"/>
  <title type="text">Re: Mutable BSON</title>
  <summary type="html" xml:space="preserve">
  Hi Claudio - &lt;br&gt; Yes, these files are part of a new BSON API that offers the ability to &lt;br&gt; modify values in a BSON document, in contrast with the BSONObjBuilder &lt;br&gt; facility in the C++ driver which builds in a streaming fashion. However, &lt;br&gt; this interface is currently in active development, and for now it should be
  </summary>
  </entry>
  <entry>
  <author>
  <name>Claudio Bisegni</name>
  <email>cbise...@gmail.com</email>
  </author>
  <updated>2012-12-29T11:16:41Z</updated>
  <id>http://groups.google.com/group/bson/browse_thread/thread/41e7726544c7daf6/7e2a8e3aa3cdfb0a?show_docid=7e2a8e3aa3cdfb0a</id>
  <link href="http://groups.google.com/group/bson/browse_thread/thread/41e7726544c7daf6/7e2a8e3aa3cdfb0a?show_docid=7e2a8e3aa3cdfb0a"/>
  <title type="text">Mutable BSON</title>
  <summary type="html" xml:space="preserve">
  I have seen that in the last bson implementation that is contained on &lt;br&gt; mongodb git repo, there is a folder named mutable BSON. What is intended &lt;br&gt; for mutable? the ability to update the values for a key? &lt;br&gt; thanks in advanced?
  </summary>
  </entry>
  <entry>
  <author>
  <name>sptrakesh</name>
  <email>rakesh.vidyadha...@gmail.com</email>
  </author>
  <updated>2012-12-19T15:25:23Z</updated>
  <id>http://groups.google.com/group/bson/browse_thread/thread/494bce9c742fa453/09b191a868fa2ee4?show_docid=09b191a868fa2ee4</id>
  <link href="http://groups.google.com/group/bson/browse_thread/thread/494bce9c742fa453/09b191a868fa2ee4?show_docid=09b191a868fa2ee4"/>
  <title type="text">Re: Element ordering in BSON documents</title>
  <summary type="html" xml:space="preserve">
  Hi Gary, &lt;br&gt; Thanks for the clarification about the BSON specification mandating order &lt;br&gt; perservation. The question came up for my own C++ API for BSON. I had &lt;br&gt; originally implemented the == operator to ensure ordering is also &lt;br&gt; considered but was then intrigued by the possibility of &amp;quot;equivalent&amp;quot; &lt;br&gt; documents. I decided in favour of also implementing a isEquivalentTo
  </summary>
  </entry>
  <entry>
  <author>
  <name>Peng Liu</name>
  <email>liupeng...@gmail.com</email>
  </author>
  <updated>2012-12-19T09:30:09Z</updated>
  <id>http://groups.google.com/group/bson/browse_thread/thread/982d07e69b0ba7ac/f73fb5ab40576e6f?show_docid=f73fb5ab40576e6f</id>
  <link href="http://groups.google.com/group/bson/browse_thread/thread/982d07e69b0ba7ac/f73fb5ab40576e6f?show_docid=f73fb5ab40576e6f"/>
  <title type="text">How to explain the encode of the complex BSON document example in the BSON specification?</title>
  <summary type="html" xml:space="preserve">
  {&amp;quot;BSON&amp;quot;: [&amp;quot;awesome&amp;quot;, 5.05, 1986]} &lt;br&gt; encoding: &lt;br&gt; &amp;quot;\x31\x00\x00\x00\x04BSON\x00\ x26\x00 &lt;br&gt; \x00\x00\x020\x00\x08\x00\x00 &lt;br&gt; \x00awesome\x00\x011\x00\x33\x 33\x33\x33\x33\x33 &lt;br&gt; \x14\x40\x102\x00\xc2\x07\x00\ x00 &lt;br&gt; \x00\x00&amp;quot; &lt;br&gt; How to explain it? &lt;br&gt; Thanks.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Gary Murakami</name>
  <email>gary.murak...@10gen.com</email>
  </author>
  <updated>2012-12-13T18:41:49Z</updated>
  <id>http://groups.google.com/group/bson/browse_thread/thread/494bce9c742fa453/768b21e2c7281d2b?show_docid=768b21e2c7281d2b</id>
  <link href="http://groups.google.com/group/bson/browse_thread/thread/494bce9c742fa453/768b21e2c7281d2b?show_docid=768b21e2c7281d2b"/>
  <title type="text">Re: Element ordering in BSON documents</title>
  <summary type="html" xml:space="preserve">
  What language are you using? BSON by specification is order preserving. &lt;br&gt; However, mapping into a data structure is language and/or driver &lt;br&gt; dependent. Here&#39;s what Ruby and the 10gen Ruby driver does, in Ruby 1.9.3 &lt;br&gt; where Hash is order preserving. &lt;br&gt; $ irb &lt;br&gt; 1.9.3-p327 :001 &amp;gt; require &#39;bson&#39; &lt;br&gt; =&amp;gt; true &lt;br&gt; 1.9.3-p327 :002 &amp;gt; { a: 1, b: 2 } == { b: 2, a: 1 }
  </summary>
  </entry>
  <entry>
  <author>
  <name>sptrakesh</name>
  <email>rakesh.vidyadha...@gmail.com</email>
  </author>
  <updated>2012-12-12T17:27:39Z</updated>
  <id>http://groups.google.com/group/bson/browse_thread/thread/494bce9c742fa453/b9a6b5f5ab52ab79?show_docid=b9a6b5f5ab52ab79</id>
  <link href="http://groups.google.com/group/bson/browse_thread/thread/494bce9c742fa453/b9a6b5f5ab52ab79?show_docid=b9a6b5f5ab52ab79"/>
  <title type="text">Element ordering in BSON documents</title>
  <summary type="html" xml:space="preserve">
  Hello, &lt;br&gt; I do not see any mention of it in the specifications, but are two BSON &lt;br&gt; documents considered identical if they have the exact same elements &lt;br&gt; regardless of ordering of the elements? I need this to properly implement &lt;br&gt; my operator == for BSON documents. &lt;br&gt; Thanks &lt;br&gt; Rakesh
  </summary>
  </entry>
  <entry>
  <author>
  <name>sptrakesh</name>
  <email>rakesh.vidyadha...@gmail.com</email>
  </author>
  <updated>2012-11-04T13:44:27Z</updated>
  <id>http://groups.google.com/group/bson/browse_thread/thread/0a1c1a29cbc8e491/5be08496fa0831d8?show_docid=5be08496fa0831d8</id>
  <link href="http://groups.google.com/group/bson/browse_thread/thread/0a1c1a29cbc8e491/5be08496fa0831d8?show_docid=5be08496fa0831d8"/>
  <title type="text">Re: Independent C++ Library</title>
  <summary type="html" xml:space="preserve">
  I downgraded to C++98 and the library compiles and the unit test suite runs &lt;br&gt; on Windows 7/MSVS 2010 64 bit.
  </summary>
  </entry>
  <entry>
  <author>
  <name>hergertme</name>
  <email>christian.herg...@gmail.com</email>
  </author>
  <updated>2012-11-03T09:45:03Z</updated>
  <id>http://groups.google.com/group/bson/browse_thread/thread/170d3b215068a508/2bc7212081994217?show_docid=2bc7212081994217</id>
  <link href="http://groups.google.com/group/bson/browse_thread/thread/170d3b215068a508/2bc7212081994217?show_docid=2bc7212081994217"/>
  <title type="text">Re: [bson] Re: bson c driver</title>
  <summary type="html" xml:space="preserve">
  If you use my[1] BSON implementation for C, you can do all of which you &lt;br&gt; requested here. &lt;br&gt; For creating new structures, you have: &lt;br&gt; - mongo_bson_new_from_data to create a new structure copying the data. &lt;br&gt; - mongo_bson_new_take_data to create and take ownership of data (must be &lt;br&gt; freeable with g_free, but generally that works for anyting with free).
  </summary>
  </entry>
  <entry>
  <author>
  <name>hergertme</name>
  <email>christian.herg...@gmail.com</email>
  </author>
  <updated>2012-11-03T09:36:36Z</updated>
  <id>http://groups.google.com/group/bson/browse_thread/thread/68aafa08f8862322/d47ba74caa07518a?show_docid=d47ba74caa07518a</id>
  <link href="http://groups.google.com/group/bson/browse_thread/thread/68aafa08f8862322/d47ba74caa07518a?show_docid=d47ba74caa07518a"/>
  <title type="text">Re: BSON size with C driver</title>
  <summary type="html" xml:space="preserve">
  I&#39;ve written an implementation[1] of BSON in C as well, which has a bunch &lt;br&gt; of BSON buffers[2] created with python and verified in unit tests in C. &lt;br&gt; Unlike the upstream bson driver, mine doesn&#39;t require calling bson_finish() &lt;br&gt; all over the place (which is what updates the bson size in the first 4 &lt;br&gt; bytes). You might find some of the tests[3] useful for your purpose.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Steve Francia</name>
  <email>steve.fran...@gmail.com</email>
  </author>
  <updated>2012-11-02T13:24:20Z</updated>
  <id>http://groups.google.com/group/bson/browse_thread/thread/956ce699025f0d5d/a86338782c3555ce?show_docid=a86338782c3555ce</id>
  <link href="http://groups.google.com/group/bson/browse_thread/thread/956ce699025f0d5d/a86338782c3555ce?show_docid=a86338782c3555ce"/>
  <title type="text">Re: How to test a new driver?</title>
  <summary type="html" xml:space="preserve">
  Firstly, we commend you for your efforts. We certainly appreciate any &lt;br&gt; contributions made. &lt;br&gt; To help facilitate contributions like this we have begun working on a &lt;br&gt; &#39;meta&#39; driver project located at &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;https://github.com/mongodb/mongo-meta-driver&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; Currently it is very much in the beginning stages and it&#39;s not very likely
  </summary>
  </entry>
  <entry>
  <author>
  <name>Christian Kvalheim</name>
  <email>chris...@10gen.com</email>
  </author>
  <updated>2012-11-02T07:29:24Z</updated>
  <id>http://groups.google.com/group/bson/browse_thread/thread/956ce699025f0d5d/288b1560f1d8de73?show_docid=288b1560f1d8de73</id>
  <link href="http://groups.google.com/group/bson/browse_thread/thread/956ce699025f0d5d/288b1560f1d8de73?show_docid=288b1560f1d8de73"/>
  <title type="text">Re: How to test a new driver?</title>
  <summary type="html" xml:space="preserve">
  Hi Colin, feel free to look at the tests for the node.js implementation at &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;https://github.com/mongodb/js-bson&quot;&gt;[link]&lt;/a&gt; or the c driver at &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;https://github.com/mongodb/mongo-c-driver&quot;&gt;[link]&lt;/a&gt;. They are actively developed and &lt;br&gt; should contain a decent set of test cases.
  </summary>
  </entry>
</feed>
