åºè½ã¡ã§ç³ã訳ãªããã© jbangã§ãJavaã®ãã³ããã¼ã¯ãã¼ã«ã§ããjmhãå®è¡åºæ¥ãè¨äºãããã®ã§ããã®ãªã³ã¯ãè²¼ã£ã¦ããã ããããå¾è¿°ã®è©±ã«ç±æ¥ããã®ã ãã以ä¸ã®è¨äºã®profilerã®å®è¡ã¯ãã¾ã使ããªãã»ããè¯ãã¨æãããã jbangã«ãã£ã¦ãjmhãå®â¦
part 1ã®ç¶ãã§ãã progret.hatenadiary.com å訳ãã¦ããã¾ãã com/palantir/baseline/errorprone/ImplicitPublicBuilderConstructor ã«ãã»ã«åã¯ã©ã¹ï¼ï¼ï¼ã®static factory methodãæã¤ãã«ãã¼ã¯ãprivate ã³ã³ã¹ãã©ã¯ã¿ãæã¤ã¹ãã§ãã ä¸å¿ è¦ãªpâ¦
以ä¸ã®ãã©ã°ã¤ã³ã使ã£ã¦ããåæã§æ¸ãã¾ãã github.com ããã§ãã ããã§ã¯ãã¾ãåããªãã®ã§è¿½è¨ãåç § tasks.withType(JavaCompile).configureEach { options.errorprone { // error-proneã®suggested fixesãé©ç¨ãã // usage: ./gradlew compileJâ¦
com.palantir.baseline:baseline-error-proneã®æ¤æ»ã®summaryãå訳ãã¦ããã¾ãã part 1ã§ããéä¸ã§åå°½ããã®ã§ãã¨ããããããã¾ã§ã§ä¸ãã¦ããã¾ãã com/palantir/baseline/errorprone/AfterburnerJavaIncompatibility AfterburnerModule㯠jdk16+ â¦
com.palantir.baseline:baseline-error-proneã¨ããã¢ã¸ã¥ã¼ã«ãè¦ã¤ããã®ã§å ±æãããã¨æã£ã¦è¨äºãæ¸ãã¦ãã¾ãã ããã¯ãerror-proneã®custom bug checkerãå ¥ã£ã¦ããã¢ã¸ã¥ã¼ã«ã§ããï¼error-proneã®custom bug checkerã¯ãå¹³ããè¨ãã¨ãLinterã®ã«â¦
errorprone-logstash-logback-encoder v0.0.1ããªãªã¼ã¹ãã¾ããã Error Proneã®ãã©ã°ã¤ã³æ©æ§ã使ã£ã¦ãlogstash-logback-encoderåãã®Lintãã¦ãããPluginãä½ãã¾ããã maven centralããå®éã«ãã¦ã³ãã¼ããã¦å©ç¨ãããã¨ãå¯è½ã§ãã github.comâ¦
Javaã§ã¤ã³ã¡ã¢ãªã§ãã£ãã·ã¥ããããªã£ãã¨ãã«ãã使ãCaffeineã ããã¨ã³ããªã®æå¹æéã« jitterãå ¥ããããªããã¨ãããã åãã£ãã¨ãã©ããã£ããå¿ãã¦ãã¾ã£ãã®ã§ãããã«ã¡ã¢ãã¦ããã ã¤ã³ã¿ã¼ãã§ã¼ã¹ã¨ãã¦ã¯ãExpiryã¨ããã¤ã³ã¿ã¼ãã§ã¼â¦
Java 21ã«ã¢ãããã¼ããããã¨ãã¦å°ã£ãã®ã§æ¸ãã¦ããã ç¾ç¶ãææ°ã®pmd 6.55.0ã§ã¯ãASM 9.4ã«ä¾åãã¦ãããJava 21ã«å¤æ´ããã¨ãPMDã解æã§ããªãã¦æ»ã¬ã ãã®ããã以ä¸ã®è¨å®ã追å ããã configurations.pmd { resolutionStrategy.force 'org.oâ¦
Goã§sigleflightãåèã«ãã¤ã¤ã·ã³ãã«ãªãã£ãã·ã¥ã©ã¤ãã©ãªãæ¸ãã¦ã¿ã
ä»åã¯ãsingleflightãåèã«ãã¦ãThundering Herdåé¡ã解決ãããã£ãã·ã¥ã©ã¤ãã©ãªãæ¸ãã¦ã¿ãã®ã§è¨äºã«ãã¦ã¿ã¾ããã 以ä¸ã®æµãã§æ¸ãã¦ããã¾ãã åãã« singleflightã使ã£ã¦å®è£ ãã¦ã¿ã signleflightã®ä¸ã®å®è£ ãè¦ã¦ã¿ã singleflightãåâ¦
log4j2ã§JSONãã°ãåºåããæ¹æ³ 以ä¸ã®æé ãå¿ è¦ org.apache.logging.log4j:log4j-layout-template-json ãã¯ã©ã¹ãã¹ã«å ¥ãã log4j2.xmlã§JsonTemplateLayoutãè¨å®ãã 詳ãã話ã¯ããã¥ã¡ã³ãã«æ¸ãã¦ããããããã©ã«ãã§templateãæã£ã¦ãããããªâ¦
ä»åã¯Fluent Bitã§Kubernetesä¸ã®Podããçæããããã°ãéç´ãã¦ã¿ã¾ãã éç´ã¨ãã£ã¦ãããããã¨ã¯1ãã¡ã¤ã«ã«çºããã ãã§å¤§ãããã¨ã¯ãã¾ããã ä»åã¯ä»¥ä¸ã®æµãã§ãã£ã¦ã¿ã¾ãã ã¾ããä»åã®è¨äºã§ã¯ãkindã§è©¦ãã¾ãã ã¯ããã« Fluent Bitã¨ã¯â¦
Node.js v18ããªãªã¼ã¹ããããããªã®ã§ nycã使ã£ã¦ãã¹ãã®ã«ãã¬ãã¸ãåã£ã¦ã¿ã¾ããã ä»åã¯è¨å®çãç°¡ç¥åããããã«ããã¹ãããã¹ã対象ãCommonJSã¨ãã¾ãã ãã¹ãã³ã¼ãã§ãã const test = require('node:test') const assert = require('asserâ¦
ã¯ããã« ååã¯ArgoCDã®ã»ããã¢ããå¨ããæ¸ããã®ã§ ä»åã¯ãArgoCDã«private repositoryãèªã¿åããã¦ã¢ããªã±ã¼ã·ã§ã³ããããã¤åºæ¥ãã«ãã¦ã¿ã¾ãã ã¾ããã¢ããªã±ã¼ã·ã§ã³ã¯ArgoCDã®examplesã«ãããã®ã«kustomizeã使ãã¤ã¤ãããã¤ãã¦ã¿ã¾ãã â¦
ã¯ãã㫠宣è¨çãªContinuous Deploymentã®ããã«GitOpsã¨ãã形㧠Kubernetesä¸ã®ã¢ããªã±ã¼ã·ã§ã³ã管çãã¦ããããã¼ã«ãArgoCDã§ãã ä»åã¯ãkindã使ã£ã¦ãã¼ã«ã«ã§è©¦ãã¦ããã¾ãã ä»åã¯ä»¥ä¸ã®ãããªæµãã§ãã£ã¦ããã¾ã å ¬å¼ã®ãããã§ã¹ãã使â¦
ãªãã.NETã使ããã¨ã«ãªã£ãã®ã§ éçºç°å¢ã®æ§ç¯ãã¡ã¢ãã¦ããã ä»åã¯Ubuntu 20.04ãªã®ã§ã以ä¸ã®æµãã§è¡ã£ãã aptã§.NETã®SDKãã¤ã³ã¹ãã¼ã«ãã .NETã®CLIã使ã£ã¦ãªãã¸ããªãåæåãã VSCodeã«æ¡å¼µæ©è½ãå ¥ãã ã¤ã³ã¹ãã¼ã«ãã.NETã®ãã¼ã¸ã§â¦
Writing A Compiler In Goãèªãã ã ãã®æ¬ã¯ãGoè¨èªã§ä½ãã¤ã³ã¿ããªã¿ ã®ç¶ç·¨ã§ åä½ã§ä½ã£ãTree-walking ã¤ã³ã¿ããªã¿ã§åä½ããmonkeyã¨ããè¨èªã ã³ã³ãã¤ã«ãã¦ããã¤ãã³ã¼ããåãåºãããããVMä¸ã§åããããã«ãããã¨ããã®ãæçµçãªç®æ¨ã«â¦
æ¸ãããgithub.com ãªãæ¸ããã snapshot testingã®ã©ã¤ãã©ãªã使ã£ã¦ã©ã¤ãã©ãªãä½ããã¨ãã¦ããã ãã¾ãã¡ä½¿ãåæãåããªãã£ãã®ã§ãæ©è½ãè½ã¨ãããã®ãä½ã£ãã試ããã®ã¯ä»¥ä¸ã®2ã¤ã ããgoldieã®ã»ããæåã¨ãã¦ã¯è¿ãã£ãã 使ãæ¹ã«ã¯åãâ¦
elasticmqã®å ¬å¼dockerã¤ã¡ã¼ã¸ã§queueãèµ·åæã«ä½æããæ¹æ³ãç´¹ä»ãã¾ãã åä½ã¯ãsoftwaremill/elasticmq:0.15.7ã§ç¢ºèªãã¾ããã TL;DR ç°å¢å¤æ°JAVA_OPTSã« "-Dconfig.override_with_env_vars=true" ã追å ãã CONFIG_FORCE_queues<your-queue-name>fifoã« "false" ã</your-queue-name>â¦
ããããã°ãæ¸ãããã¨ããªããªãã¨æã£ã¦ãJavaã®ã¯ã©ã¹ãã¡ã¤ã«ã®ãã¼ãµãæ¸ãã¾ããã Java SE 15ã®JVM Specification ã ããè¦ãªãã ãã«ã¹ããã¯ã®ã¯ã©ã¹ãã¡ã¤ã«ã®ãã¼ãµãæ¸ãã¾ããã æ¸ãããã©ããã¼ã¹åºæ¥ãã ã㧠pretty printãåºæ¥ããããªâ¦
cloud profilerã«ã¯ãã¼ã«ã«ã«ãpb.gzãã©ã¼ãããã§ãããã¡ã¤ã«ãã¼ã¿ãåºåããæ©è½ãããã ãã®ãã¡ã¤ã«ã¯ãpprofã®protocol bufferãgzipå§ç¸®ãããã®ã ã ããæ¹ã¯ä»¥ä¸ã®ãããªå½¢ã§agentã« -cprof_profile_filename ãã©ã¡ã¼ã¿ã渡ãã¦ä¸ããããã©ã¡â¦
Spotbugsã®ãã«ããå¼ããã¨ãã¦ãã¦æ°ã«ãªã£ãã®ã§èª¿ã¹ã¦ã¿ãã 以ä¸ã®ããã«ã--releaseã¨-source/-target ã使ã£ãæã§æåãéãã ã¾ãã¯ããã«Spotbugsã®è©±ã«ãªãããSpotbugsã«ã¯ãã¼ã«ã®ç¹æ§ä¸ããã¹ãã±ã¼ã¹ã¨ãã¦Javaãã¡ã¤ã«ãä¸ã«æºãè¾¼ãã§ããâ¦
Gradle 6.7 (ç¾å¨ 6.7 rc-3ããªãªã¼ã¹ããã¦ãã¾ã) ããå°å ¥ããã Toolchain support for JVM projects ã¨ããæ©è½ã試ãã¦ã¿ã¾ãã ãã®æ©è½ã§ä½ãåºæ¥ãã®ãã¨ãã㨠Gradle ãåããJVMã¨ã³ã³ãã¤ã«ããã¹ãã§ä½¿ãJVMãç°¡åã«åé¢ãããã¨ãåºæ¥ãããâ¦
Windowless moving percentileã¨ã¯ææ°å¹³æ»ç§»åå¹³å(Exponential moving average)ããã¼ã¹ã«ãããã¼ã»ã³ã¿ã¤ã«å¤ã®äºæ¸¬æ¹æ³ã§ ååã®éããwindowlessã¨ãããã¨ã§ãwindowãªãã«ãã¼ã»ã³ã¿ã¤ã«ã®äºæ¸¬ãå¯è½ã§ãã¡ã¢ãªå¹çãè¨ç®å¹çãè¯ãã windowã¨ã¯ãâ¦
EC2ã¤ã³ã¹ã¿ã³ã¹ã«å ¥ãããæã£ã¦ãã¾ã«ãªãã§ããï¼ EC2ã¤ã³ã¹ã¿ã³ã¹ã®sshã®ç§å¯éµã®ç®¡çãã©ãããããã¨ã EC2ã¤ã³ã¹ã¿ã³ã¹ã®ã¦ã¼ã¶ã®ç®¡çãã©ãããããã¨ãæ©ã¿ã¾ãããã ä»åãªãªã¼ã¹ãããssos (ssh-setup-over-ssm) ã使ãã° EC2ã¤ã³ã¹ã¿ã³ã¹ã使ãâ¦
ä»äºã§æ°ã«ãªã£ã¦èª¿ã¹ãã®ã§æ¸ãã¦ããã¾ããNode.js㯠v12.7.0以éãããªã㨠cgroupã®memory limitãè¦ã¦ããã¾ããã ã¤ã¾ããv12.7.0ããåã®ãã¼ã¸ã§ã³ã®Node.jsã§ã¯ããã¼ãã¡ã¢ãªã®å®¹éãè¨å®ãããªãã·ã§ã³ `--max-old-space-size`ã使ãå¿ è¦ãããâ¦
ãªãã¸ããªã¯ä¸ã github.com æè¿ Vue追ã£ã¦ãªãã£ãã®ã§ãVueã®å¤§ããªã¢ãããã¼ããè¦ã¦ããã ã§ãæ°ã«ãªã£ãã®ãä¸ã®ãããªãã¼ã«å¨ãã®å¤åãç¥ããããªãã¨æã£ã¦ ãµã³ãã«ãªãã¸ããªãæ§ç¯ããã Vueã¯ã¡ããã¨TypeScriptã§æ§ç¯ããè¨æ¶ããªãã£ãã®â¦
ããã©ã«ãã§è¨å®ããããã«ã¹ãã§ãã¯ãç¡å¹ã«ãããå ´åãããã¨æãã¾ãã ä¾ãã°ãã»ãã·ã§ã³ã¹ãã¢ã¨ãã¦ä½¿ã£ã¦ããredisãè½ã¡ãå ´åã«redisã使ã£ã¦ããªãã¨ã³ããã¤ã³ããããã®ã§ ãµã¼ãã¹ã¨ãã¦ã¯è½ã¡ã¦æ¬²ãããªããã¨ããã±ã¼ã¹ã§ãã ãã®å ´åã¯â¦
試ãã¦ã¿ãçµæãå³ããæ°æã¡ã«ãªã£ãã ãªããä»å試ããçµæã¯goã®æ¨æºã©ã¤ãã©ãªã®æåããã¼ã¹ã«ãã¦ããã®ã§ ãã®ä»éä¿¡ã©ã¤ãã©ãªãã©ã³ã¿ã¤ã ã§ã®æåãä¿è¨¼ãããã®ã§ã¯ãªãã®ã§æ³¨æããããã çµè«ã¨ãã¦ã¯ãå¯ç¨æ§ã®é«ãLoad Balancerã¨ãããã®â¦
goã¨ããã°ãã·ã³ã°ã«ãã¤ããªã ã¨æããã§ãã Databaseã®ãã¤ã°ã¬ã¼ã·ã§ã³ã¯ã©ã®ããã«é©ç¨ãã¦ãã¾ãã§ããããï¼ ä»åã¯goã§ãã¤ã°ã¬ã¼ã·ã§ã³ãã·ã³ã°ã«ãã¤ããªã§é©ç¨ããæ¹æ³ãèãã¦ã¿ãã®ã§ããã«æ¸ãã¦ããã¾ãã ã¯ããã« åã¯Javaã®Webãã¬ã¼ã ã¯â¦
ECRã«pushããã¨ããçããã¯ã©ããã£ã¦ECRã®èªè¨¼ããã¦ãã¾ããï¼ å¤§ä½ã®äººããaws cliãã¤ã³ã¹ãã¼ã«ãã¦èªè¨¼ãã¦ããã®ã§ã¯ãªããã¨æã£ã¦ãã¾ãã ä»åã¯Amazon ECRã¸Pushããä»äºããã£ãã®ã§ãä¸ããè¦ç´ãã¦ã¿ãçµæãããã«ã¾ã¨ãã¦ããã¾ãã ããâ¦