Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Boo Examples Week (Boo needs YOU!)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 37 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Cedric Vivier  
View profile  
 More options Feb 7, 4:18 am
From: Cedric Vivier <cedr...@neonux.com>
Date: Sat, 7 Feb 2009 17:18:48 +0800
Local: Sat, Feb 7 2009 4:18 am
Subject: Boo Examples Week (Boo needs YOU!)

Hey everyone!

Our examples directory needs some love as it lags behind the new
features/syntax
available in more or less recent Boo versions.

As this task is both self-learning and has a low-barrier of entry, it would
be
nice to see the community involved in this effort.

Ideally new examples would all follow a common template header like this
updated
`ifdef.boo` example (much shorter thanks to new features/syntax since it was
originally written):

{code}
"""
Description:
    This example shows how to write a macro that behaves differently
    depending compilation parameters (here the presence of a 'BOO' define
symbol)

    Code below will display "Yeah! BOO is defined!" only if compiled with
    a BOO define symbol (e.g through `booc -d:BOO ifdef.boo`)

Exercise:
    Allow `ifdef BOO` instead of `ifdef "BOO"`
    (hint: ReferenceExpression)
"""
import Boo.Lang.PatternMatching

macro ifdef(symbol as string):
    if Context.Parameters.Defines.ContainsKey(symbol):
        yield

print "Is BOO defined?"
ifdef "BOO":
    print "Yeah! BOO is defined!"
{code}

A short `Description:` about the example would be required, `Exercise:`
would be
nice to have the more often the better.

I suggest we remove the big/noisy copyright header that does not really make
sense for (such simple) examples imo.
Adding an `Author: FirstName Name <email>` on the first line is acceptable
though.

Let's use this thread to post (both inline _and_ attached) updated (or new)
examples
featuring what Boo can do - nowadays.

We'll see how the thread went next Saturday (14th Feb. - Valentine day -
hence why
you'd better show your love to Boo! ;-) ) .. and then later merge back the -
hopefully numerous -
updated/new examples back in the repository.

Cheers,

  ifdef.boo
< 1K Download

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
George  
View profile  
 More options Feb 7, 9:07 am
From: George <g.derno...@gmail.com>
Date: Sat, 7 Feb 2009 06:07:06 -0800 (PST)
Local: Sat, Feb 7 2009 9:07 am
Subject: Re: Boo Examples Week (Boo needs YOU!)
Code
import Boo.Lang.PatternMatching

macro ifdef(symbol as string):
    if Context.Parameters.Defines.ContainsKey(symbol):
        yield

causes error:
Macro expansion error: 'Usage: macro <reference>'. (BCE0045) - C:
\MyProjects\boo_test\Program.boo:39

On 7 фев, 11:18, Cedric Vivier <cedr...@neonux.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rodrigo B. de Oliveira  
View profile  
 More options Feb 7, 9:11 am
From: "Rodrigo B. de Oliveira" <rodrigobam...@gmail.com>
Date: Sat, 7 Feb 2009 12:11:27 -0200
Local: Sat, Feb 7 2009 9:11 am
Subject: Re: Boo Examples Week (Boo needs YOU!)
Only supported in trunk I'm afraid.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cedric Vivier  
View profile  
 More options Feb 8, 1:02 pm
From: Cedric Vivier <cedr...@neonux.com>
Date: Mon, 9 Feb 2009 02:02:57 +0800
Local: Sun, Feb 8 2009 1:02 pm
Subject: Re: Boo Examples Week (Boo needs YOU!)

On Sat, Feb 7, 2009 at 5:18 PM, Cedric Vivier <cedr...@neonux.com> wrote:
> We'll see how the thread went next Saturday (14th Feb. - Valentine day -
> hence why
> you'd better show your love to Boo! ;-) ) .. and then later merge back the
> - hopefully numerous -
> updated/new examples back in the repository.

Well, I'll start to get the ball rolling then ;(

A new example using the new OmittedExpression (or dot-prefix) that is
available in trunk :

http://paste2.org/p/144017

  with.boo
