You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Rich Dougherty (JIRA)" <ji...@apache.org> on 2007/12/18 11:15:43 UTC

[jira] Created: (DIRMINA-499) Bindings for Scala

Bindings for Scala
------------------

                 Key: DIRMINA-499
                 URL: https://issues.apache.org/jira/browse/DIRMINA-499
             Project: MINA
          Issue Type: New Feature
          Components: Example, Integration
    Affects Versions: 2.0.0-M1
            Reporter: Rich Dougherty
            Priority: Minor


Here's a contribution of bindings for the Scala language. Since announcing an initial version six weeks ago, I've taken some time to improve and extend them. They're now quite different from that first version. They still needs more documentation and some unit tests, but are generally in a state that I'm happy with.

Notes:
- Patch is against trunk.
- The bindings are in a new submodule called "integration-scala".
- Scala examples have been added to the "example" submodule. These are also currently the best documentation for the bindings.
- Code is formatted and indented according to the convention used in the Scala compiler, which I take to be the "standard" for Scala code.

Warning: This patch approximately doubles the time it takes to perform a "mvn -Dmaven.test.skip install" on my computer. This time can probably be improved by trying to run the Scala compiler once within each submodule, rather than multiple times, but the effect will still be noticeable. If this increase in build time is problem, then the bindings probably may need to stay outside MINA's trunk.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-499) Bindings for Scala

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568430#action_12568430 ] 

Trustin Lee commented on DIRMINA-499:
-------------------------------------

Thank you Rich for your continuous update.  I am impressed.  I also find Scala a very good language and am learning it step by step.  Hopefully I could help you soon...

> Bindings for Scala
> ------------------
>
>                 Key: DIRMINA-499
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-499
>             Project: MINA
>          Issue Type: New Feature
>          Components: Example, Integration
>    Affects Versions: 2.0.0-M1
>            Reporter: Rich Dougherty
>            Priority: Minor
>         Attachments: bindings-for-scala.2.patch, bindings-for-scala.patch
>
>
> Here's a contribution of bindings for the Scala language. Since announcing an initial version six weeks ago, I've taken some time to improve and extend them. They're now quite different from that first version. They still needs more documentation and some unit tests, but are generally in a state that I'm happy with.
> Notes:
> - Patch is against trunk.
> - The bindings are in a new submodule called "integration-scala".
> - Scala examples have been added to the "example" submodule. These are also currently the best documentation for the bindings.
> - Code is formatted and indented according to the convention used in the Scala compiler, which I take to be the "standard" for Scala code.
> Warning: This patch approximately doubles the time it takes to perform a "mvn -Dmaven.test.skip install" on my computer. This time can probably be improved by trying to run the Scala compiler once within each submodule, rather than multiple times, but the effect will still be noticeable. If this increase in build time is problem, then the bindings probably may need to stay outside MINA's trunk.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-499) Bindings for Scala

Posted by "Rich Dougherty (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556143#action_12556143 ] 

Rich Dougherty commented on DIRMINA-499:
----------------------------------------

Hi Trustin

That seems fair enough. :-)

I've created a Mercurial repository to maintain this patch against trunk. Would you like me periodically attach patches to this ticket?

The patched version of MINA can be found at: http://www.assembla.com/spaces/scala-mina

Cheers
Rich

> Bindings for Scala
> ------------------
>
>                 Key: DIRMINA-499
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-499
>             Project: MINA
>          Issue Type: New Feature
>          Components: Example, Integration
>    Affects Versions: 2.0.0-M1
>            Reporter: Rich Dougherty
>            Priority: Minor
>         Attachments: bindings-for-scala.patch
>
>
> Here's a contribution of bindings for the Scala language. Since announcing an initial version six weeks ago, I've taken some time to improve and extend them. They're now quite different from that first version. They still needs more documentation and some unit tests, but are generally in a state that I'm happy with.
> Notes:
> - Patch is against trunk.
> - The bindings are in a new submodule called "integration-scala".
> - Scala examples have been added to the "example" submodule. These are also currently the best documentation for the bindings.
> - Code is formatted and indented according to the convention used in the Scala compiler, which I take to be the "standard" for Scala code.
> Warning: This patch approximately doubles the time it takes to perform a "mvn -Dmaven.test.skip install" on my computer. This time can probably be improved by trying to run the Scala compiler once within each submodule, rather than multiple times, but the effect will still be noticeable. If this increase in build time is problem, then the bindings probably may need to stay outside MINA's trunk.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRMINA-499) Bindings for Scala

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny updated DIRMINA-499:
--------------------------------------

    Fix Version/s: 3.0.0-M1

