第60å ããã°ã©ãã³ã°ã»ã·ã³ãã¸ã¦ã
#define __is_constexpr(x) \ (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8))) #include<stdio.h> #define Def 10 #define __is_constexpr(x) \ (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8))) enum test{Enum}; int main(){ int Val = 10; const int Const_val = 10; int a = __is_constexpr(Val); int b = __is_constexpr(Const_val); int c = __is_constexpr(10); int d = __
3. ⢠é«æ©è½æå·ã®ç´¹ä» ⢠èªä½ã¢ã»ã³ãã©ã®ç´¹ä» ⢠ã½ããã¦ã§ã¢éçºã®ä¸ã§ç§ãçµé¨ãããã¨ã®ç´¹ä» ⢠ã½ããã¦ã§ã¢éçºã§èãããã¨ã»æ°ãä»ãã¦ããã㨠⢠å°è±¡ã«æ®ã£ã¦ãã㰠⢠ã¾ã¨ã è¬æ¼ã®ç®ç 3 / 40 4. ⢠å¾æ¥ã®å¤å ¸çãªæå·ã«ç¡ãæ©è½ãæã¤æå·ã®ç·ç§° ⢠å®ç¾©ã®æ±ºã¾ã£ãç¨èªã§ã¯ãªã ⢠ã¯ã©ã¦ããµã¼ãã¹ã§ã®å©ç¨ãæ³å®ãããã®ãå¤ã ⢠ç§å¿æ¤ç´¢ ⢠ãã¼ã¯ã¼ããæå·åããã¾ã¾æ¤ç´¢ã§ãã ⢠æºååæå· â¢ æå·åããã¾ã¾è¨ç®ã§ãã ⢠å±æ§ãã¼ã¹æå· â¢ å±æ§ã«å¿ãã復å·æ¨©éãå¶å¾¡ã§ãã ⢠etc. é«æ©è½æå· 4 / 40
é åã®å ¨ã¦ã®è¦ç´ ãçãããå¦ã mrkn é åã®å ¨ã¦ã®è¦ç´ ãçãããã¨ã¯ã©ã確èªãããè¯ããã ããã `ary.all? {|e| e == ary[0] }` ããã㪠usa ary.uniq.size == 1 mrkn ãªãã»ã© > uniq usa all?ã§ãããã¯å¼æ°ããéãããªäºæ ããã§ãaryãã§ããã¦ãã¤å ¨ç¶è¦ç´ ãçãããªãã£ããããã§ããªããã mrkn `ary.all? {|e| e.foo == ary[0].foo }` ã®å ´åã¯ã©ãã§ããããmap.uniq.size ãããã㪠usa all?ã¯å ¨ã¦çããæã«é ãããåºç¤ã§éãã¨ããã£ããéã mrkn 確ãã« > åºç¤ã§éãã¨ããã£ããéã usa ãã®è¾ºã¯äºæ³ãããéåã®å¾åã§å¤æãããããªãã§ããããã map.uniq.sizeã¯mapã®çµæã¨ãã¦ã®ä¸æé åãä½ããªãããã«ããã«ã¯ããã¼ã¨ En
DroidKaigi 2018ã«ã¦ ãAnnotation Processingãé§ä½¿ããã³ã¼ãçæã§ãã¤ã©ã¼ãã¬ã¼ãã³ã¼ããé§éãããï¼ã ã¨ããã¿ã¤ãã«ã§ç»å£ãã¾ã ä¼å ´ã«ãè¶ãã«ãªãæ¹ã¯ãèå³ããã¾ãããè¦ã«æ¥ã¦ä¸ããï¼ æé : 2018/02/08 (Day 1) 16:50-17:20 å ´æ : Room5 droidkaigi.jp å 容 æåã©ããã®ã©ã¤ãã©ãªã«ãæ´»ç¨ããã¦ããAnnotation Processingã«ããã³ã¼ãçæã«ã¤ãã¦ãããããã©ããªãã¨ãã§ããã®ããã©ããã£ã¦ä½ããã¦ããã®ããAndroidããã¯ã©ã®ããã«æ´»ç¨ã§ããã®ãã解説ãã¾ã ç®æ¬¡ Annotation Processingã£ã¦ï¼ Annotationã¨ã³ã¼ãçæ JavaPoetã¨KotlinPoet Androidéçºã«ããã¦ã©ã®ããã«æ´»ç¨ã§ããã®ã Kotlinãã使ãå ´åã®æ³¨æç¹ ã¹
ã¾ããã å··ã§ã¯ãããã°ã©ãã¼ã«ãªããã人ã«åå¦è ã«ã¨ã£ã¦ããã¤ã³ã¿ã¨ããèãæ¹ãããããããã¨ãã話ãããããã¾ãã ããã§ãããããªäººãããã¤ã³ã¿ã¯ä½æã ãã¨ããå¤æ°ããã³ã§ãã¨ãæãå¤ãåãå¤ãåãããããããã«èª¬æãã¦ããã¦ãã¾ãã ããã§ããªãããã¤ã³ã¿ããããã¥ãããã¨ãã人ãå¾ã絶ã¡ã¾ããã ãããã£ãã®ãã¨ãä¾ã話ãããã¦ãç´çã§æ»ãããããããããªãã§ããããã Hello, Worldããç°¡åã« ãµã³ãã«ã³ã¼ã 以ä¸ã®ã³ã¼ããèãã¾ãã void main() { int a; int b; int c; a = 1; b = 2; c = a + b; } ã#include <stdio.h>ããªãã¦ããè¬ã®ãªãã¸ãã¤ã¯ãã®éãã·ã§ãããããªãã®ç¡ããã£ã¦Cè¨èªã¯æãç«ã¡ã¾ãã ã¾ãè¦ã¦ã®éããã©ãã«ãä½ãåºåããã¾ãããã ãã®ããã°ã©ã ã¯ããc = a + bã
C++ AdventCalendarã®12æ¥ç® æ®æ®µç§ã¯WEBã®ããã³ãã¨ã³ããä»äºã«ãã¦ããã ã¤ã¾ã使ãè¨èªã¯javascript/typescriptçã®Scriptè¨èªã ã ãã åè·ã趣å³ãOSSçã§C++ã«ãã触ã£ã¦ããã®ã§æå®è£ ããmallocã®è©±ããããã¨ã«ããã mallocã¨ã¯ mallocã¨ã¯Cè¨èªã®stdlib.hã«å«ã¾ããã¡ã¢ãªå²ãå½ã¦é¢æ°ã®ãã¨ã§ã C++ããã®ä»ã®å¤ãã®è¨èªã§å é¨çã«å©ç¨ããã¦ããã ãã¼ããå²ãå½ã¦ãæ¹æ³ã¯ããã¤ããããããã®mallocããã£ã¨ãã¡ã¸ã£ã¼ã¨ãããã ããã mallocãåå®è£ ãã ä»åã¯mallocãèªåã§åå®è£ ãã¦ã¡ãã£ã¨æ©ããã話ãæ¸ãã åå®è£ ããçç±ã¯è²ã ãããæã大ããªçç±ã¯ãã ã®å¥½å¥å¿ã yatscã¨ããtypescriptã®ã³ã³ãã¤ã©ãC++ã§æ¸ããã¨æã£ã¦å®è£ ãå§ããã¨ãã«ä½ã£ãã ãã ãyatscèªä½ã¯æªå®ã§
ãã®åãTwitterã§èª°ãããã³ã³ãã¤ã©è¨èªã§Fizzbuzzæ¸ããªããã³ã³ãã¤ã«æã«å ¨ã¦ã®æ¼ç®ãæ¸ã¾ããå®è¡ã³ã¹ãã¯I/Oå½ä»¤1åã«ãªãããã«æé©åããªãã¨ãã¨ãã話ããã¦ããããããã¨è¨ããªãã¨æã£ã¦ã¹ã«ã¼ãã¦ããã®ã ããä½èª¿ä¸è¯ã§é ã ãåãã¦ããç¶æ ã ã£ãã®ã§C++11ã§ãã©ã¤ãã¦ã¿ããã¨ã«ã æ¡ããããç£ããæãã¨ãããã®ã§ãå²ã¨ç°¡åã«ç¶ºéºã«æ¸ããããããªæãã charé åãå¯å¤é·ã®ãã³ãã¬ã¼ãå¼æ°ã¨ãã¦çµåãã¦ãã£ã¦ãæååå®æ°ãçæããã¨ãããã¯ããã¯ã¯å®éã«ä½¿ãæãããããã¨æã£ããæè¿C++æ¸ãã¦ãªããã©ã #include <cstdio> template <typename LHS, int N> struct numstr { template <char... Args> struct append { typedef typename numstr<LHS,
ã¯ããã« bashã«ã¯æ¬¡ã®2ã¤ã®çç±ã«ãã£ã¦ãçµã¿è¾¼ã¿ã³ãã³ã(builtin command)ã¨ãããã®ãåå¨ãã¾ãã ã¹ã¯ãªããã®é«éåã®ãããçµã¿è¾¼ã¿ã³ãã³ãã§ããã°é常ã®ã³ãã³ããå®è¡ããå ´åã«æ¯ã¹ã¦ããã»ã¹ã®çæã³ã¹ã(fork()/exec())ãåæ¸ã§ãã bashèªèº«ã®ç¶æ ãå¤æ´ããããããä¾ãã°cdã³ãã³ãã/bin/cdã¨ãã¦ç¨æãã¦bashããå½è©²ã³ãã³ããå®è¡ãã¦ããå½è©²ã³ãã³ãã®pwdãå¤æ´ãããã ãã§ãbashã®ããã¯å¤æ´ãããªããããæå³ããªã ä»åã¯åè ã«ç¦ç¹ãåããã¦ããã®å¹æã¨ãçµã¿è¾¼ã¿ã³ãã³ãã®èªä½æ¹æ³ã«ã¤ãã¦è¿°ã¹ã¾ãã äºåç¥è: çµè¾¼ã¿ã³ãã³ãã«ããã¹ã¯ãªããé«éåã®å¹æ çµè¾¼ã¿ã³ãã³ããã®ãã®ã®åå¨ãåã³ãã®åå¨æ義ã«ã¤ãã¦æ¢ã«ãåç¥ã®ããã¯ããã®ç¯ãé£ã°ãã¦ããã£ã¦æ§ãã¾ããã ä¾ãã°çãããbashã¹ã¯ãªããããechoã³ãã³ããå®è¡ããå ´å
37. 1996å¹´Kawa,NetRexx 2000å¹´Jython 2001å¹´Scala 2002å¹´Nice,Gosu 2003å¹´JSR223(Scripting for the Java)Review Ballot 2003å¹´Groovy 2003å¹´JSR223(Scripting for the Java)Final Release 2005å¹´Fantom(Fan) 2.JVMè¨èªã®æ´å² 2004å¹´JSR241(the Groovy Programming Language) ->Dormant JudoScript,Jamaica 2006å¹´JRuby 2006å¹´JSR292(invoke dynamic)Review Ballot 2007å¹´Clojure 2011å¹´Kotlin,Frege,miragh,Ceylon 2011å¹´JSR292(invoke dynamic)Fina
JJUG CCC 2016 fall ã®ã»ãã·ã§ã³ã¹ã©ã¤ãã§ãã ã¢ãããã¼ãç¨ã«è¿½è¨ãããRead less
ä»æä¸æ¬ã«PHPéçºè ã®ä¸äººAndrea Fauldsããã以ä¸ã®ãã¤ã¼ãããã¦ãã¾ããã PHP is a very beginner-friendly language, hello world is as easy as <?="{K]X^\31\31EYG_Q\31"^"".M_PI;â Andrea! (@notajf) 9 October 2016 ãã®tweetã«å«ã¾ããã <?="{K]X^\31\31EYG_Q\31"^"".M_PI; ã¨è¨è¿°ããããã¡ã¤ã«ãPHPã§å®è¡ããã¨ã Hello, world! ã¨ããã°ã©ã ã®åæ©ã§æåãªä¸ç¯ãåºåããã¾ãã3v4lã§ã®å®è¡çµæ ãã¡ããAndreaãããè¨ã£ã¦ãvery beginner-friendly languageã¨ããã®ã¯åè«ã ã¨æãã¾ããã ç§ãããã¼^ (ããã)ã2ã¤ããã®ãç´ãããããã©ã¾ãã¡ãã£ã¨é£èªãª"
è¨äºä¸ã«ééããããã¾ãããæ°åãéãã¯ãªãã¾ããã§ããã確ã 1.0X ï½ 1.1 åç¨åº¦ã®é«éåã¯å¾ããã¾ãããã³ã£ããããã»ã©ã®ç©ã§ã¯ããã¾ããã§ããããã¿ã¾ããã ãããã Go1.7 ããªãªã¼ã¹ãããããã§ãããçããå¦ä½ãéããã§ãããGo çéã®æ³¢å¹³ã㨠mattn ã§ãããã«ã¡ããï¾ï¾ï½¶ï¾ï½°(ç¥ Go1.7 ã§ã¯ã³ã³ãã¤ã©ã®æé©åãè¡ããããã«ãé度ãããªãç縮ãããæ§ã«ãªãã¾ãããæ¯æ¥ãã«ããã¦ãåã¨ãã¦ã¯é常ã«å¬ããæ©è½æ¹åã§ããã ãã¦ã¨ã¦ããã£ããâãªã¿ã¤ãã«ã§é£ã£ã¦ãã¾ã£ã訳ã§ãããæ°ã«ãããè² ããªã®ã§ã©ãã©ã話ãé²ãã¾ãã var t [256]byte func f(b *[16]byte) { for i, v := range b { b[i] = t[v] } } ä¾ãã°ãã®ã³ã¼ããè¦ã¦ä¸ããããã®ã³ã¼ãã¯ã³ã³ããæåãã¾ãããissue ã®å 容ã¯ã¹ã³ã¼
èªã¿çµãã£ãããã£ã100Pã«ããã°ã©ã è¨èªãä½ãããã®åºç¤(åå¥è§£æãæ§æ解æãã©ã³ã¿ã¤ã ãã¤ã³ã¿ããªã¿ãä»®æ³ãã·ã³ããã¤ãã£ãã³ã³ãã¤ã«ã¾ã§ï¼)ãä¸éãå¦ã¹ãããã«æ¬æ¸ã§ä½ã£ãå®éã«åãããã°ã©ãã³ã°è¨èªãã¤ãã¦ããã $39.99 ã¨ã¡ãã£ã¨é«ããããã°ã©ã è¨èªãä½ãå強代ã ã¨èããã°æãå®ãããã¦æ©ã(ãã©ã´ã³ããã¯ã¯1090P)å¦ã¹ãã®ã§ã¯ãªãã ããããæ´æ¸ãªã®ãé£ç¹ã ãååãããã¯ã½ã¼ã¹ã³ã¼ããªã®ã§è¦å´ããªãããªãã¨ããªãã¾ããã(æ¥æ¬èªè¨³åºã¦ã»ãããªã) æ¸ç±å ã§ä½ãè¨èªã¯2種é¡ã§ Awesome Rubyã®æ§æã«Pythonã®ã¤ã³ãã³ããããã¯ãæ··ãåããããããªãªãã¸ã§ã¯ãå Mio Ioãåèã«ããã¡ãã»ã¼ã¸å è¨èªèªä½ã¯ã©ã¡ããRubyã§æ¸ããã¦ãããç´¹ä»ãããæ¦å¿µã¯ç¹ã«è¨èªã®å¶ç´ãåããªããã®ãå¤ãã ããã£ãã¨ãã yaccãbison, JVMç³»ã®æ§æ解æãã¼ã«
ãã®ã»ã©ããantirez / kiloï½GitHubãã«ããã¦ãSalvatore Sanfilippoæ°ã«ãã£ã¦Cè¨èªã使ã1000è¡ä»¥ä¸ã®ã½ã¼ã¹ã³ã¼ãã§éçºãããã¨ãã£ã¿ãKiloããå ¬éãããã2æ¡é BSDã©ã¤ã»ã³ã¹ã®ä¸ã§ãªã¼ãã³ã½ã¼ã¹ã»ã½ããã¦ã§ã¢ã¨ãã¦å ¬éããã¦ãããã»ãã®ã©ã¤ãã©ãªã«ä¾åãããã¨ãªãéçºããã¦ãããä½æ¥ãå§ãã¦ããæ°æéã»ã©ã§éçºãããã¨èª¬æããããCè¨èªã«ããå¦ç¿ç´ æãã¨ãã£ã¿éçºã®ãã¼ã¹ã½ã¼ã¹ã³ã¼ãã¨ãã¦å©ç¨ã§ããã Kiloã¯clocã使ã£ãã«ã¦ã³ãã§ã³ã¡ã³ãã空è¡ãé¤ããè¡æ°ã956è¡ã¨ããã¦ããã1000è¡ãä¸åã£ã¦ãããéçºã«ã¯cursesã©ã¤ãã©ãªã¨ãã£ãåºæ¬çãªã©ã¤ãã©ãªã使ããã¦ããããVT100ã®åºæ¬çãªã¨ã¹ã±ã¼ãã·ã¼ã±ã³ã¹ã使ã£ã¦éçºããã¦ãããã¨ãã£ã¿ã«ãããä¿åãçµäºã¨ãã£ãæä½ã«ã¯æ¬¡ã®ãã¼ãå²ãå½ã¦ããã¦ããã Ctrl-S ä¿å
è¯ããããã¡ãªã¨ã©ã¼ã¡ãã»ã¼ã¸ ã¨ã©ã¼ãèµ·ããã¨ãã¯ã以ä¸ã®ããã«ã¨ã©ã¼ã¡ãã»ã¼ã¸ãã©ããããã«åºåããã¨æãã¾ãã $c->log->error('something wrong!'); ãã ããã®ã¨ã©ã¼ã¡ãã»ã¼ã¸ã£ã¦ãå®éã«çºçããã¨ãã«ã¯æå³ãããããªããã¨ãå¤ãã®ã§ãã $c->log->error('error!'); æ¬æ°ã§ãããããerror!ãã¨ã ãåãã¡ãã»ã¼ã¸ã ã¨ãã¨ã©ã¼ãèµ·ãããã¨ããä¼ãã£ã¦ãã¾ãããç¨åº¦ã®å·®ã¯ããæå³ã®ããããªãã¨ã©ã¼ã¡ãã»ã¼ã¸ã¯ãã®ä¸ã«ããµãã¦ãããã¨æãã¾ãã æ©æ¢°çãªã¨ã©ã¼æ å ± ããããããã§ãããã¦ã㯠Exception ã¯ã©ã¹ã Logger ã¯ã©ã¹ã§å¤ãã®è£å©ãåããããããã«ãªã£ã¦ããã¨æãã¾ãã çºçæå» çºçå ´æ stack trace å¤æ°ã®ç¶æ ãã ããã®ãããªæ©æ¢°çãªæ å ±ã ãã ã¨ãçµå±ãéç¨ä¸ã¯å¯¾å¿ãé£ããå ´é¢ã£ã¦ã®ãå¤ã
ããããç å®è·¡ãã©ã¼ããã2016ã§ã¯sfenæååã¨ããã«å¯¾å¿ãã(ãã®å±é¢ã§ã®å®è·¡ã¨ãªã)æãæãããããã¨æ¸ãããã«ãªã£ã¦ããã®ã§ãããsfenæååã¯ãä¸æã«å®ã¾ããªãã¨ãããã¨ããã£ããå¿ãã¦ãã¾ããã SFENã§å æã®æã¡é§ãè§éæ©ã®ã¨ãã®è¡¨è¨ã BGP : ShogiGUI, å±é¢ããã£ã¢ PGB : Blunder.Converter PBG : ããããçå®è·¡ãã©ã¼ããã2016 â merom686 (@merom686) July 14, 2016 ã¨ããã®ããæé§ã®åºåé ã¾ã§ã¯sfenæååã®ä»æ§ã¨ãã¦è¦å®ããã¦ããªãããã§ãããã§ã«ããã¤ãã®ã½ããã§éããããããã§ãã価å¤ã®ä½ãé§ã®é (æ©ãé¦ãæ¡ãéãéãè§ãé£)ã«ä¸¦ã¹ãã®ãæ®éã®æè¦ã ã¨æããã§ããã©(Bulnder.Converter)ãããã§ãªãã½ãããçµæ§ããã¾ããUSIãããã³ã«ã®ä»æ§ã®èª¬æã§ã¯é§ã®ä¾¡
ããã«ã¡ã¯ã æ¬æ¥whotwiã«ããã¤ã¼ããåæãããã使ããã¨ã°ãåæã»ã°ã©ãã£ã«ã«ã«è¡¨ç¤ºããæ©è½ããªãªã¼ã¹ãã¾ããã ãããªæãã§ãã¤ã¼ãã«ããå«ã¾ããã¯ã¼ããã¯ã¼ãã¯ã©ã¦ã風ã«è¡¨ç¤ºãã¾ãã 試ãã«ä¼æ¥ã®Twitterã¢ã«ã¦ã³ãã®ä¸ã®äººéå¶ã§æåãªã¿ãã¿ããã®ã¢ã«ã¦ã³ãã®çµæã§è¡¨ç¤ºãã¦ã¿ã¾ãããã ãããªæãã«ãªãã¾ãã ã¿ãã¿ããã®ã¢ã«ã¦ã³ãã®ç¹å¾´çãªè¨èã大ãã表示ãããæ°åããè¨ã£ã¦ããªããããªãã®ãå°ããªæåã§å¨å²ã«è¡¨ç¤ºããã¦ãã¾ããã¾ãããã¯ããããªã©ã®åæ°ã¯å¤ããä¸è¬çãªèªã¯ããå°ããã«è¡¨ç¤ºããã¦ãã¾ãã whotwiã¯ãã¢ã«ã¦ã³ãã®ç¹å¾´ã調ã¹ããã¼ã«ãªã®ã§ããã®ããã«ã§ããã ã人ã¨éãé¨åãéç«ã£ã¦è¦ããããã«ãã¾ããæå³ã®ããèªã ããåºãããã«å¾®èª¿æ´ãè¡ãã¾ããã 使ã£ããã® ã¯ã¼ãã¯ã©ã¦ãã®å¦çã¨ãã¦ã¯ãå½¢æ ç´ è§£æã§ããã¹ããåèªã«åãã¦ãåºç¾åæ°ã®å¤ããã®ãã表示ã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}