1K Download

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thorna  
View profile  
 More options Feb 8, 5:05 pm
From: Thorna <fo...@wanadoo.fr>
Date: Sun, 8 Feb 2009 14:05:21 -0800 (PST)
Local: Sun, Feb 8 2009 5:05 pm
Subject: Re: Boo Examples Week (Boo needs YOU!)
Définitely, macros are not for me :-(
I don't know if I don't make any effort or if it is a boo-developers-
only features or what else, but all the syntax remains
incomprehensible for me.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
George  
View profile  
 More options Feb 8, 6:29 pm
From: George <g.derno...@gmail.com>
Date: Sun, 8 Feb 2009 15:29:51 -0800 (PST)
Local: Sun, Feb 8 2009 6:29 pm
Subject: Re: Boo Examples Week (Boo needs YOU!)
The most usefull idea for macros is parsing LINQ expression like 'from
i in list where i.fld > 5 select i.name'.
Is it possible with current state of macro support?

On 9 фев, 00:05, Thorna <fo...@wanadoo.fr> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cedric Vivier  
View profile  
 More options Feb 9, 1:19 am
From: Cedric Vivier <cedr...@neonux.com>
Date: Mon, 9 Feb 2009 14:19:01 +0800
Local: Mon, Feb 9 2009 1:19 am
Subject: Re: Boo Examples Week (Boo needs YOU!)

On Mon, Feb 9, 2009 at 6:05 AM, Thorna <fo...@wanadoo.fr> wrote:
> Définitely, macros are not for me :-(
> I don't know if I don't make any effort or if it is a boo-developers-
> only features or what else, but all the syntax remains
> incomprehensible for me.

Even the first `ifdef` example? What don't you get in it?

You know how Boo transforms source code into assemblies, wrt to macros it
can be summed up grossly as:
!) read source code (obviously)
2) parses source into an AST representation (a tree of nodes [inheriting
Node], e.g MethodInvocationExpression)
3) expand macro statements (runs the `macro ifdef:` body during compilation
and replace `ifdef` occurences by the nodes yielded [`yield` alone is a
shortha nd for yield ifdef.Body])
4) expanded AST representation (the one you can see with -p:boo booc
parameter for instance)
5) emit expanded AST into CIL bytecode.

It can be very useful, not only for implementing linq-style syntax but any
kind of DSL (e.g Specter), and more generally to shortcut long/repetitive
code (instead of you writing the code - like `print e` is actually a macro
that expands to `System.Console.WriteLine(e)` ).
I'm sure you can find handy usages for this ;-)

Anyways examples week is not about 'bleeding-edge' macros only, feel free to
contribute updated/new examples about something else, there is plenty of
them needing update/cleanup in examples/ ;-)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cedric Vivier  
View profile  
 More options Feb 9, 1:19 am
From: Cedric Vivier <cedr...@neonux.com>
Date: Mon, 9 Feb 2009 14:19:06 +0800
Local: Mon, Feb 9 2009 1:19 am
Subject: Re: Boo Examples Week (Boo needs YOU!)

2009/2/9 George <g.derno...@gmail.com>

> The most usefull idea for macros is parsing LINQ expression like

'from i in list where i.fld > 5 select i.name'.

Expression above could be expressed like this *right now*:

i.name for i in list if i.fld > 5


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Justin Chase  
View profile  
 More options Feb 9, 9:00 am
From: Justin Chase <justin.m.ch...@gmail.com>
Date: Mon, 9 Feb 2009 08:00:02 -0600
Local: Mon, Feb 9 2009 9:00 am
Subject: Re: Boo Examples Week (Boo needs YOU!)

Are there any well known, open source, macro projects other than specter?

--
Justin Chase
http://www.justnbusiness.com

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ayende Rahien  
View profile  
 More options Feb 9, 9:14 am
From: Ayende Rahien <aye...@ayende.com>
Date: Mon, 9 Feb 2009 16:14:31 +0200
Local: Mon, Feb 9 2009 9:14 am
Subject: Re: Boo Examples Week (Boo needs YOU!)

