â JSR 292: Supporting Dynamically Typed Languages on the JavaTM Platform http://jcp.org/en/jsr/detail?id=292
10å¨ãããé ãã¦ããæãããã¾ããæ°ã«ããç´¹ä»ãã¾ãããªãå®è£ ã¯JDKã«ãã£ã¦ç°ãªãå¯è½æ§ãããã®ã§ããæå ã®JDKã«ä»å±ãã¦ããã³ã¼ããã覧ã«ãªããã¨ããããããã¾ãã java.util.concurrent.atomic.AtomicInteger ããã¯ããªã¼ã§ã¹ã¬ããã»ã¼ããªå®è£ ãå®ç¾ãã¨ã§æåãªjava.util.concurrent.atomicããã±ã¼ã¸ã®ä»£è¡¨æ ¼ããããªããããã¨ãã©ãå®è£ ãã¦ããã®ãï¼ã¨ããã®ã¯èª°ãã1度ã¯æ°ã«ãªãã¯ããopenjdk7ã®ã³ã¼ããèªãã¨ãããªæãã§ãã public final int incrementAndGet() { for (;;) { int current = get(); int next = current + 1; if (compareAndSet(current, next)) return next; } } C
2011-08-02è¿½è¨ JDK7ã«è´å½çãªãã° éè¦ãªã®ã§å é ã«è¿½è¨ãã¦ããã¾ãããJDK7ã®ãããã¹ãããã³ã³ãã¤ã©ã«è´å½çãªãã°ãåå¨ããããã§ãã 詳ããã¯ã³ãã©ã http://d.hatena.ne.jp/takahashikzn/20110802 JDK7ã使ç¨ããéã¯ã注æä¸ããã (Javadocã®ã¹ã¿ã¤ã«ãã¬ã©ã£ã¨å¤ããã¾ãã!!) http://www.oracle.com/technetwork/java/javase/jdk7-relnotes-418459.html JDK7ã®æ£å¼çããªãªã¼ã¹ããã¦ãã¾ãã èå³æ·±ãæ©è½ãAPIãªã©ã追å ããã¦ããããã§ããã ãã®ä¸ã§ãã¿ããªä¸çªæ°ã«ãªãã¨ããã§ãããJavaè¨èªä»æ§ã®å¤æ´ã«ã¤ãã¦ãç´¹ä»ã ãã¨ã¯ãå人çã«java.lang.invokeãªãã¦ã¢ã¤ã·ã²ãªããã±ã¼ã¸ãæ°ã«ãªã£ã¦ããã®ã§ãã⦠APIãè¦ãéããå
ãç¥ãï¼Java SE 7 æ£å¼ãªãªã¼ã¹ 2011å¹´7æ29æ¥ at 2:00 åå 3件ã®ã³ã¡ã³ã æ¬æ¥ï¼2011å¹´07æ28æ¥(æ¥æ¬æé29æ¥ æ¥æ¬ã§ããããã28æ¥ã ã£ãããã§ãã)ï¼Java SE 7 ãæ£å¼ã«ãªãªã¼ã¹ããã¾ãããï¼å¹´ã¶ãã®ãªãªã¼ã¹ã¨ãªã Java SE 7 ã§ãããJava SE 7 ã¯é²åã¨ãã¦ä½ç½®ã¥ãããã¦ãããã¼ã¸ã§ã³ã«ãªãã¾ããããã§è¨ãé²åã¨ã¯è¨èªä»æ§ã«å¯¾ããå¤§å¹ ãªå¤æ´ã¯ãªããéçºçç£æ§ã®åä¸ãã©ã¤ãã©ãªã®ã¢ãããã¼ãçãå¤ããä»ã¾ã§ Java SE 5, 6 çã§éçºããã¦ãã¦é ãã Java éçºè ã¯æ¯è¼çããã¦ããã«ç§»è¡ãå¯è½ã«ãªã£ã¦ãã¾ããProject Coin, NIO.2 çã«ããå¯èªæ§ãéçºçç£æ§ãåä¸ããææ°ã® Java SE ãå ¥æé ãæ¯ééçºç¾å ´ã§ã使ç¨ãã ããã ãµãã¼ãç°å¢ã¯ãã¡ã Java SE 7ã«é¢ããããã¥ã¡ã³ã ãã¥ã¼
10ä¸è¡ã³ã¼ãèªãã ãJavaåãããã£ã¦Twitterã«æ¸ããããããå¢ãã§RTãããã®ã§ã調åã«ä¹ã£ã¦ææã¨ã³ããªæ¸ããã Java Core API JDKã¤ã³ã¹ãã¼ã«ãããã£ã¬ã¯ããªã«å ¥ã£ã¦ãsrc.zipãå±éããã¨å ¥ã£ã¦ãããèªãã¨è¯ããã ããè¿ãã«ããã®ããèªãã£ã¦ã®ã¯ã¡ã³ã¿ã«çã«æ¥½ã§ããã å³å¯ã«ã¯OSSãããªãã¦åã«å ¬éããã¦ãã£ã¦ã ããªãã ãã©ããJavaããã°ã©ããªã®ã«ã³ã¢APIã®ã³ã¼ãèªãã§ãªãã¨ãç¡ãããï¼ ã©ãããèªãã°è¯ããåããããã£ããã java.lang java.util java.io java.text 辺ããã¾ãã¯ããã³ã¨ç解ãããã¨ãå½ç¶ã³ã¼ããèªã¿çµãã£ãããããã使ã£ã¦ã³ã¼ããæ¸ãäºã OpenJDK http://hg.openjdk.java.net/jdk7/jdk7 OpenJDKãèªããã¨ã§ãããã°ã©ã è¨èªãã¦ã®Javaã§ã¯ãª
0x00. ã¯ããã« çè ã¯Java製ã®WAF(Web Application Firewall)ãGuardian@JUMPERZ.NETã®éçºã¨ã¡ã³ããã³ã¹ãè¡ã£ã¦ãããå ã¯èªç¤¾ã®ã·ã¹ãã ãå®ãããã«ï¼ããã¦åå趣å³ã§ï¼ä½ã£ããã®ã ããæ°å¹´åã«ãããã³ã¢ã®ã¨ã³ã¸ã³ã¨ãã¦ããã«æ¡å¼µããSaaSåã®åç¨ãµã¼ãã¹ãScutum(ã¹ãã¥ã¼ã¿ã )ããç«ã¡ä¸ããã ãã®å¾é 調ã«é¡§å®¢ãç²å¾ãããã¨ãã§ããã·ã¹ãã ãªã½ã¼ã¹çã«ãå¢å¼·ãå¿ è¦ã¨ãªã段éãªã©ãçµé¨ãããGoogleãmixiãã¯ã¦ãªçããã¾ãã¾ãªå¤§è¦æ¨¡ãµã¤ãã®ã¤ã³ãã©ã¨ã³ã¸ãã¢ã®æ¹ã ãã¤ã³ãã©è¨è¨ã«é¢ããèãæ¹ãªã©ãã¤ã³ã¿ã¼ãããä¸ã§å ¬éãã¦ããã¦ãããããã§ãåæã®ã·ã¹ãã è¨è¨æã«ãå°æ¥çã«ã¹ã±ã¼ã«ã¢ã¦ãå¯è½ãªã·ã¹ãã æ§æã«ãã¦ãããã¨ããéè¦ã§ããã¨ãããã¨ãããã£ã¦ããããã®æãã«å¾ã£ã¦ãããããã§ããªã½ã¼ã¹ã®é¼è¿«ï¼ã¡ãªã¿ã«ä»åã¯CP
ãé¡: Java 30byte FizzBuzz - ããã°ã©ãã¼ã®è³ã¿ã ããFizzBuzzã110æåã§æ¸ãããªãã1æå2bitã®æåã³ã¼ãã§è¨è¿°ããã°220bitã§è¨è¿°ã§ãããbyteã«ç´ãã¨28byteã«ãªãã ãªãç¡è¶è¨ããªãã ããã ãããã1æå2bitããæåã4種é¡ããæ±ããªããããªãã ããããã¾ããã«ã1æååä½ã§ã¡ããã¨ç¬¦å·åã§ãããã¨ããç¸ããªããå®éä½bitãªãFizzBuzzãè¨è¿°ã§ããããã£ã¦ã¿ãã æ¹é ã¾ããFizzBuzzèªä½ããªãã¹ãçãããã â 使ç¨ããã¦ããæåã®ç¨®é¡ãå°ãªãããã â ã½ã¼ã¹ããªãã¹ãçããªã符å·åã®æ¹æ³ãä½ãã â æåã³ã¼ãä½æã çµæ FizzBuzz(97æå)ã¯35種é¡ã®æåã§æ¸ãã¦ãä¸æã符å·åããã¨59ãã¤ãã«ãªããã daphne:FizzBuzz terazzo$ ls -l src/z.java -rw
2010-07-16 Java: å ¬å¼ãµã¤ããå¼è¶ãä¸ prog Java ã®éçºè åãå ¬å¼ãµã¤ãã¯ããã¾ã§ http://java.sun.com ã¨ãã URL ã§éå¶ããã¦ãããã7 æä¸ã« Oracle ã®ãµã¤ãã¸å¼ã£è¶ãããããæ°ãã URL 㯠http://www.oracle.com/technetwork/java/index.html ã«ãªãããã§ã«ããããã¼ã¸ã¯åå¨ãã¦ããã 2010-07-16 Java: PermGen ã¯ãã¼ãã®å¤ prog ä»é ç¥ã£ããPermGen ãæ®éã«ãã¼ãå ã ã¨æã£ã¦ã¾ããã
追è¨ï¼ ææã®éãã§ãç¾å®çãªé£çµåæ°ã§ã®è¨æ¸¬ã§ããªãã§ãããçµ±è¨ææ³ãç¨ããåæããã¦ããªãã®ã§ããã®ã¨ã³ããªã®è¨æ¸¬å¤ã¯å½ã¦ã«ããªãã§ãã ããããªã®ã§ä»¥ä¸ã®ããã°ãåèã«ãã¦ãã ããã currentTimeMillis()ã§è¨æ¸¬ãã¦ãã㦠plusTime:14780, concatTime:7053, sbuilderTime:7, sbufferTime:13 ã¨ãããã®7ã¨ã13ã®æå¹æ°åã¯ããã¤ã ã£ã¦ã®ã æ¿ããä»æ´æãããã¿ã¤ãã«ã§ãã(ï¼ã»âã») æã«åãä¸ããã®ã§ããã æååã®çµåãããããã¨ãã£ã¦ãããã«Stringã®+ãã¤ãã£ã¦ã¯ãããªã - ãã ããã¡âãã¨ãã®æè¡æ¥èª Stringã®+æ¼ç®åã¯ééã£ã使ãæ¹ããã¨ããã©ã¼ãã³ã¹ãä½ä¸ãã¾ããã£ã¦ãã話é¡ãè¥å¹²ãã¿æåããã¾ãããã容赦ãã ããã ããç³»ã®è©±é¡ã¯èªåçã«ã¯ãªã¯ã³ã³ãªãã§ãããæè¿ãã¾ã話é¡ãè¦ã¤ãã
JavaJavaã®å¿åã¯ã©ã¹ã¯ãããããããããããæè¡ã§ãããããã¢ã¤ãã¨ãã§ãã¾ããå¿åã¯ã©ã¹ã¯åºæ¬çã«ããµãã¯ã©ã¹çæã®ããã®ç¹æ®è¨æ³ãã§ãã£ã¦ãã¯ãã¼ã¸ã£ã§ã¯ããã¾ãããå¿åã¯ã©ã¹ã¨ã¯ãã¼ã¸ã£ã対æ¯ãã¦äºã ããã®ã¯ãããã誤ãã§ãããªããªãã¯ãã¼ã¸ã£ã§ãµãã¯ã©ã¹ä½ã£ã¦ã¿ãªãã£ã¦ãã¨ã§ããå¿åã¯ã©ã¹ã«ãã£ã¦ãJavaã§ã¯ãªã«ãã®ãµãã¯ã©ã¹ãä»»æã®å ´æã§å³åº§ã«ä½ãåºããã¨ãåºæ¥ããã§ãããªã«ãã®ã¯ã©ã¹ã®ã¡ã½ãããä¸ã¤ã»ã©æ¸ãæããæ°ããã¯ã©ã¹ããã£ã¨ä½ããã®ã¯ããªããªãé¢ç½ãæ©è½ã§ããã ãã®å¿åã¯ã©ã¹ãå©ç¨ããã«ãã³ã¤ã¤ï¼ã§ã使ãã®ã¯èºèºããã¦ããï¼è¨æ³ã¨ãã¦ã次ã®ãããªã®ãããã¾ããï¼è¿½è¨ï¼ãã®ç¨æ³ã¯ã¨ã·ãªãªããã¨ããã§è¦ãã®ãæåã§ãï¼ List list = new ArrayList() {{add("a"); add("b"); add("c");}}; Javaã«ã¯ãåæ
Contracts for Java, or Cofoja for short, is a contract programming framework and test tool for Java, which uses annotation processing and bytecode instrumentation to provide run-time checking. (In particular, this is not a static analysis tool.) I originally wrote Cofoja when interning at Google in 2010, based on prior work on Modern Jass. It was open-sourced in early 2011, and has since been main
Quoraã§ãããªè³ªåãè¦ã¤ããã®ã§é©å½ã«ç¿»è¨³ãã¦ã¿ã¾ãããWould Hadoop be different if it were coded in C/C++ instead of Java? How? - Quora åç1å®éã®ã¨ããé£ãããã©ãèãã¦ã¿ãã®ã¯æ¥½ãããã å®è¡æéã¯éããªãã¨æããã©ãããã決å®çãªéãã«ãªããã©ããã¯ããããªãã ã»ãã¥ãªãã£ãããã¤ãã®æ©è½ã¯å®è£ ãããããªããããããªã ä»ã®ããã°ã©ãã³ã°è¨èªã¸ã®å¯¾å¿ã¯ãããããªããJava/Pipes/Streamingãé¸ã¶ä»£ããã«ãã³ã³ãã¤ã«ãã¦ãªã³ã¯ããã°ããã ã³ã¼ãéã¯é常ã«å¤§ãããªããã¨ã©ã¼ãã§ãã¯ã®ããã«ãã ã³ã¼ããã¼ã¹ã大ãããªãã°ãéçºã¹ãã¼ãã¯é ããªããHadoopãä»ã®ããã«æé·ãããã©ããããããªãã Pigã¯ç»å ´ããã ãããï¼ãç§ã«ã¯ããã¯æããªããåç2ã¯ç¥ åç3C/C++ã¨Ja
id:ryoasaiããã¨å æ¥ä¼ç¤¾ã§è©±ããå 容ããããã¾ããã ãã©ãJavaè¨èªã«ã¯ã¯ãã¼ã¸ã£ã¼ããªããã«ã¾ã¨ããããããã©ãé¢æ°ãªãã©ã«ãå©ç¨ã§ããã¨ããææ³ã®è©±ã¨ãå¼æ°ä»¥å¤ã®å¤é¨å¤æ°ï¼èªç±å¤æ°ï¼ãåç §ã§ããã¨ããæ©è½ã®è©±ãæ··ãã£ã¦ããæ°ããã¾ãã åè ã®æå³ã§ã¯ç¾å¨ã® Java 6 ã«ã¯ã¯ãã¼ã¸ã£ããªãããã©ãå¾è ã®æå³ã§ã¯ Java ã§ãå é¨ã¯ã©ã¹ã§åæ§ãªãã¨ãå®ç¾ã§ãã¾ããä»ã®è¨èªãå é¨çã«ã¯ãã¼ã¸ã£ãã©ãå®ç¾ãã¦ããã詳ããã¯ç¥ãã¾ããããã¯ãã¼ã¸ã£ãå°å ¥ããåå°ã¯æ¢ã«ããã¨èãã¦ãã¾ããC/C++ ã§ã¯ãã¼ã¸ã£ãå®ç¾ããããã¯ããªãæ·å± ãä½ããã¨ã ãæ³å以ä¸ã«ã¬ã©ãã´ã¹åããæ¥æ¬ã®ITæ¥çï¼ãã§ãGroovy 㨠Scala ã®æ¯è¼ãããã¦ãããããªã®ã§ãã¯ãã¼ã¸ã£ã«é¢ãã¦ãJavaãScalaãGroovy ã®éããæ´çãã¦ãããã¨æãã¾ãã è¨äºã§å¼ç¨ããã¦ãã ã¯ãã¼ã¸
é«éé¢æ°ã¨ãããã®ããåç¥ããé¢æ°èªèº«ãå¼æ°ãããã¯æ»ãå¤ã«åãé¢æ°ã®ãã¨ã§ããããé«éãã¯ããããããã¨èªãããã®æãããããªãã¨èªãã 人ãããã¨ããããªãã¨ãã å ã®ã¨ã³ããªãHttpSessionãåå®å ¨ã«ãããã§ã¯ãjavax.servlet.http.HttpSessionã®setAttribute()/getAttribute()ã®ãããªã¢ããã©ããã£ã¦åå®å ¨ã«ããããã¨ããåæ©ä»ãããã public class KeyValue<K> { public <T> void put(K<T> key, T value){} } ã¨ãã£ããã¨ããããã¨ãã¦ãJavaã®è¨èªä»æ§ä¸ãåå¤æ°ã«åå¤æ°ãæããããã¨ãã§ããªãã®ã§å®ç¾ã§ããªãã¨è¿°ã¹ãã ç°¡åã«è§£èª¬ããã¨ãããã§KayValueã¯HashMapçãªãã¼ã渡ãã°å¤ãè¿ããªãã¸ã§ã¯ãã§ãåå¤æ°Kã¯ãã¼ã®éåä½ã表ç¾ãã¦ãããty
ã¸ã§ããªã¯ã¹ã§ã¯ããåããå¤æ°ã«ãããåå¤æ°ãã¨ãããã®ãåãæ±ããåå¤æ°ã§ä½ãå¬ãããã¨ããã¨ãã¡ã¸ã£ã¼ãªä¾ã§ã¯ã³ã¬ã¯ã·ã§ã³APIãæãããããjava.util.Listã¨ãjava.util.Mapã¨ãã®ãã¼ã¿ãæ ¼ç´ããã¿ã¤ãã®ã¦ã¼ãã£ãªãã£ã¯ã©ã¹ã®ãã¨ã ã 2004å¹´ã«Javaã®ãã¼ã¸ã§ã³ã5.0ã¨ãªãã¾ã§ã¯ãJavaã«ã¯ã¸ã§ããªã¯ã¹ã®æ©è½ã¯ãªãã£ãããªã®ã§ãListã«ãã¼ã¿ãæ ¼ç´ããåå¾ããå ´å㯠List list = new ArrayList(); list.add("hello!"); String str = (String) list.get(0); ã¨ãã£ãã½ã¼ã¹ã³ã¼ãã«ãªãã add()ã®å¼æ°ã¯Objectåã§å®£è¨ããã¦ãããã©ããªåç §åã§ãadd()ãããã¨ãã§ããã get()ã®æ»ãå¤ãObjectåã§å®£è¨ããã¦ãããã£ã¹ããå¿ è¦ã ã£ãããã®ãã£ã¹ãã¯ããã°ã©
Functional Java is an open source library facilitating functional programming in Java. The library implements numerous basic and advanced programming abstractions that assist composition oriented development. Functional Java also serves as a platform for learning functional programming concepts by introducing these concepts using a familiar language. The library is intended for use in production a
ã¯ãªã¹ãã¹ãè¿ãã§ããããã¦ãã¯ãªã¹ãã¹ã¨ããã°ã©ããããããé»éè¡ã¸ã®éè¦ãä¸æ°ã«é«ã¾ãææã®ããã§ãã®ã§ãJava Advent Calendar -ja 2010ã®12æ20æ¥ã¯Javaã®é»éè¡ããéããã¾ããæ¨æ¥ã¯id:celitanã§ããã ä»æ¥ç´¹ä»ããé»éè¡ã¯ãã¤ãã³ã¼ãã¤ã³ã¸ã§ã¯ã·ã§ã³ãã¼ã«ã§ããBytemanã§ãã ãã®åã§ããããä»äºã§ãHTTPã¬ã¹ãã³ã¹ã®ããããåæã«æ³å®å¤ã®ãã®ã«æ¸ãæãããã¨ããä¸æè°ç¾è±¡ã®ç¸è«ãåãããã§ãããServletã®ä¸ã§ã¯setHeader("Foo", "bar")ã£ã¦ãã¦ãã®ã«ãå®éã®ã¬ã¹ãã³ã¹ã¯"Foo: hoge"ã¨ãè¿ã£ã¦ããã¢ããªã®Javaã½ã¼ã¹èª¿ã¹ã¦ããããªãã¨ãã¦ãªãããã ããTomcatã®ã½ã¼ã¹è¦ã¦ãsetHeader()å¼ã³åºãã§ã¯ä½ã®ãã°ãåºããªãã£ã½ãã®ã§ãã°ãæå¹ã«ãã¦ãåå ãããããªãããããªãã ããã¯ã¨ãæ
ãã®è¨äºã¯å¤ãæ å ±ã§ããEmacsã§Javaãæ¸ãã¨ãã話 - Qiitaãåç §ãã¦Maghanadaãå©ç¨ãã¦ãã ããã æ¥å¸¸çã«Javaãæ¸ã人ãã¡ã®ãã¶ã99%ãããã¯EclipseãNetBeansãIntelliJ IDEAã¨ãã£ãIDEãå©ç¨ãã¦ããã§ãããã¨æãããç¾ä»£ã«ããã¦ä»æ¥ãå æ°ã«Emacsã§Javaæ¸ãã¦ããçµ¶æ» å±æ§ç¨®ã®nekopã§ããEmacs Advent Calendar jp: 2010ã®12æ15æ¥åã®ã¨ã³ããªã¯ãEmacsã§Javaãæ¸ãã¨ãããã¾ãä¸è¬çã§ã¯ãªãã§ããããããã¯ã«ã¤ãã¦ããã£ã¨ç´¹ä»ãã¾ããæ¨æ¥ã¯kwappaããã§ããã ãä»äºã§ã¯Red Hatã¨ããä¼ç¤¾ã§JBossã¨ãããªã¼ãã³ã½ã¼ã¹ã½ããã¦ã§ã¢ã®ã½ããã¦ã§ã¢ã¨ã³ã¸ãã¢ããã¦ãã¾ãã詳細ã¯ã°ã£ããçãã¾ããããããªãã®éã®ã½ã¼ã¹ã³ã¼ããæ¯æ¥èªã¿æ¸ããããã¨ã«ãªãã¾ãããããªãã®éãã¨ã¯
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}