6. ã³ã³ãã¤ã«ã«æéããããã class C<T> { C() {} C(T t) {} C(C<T> c) {} static <U> C<U> m(C<U> c) {return c;} public static void main(String... args) { C<String> c = m(new C<>(m(new C<>(m(new C<>())))); // 1ç§ä»¥ä¸ } }
2015.04.24 JJUGãã¤ãã»ãã Javaã®ããã°ã©ã ã¯ã©ããã£ã¦åãã¦ããã®? JVMç·¨Read less
1. ä¾å¤è¨è¨ ã«ããã大罪 åç° å人 (a.k.a id:t-wada or @t_wada) Jun 27, 2012 @ java-ja 12å¹´6æ28æ¥æ¨ææ¥ 2. èªå·±ç´¹ä» åå: åç° å人 (ãã ããã¨) ããã°: http://d.hatena.ne.jp/t-wada ã¡ã¼ã«: takuto.wada@gmail.com Twitter: http://twitter.com/t_wada ã¿ã¯ã¼ãºï½¥ã¯ã¨ã¹ãæ ªå¼ä¼ç¤¾ åç· å½¹ç¤¾é· 12å¹´6æ28æ¥æ¨ææ¥
2. 2 ã¯ãã㫠⢠ããã¹ã¬ããããå¤æ°aVariableã«å¤ãä»£å ¥ aVariable = 3; ⢠é常ãªãä»ã®ã¹ã¬ããã¯åé¡ãªã aVariable=3 ã¨ãã¦å¤ãè¦ããã â»ãã ããæ£ããåæåããã¦ããå ´åã®ã¿ã ⢠éã«åæåããã¦ããªãã¨æ¬¡ã®ãããªåé¡ãçºç 3. 3 ã¡ã¢ãªãããã»ããµã®åé¡ â¢ ã³ã³ãã¤ã©ãã½ã¼ã¹ã³ã¼ãã«æ¸ããã¦ãã常èçãªé åºã§ãªãé åºã§å½ä»¤ãä½ã ã ãã ⢠å¤æ°ãã¡ã¢ãªã§ã¯ãªãããã»ããµã®ã¬ã¸ã¹ã¿ã«ä¿åããã ⢠ããã»ããµãè¤æ°ã®å½ä»¤ãå¹³è¡ã«å®è¡ããããã³ã³ãã¤ã©ãä½ã£ãã³ã¼ãã¨ã¯é ãé åºã§å½ä»¤ãå®è¡ããã ⢠ãã£ãã·ã¥ã®ä»å¨ã«ãã£ã¦ãå¤æ°ã¸ã®æ¸ãè¾¼ã¿ã主è¨æ¶ã«ã³ããããããé åºã å¤ããã ⢠ããã»ããµãã¼ã«ã«ãªãã£ãã·ã¥ã«ä¿åãããå¤ãä»ã®ããã»ããµããè¦ããªã ãã¨ãããã 5. 5 ã¡ã¢ãªã¢ãã«ã®èª²é¡ â¢ å ±æã¡ã¢ãªã使ããã«ãã
7. ãã¾ã«ã¿ãå®è£ static Map<BigInteger, List<BigInteger>> cache = new HashMap<>; void doGet(â¦) { BigInteger n = â¦; List<BigInteger> result = cache.get(n); if (result == null) { result = PrimeFactor.divide(n); // ç´ å æ°å解 cache.put(n, result); } // ⦠} 8. ãã¾ã«ã¿ãå®è£ static Map<BigInteger, List<BigInteger>> cache = new HashMap<>; void doGet(â¦) { BigInteger n = â¦; List<BigInteger> result = cache.get(n); if (resu
1. ãJJUG CCC 2014 Spring H-Ââ2ã Javaãã©ãã«ã«åããã æ¥æ¬Javaã¦ã¼ã¶ã°ã«ã¼ã ä¸å¦» å®äºº (ããã¤ã¾ ã®ãã¨) ã¯ã¦ãªããã° : n-agetsuma.hatenablog.com 2. èªå·±ç´¹ä» ä¸å¦» å®äºº (ããã¤ã¾ ã®ãã¨) nï®â¯ é»è©±ã®è£å´ãä½ã£ã¦ããä¼ç¤¾ã§åãã¦ãã¾ã nï®â¯ Java/APãµã¼ãã®ç¤¾å æè¡ãµãã¼ãããã©ãã«è§£æ nï®â¯ Blog ãè¦ç¿ãããã°ã©ãã³ã°æ¥è¨ã ãJJUG CCC 2014 Spring H-Ââ2ã
21. Java Mission Control ⢠Oracle JDK7u40以é æ¨æºã§ã¤ãã¦ãã ⢠FlightRecorderã¨ã®é£æºãå¼·å ⢠ããªã¬ã¼æ©è½ ⢠CPU使ç¨çãé¾å¤ãè¶ ãããã¡ã¼ã«ã ããªã© 22. Flight Recorderã£ã¦ ⢠JVM, OS, Javaã¢ããªã®æ å ±ãåéã»èç© â¢ ä½ããã®ããªã¬ã¼ã§ãã®æ å ±ãåºåã§ãã ⢠JVMã®ä¸ã«çµã¿è¾¼ã¾ãã¦ãããããªã¼ãã¼ ããããå°ãªã(Oracle社æ°ã1%æªæº) ⢠-XX:+UnockComercialFeatures -XX: +FlightRecorder ⢠åç¨å©ç¨ã®å ´åã¯æå
é´æ¨ è²´å ¸ï¼æ¨æ å®å¤ªé Twitterã®Nathan Marzæ°ãéçºãã¦ãã ãStormã ã 2011å¹´9æã«ããªã¼ãã³ã½ã¼ã¹ã¨ãã¦å ¬éããã¾ããããã¾ã ã¾ã æ¥æ¬ã§å¾ãããæ å ±ã¯å°ãªãã 詳細ã¯ä¸æãªã¨ãããå¤ãã§ãã ããã§ãæ¥æ¬åï¼ãã¶ãï¼ã®ãStormãã»ãã·ã§ã³ãè¡ãã¾ãã ãStormãã¯ãCEPï¼Complex Event Processingï¼è¤åã¤ãã³ãå¦çï¼ã«å±ãããããã¯ãã§ããã åæ£ãªã¢ã«ã¿ã¤ã å¦çãè¡ãããã®åºæ¬ã»ãããæä¾ãã¦ãã¾ãã ä»åã®ã»ãã·ã§ã³ã§ã¯ããã®æ¦å¿µãç¹æ§ãªã©ã«ã¤ãã¦è§£èª¬ãã¦ã¿ã¾ããRead less
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}