[Lift] Re: Great pictures from the Scala Lift Off

2009-06-09 Thread Viktor Klang
On Tue, Jun 9, 2009 at 1:01 AM, David Pollak feeder.of.the.be...@gmail.comwrote: On Mon, Jun 8, 2009 at 12:37 PM, Viktor Klang viktor.kl...@gmail.comwrote: On Mon, Jun 8, 2009 at 8:09 PM, Timothy Perrett timo...@getintheloop.euwrote: w00t!! Marius, Viktor, Heiko... You think you guys

Re: [scala] Re: [Lift] Programming in Scala #5, Lift Book #8, Beginning Scala #9

2009-06-09 Thread Heiko Seeberger
2009/6/9 Viktor Klang viktor.kl...@gmail.com Awesome idea. Would be great to establish some kind of curriculum with joint teaching material to be able to offer courses worldwide. +1 We have been doing something similar with Eclipse = www.eclipse-training.net And very recently we also

Re: [scala] Re: [Lift] Programming in Scala #5, Lift Book #8, Beginning Scala #9

2009-06-09 Thread Viktor Klang
On Tue, Jun 9, 2009 at 9:43 AM, Heiko Seeberger heiko.seeber...@googlemail.com wrote: 2009/6/9 Viktor Klang viktor.kl...@gmail.com Awesome idea. Would be great to establish some kind of curriculum with joint teaching material to be able to offer courses worldwide. +1 We have been

Re: [scala] Re: [Lift] Programming in Scala #5, Lift Book #8, Beginning Scala #9

2009-06-09 Thread David Pollak
Luc, Jorge, Kaliya and I did a LiftWorkshop in November. We had 6 people at the workshop. We tried to pack in Scala and Lift all into a day... it didn't work. Jorge and I have done some review and we figure there's 3 days of Scala training and 2-3 days of Lift training that would be a minimum

Re: [scala] Re: [Lift] Programming in Scala #5, Lift Book #8, Beginning Scala #9

2009-06-09 Thread Jorge Ortiz
In addition to the Lift Workshop, I also co-taught a ten-week (1.5hrs/wk) course at Stanford on Scala. It was targeted at advanced undergrads and graduate students. Most were programming language enthusiasts, so the course focused more on the interesting parts of Scala from a programming language

[Lift] More compact validation

