Re: Re: or and combine missing

Steeve St-Laurent <[email protected]> Mon, 7 Feb 2011 01:02:30 -0500
Newsgroups gmane.comp.java.orm.simpleorm
Message-ID <[email protected]>
--Apple-Mail-1-923772047
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hi,

How can i post my code ? Reverse polish is easier to compute, write algo th=
at compute it, but is not a natural way to write query.=20

Steeve

Le 2011-02-06 =C3=A0 00:17, [email protected] a =C3=A9crit :

> Hmm.
>=20
> Reverse polish would neatly solve the conflict between a simple linear ap=
proach and a awkward nested one. It does not feel as hacky as the infix ver=
sion with push and pop operators.
>=20
> But it would also be completely weird in terms of what people expect. It =
is also rather error prone if the operators do not match the things popped =
and pushed, presumably we would just conjoin whatever was left on the stack=
.
>=20
> I am unclear whether the idea is brilliant or terrible. Certainly it is i=
nteresting.
>=20
> Some example queries would be good.
>=20
> Regards,
>=20
> Anthony
>=20
> At 07:45 PM 26/01/2011, Franck Routier wrote:
> >=20
> >
> >Hi Steeve,
> >
> >did you find the time to post your code ? I am very interested in
> >looking at it...
> >
> >Thanks,
> >
> >Franck
> >
> >Le dimanche 12 d=C3=83=C2=A9cembre 2010 =C3=83 21:17 -0500, Steeve St-La=
urent a =C3=83=C2=A9crit :
> >>=20
> >> Hi,
> >>=20
> >> For query building i think maximum flexibility is needed. I
> >> implemented a solution based on reverse polish notation. I'll show
> >> code in next post.=20
> >>=20
> >> Steeve
> >>=20
> >>=20
> >>=20
> >
> >
>=20
> Dr Anthony Berglas, [email protected] Mobile: +61 4 4838 8874
> Just because it is possible to push twigs along the ground with ones nose
> does not necessarily mean that is the best way to collect firewood.
>=20
> <7e23f01f.jpg>

--Apple-Mail-1-923772047
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable





<head>

<style type=3D"text/css">
<!--

/* start of attachment style */
       .ygrp-photo-title{
         clear: both;
         font-size: smaller;
         height: 15px;
         overflow: hidden;
         text-align: center;
         width: 75px;
       }
       div.ygrp-photo{
         background-position: center;
         background-repeat: no-repeat;
         background-color: white;
         border: 1px solid black;
         height: 62px;
         width: 62px;
       }

       div.photo-title=20
         a,
         div.photo-title a:active,
         div.photo-title a:hover,
         div.photo-title a:visited {
           text-decoration: none;=20
       }

       div.attach-table div.attach-row {
         clear: both;
       }

       div.attach-table div.attach-row div {
         float: left;
         /* margin: 2px;*/
       }

       p {
         clear: both;
         padding: 15px 0 3px 0;
	 overflow: hidden;
       }

       div.ygrp-file {
         width: 30px;
         valign: middle;
       }
       div.attach-table div.attach-row div div a {
         text-decoration: none;
       }

       div.attach-table div.attach-row div div span {
         font-weight: normal;
       }

       div.ygrp-file-title {
         font-weight: bold;
       }
 /* end of attachment style */
        -->
        </style>
        </head>
<html><body bgcolor=3D"#FFFFFF">




<div>Hi,</div><div><br></div><div>How can i post my code ? Reverse polish i=
s easier to compute, write algo that compute it, but is not a natural way t=
o write query.&nbsp;<br><br>Steeve</div><div><br>Le 2011-02-06 =C3=A0 00:17=
, <a href=3D"mailto:[email protected]">[email protected]</a> a =C3=A9cr=
it&nbsp;:<br><br></div><div></div><blockquote type=3D"cite"><div>




<span style=3D"display:none">&nbsp;</span>



    <div id=3D"ygrp-text">
=20=20=20=20=20=20
=20=20=20=20=20=20
      <p>Hmm.<br>