> Bindings for Scala
> ------------------
>
>                 Key: DIRMINA-499
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-499
>             Project: MINA
>          Issue Type: New Feature
>          Components: Example, Integration
>    Affects Versions: 2.0.0-M1
>            Reporter: Rich Dougherty
>            Priority: Minor
>             Fix For: 3.0.0-M1
>
>         Attachments: bindings-for-scala.2.patch, bindings-for-scala.3.patch, bindings-for-scala.patch
>
>
> Here's a contribution of bindings for the Scala language. Since announcing an initial version six weeks ago, I've taken some time to improve and extend them. They're now quite different from that first version. They still needs more documentation and some unit tests, but are generally in a state that I'm happy with.
> Notes:
> - Patch is against trunk.
> - The bindings are in a new submodule called "integration-scala".
> - Scala examples have been added to the "example" submodule. These are also currently the best documentation for the bindings.
> - Code is formatted and indented according to the convention used in the Scala compiler, which I take to be the "standard" for Scala code.
> Warning: This patch approximately doubles the time it takes to perform a "mvn -Dmaven.test.skip install" on my computer. This time can probably be improved by trying to run the Scala compiler once within each submodule, rather than multiple times, but the effect will still be noticeable. If this increase in build time is problem, then the bindings probably may need to stay outside MINA's trunk.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRMINA-499) Bindings for Scala

Posted by "Rich Dougherty (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rich Dougherty updated DIRMINA-499:
-----------------------------------

    Attachment: bindings-for-scala.3.patch

Updated patch to latest revision on trunk (635930) and the recently released Scala 2.7.0-final. Unfortunately Scala 2.7.0 has a bug which prevents it from parsing certain MINA classfiles (http://lampsvn.epfl.ch/trac/scala/ticket/489). This has required me to comment out the NetCat example. I'm expecting a fix in Scala 2.7.1.

> Bindings for Scala
> ------------------
>
>                 Key: DIRMINA-499
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-499
>             Project: MINA
>          Issue Type: New Feature
>          Components: Example, Integration
>    Affects Versions: 2.0.0-M1
>            Reporter: Rich Dougherty
>            Priority: Minor
>         Attachments: bindings-for-scala.2.patch, bindings-for-scala.3.patch, bindings-for-scala.patch
>
>
> Here's a contribution of bindings for the Scala language. Since announcing an initial version six weeks ago, I've taken some time to improve and extend them. They're now quite different from that first version. They still needs more documentation and some unit tests, but are generally in a state that I'm happy with.
> Notes:
> - Patch is against trunk.
> - The bindings are in a new submodule called "integration-scala".
> - Scala examples have been added to the "example" submodule. These are also currently the best documentation for the bindings.
> - Code is formatted and indented according to the convention used in the Scala compiler, which I take to be the "standard" for Scala code.
> Warning: This patch approximately doubles the time it takes to perform a "mvn -Dmaven.test.skip install" on my computer. This time can probably be improved by trying to run the Scala compiler once within each submodule, rather than multiple times, but the effect will still be noticeable. If this increase in build time is problem, then the bindings probably may need to stay outside MINA's trunk.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-499) Bindings for Scala

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12553862 ] 

Trustin Lee commented on DIRMINA-499:
-------------------------------------

First of all, thank you very much for your contribution!  For now, we don't have any committer who knows Scala, so importing your patch immediately might make it unmaintainable module without your help.  Please keep posting patches and show your will to contribute to the MINA project, then hopefully you could join the team and provide the top quality Scala integration for MINA.  I am already impressed though. :)

> Bindings for Scala
> ------------------
>
>                 Key: DIRMINA-499
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-499
>             Project: MINA
>          Issue Type: New Feature
>          Components: Example, Integration
>    Affects Versions: 2.0.0-M1
>            Reporter: Rich Dougherty
>            Priority: Minor
>         Attachments: bindings-for-scala.patch
>
>
> Here's a contribution of bindings for the Scala language. Since announcing an initial version six weeks ago, I've taken some time to improve and extend them. They're now quite different from that first version. They still needs more documentation and some unit tests, but are generally in a state that I'm happy with.
> Notes:
> - Patch is against trunk.
> - The bindings are in a new submodule called "integration-scala".
> - Scala examples have been added to the "example" submodule. These are also currently the best documentation for the bindings.
> - Code is formatted and indented according to the convention used in the Scala compiler, which I take to be the "standard" for Scala code.
> Warning: This patch approximately doubles the time it takes to perform a "mvn -Dmaven.test.skip install" on my computer. This time can probably be improved by trying to run the Scala compiler once within each submodule, rather than multiple times, but the effect will still be noticeable. If this increase in build time is problem, then the bindings probably may need to stay outside MINA's trunk.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRMINA-499) Bindings for Scala