2009-06-09 Thread Magnus Alvestad
Hi. In my lift application using Mapper, I'm doing this all the time: object name extends MappedPoliteString(this, 16) { override def validations = Validate.notEmpty(this) _ :: super.validations } where Validate is defined: object Validate { val valid = List[FieldError]() def

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-06-09 Thread David Pollak
Sweet looking stuff! On Tue, Jun 9, 2009 at 6:18 AM, Jonas Bonér jbo...@gmail.com wrote: Hey guys. I have hacked together an early draft of the JTA transaction stuff. I have wrapped it up in a monad. Here are some examples of usage: for { ctx - TransactionContext.Required entity

[Lift] Re: More compact validation

2009-06-09 Thread David Pollak
If you have a common pattern, reducing it to a subclass makes sense. But if you don't want to do that, here's some shortening: object Validate { def notEmpty(fi: FieldIdentifier)(value: String) = List(FieldError(fo, Text(...)).filter(x = value.length == 0) } import Validate._ object name

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-06-09 Thread Jonas Bonér
2009/6/9 David Pollak feeder.of.the.be...@gmail.com: Sweet looking stuff! Thanks. On Tue, Jun 9, 2009 at 6:18 AM, Jonas Bonér jbo...@gmail.com wrote: Hey guys. I have hacked together an early draft of the JTA transaction stuff. I have wrapped it up in a monad. Here  are some examples

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-06-09 Thread Viktor Klang
Starkt jobbat Jonas! I'll have a look at it asap :) On Tue, Jun 9, 2009 at 4:27 PM, Jonas Bonér jbo...@gmail.com wrote: 2009/6/9 David Pollak feeder.of.the.be...@gmail.com: Sweet looking stuff! Thanks. On Tue, Jun 9, 2009 at 6:18 AM, Jonas Bonér jbo...@gmail.com wrote: Hey guys.

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-06-09 Thread Timothy Perrett
Wow, this is very nice! Kudos Jonas! Cheers, Tim On 09/06/2009 14:18, Jonas Bonér jbo...@gmail.com wrote: Hey guys. I have hacked together an early draft of the JTA transaction stuff. I have wrapped it up in a monad. Here are some examples of usage: for { ctx -

[Lift] Re: Great pictures from the Scala Lift Off

2009-06-09 Thread Kevin Wright
I wish I could actually discover LSUG meets! I signed up on (the extremely minimalist) http://lsug.org/ but the only other hits I get are fleeting references to old meets on nabble and flickr Where's the google group? The mailing list? On Mon, Jun 8, 2009 at 11:10 PM, Timothy Perrett

[Lift] How to prevent OutOfMemory while compiling Lift project?

2009-06-09 Thread sailormoo...@gmail.com
Hi : When my project grows, it seems a mvn clean following a mvn test would generally causes OutOfMemoryException, even with a set MAVEN_OPTS=-Xms512M -Xmx1024M. I got this error : [WARNING] Exception in thread main java.lang.OutOfMemoryError: Java heap space [WARNING] at

[Lift] Re: How to prevent OutOfMemory while compiling Lift project?

2009-06-09 Thread David Pollak
I don't know if the Maven Scala plugin picks up MavenOpts... please try this in your pom.xml file: plugin groupIdorg.scala-tools/groupId artifactIdmaven-scala-plugin/artifactId version2.10/version executions execution goals

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-06-09 Thread Derek Chen-Becker
Awesome! I'll take a look at the code. If you're basing this on ScalaJPA, would it be preferable to add the functionality there, or is there anything Lift-specific? Derek On Tue, Jun 9, 2009 at 7:18 AM, Jonas Bonér jbo...@gmail.com wrote: Hey guys. I have hacked together an early draft of

[Lift] Re: How to prevent OutOfMemory while compiling Lift project?

2009-06-09 Thread Kevin Wright
It might be permgen space, I'm currently using: MAVEN_OPTS=-Xms1024m -Xmx1024m -XX:MaxPermSize=256m -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC *-Xms1024m -Xmx1024m* set the min and max the same, so no dynamic reallocation will happen, should be faster :) *-XX:MaxPermSize=256m* sets the size

[Lift] Re: Great pictures from the Scala Lift Off

2009-06-09 Thread Sam Owen
Miles Sabin is presenting the Scala* *Eclipse plug-in at the ThoughtWorks offices in London on July the 2nd. http://www.nabble.com/Scala-talk-in-London-td23726579.html If you come along to that I'm sure you'd be able to discover LSUG's mailing list. Like you I've failed to find it so far. --

[Lift] Re: How to prevent OutOfMemory while compiling Lift project?

2009-06-09 Thread David Bernard
maven fork a new jvm to run scalac (by default) so MAVEN_OPTS is not used to launch scalac you need to define the (like David P said) configuration jvmArgs jvmArg-Xmx1024m/jvmArg /jvmArgs if you want to customize the jvm args /davidB On Tue, Jun 9, 2009

[Lift] Re: Great pictures from the Scala Lift Off

2009-06-09 Thread Richard Dallaway
On 9 Jun 2009, at 15:57, Kevin Wright wrote: I wish I could actually discover LSUG meets! I signed up on (the extremely minimalist) http://lsug.org/ but the only other hits I get are fleeting references to old meets on nabble and flickr Ah, good point. For London Scala User group

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-06-09 Thread Derek Chen-Becker
OK, one quick comment before I dive in: we generally want to depend on Maven to grab dependencies. Right now you have a lib folder checked into git that appears to hold the JTA libs and Atomikos. If that's the Sun JTA libs then we can't distribute them. We generally use the geronimo JTA API, so

[Lift] Re: How to prevent OutOfMemory while compiling Lift project?

2009-06-09 Thread sailormoo...@gmail.com
Thanks for the help, the jvmArgs works, and I added Kevin's Suggestions too. On 6月9日, 下午11時54分, David Bernard david.bernard...@gmail.com wrote: maven fork a new jvm to run scalac (by default) so MAVEN_OPTS is not used to launch scalac you need to define the  (like David P said)        

[Lift] Re: Great pictures from the Scala Lift Off

2009-06-09 Thread Timothy Perrett
Haha yeah LSUG is like a secret society or something... They always appear to happen at the last min as well. Something like are people up for an LSUG next Tuesday Cheers, Tim On 09/06/2009 16:58, Richard Dallaway dalla...@gmail.com wrote: On 9 Jun 2009, at 15:57, Kevin Wright wrote:

[Lift] Re: Great pictures from the Scala Lift Off

2009-06-09 Thread Kevin Wright
BTW, are you in need of someone to actually add a bit of content to that site? On Tue, Jun 9, 2009 at 4:58 PM, Richard Dallaway dalla...@gmail.com wrote: On 9 Jun 2009, at 15:57, Kevin Wright wrote: I wish I could actually discover LSUG meets! I signed up on (the extremely minimalist)

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-06-09 Thread Jonas Bonér
I added the lib folder only since I have not been able to find the atomikos and deps in any maven repo. Now the user can install them in their private repo. If they exist in a public repo then I will remove the lib folder. Will switch to the apache libs. Thanks, Jonas. 2009/6/9 Derek Chen-Becker

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-06-09 Thread Timothy Perrett
Isnt LiftLogger extensible? Perhaps there would be some way to integrate it with LiftLogger so it was an optional logger just like Log4J, SL4J etc Disclaimer: I know nothing about Configgy! Cheers, Tim On 09/06/2009 17:34, Jonas Bonér jbo...@gmail.com wrote: I am only depending on Lift

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-06-09 Thread David Pollak
Jonas, We always use Maven to load dependencies. We never use GPL dependencies. If you have a question about the license of a dependency and its use in Lift, please ping me privately. What does Configgy have that Lift's Props and Logger doesn't? I'm all for enhancing Lift to be as good as

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-06-09 Thread Jonas Bonér
2009/6/9 David Pollak feeder.of.the.be...@gmail.com: Jonas, We always use Maven to load dependencies.  We never use GPL dependencies.  If you have a question about the license of a dependency and its use in Lift, please ping me privately. I am using Maven. But as I said I could not find the

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-06-09 Thread David Pollak
On Tue, Jun 9, 2009 at 10:13 AM, Jonas Bonér jbo...@gmail.com wrote: 2009/6/9 David Pollak feeder.of.the.be...@gmail.com: Jonas, We always use Maven to load dependencies. We never use GPL dependencies. If you have a question about the license of a dependency and its use in Lift,

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-06-09 Thread Jonas Bonér
First I like the printf-style logging API, similar to slf4j. Nice to use plus better performance. We can add that to Lift's logger (which can sit on top of slf4j) That would be great. Also, note that all of Lift's logger parameters are call-by-name so there's no evaluation unless the log

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-06-09 Thread Jonas Bonér
Re configgy. I think it is a great balance between properties and xml, like pragmatic xml. Simple as properties but with nesting, hierarchies, type conversions, good override and defaults system (inheritance). It also has notification of changes and a JMX API for management (which I have not

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-06-09 Thread Meredith Gregory
Jonas, Awesome! i look forward to digging into this stuff! Best wishes, --greg On Tue, Jun 9, 2009 at 6:18 AM, Jonas Bonér jbo...@gmail.com wrote: Hey guys. I have hacked together an early draft of the JTA transaction stuff. I have wrapped it up in a monad. Here are some examples of

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-06-09 Thread Derek Chen-Becker
In my email above I have the link to the Maven artifacts for Atomikos: http://mvnrepository.com/artifact/com.atomikos I think that the dependency you want is: dependency groupIdcom.atomikos/groupId artifactIdtransactions-jta/artifactId version3.2.3/version /dependency Derek On

[Lift] Re: Great pictures from the Scala Lift Off

2009-06-09 Thread Richard Dallaway
On 9 Jun 2009, at 17:21, Kevin Wright wrote: BTW, are you in need of someone to actually add a bit of content to that site? lsug.org is Aaron's site, and the code is: http://code.google.com/p/lsug-website/ -- I suspect it's very close to a default Lift Hello World site. I'd say it's

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-06-09 Thread Jonas Bonér
Thanks Derek. I missed that. I will fix the pom.xml. 2009/6/9 Derek Chen-Becker dchenbec...@gmail.com: In my email above I have the link to the Maven artifacts for Atomikos: http://mvnrepository.com/artifact/com.atomikos I think that the dependency you want is: dependency

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-06-09 Thread Jonas Bonér
Thanks Greg. And thanks for the suggestion to see transactions as monadic. All feedback is more than welcome. /Jonas 2009/6/9 Meredith Gregory lgreg.mered...@gmail.com: Jonas, Awesome! i look forward to digging into this stuff! Best wishes, --greg On Tue, Jun 9, 2009 at 6:18 AM, Jonas

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-06-09 Thread Jonas Bonér
Thanks Derek. Thanks for taking time to do a code review. I'll add that to the README. /Jonas 2009/6/9 Derek Chen-Becker dchenbec...@gmail.com: Jonas, the code looks great! I don't see any issues with how ScalaJPA is used. It's nice to see that this fits what you're doing well and I really

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-06-09 Thread Jonas Bonér
Now I have deleted the lib dir with all jars and fixed the POM. 2009/6/9 Derek Chen-Becker dchenbec...@gmail.com: In my email above I have the link to the Maven artifacts for Atomikos: http://mvnrepository.com/artifact/com.atomikos I think that the dependency you want is: dependency

Re: [scala] Re: [Lift] Programming in Scala #5, Lift Book #8, Beginning Scala #9

2009-06-09 Thread Alexy Khrabrov
Since the topic seems to have morphed into learning Scala and Lift by immersion in a day, as a recent Scala convert, I can't begin to emphasize how important it is to have the build infrastructure all done in a simple way to let novices focus on Scala. Lift is a good example where you have no

[Lift] Re: JTA Transaction Monad - Early Access Program

2009-06-09 Thread David Pollak
On Tue, Jun 9, 2009 at 1:08 PM, Jonas Bonér jbo...@gmail.com wrote: Now I have deleted the lib dir with all jars and fixed the POM. Thanks! 2009/6/9 Derek Chen-Becker dchenbec...@gmail.com: In my email above I have the link to the Maven artifacts for Atomikos:

[Lift] Re: fall-through redirect

2009-06-09 Thread David Pollak
Joe, See the enclosed code. The menu last menu item (see Boot.scala) is a fall through menu item that will intercept any request. The code is not as concise as Rails, but it's a corner case. Hope this helps. Thanks, David On Fri, Jun 5, 2009 at 10:37 AM, Joe Wass j...@folktunefinder.com

Re: [scala] Re: [Lift] Programming in Scala #5, Lift Book #8, Beginning Scala #9

2009-06-09 Thread Josh Suereth
I must say, I have not met a build system (besides automake) that exceeded make in complexity. The amount of funny exceptions to rules is astounding. I had far less trouble learning maven (in all its complexity) Sent from my iPhone On Jun 9, 2009, at 4:56 PM, Alexy Khrabrov