<br>
Reverse polish would neatly solve the conflict between a simple linear appr=
oach and a awkward nested one.  It does not feel as hacky as the infix vers=
ion with push and pop operators.<br>
<br>
But it would also be completely weird in terms of what people expect.  It i=
s also rather error prone if the operators do not match the things popped a=
nd pushed, presumably we would just conjoin whatever was left on the stack.=
<br>
<br>
I am unclear whether the idea is brilliant or terrible.  Certainly it is in=
teresting.<br>
<br>
Some example queries would be good.<br>
<br>
Regards,<br>
<br>
Anthony<br>
<br>
At 07:45 PM 26/01/2011, Franck Routier wrote:<br>
&gt;  <br>
&gt;<br>
&gt;Hi Steeve,<br>
&gt;<br>
&gt;did you find the time to post your code ? I am very interested in<br>
&gt;looking at it...<br>
&gt;<br>
&gt;Thanks,<br>
&gt;<br>
&gt;Franck<br>
&gt;<br>
&gt;Le dimanche 12 d=C3=83=C2=A9cembre 2010 =C3=83  21:17 -0500, Steeve St-=
Laurent a =C3=83=C2=A9crit :<br>
&gt;&gt; <br>
&gt;&gt; Hi,<br>
&gt;&gt; <br>
&gt;&gt; For query building i think maximum flexibility is needed. I<br>
&gt;&gt; implemented a solution based on reverse polish notation. I'll show=
<br>
&gt;&gt; code in next post. <br>
&gt;&gt; <br>
&gt;&gt; Steeve<br>
&gt;&gt; <br>
&gt;&gt; <br>
&gt;&gt; <br>
&gt;<br>
&gt;<br>
<br>
Dr Anthony Berglas, <a href=3D"mailto:anthony%40berglas.org"><a href=3D"mai=
lto:[email protected]">[email protected]</a></a>       Mobile: +61 4 48=
38 8874<br>
Just because it is possible to push twigs along the ground with ones nose<b=
r>
does not necessarily mean that is the best way to collect firewood.<br>
</p>

    </div>
=20=20=20=20=20

=20=20=20=20





<!-- end group email -->

</div></blockquote><blockquote type=3D"cite"><div>&lt;7e23f01f.jpg&gt;</div=
></blockquote>



<!-- |**|begin egp html banner|**| -->

<br>

=20=20=20=20
=20=20=20=20
<br>

<!-- |**|end egp html banner|**| -->


<div width=3D"1" style=3D"color: white; clear: both;"/>__._,_.___</div>

<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- |**|begin egp html banner|**| -->

  <img src=3D"http://geo.yahoo.com/serv?s=3D97476590/grpId=3D7360226/grpspI=
d=3D1705006905/msgId=3D2016/stime=3D1297058336" width=3D"1" height=3D"1"> <=
br>

<!-- |**|end egp html banner|**| -->

=20=20=20=20
<!-- |**|begin egp html banner|**| -->

<br>
      <div style=3D"font-family: verdana; font-size: 77%; border-top: 1px s=
olid #666; padding: 5px 0;" >
      Your email settings: Individual Email|Traditional <br>
      <a href=3D"http://groups.yahoo.com/group/SimpleORM/join;_ylc=3DX3oDMT=
JmZnBxcjIzBF9TAzk3NDc2NTkwBGdycElkAzczNjAyMjYEZ3Jwc3BJZAMxNzA1MDA2OTA1BHNlY=
wNmdHIEc2xrA3N0bmdzBHN0aW1lAzEyOTcwNTgzMzY-">Change settings via the Web</a=
> (Yahoo! ID required) <br>
      Change settings via email: <a href=3D"mailto:SimpleORM-digest@yahoogr=
oups.com?subject=3DEmail Delivery: Digest">Switch delivery to Daily Digest<=
/a> | <a href =3D "mailto:[email protected]?subject=3D=
Change Delivery Format: Fully Featured">Switch to Fully Featured</a> <br>
           <a href=3D"http://groups.yahoo.com/group/SimpleORM;_ylc=3DX3oDMT=
JkMmpjYmE5BF9TAzk3NDc2NTkwBGdycElkAzczNjAyMjYEZ3Jwc3BJZAMxNzA1MDA2OTA1BHNlY=
wNmdHIEc2xrA2hwZgRzdGltZQMxMjk3MDU4MzM2">
        Visit Your Group=20
      </a> |
      <a href=3D"http://docs.yahoo.com/info/terms/">
        Yahoo! Groups Terms of Use
      </a> |
      <a href=3D"mailto:[email protected]?subject=3DUns=
ubscribe">
       Unsubscribe=20
      </a>=20
 <br>
    </div>
  <br>

<!-- |**|end egp html banner|**| -->


<div style=3D"color: white; clear: both;"/>__,_._,___</div>
</body></html>
--Apple-Mail-1-923772047--