Binsor
Simple State Machine

On Mon, Feb 9, 2009 at 4:00 PM, Justin Chase <justin.m.ch...@gmail.com>wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
George  
View profile  
 More options Feb 9, 10:38 am
From: George <g.derno...@gmail.com>
Date: Mon, 9 Feb 2009 07:38:12 -0800 (PST)
Local: Mon, Feb 9 2009 10:38 am
Subject: Re: Boo Examples Week (Boo needs YOU!)
>>Expression above could be expressed like this *right now*:

 I would say that it would be interesting to all, how to use macros
facility to resolve this(such) problem.
For example to expand Boo by another interesting functional
expressions,
that can nested in each other. I know about support nested macros, but
don't know simple way ;) how use the facilities at whole for similar
tasks.

On 9 фев, 16:14, Ayende Rahien <aye...@ayende.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Spruce Weber  
View profile  
 More options Feb 9, 11:29 am
From: Spruce Weber <timber...@gmail.com>
Date: Mon, 9 Feb 2009 08:29:13 -0800
Local: Mon, Feb 9 2009 11:29 am
Subject: Re: Boo Examples Week (Boo needs YOU!)
I don't know if AstAttributes fall into the same category, but I used
one to implement a sort of mixin pattern to avoid some boilerplate
code...

http://paste2.org/p/144590


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cedric Vivier  
View profile  
 More options Feb 9, 11:50 am
From: Cedric Vivier <cedr...@neonux.com>
Date: Tue, 10 Feb 2009 00:50:24 +0800
Local: Mon, Feb 9 2009 11:50 am
Subject: Re: Boo Examples Week (Boo needs YOU!)

On Tue, Feb 10, 2009 at 12:29 AM, Spruce Weber <timber...@gmail.com> wrote:
> I don't know if AstAttributes fall into the same category, but I used
> one to implement a sort of mixin pattern to avoid some boilerplate
> code...

> http://paste2.org/p/144590

