<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Latest Comments for astubbs</title><link>http://disqus.com/by/astubbs/</link><description></description><atom:link href="http://disqus.com/astubbs/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sat, 01 Nov 2014 12:39:22 -0000</lastBuildDate><item><title>Re: Is Late Night Eating Better for Fat Loss and Health?</title><link>https://leangains.com/is-late-night-eating-better-for-fat-loss-and-health/#comment-1664806533</link><description>&lt;p&gt;Epic&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">astubbs</dc:creator><pubDate>Sat, 01 Nov 2014 12:39:22 -0000</pubDate></item><item><title>Re: Why no mailboxSize in Akka 2&amp;#160;?</title><link>http://letitcrash.com/post/17707262394#comment-760169217</link><description>&lt;p&gt;We need it for tweaking and assessing performance of our system, and typesafe console for 2.1 still isn't out yet :/&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">astubbs</dc:creator><pubDate>Tue, 08 Jan 2013 12:19:26 -0000</pubDate></item><item><title>Re: A sample application showcasing play-mini and Akka </title><link>http://letitcrash.com/post/17888436664#comment-495370645</link><description>&lt;p&gt;Won't this block on parallel calls to the web service? As you're reusing the same shakespeare actor with the default dispatcher?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">astubbs</dc:creator><pubDate>Thu, 12 Apr 2012 08:57:00 -0000</pubDate></item><item><title>Re: A sample application showcasing play-mini and Akka </title><link>http://letitcrash.com/post/17888436664#comment-495369952</link><description>&lt;p&gt;See above.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">astubbs</dc:creator><pubDate>Thu, 12 Apr 2012 08:55:53 -0000</pubDate></item><item><title>Re: A sample application showcasing play-mini and Akka </title><link>http://letitcrash.com/post/17888436664#comment-493630258</link><description>&lt;p&gt;Ok, money where my mouth is. This seems to work, and I think the threading is correct. You can even hook into play2mini's Akka thread pool by creating your actor like: play.lib.Akka.system().actorOf(...)&lt;/p&gt;&lt;p&gt;Timeout timeout = new Timeout(Duration.parse("20 seconds"));&lt;br&gt;Future&amp;lt;object&amp;gt; future = Patterns.ask(myActor, new ClientMessage(null), timeout); Promise&amp;lt;object&amp;gt; sdf = Akka.asPromise(future); Promise&amp;lt;result&amp;gt; r2 = &lt;a href="http://sdf.map" rel="nofollow noopener" target="_blank" title="sdf.map"&gt;sdf.map&lt;/a&gt;(new Function&amp;lt;object, result=""&amp;gt;() {  @Override&lt;br&gt;	public Result apply(Object a) throws Throwable {     val wsrm = (MyMessage)a;     return ok((wsrm).val); // String value from message object   } }); Result test2 = async(r2); return test2;&lt;/p&gt;&lt;p&gt;Here's the gist: &lt;a href="https://gist.github.com/2354674" rel="nofollow noopener" target="_blank" title="https://gist.github.com/2354674"&gt;https://gist.github.com/235...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Then in your actor's receive method, make sure you sender().tell(new MyMessage("hello world from java akka!"));&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">astubbs</dc:creator><pubDate>Tue, 10 Apr 2012 17:23:11 -0000</pubDate></item><item><title>Re: Scalability of Fork Join Pool</title><link>http://letitcrash.com/post/17607272336#comment-492184651</link><description>&lt;p&gt;Ditto!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">astubbs</dc:creator><pubDate>Mon, 09 Apr 2012 11:06:10 -0000</pubDate></item><item><title>Re: http://letitcrash.com/post/14515696979</title><link>http://letitcrash.com/post/14515696979#comment-492167626</link><description>&lt;p&gt;Nice - what are those two programs you're using there? Is that SBT at the top?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">astubbs</dc:creator><pubDate>Mon, 09 Apr 2012 10:39:45 -0000</pubDate></item><item><title>Re: A sample application showcasing play-mini and Akka </title><link>http://letitcrash.com/post/17888436664#comment-489237267</link><description>&lt;p&gt;+1 java version...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">astubbs</dc:creator><pubDate>Fri, 06 Apr 2012 16:00:37 -0000</pubDate></item><item><title>Re: Things that are easier in Scala vol. 2</title><link>http://www.themcwongs.com/?p=74#comment-14422877</link><description>&lt;p&gt;Ah yes of course - I remembered that soon after I posted :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">astubbs</dc:creator><pubDate>Fri, 07 Aug 2009 07:32:39 -0000</pubDate></item><item><title>Re: Things that are easier in Scala vol 1</title><link>http://www.themcwongs.com/?p=50#comment-13986738</link><description>&lt;p&gt;A couple of things..&lt;/p&gt;&lt;p&gt;a) If you make it a trait - you can mix it in and just call tryNTimes without the object classifier - that's closer still, right?&lt;/p&gt;&lt;p&gt;b) You can still retry and function, by creating a curried function or function pointer and passing that in:&lt;/p&gt;&lt;p&gt;def myFunc(s:String) { println(s) }&lt;br&gt;def toRetry = myFunc("Hi!")&lt;br&gt;tryNTimes(toRetry, 5)&lt;/p&gt;&lt;p&gt;right? I used this style in some test code I just wrote, where I had a test sequence that applied to several code blocks, some that took params.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">astubbs</dc:creator><pubDate>Wed, 05 Aug 2009 12:54:11 -0000</pubDate></item><item><title>Re: Things that are easier in Scala vol. 2</title><link>http://www.themcwongs.com/?p=74#comment-13986240</link><description>&lt;p&gt;Nice - I like. Were all those exceptions run time exceptions - is that why you aren't catching them?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">astubbs</dc:creator><pubDate>Wed, 05 Aug 2009 12:44:21 -0000</pubDate></item></channel></rss>