tag:blogger.com,1999:blog-22587889.post843051292690060587..comments2024-02-11T13:21:47.930+05:30Comments on Ruminations of a Programmer: Infinite Streams using Java ClosuresAnonymoushttp://www.blogger.com/profile/01613713587074301135noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-22587889.post-9188488522622860362008-08-25T11:09:00.000+05:302008-08-25T11:09:00.000+05:30パソコン自作アフィリエイトブログアフィリエイト多重債務投資お取り寄せグルメ横浜中華街不動産ウィークリ...<A HREF="http://www.faith-go.co.jp/" REL="nofollow">パソコン自作</A><BR/><A HREF="http://kazuboy.jp/blog/" REL="nofollow">アフィリエイト</A><BR/><A HREF="http://kazuboy.jp/blog/" REL="nofollow">ブログアフィリエイト</A><BR/><A HREF="http://www.sc-salon.jp/" REL="nofollow">多重債務</A><BR/><A HREF="http://www.yieldtrust-top.com/" REL="nofollow">投資</A><BR/><A HREF="http://www.ikinet.jp/" REL="nofollow">お取り寄せグルメ</A><BR/><A HREF="http://www.koushouki.com" REL="nofollow">横浜中華街</A><BR/><A HREF="http://www.2dou3.com" REL="nofollow">不動産</A><BR/><A HREF="http://www.good-stay.net" REL="nofollow">ウィークリーマンション</A><BR/><A HREF="http://www.data110.jp/RAID" REL="nofollow">復旧</A><BR/><A HREF="http://www.omakasetai.com/太陽光" REL="nofollow">発電</A><BR/><A HREF="http://www.dokechi.com" REL="nofollow">価格</A><BR/><A HREF="http://www.lingollc.com" REL="nofollow">toefl</A><BR/><A HREF="http://www.livedata.jp" REL="nofollow">データ復旧</A><BR/><A HREF="http://www.shoppingwaku.com/" REL="nofollow">ショッピング枠 現金化</A><BR/><A HREF="http://www.salessupport.jp/" REL="nofollow">テレマーケティング</A><BR/><A HREF="http://y-goodhome.com/" REL="nofollow">横浜 賃貸</A><BR/><A HREF="http://www.chouka.jp/" REL="nofollow">釣り</A><BR/><A HREF="http://www.rs-holdings.net/" REL="nofollow">害虫駆除</A><BR/><A HREF="http://www.winwin-iw.com/" REL="nofollow">株式投資</A><BR/><A HREF="http://www.2dou3.com" REL="nofollow">賃貸</A> <BR/><A HREF="http://www.data110.jp/" REL="nofollow">データ復旧</A><BR/><A HREF="http://www.kaigo-sora.co.jp" REL="nofollow">介護</A><BR/><A HREF="http://www.sanyukk.com" REL="nofollow">不動産担保ローン</A><BR/><A HREF="http://lei.ne.jp/h/" REL="nofollow">ウエディング</A><BR/><A HREF="http://lei.ne.jp/h/w-dress/" REL="nofollow">ウエディングドレス</A><BR/><A HREF="http://www.kaigo-sora.co.jp" REL="nofollow">看護師</A>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-22587889.post-20248637474194231132008-08-25T11:07:00.000+05:302008-08-25T11:07:00.000+05:30会社設立転職 バイアグラ結婚指輪結婚式 演出釣具メタボ対策データ復元治験データ復旧RMTフローリン...<A HREF="http://www.kaisha-seturitsu.com" REL="nofollow">会社設立</A><BR/><A HREF="http://www.wayzup.com" REL="nofollow">転職</A> <BR/><A HREF="http://www.daishin.biz/DAN/DAN.html" REL="nofollow">バイアグラ</A><BR/><A HREF="http://www.j-gala.co.jp/" REL="nofollow">結婚指輪</A><BR/><A HREF="http://www.beatitudevfx.com/" REL="nofollow">結婚式 演出</A><BR/><A HREF="http://www.chouka.jp/tackle.html" REL="nofollow">釣具</A><BR/><A HREF="http://www.30upclub.com/meta/index.html" REL="nofollow">メタボ対策</A><BR/><A HREF="http://www.data110.jp/" REL="nofollow">データ復元</A><BR/><A HREF="http://www.mvn.jp" REL="nofollow">治験</A><BR/><A HREF="http://www.117-web.com" REL="nofollow">データ復旧</A><BR/><A HREF="http://www.wired-rmt.jp" REL="nofollow">RMT</A><BR/><A HREF="http://www.woodbank.jp/index.html" REL="nofollow">フローリング</A><BR/><A HREF="http://www.adire.jp/cashing/index.html" REL="nofollow">キャッシング</A><BR/><A HREF="http://www.woodbank.jp/nara-1.html" REL="nofollow">オーク</A><BR/><A HREF="http://www.mcube.jp/womans/explanation/fibroid.html" REL="nofollow">子宮筋腫</A><BR/><A HREF="http://www.cleat.bz" REL="nofollow">副業 清掃</A><BR/><A HREF="http://www.ec-engine.jp" REL="nofollow">ECサイト構築</A><BR/><A HREF="http://man3.jp" REL="nofollow">ウィークリーマンション</A><BR/><A HREF="http://www.monthly-urban.com" REL="nofollow">マンスリーマンション 東京</A><BR/><A HREF="http://www.koukokunavi.jp" REL="nofollow">就職ナビ</A><BR/><A HREF="http://www.koukokunavi.jp" REL="nofollow">広告業界</A><BR/><A HREF="http://www.dentouin.or.jp/" REL="nofollow">永代供養</A><BR/><A HREF="http://drprojet.com/" REL="nofollow">アンチエイジング 化粧品</A><BR/><A HREF="http://www.adultshop.co.jp/" REL="nofollow">アダルトグッズ</A><BR/><A HREF="http://zensyoji.or.jp/" REL="nofollow">永代供養</A><BR/><A HREF="http://www.chizai-job.com/" REL="nofollow">特許事務所</A><BR/><A HREF="http://www.daichou-koumon.com/" REL="nofollow">痔</A><BR/><A HREF="http://www.legal-lab.com/" REL="nofollow">会社設立</A><BR/><A HREF="http://www7b.biglobe.ne.jp/~houjyu/" REL="nofollow">永代供養</A><BR/><A HREF="http://www.jinmyouji-nokotsudo.jp/" REL="nofollow">納骨堂</A><BR/><A HREF="http://www.sweepdesign.jp/wakaresase/" REL="nofollow">別れさせ屋</A><BR/><A HREF="http://www.30upclub.com/items/muscle2.html" REL="nofollow">マッスルトレーナー</A><BR/><A HREF="http://www.30upclub.com/items/muscle2.html" REL="nofollow">ウォーキングシューズ</A><BR/><A HREF="http://www.30upclub.com/items/shape_getia.html" REL="nofollow">サウナスーツ</A><BR/><A HREF="http://www.miraiclub.jp/" REL="nofollow">有料老人ホーム</A><BR/><A HREF="http://www.max.ac.jp/" REL="nofollow">美容学校</A><BR/><A HREF="http://www.chizai-job.com" REL="nofollow">弁理士</A><BR/><A HREF="http://www.green-f.biz" REL="nofollow">アメリカ ビザ</A><BR/><A HREF="http://pc.m-friend.jp/index1.asp" REL="nofollow">メル友</A><BR/><A HREF="http://www.legal-agent.jp" REL="nofollow">法律事務所 求人</A><BR/><A HREF="http://www.kajimitsuo.com/" REL="nofollow">債務整理</A><BR/><A HREF="http://www.maru-maru.jp/houjin/lease/index.html" REL="nofollow">オペレーティングリース</A><BR/><A HREF="http://www.mcube.jp/operative/explanation/sweating.html" REL="nofollow">手 汗</A><BR/><A HREF="http://www.mcube.jp/operative/explanation/sweating.html" REL="nofollow">手掌多汗症</A><BR/><A HREF="http://www.refonavi.com/" REL="nofollow">マンションリフォーム</A><BR/><A HREF="http://www.refonavi.com/" REL="nofollow">住宅リフォーム</A><BR/><A HREF="http://www.ikyoku-jinji.com" REL="nofollow">医師 募集</A><BR/><A HREF="http://www.ikyoku-jinji.com" REL="nofollow">医師 求人</A><BR/><A HREF="http://www.ikyoku-jinji.com" REL="nofollow">医師 転職</A><BR/><A HREF="http://www.daichou-koumon.com" REL="nofollow">脱腸</A> <BR/><A HREF="http://pc-i-qpit.jp/omiai" REL="nofollow">お見合い</A> <BR/><A HREF="http://shinnihongroup.jp/bochi.html" REL="nofollow">東京都 墓地</A>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-22587889.post-52052428399744358832008-08-15T07:34:00.002+05:302008-08-15T07:34:00.002+05:30埼玉 不動産三井ダイレクトカラーコンタクトカーボンオフセットコンタクトレンズ知多半島 温泉知多半島 ...<A HREF="http://www.stk-group.com/index.html/" REL="nofollow">埼玉 不動産</A><BR/><A HREF="http://www.jidousya-hoken.net/details/mitsui" REL="nofollow">三井ダイレクト</A><BR/><A HREF="http://www.dekame.com/" REL="nofollow">カラーコンタクト</A><BR/><A HREF="http://ecomarketing.jp/" REL="nofollow">カーボンオフセット</A><BR/><A HREF="http://www.tealla.jp/" REL="nofollow">コンタクトレンズ</A><BR/><A HREF="http://www.shoutou.net/" REL="nofollow">知多半島 温泉</A><BR/><A HREF="http://www.shoutou.net/" REL="nofollow">知多半島 旅館</A><BR/><A HREF="http://www.lillifee.jp" REL="nofollow">プリンセスルーム</A><BR/><A HREF="http://www.jidousya-hoken.net/details/axa" REL="nofollow">アクサダイレクト</A><BR/><A HREF="http://www.2dou3.com" REL="nofollow">賃貸</A><BR/><A HREF="http://www.2dou3.com" REL="nofollow">不動産</A><BR/><A HREF="http://buy.2dou3.com" REL="nofollow">不動産投資</A><BR/><A HREF="http://www.a-fudosan.jp" REL="nofollow">岡山 不動産</A><BR/><A HREF="http://www.agitarweb.org/" REL="nofollow">网络营销</A><BR/><A HREF="http://www.lillifee.jp" REL="nofollow">輸入雑貨</A><BR/><A HREF="http://www.fasciere.jp" REL="nofollow"> セルライト</A>note1https://www.blogger.com/profile/00244033208543850840noreply@blogger.comtag:blogger.com,1999:blog-22587889.post-2727793558274453222008-08-15T07:34:00.001+05:302008-08-15T07:34:00.001+05:30出会いサイト自動車保険自動車保険 比較お見合いパーティーチューリッヒ自動車 保険 見積不動産ソニー損...<A HREF="http://deai-ch.jp/?c=home" REL="nofollow">出会いサイト</A><BR/><A HREF="http://www.jidousya-hoken.net" REL="nofollow">自動車保険</A><BR/><A HREF="http://www.jidousya-hoken.net" REL="nofollow">自動車保険 比較</A><BR/><A HREF="http://www.yumeki.com/hp_top_w.html" REL="nofollow">お見合いパーティー</A><BR/><A HREF="http://www.jidousya-hoken.net/details/zurich/" REL="nofollow">チューリッヒ</A><BR/><A HREF="http://www.jidousya-hoken.net" REL="nofollow">自動車 保険 見積</A><BR/><A HREF="http://www.fudousanget.com" REL="nofollow">不動産</A><BR/><A HREF="http://www.jidousya-hoken.net/details/sony" REL="nofollow">ソニー損保</A><BR/><A HREF="http://www.j-payment.co.jp/" REL="nofollow">カード決済</A><BR/><A HREF="http://www.implant-dr.jp" REL="nofollow">インプラント</A><BR/><A HREF="http://www.jpsyogun.com" REL="nofollow">ショッピングカート</A><BR/><A HREF="http://www.pharcyde.jp/" REL="nofollow">東京 ホームページ制作</A><BR/><A HREF="http://www.fudousanget.com" REL="nofollow">不動産投資</A><BR/><A HREF="http://www.ryoko.gr.jp/mailorder/index.html" REL="nofollow">アスクル</A>note1https://www.blogger.com/profile/00244033208543850840noreply@blogger.comtag:blogger.com,1999:blog-22587889.post-1291963249220605262007-11-12T14:49:00.000+05:302007-11-12T14:49:00.000+05:30Hi Prashant -It is good to find that ur problems h...Hi Prashant -<BR/><BR/>It is good to find that ur problems have been fixed. I just now logged in and found the trail from Prashant. Thanks Ricky for all the help.<BR/><BR/>Closures indeed provide great power of abstractions. I will be extremely disappointed if we miss it out in Java 7.<BR/><BR/>Cheers.Anonymoushttps://www.blogger.com/profile/01613713587074301135noreply@blogger.comtag:blogger.com,1999:blog-22587889.post-19843093392852598032007-11-12T13:20:00.000+05:302007-11-12T13:20:00.000+05:30Ricky,Thanks a lot for your gr8 tip and yes it wor...Ricky,<BR/><BR/>Thanks a lot for your gr8 tip and yes it worked finally and i am very happy that i can try a lot of examples now.<BR/><BR/>It worked when i added "-d ." which allowed as you suggested to create a new directory and added OO class.<BR/><BR/>so finally my javac looks like<BR/><BR/>javac -d . -J-Xbootclasspath/p:c:/closures/lib/javac.jar -source 7 *.java<BR/><BR/>and running in XP does not change any thing.<BR/><BR/>Debasish thanks a lot for allowing to act as mediator pattern between me and ricky to solve this :-)<BR/><BR/>Thanks<BR/>Prashant JalasutramJPhttps://www.blogger.com/profile/02049809664724727115noreply@blogger.comtag:blogger.com,1999:blog-22587889.post-41738403211530934592007-11-12T13:12:00.000+05:302007-11-12T13:12:00.000+05:30Ricky,And value of %Classpath% isC:\closures\test\...Ricky,<BR/><BR/>And value of %Classpath% is<BR/><BR/>C:\closures\test\tools\javac\closures>set classpath<BR/>CLASSPATH=C:\Program Files\Java\jdk1.6.0\lib;.;<BR/><BR/>C:\closures\test\tools\javac\closures><BR/><BR/>Thanks<BR/>PrashantJPhttps://www.blogger.com/profile/02049809664724727115noreply@blogger.comtag:blogger.com,1999:blog-22587889.post-5031691058849887062007-11-12T13:10:00.000+05:302007-11-12T13:10:00.000+05:30Ricky,I cannot see any folders getting created whe...Ricky,<BR/><BR/>I cannot see any folders getting created when it compiles successfully.<BR/><BR/>Command i am using:<BR/>C:\closures\test\tools\javac\closures><BR/>javac -J-Xbootclasspath/p:c:/closures/lib/javac.jar -source 7 Demo.java<BR/><BR/>and then i try to run but fail almost all the times like<BR/><BR/>java -Xbootclasspath/p:c:/closures/lib/javac.jar Demo<BR/><BR/>Thanks<BR/>PrashantJPhttps://www.blogger.com/profile/02049809664724727115noreply@blogger.comtag:blogger.com,1999:blog-22587889.post-14602584696151296662007-11-12T12:49:00.000+05:302007-11-12T12:49:00.000+05:30Prashant:What command are you using to compile? I...Prashant:<BR/><BR/>What command are you using to compile? If you're not specifying the classpath on that command, what value does %CLASSPATH% have?<BR/><BR/>When you compile, some classes are created. For me, a javax/ directory appears in the same directory my .class file appears in (assuming no package statement in the source). You'll need to make sure that the directory above javax/ is on the classpath.<BR/><BR/>I think this is only a prototype issue, and that in a release the types will be generated by the VM as needed, much as array types are.Ricky Clarksonhttps://www.blogger.com/profile/13845104548520132930noreply@blogger.comtag:blogger.com,1999:blog-22587889.post-43104013775208435762007-11-12T09:10:00.000+05:302007-11-12T09:10:00.000+05:30Good post debasish.But can you please help me out ...Good post debasish.<BR/><BR/>But can you please help me out most of my programs in closures won't run in windowsXP?<BR/><BR/>I always get<BR/>C:\closures\test\tools\javac\closures>java -Xbootclasspath/p:c:/closures/lib/javac.jar StreamTest<BR/>Exception in thread "main" java.lang.NoClassDefFoundError: javax/lang/function/OO<BR/><BR/>C:\closures\test\tools\javac\closures><BR/><BR/>I could manage only very few closure examples to run.<BR/><BR/>Thanks<BR/>Prashant jalasutram<BR/>http://prashantjalasutram.blogspot.com/JPhttps://www.blogger.com/profile/02049809664724727115noreply@blogger.comtag:blogger.com,1999:blog-22587889.post-48159790296504294312007-11-09T21:13:00.000+05:302007-11-09T21:13:00.000+05:30Silly me ! It just blew off me that {? super E=>? ...Silly me ! It just blew off me that {? super E=>? extends R} is the same as {E=>R}. Thanks for reminding me. I would have required the <BR/>indirection in case I had an extends on the left hand side. I am not changing the post - just adding an Update on the changes. <BR/>Thanks for the comment.Anonymoushttps://www.blogger.com/profile/01613713587074301135noreply@blogger.comtag:blogger.com,1999:blog-22587889.post-80470980965283243412007-11-09T17:27:00.000+05:302007-11-09T17:27:00.000+05:30And here's my 'answer': http://pastebin.com/f5e4fd...And here's my 'answer': http://pastebin.com/f5e4fd1ab<BR/><BR/>In short, because {A=>B} can be read as {? super A=>? extends B}, you don't need to add it yourself.<BR/><BR/>All I did was delete Unary and replace it with straight {A=>B}. Perhaps I missed something, but the code compiles and runs fine. If I missed something, add a test case that fails and I'll try again.Ricky Clarksonhttps://www.blogger.com/profile/13845104548520132930noreply@blogger.comtag:blogger.com,1999:blog-22587889.post-61852416801443663662007-11-09T09:46:00.000+05:302007-11-09T09:46:00.000+05:30@Ricky:Here is the stuff in a single file .. http:...<I>@Ricky:</I><BR/><BR/>Here is the stuff in a single file .. http://docs.google.com/Doc?id=drm7v5q_11gv4m4p .. I would also love to get rid of Unary.Anonymoushttps://www.blogger.com/profile/01613713587074301135noreply@blogger.comtag:blogger.com,1999:blog-22587889.post-70755538132535624892007-11-09T06:27:00.000+05:302007-11-09T06:27:00.000+05:30I'm not sure that Unary is necessary, can you put ...I'm not sure that Unary is necessary, can you put all the code together so that I can play with it (one or multiple files is fine)?<BR/><BR/>I've just been covering that sicp chapter, so this is interesting.Ricky Clarksonhttps://www.blogger.com/profile/13845104548520132930noreply@blogger.com