Woohoo, first new example, kudos to you Spruce! :-)
You are right on spot, there is no 'category', any example of code using boo
features is good :)
(alternatively anyone can take on improving/updating an existing one:
http://svn.boo.codehaus.org/browse/boo/boo/trunk/examples )

If you can just add a small Description: header (and Author: if you'd like
to) explaining what it does and showing the minimum code about how to use
it, that would be *perfect* !!

Cheers,


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Qwertie  
View profile  
 More options Feb 9, 12:07 pm
From: Qwertie <qwertie...@gmail.com>
Date: Mon, 9 Feb 2009 09:07:58 -0800 (PST)
Local: Mon, Feb 9 2009 12:07 pm
Subject: Re: Boo Examples Week (Boo needs YOU!)
Where is the documentation for the "macro" macro? Where is the
documentation for using the AST and those cool [| AST expressions |]
with $interpolation?

I understand the ifdef macro, but it doesn't help us learn to write
more sophisticated macros.

I would like to write a macro in which you could write something
like...

x = 12
y = 7.0
z = "11"
total = 0.0
witheach Var in x, y, z:
    total += Convert.ToDouble(Var)

and the macro would expand this to

x = 12
y = 7.0
z = "11"
total = 0.0
total += Convert.ToDouble(x)
total += Convert.ToDouble(y)
total += Convert.ToDouble(z)

But I don't know how to get started. Also, Rodrigo just said that this
ifdef macro only works in trunk, but NAnt didn't build trunk
successfully for me. Nant's final output was...

Boo.NAnt.Tasks:

     [exec] Not a valid directory for -lib argument: 'C:\Program Files
\nant-0.85\bin" -r:NAnt.Core.dll -r:NAnt.DotNetTasks.dll src/
Boo.NAnt.Tasks/UpdateAssemblyVersionTask.boo src/Boo.NAnt.Tasks/
InsertLicenseTask.boo src/Boo.NAnt.Tasks/BoocTask.boo src/
Boo.NAnt.Tasks/BooTask.boo src/Boo.NAnt.Tasks/AbstractBooTask.boo'
     [exec] Boo Compiler version 0.9.0.3203 (CLR 2.0.50727.3053)
     [exec] Fatal error: System.ApplicationException: No inputs
specified
     [exec]    at BooC.App.Run(String[] args) in c:\Download\boo 0.9
svn\src\booc\App.cs:line 108.

BUILD FAILED - 0 non-fatal error(s), 287 warning(s)

C:\Download\boo 0.9 svn\default.build(267,4):
External Program Failed: C:\Download\boo 0.9 svn\build\booc.exe
(return code was 127)

Total time: 13.6 seconds.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Spruce Weber  
View profile  
 More options Feb 9, 12:13 pm
From: Spruce Weber <timber...@gmail.com>
Date: Mon, 9 Feb 2009 09:13:51 -0800
Local: Mon, Feb 9 2009 12:13 pm
Subject: Re: Boo Examples Week (Boo needs YOU!)
NAnt has issues with spaces in its path, so I place it in c:\NAnt\

It also may get stuck when trying to process Boos built-in macros.
Installing Boo.Lang.Extensions from boo\bin into the GAC should help
with that.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cedric Vivier  
View profile  
 More options Feb 9, 12:14 pm
From: Cedric Vivier <cedr...@neonux.com>
Date: Tue, 10 Feb 2009 01:14:05 +0800
Local: Mon, Feb 9 2009 12:14 pm
Subject: Re: Boo Examples Week (Boo needs YOU!)

Below testcase has a similar macro `sum` from which you could get
inspiration:
http://svn.boo.codehaus.org/browse/~raw,r=3246/boo/boo/trunk/tests/te...

> ifdef macro only works in trunk, but NAnt didn't build trunk
> successfully for me. Nant's final output was...

> Boo.NAnt.Tasks:
>     [exec] Not a valid directory for -lib argument: 'C:\Program Files
> \nant-0.85\bin" -r:NAnt.Core.dll -r:NAnt.DotNetTasks.dll src/

 Sorry our build file on Windows does not work when NAnt is installed in a
directory with a whitespace (such as the dreaded "Program Files";), try
reinstalling NAnt in another non-whitespacey directory.

Cheers,


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Spruce Weber  
View profile  
 More options Feb 9, 12:16 pm
From: Spruce Weber <timber...@gmail.com>
Date: Mon, 9 Feb 2009 09:16:56 -0800
Local: Mon, Feb 9 2009 12:16 pm
Subject: Re: Boo Examples Week (Boo needs YOU!)
One concept that I think needs to be emphasized (may not be clear to
everyone) is that macros and AstAttributes are objects that are
instantiated and used at compiletime, not runtime; that they are for
manipulating the AST/code before producing an assembly.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Qwertie  
View profile  
 More options Feb 9, 12:29 pm
From: Qwertie <qwertie...@gmail.com>
Date: Mon, 9 Feb 2009 09:29:33 -0800 (PST)
Local: Mon, Feb 9 2009 12:29 pm
Subject: Re: Boo Examples Week (Boo needs YOU!)
> Where is the documentation for the "macro" macro? Where is the
> documentation for using the AST and those cool [| AST expressions |]
> with $interpolation?

Also, I forgot to add, where is the documentation for the AST classes?

Another question: can macros have memory? I think it would be cool to
have a pair of macros, let's call them "define" and "expand". define
would be used something like this:

define PointClass(P, T):
   class P:
      public constructor(x as T, y as T):
          X=x; Y=y
      public X as T
      public Y as T
      static def op_Addition(a as P, b as P):
                return P(a.X+b.X, a.Y+b.Y)
      static def op_Subtraction(a as P, b as P):
                return P(a.X-b.X, a.Y-b.Y)
      static def op_Multiply(a as P, b as P):
                return a.X*b.X + a.Y*b.Y

and expand would be used like this to define three different kinds of
points:

expand PointClass(PointF, float)
expand PointClass(PointD, double)
expand PointClass(PointI, int)

Is this even possible with the current macro architecture?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Qwertie  
View profile  
 More options Feb 9, 12:41 pm
From: Qwertie <qwertie...@gmail.com>
Date: Mon, 9 Feb 2009 09:41:45 -0800 (PST)
Local: Mon, Feb 9 2009 12:41 pm
Subject: Re: Boo Examples Week (Boo needs YOU!)

> > Boo.NAnt.Tasks:
> >     [exec] Not a valid directory for -lib argument: 'C:\Program Files
> > \nant-0.85\bin" -r:NAnt.Core.dll -r:NAnt.DotNetTasks.dll src/

>  Sorry our build file on Windows does not work when NAnt is installed in a
> directory with a whitespace (such as the dreaded "Program Files";), try
> reinstalling NAnt in another non-whitespacey directory.

Hmm, looks like the source files can't be in a path that contains
spaces either. You know, I always thought 21st century technology
would support the space character. There's a reason Microsoft put a
space in "Program Files" back in 1995.

update-vs2005-env:

     [exec] System.IO.DirectoryNotFoundException: Could not find a
part of the path 'C:\Download\boo
%200.9%20svn\src\Boo.Lang'.
     [exec]    at System.IO.__Error.WinIOError(Int32 errorCode, String
maybeFullPath)
     [exec]    at System.IO.Directory.InternalGetFileDirectoryNames
(String path, String userPathOrig
inal, String searchPattern, Boolean includeFiles, Boolean includeDirs,
SearchOption searchOption)
     [exec]    at System.IO.Directory.GetFiles(String path, String
searchPattern, SearchOption searc
hOption)
     [exec]    at System.IO.Directory.GetFiles(String path)
     [exec]    at Boo.Lang.Useful.IO.WalkModule.listFiles
$130.$.MoveNext()
     [exec]    at Update-vs2005-envModule.updateProjectFile(String
fname) in C:\Download\boo 0.9 svn
\scripts\update-vs2005-env.boo:line 89
     [exec]    at Update-vs2005-envModule.Main(String[] argv) in C:
\Download\boo 0.9 svn\scripts\upd
ate-vs2005-env.boo:line 139

BUILD FAILED - 0 non-fatal error(s), 35 warning(s)

C:\Download\boo 0.9 svn\default.build(1034,4):
External Program Failed: C:\Download\boo 0.9 svn\bin\booi.exe (return
code was 127)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
psi  
View profile  
 More options Feb 9, 12:52 pm
From: psi <simon.pl...@googlemail.com>
Date: Mon, 9 Feb 2009 09:52:59 -0800 (PST)
Local: Mon, Feb 9 2009 12:52 pm
Subject: Re: Boo Examples Week (Boo needs YOU!)
im not sure this is as straightforward as it sounds, some basic
organization may be needed;

how about breaking it down a bit, by starting with a list of features,
so less duplication.

and you want one feature per example so people will need to be clear
on what not to include in an example as well as what too.

then again, is it possible to have both an example and a test in one
piece of code, and really get some value out of this?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cedric Vivier  
View profile  
 More options Feb 9, 1:15 pm
From: Cedric Vivier <cedr...@neonux.com>
Date: Tue, 10 Feb 2009 02:15:21 +0800
Local: Mon, Feb 9 2009 1:15 pm
Subject: Re: Boo Examples Week (Boo needs YOU!)

On Tue, Feb 10, 2009 at 1:52 AM, psi <simon.pl...@googlemail.com> wrote:
> im not sure this is as straightforward as it sounds, some basic
> organization may be needed;how about breaking it down a bit, by starting
> with a list of features,
> so less duplication.

You can have a look at current examples/, I think the current organization
of the directory is more or less okay.
It just needs some cleaning/updating and examples of (newer) features.

then again, is it possible to have both an example and a test in one

> piece of code, and really get some value out of this?

Not sure what you mean by "and a test", what I meant is that most examples
(if possible) should build as an .exe, so that one can see the result, hence
being able to start playing/modifying it directly.
I think the value is here, playing with small bits of code is a great way to
learn.
Compared to a testcase that is `contrived` code without meaning except
testing _one_ feature, an example should be demonstrating something that
could be used in real-world (and thus does not have to be limited to one and
only feature).

Cheers,


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Justin Chase  
View profile  
 More options Feb 9, 2:44 pm
From: Justin Chase <justin.m.ch...@gmail.com>
Date: Mon, 9 Feb 2009 13:44:30 -0600
Local: Mon, Feb 9 2009 2:44 pm
Subject: Re: Boo Examples Week (Boo needs YOU!)

Ayende: Your book will have some boo specific examples won't it?

I've attached a bunch of examples that I used for a code camp presentation I
did last october. This includes a solution with many different simple
projects that open in (the last version of) #Develop and show off various
features of boo. It also comes with a very simple slide deck I used to get
things going.

The samples include:

   - IQuackFu and Duck Typing
   - Auto casting
   - Closures
   - Pipelines
   - Regular expressions
   - Type inference
   - DSL Macros
   - Specter
   - Functional tricks

And a lot of other fun stuff... Is this the best way to submit this code or
would you rather I formally submit it as a patch or something?

--
Justin Chase
http://www.justnbusiness.com

  boo.rar
558K Download

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ayende Rahien  
View profile  
 More options Feb 9, 3:02 pm
From: Ayende Rahien <aye...@ayende.com>
Date: Mon, 9 Feb 2009 22:02:08 +0200
Local: Mon, Feb 9 2009 3:02 pm
Subject: Re: Boo Examples Week (Boo needs YOU!)

Um, the book _is_ called building DSL with Boo
My publisher informed me that while I would really like to write the
examples in Sanskrit, the title sort of oblige me to include at least a few
Boo samples.

On Mon, Feb 9, 2009 at 9:44 PM, Justin Chase <justin.m.ch...@gmail.com>wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cedric Vivier  
View profile  
 More options Feb 9, 3:38 pm
From: Cedric Vivier <cedr...@neonux.com>
Date: Tue, 10 Feb 2009 04:38:15 +0800
Local: Mon, Feb 9 2009 3:38 pm
Subject: Re: Boo Examples Week (Boo needs YOU!)

> On Mon, Feb 9, 2009 at 9:44 PM, Justin Chase <justin.m.ch...@gmail.com>wrote:

>> And a lot of other fun stuff... Is this the best way to submit this code
>> or would you rather I formally submit it as a patch or something?

Nice, but after a quick look at the contents of the archive, it looks like
most of them are simplified versions of current examples?
Or can you tell me which are truly new/different?

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Justin Chase  
View profile  
 More options Feb 9, 4:26 pm
From: Justin Chase <justin.m.ch...@gmail.com>
Date: Mon, 9 Feb 2009 15:26:18 -0600
Local: Mon, Feb 9 2009 4:26 pm
Subject: Re: Boo Examples Week (Boo needs YOU!)

That is probably true actually, I think the specter unit tests projects were
not in the original samples and I know I had some trouble getting the
pipeline stuff working due to somethings that had to be done in the project
file. I did tweak things and add some stuff and it is all put together into
one solution which is kind of nice. And I ordered them so that they came in
a gentle logical order to learn about new features.
The BooAndIQuackFu project has an example I created related to using
IQuackFu to explore XML documents. Which is pretty fun.

doc as duck = XmlDocumentFu(xml)
hello = doc.root.h.att.Value
world = doc.root.w.att.Value

On Mon, Feb 9, 2009 at 2:38 PM, Cedric Vivier <cedr...@neonux.com> wrote:
> On Mon, Feb 9, 2009 at 9:44 PM, Justin Chase <justin.m.ch...@gmail.com>wrote:

>>> And a lot of other fun stuff... Is this the best way to submit this code
>>> or would you rather I formally submit it as a patch or something?

> Nice, but after a quick look at the contents of the archive, it looks like
> most of them are simplified versions of current examples?
> Or can you tell me which are truly new/different?

--
Justin Chase
http://www.justnbusiness.com

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 37   Newer >
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google