Posted by "Rich Dougherty (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rich Dougherty updated DIRMINA-499:
-----------------------------------

    Attachment: bindings-for-scala.patch

Contribution v1.

> Bindings for Scala
> ------------------
>
>                 Key: DIRMINA-499
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-499
>             Project: MINA
>          Issue Type: New Feature
>          Components: Example, Integration
>    Affects Versions: 2.0.0-M1
>            Reporter: Rich Dougherty
>            Priority: Minor
>         Attachments: bindings-for-scala.patch
>
>
> Here's a contribution of bindings for the Scala language. Since announcing an initial version six weeks ago, I've taken some time to improve and extend them. They're now quite different from that first version. They still needs more documentation and some unit tests, but are generally in a state that I'm happy with.
> Notes:
> - Patch is against trunk.
> - The bindings are in a new submodule called "integration-scala".
> - Scala examples have been added to the "example" submodule. These are also currently the best documentation for the bindings.
> - Code is formatted and indented according to the convention used in the Scala compiler, which I take to be the "standard" for Scala code.
> Warning: This patch approximately doubles the time it takes to perform a "mvn -Dmaven.test.skip install" on my computer. This time can probably be improved by trying to run the Scala compiler once within each submodule, rather than multiple times, but the effect will still be noticeable. If this increase in build time is problem, then the bindings probably may need to stay outside MINA's trunk.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRMINA-499) Bindings for Scala

Posted by "Rich Dougherty (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rich Dougherty updated DIRMINA-499:
-----------------------------------

    Attachment: bindings-for-scala.2.patch

Here's an updated patch that tracks changes in the trunk (e.g. removed bindings for serial transport). It also fixes a bug which stopped the cleanup code from running properly when an IoSessionActor exited.

> Bindings for Scala
> ------------------
>
>                 Key: DIRMINA-499
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-499
>             Project: MINA
>          Issue Type: New Feature
>          Components: Example, Integration
>    Affects Versions: 2.0.0-M1
>            Reporter: Rich Dougherty
>            Priority: Minor
>         Attachments: bindings-for-scala.2.patch, bindings-for-scala.patch
>
>
> Here's a contribution of bindings for the Scala language. Since announcing an initial version six weeks ago, I've taken some time to improve and extend them. They're now quite different from that first version. They still needs more documentation and some unit tests, but are generally in a state that I'm happy with.
> Notes:
> - Patch is against trunk.
> - The bindings are in a new submodule called "integration-scala".
> - Scala examples have been added to the "example" submodule. These are also currently the best documentation for the bindings.
> - Code is formatted and indented according to the convention used in the Scala compiler, which I take to be the "standard" for Scala code.
> Warning: This patch approximately doubles the time it takes to perform a "mvn -Dmaven.test.skip install" on my computer. This time can probably be improved by trying to run the Scala compiler once within each submodule, rather than multiple times, but the effect will still be noticeable. If this increase in build time is problem, then the bindings probably may need to stay outside MINA's trunk.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-499) Bindings for Scala

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12557474#action_12557474 ] 

Trustin Lee commented on DIRMINA-499:
-------------------------------------

Sure, please keep posting patches and I really appreciate it!

> Bindings for Scala
> ------------------
>
>                 Key: DIRMINA-499
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-499
>             Project: MINA
>          Issue Type: New Feature
>          Components: Example, Integration
>    Affects Versions: 2.0.0-M1
>            Reporter: Rich Dougherty
>            Priority: Minor
>         Attachments: bindings-for-scala.patch
>
>
> Here's a contribution of bindings for the Scala language. Since announcing an initial version six weeks ago, I've taken some time to improve and extend them. They're now quite different from that first version. They still needs more documentation and some unit tests, but are generally in a state that I'm happy with.
> Notes:
> - Patch is against trunk.
> - The bindings are in a new submodule called "integration-scala".
> - Scala examples have been added to the "example" submodule. These are also currently the best documentation for the bindings.
> - Code is formatted and indented according to the convention used in the Scala compiler, which I take to be the "standard" for Scala code.
> Warning: This patch approximately doubles the time it takes to perform a "mvn -Dmaven.test.skip install" on my computer. This time can probably be improved by trying to run the Scala compiler once within each submodule, rather than multiple times, but the effect will still be noticeable. If this increase in build time is problem, then the bindings probably may need to stay outside MINA's trunk.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.