https://kaigionrails.org/2024/talks/osyoyu/
ISUCON ã§åãããããã£ã¨ããã£ãéçºãã§ããã¨ããªãéçºä½é¨å¤ãã£ã¦ããã®ã§ã¯ï¼ã¨æãã ISUCON ã®éå»åã«åãã¤ãã¦ããã®ããã£ã¦ã¿ã¦ãã¾ãã ã¢ããã¼ã·ã§ã³ã«å¯¾ãã¦ããå°ã詳ããè¨äºã¯ãã¡ã euglena1215.hatenablog.jp ã¾ãã¯ãåæå®è£ ã®ç¶æ ããæåãå¤ããã«åã ããã¤ãã¦ã¿ããã¨ã«åãçµã¿ã¾ãã ã¾ããã¢ããªã±ã¼ã·ã§ã³ã«å¯¾å¿ããå㯠rbs ãã¡ã¤ã«ã¯ç´æ¥è§¦ããã« rbs-inline ã®ã¿ã使ã£ã¦çæãããã¨ã«ãã¾ããããããã ISUCON æ¬çªã§ãå¥ãã¡ã¤ã«ãããã£ã¦ããä½è£ã¯ãªãã¨æãããã§ãã ISUCON13 㧠rbs-inline ã使ã£ã¦ steep check ãéãã¨ããã¾ã§è¡ããã®ã§ããã£ã¦ããä¸ã§æãããã¨ãããã ã£ãããã£ã¨ä¾¿å©ãªã®ã«ã¨æã£ããã¨ãã¾ã¨ãã¦ã¿ã¾ããã¡ãã£ã¨ããã¹ã¯ãªããã«å¯¾ãã¦ä½¿ã£ã¦ã¿ãè¨äºã¯ãã¾ã«è¦ã
ãã¯ããã¸ã¼é¨é㧠Ruby ã¤ã³ã¿ããªã¿ã®éçºããã¦ãã笹ç°ã§ããRubyKaigi 2024 楽ãã¿ã§ããã ãã¦ãRuby ã®ã¡ã½ãããå®ç¾©ããã¨ããä»®å¼æ°ãããå ´åãã«ãã³ãçç¥ãããã¨ãã§ãã¾ãã def foo(x, y) end def bar x, y end bar ã®å®ç¾©ã®æ¹æ³ã§ãããç§ã¯å¥½ãã§ãã®æ¸ãæ¹ããã¦ããã§ãããååã®é è¤ããã«ããããªæ¸ãæ¹ããã¦ããã®ã¯ä»æ笹ç°ã ãã ãã¨è¨ããã¦ã·ã§ãã¯ãåããã®ã§ãã¡ãã£ã¨èª¿ã¹ã¦ã¿ã¾ããã ã¡ãªã¿ã«ãã«ãã³ããªãã¨ä½¿ããªãã¡ã½ããå®ç¾©ã®æ¹æ³ãããã®ã§ããã®æã«ã¯æ¶ãåãã§ã«ãã³ãã¤ãã¾ãã def foo(kw:) # å¿ é ãã¼ã¯ã¼ãå¼æ° end def bar(&) # ç¡åãããã¯å¼æ° end è£è¶³ï¼ï¼Ruby ã§ã¯ãã¡ã½ããå¼ã³åºãæã«ã«ãã³ãã¤ãããã©ãããã«ãããããªè«äºãããã¾ãããããã§ã¯ãã¡ã½ãããå®ç¾©ãã
ãã¤ããæ¥åºããã ããããã¨ããããã¾ããæ°åãç é½Rubyããã°ã©ãã³ã° â å®è·µçãªã³ã¼ãã®ããã®ååã¨ãã¬ã¼ããªããçºå£²ã®ãç¥ããã§ãï¼4æ13æ¥12:00ããçºå£²éå§ï¼ã æ¬æ¸ã¯2021å¹´11æãããβçãã¨ãã¦å è¡ãã¦çºå£²ãã¦ããæ¸ç±ã®ãæ£å¼çãã¨ãªãã¾ããβçã«GitHubã§ãã£ã¼ãããã¯ãããã ãã@QWYNGã@hsbtã@ima1zumiã@june29ã@kaorahiã@kfukai23ã@kuredevã@kyanagiã@okuramasafumiã@spinuteã@ursmã@yancyaã@ytjmtããããããã¨ããããã¾ããï¼ï¼GitHubã¢ã«ã¦ã³ãåã®ã¿ã2023å¹´3æ20æ¥æç¹ãsort(1)åºåé ããã®ã»ãã«ã¬ãã¥ã¢ã¼ã®ä¼è¤æµ©ä¸ãããé è¤ä¾ä»ãããéåæ ¶åããã笹ç°èä¸ãããå¡©äºç¾å²ããã島ç°æµ©äºãããé³¥äºéªããã¨æ ªå¼ä¼ç¤¾ä¸è ç é½Rubyããã°ã©
å»å¹´ã®ã㤠ä»å¹´åå ããããã«ãã£ãã㨠ä½ã£ããã®ä¸è¦§ rubocop-isucon mysql2-nested_hash_bind datadog_thread_tracer itamae-plugin-recipe-rust itamae-plugin-recipe-datadog isucon-snippets ãã§ãã¯ãªã¹ã Datadog Datadogã§alpãå®è£ ããã Datadogããã·ã¥ãã¼ã ISUCONæ°æ¥åã«Datadogã®ããã·ã¥ãã¼ãããã°ã£ã¦å°ã£ã ISUCON12ã®äºé¸åé¡ èªåãäºé¸å½æ¥ã«æ¸ããã³ã¼ã ãããã¸ã§ãã³ã°ç¨ã®Itamae 競æç¨ã³ã¼ã ã¹ã³ã¢ç¨issue PRãã¼ã¹ã§æ¯ãè¿ã åæã»ããã¢ãã (3035 -> 1297) rubocopã§auto correct (1297 -> 1757) Dockerå¥ãã (1757 -> 153
æ°å¹´ããã¾ãã¦ããã§ã¨ããããã¾ãã @rosylilly ã§ãã ãã®å SRE é¤æè¬åº§ã®ä½é¨ææ¥é ä¿¡ ããããã§ããããã®æã«ãã³ãºãªã³ã®ä¸ç°ã§ Ruby 製ã¢ããªã±ã¼ã·ã§ã³ãããã£ã¦é«éåãã¦ã¿ããã¨ããå 容ãå®æ½ãã¾ããã ã³ã³ã»ããã¨ãã¦ã¯ããã¡ããã¨è¨å®ãã¡ã¤ã«ãæ¸ãã ãã§ãé«éåãããã¨ããæãã§ããä½æ¥ã¨ãã¦ã¯ã¢ããªã±ã¼ã·ã§ã³ãããããã«ãè¨å®ã ãããã£ã¦é«éåãããã¨ãããã¨ãªãã§ãããçµå±ä½ãã©ããããå¹ãã®ããã¨ããã®ãäºåã«åèå¤ã¬ãã«ã§å¼¾ãã¦ãããªãã¨ã¶ã£ã¤ãæ¬çªã«ãªã£ã¡ãããªãã¨ãããã¨ã§ä½ãã©ããããå¹ãã®ãã試ãã¦ããã«ãããã¨ãããã¨ã§ãäºåã«èª¿æ»ããã¨ãã®ãã³ããã¹ãã¨ä½ãå¤ãããã®è¨é²ã«ãªãã¾ãã ãã³ããã¼ã¯ã®åæºå ä»åã¯ã»ã¼ä½ãããªã Sinatra ã¢ããªã±ã¼ã·ã§ã³ãä½ã£ã¦ããã®æ§è½å·®ãã測ãã¾ããã¨ãããã¨ã§ç¨æããæ§è½æ¸¬å®ç¨ä½ãããªã S
Posted by naruse on 25 Dec 2020 We are pleased to announce the release of Ruby 3.0.0. From 2015 we developed hard toward Ruby 3, whose goal is performance, concurrency, and Typing. Especially about performance, Matz stated âRuby3 will be 3 times faster than Ruby2â a.k.a. Ruby 3x3. With Optcarrot benchmark, which measures single thread performance based on NESâs game emulation workload, it achieved
å°ãããã£ãã®ã§åå¿é²ãå ¬å¼ã®Rubyã®Dockerã¤ã¡ã¼ã¸ã使ãã¨bundlerçµç±ã§ã¤ã³ã¹ãã¼ã«ãããã®ãããªã¥ã¼ã ç¨ã³ã³ããã§æ°¸ç¶åãã¦ãäºåç®ä»¥éã®èµ·åæã§ãã¾ãåæ ãããªãäºè±¡ãèµ·ãã¾ããã å ·ä½çã«ã¯ä»¥ä¸ã®æé ã§ã¨ã©ã¼ãçºçãã¾ããã ã³ã³ãããç«ã¡ä¸ãã¦ã³ã³ããå ã«å ¥ããbundle install âpath=vendor/bundle ã§ä¾åã©ã¤ãã©ãªãã¤ã³ã¹ãã¼ã«ãvendor/bundleã¯ããªã¥ã¼ã ã³ã³ããã§æ°¸ç¶åãã¦ããã bin/rails sã§ãµã¼ãèµ·åã§ãããã¨ãç¢ºèª ã³ã³ãããåèµ·åãå度ã³ã³ããå ã«å ¥ããbin/rails sã§ãµã¼ãèµ·åãããvendor/bundleã¯ããªã¥ã¼ã ã³ã³ããã§æ°¸ç¶åãã¦ããã¯ããªã®ã§bin/rails sãå©ãã°èµ·åã§ããã¯ã⦠ããã¨ã©ã¼ã§è½ã¡ã Dockerfileã¨docker-compose.ymlã¯ãããªæãã§ã
Convert JSON into gorgeous, typesafe code in any language. Generate models and serializers from JSON, schema, and GraphQL for working with data quickly & safely in any programming language. Generate Code Now { "people": [ { "name": "Atticus", "high score": 100 }, { "name": "Cleo", "high score": 900 }, { "name": "Orly" }, { "name": "Jasper" } ] }Provide sample JSON files, URLs, JSON schemas, or Gra
100ä¸è¡ãªã¼ãã¼ã®ã¢ããªã·ãã¯Railsã¢ããªããã¤ã¯ããµã¼ãã¹åããã¯ãã¯ãããã®æé ãã¤ã¯ããµã¼ãã¹ã®å°å ¥äºä¾ããä¸ã®äººãå¾¹åºçã«èªãã¾ããã¯ãã¯ãããã§ã¯ã100ä¸è¡ãªã¼ãã¼ã®è¶ 巨大ãªRuby on Railsã¢ããªã®ãã¤ã¯ããµã¼ãã¹åã«æã¿ã¾ãããã¢ããªãããã«åé¢ããé£æºã§ããããã«ãããããªã©ãå社ãæ¡ã£ããã¤ã¯ããµã¼ãã¹åã®æ¦ç¥ãèãã¾ããã Ruby on Railsã®ãã¼ã¸ã§ã³ã¢ããã«1å¹´ããã£ã¦ãã ããã¤ã¯ããµã¼ãã¹åæ¦ç¥ãã¾ãã¯ã³ã¼ããæ¸ãããã¨ãã ããã¤ã¯ããµã¼ãã¹åæ¦ç¥ãã¢ããªåºæã®ããããã¦ãã¦ãæ¸ãã ããã¤ã¯ããµã¼ãã¹åæ¦ç¥ãã¾ãã¯åé¢ããããé¨åããã試ã㧠ããã¤ã¯ããµã¼ãã¹åæ¦ç¥ããã¼ã¿ãã¼ã¹ãåãã¦ããã°ãµã¼ãã¹ãåãããã ããã¤ã¯ããµã¼ãã¹åæ¦ç¥ãã¤ã³ãã©æ§æãæ¨æºåãã ããã¤ã¯ããµã¼ãã¹åæ¦ç¥ããµã¼ãã¹ã¡ãã·ã¥ãå ¥ãã¦éä¿¡ã®èª²é¡ãã¯ãª
ã¯ããã« ããã«ã¡ã¯ãããæè¿AzureããAWSã«ä¸»æ¦å ´ã移ããalfaã§ãã AWS ãªã®ã§æ©éå°é·ãè¸ã¿ã¾ããã å ·ä½çã«ã¯ãAuroraã§ãã§ã¤ã«ãªã¼ãã¼ãçºçããéã«DBã¸æ¸ãè¾¼ã¿ãåºæ¥ãªããªã£ã¦ãã¾ããã¢ããªãåèµ·åãããã¾ã§æ£ããåããªããªã£ã¦ãã¾ãã¨ãã£ãçç¶ã§ãã ä½ãèµ·ãã£ãã®ã Auroraã®ãã§ã¤ã«ãªã¼ãã¼ã¨ActiveRecordã®ã³ãã¯ã·ã§ã³ãã¼ã«ã®ä»çµã¿ã¯ç¸æ§ãæªãã£ãã¨ããäºã§ããé ã追ã£ã¦èª¬æãã¦ããã¾ãã ã¯ã©ã¹ã¿ã¼ã«é害ãçºçããå ´åãã¯ã©ã¹ã¿ã¨ã³ããã¤ã³ãã®DNS(CNAME)ãæ¸ãæãããã¨ã§åç §å ãåãæ¿ããä»çµã¿ã§ãã ã¯ã©ã¹ã¿ã¨ã³ããã¤ã³ããDBã®æ¥ç¶å ã«è¨å®ããRubyã¢ããªã±ã¼ã·ã§ã³ããã£ãã¨ã ãã§ã¤ã«ãªã¼ãã¼ãã¦ãã¹ã¿ã¼ãåãæ¿ããã¨... ã¢ããªã±ã¼ã·ã§ã³ã¯åæ¥ç¶ããã ãã§ææ ¼ãããã¹ã¿ã¼ãåç §ã§ãã¾ãã ã¦ã«ãã©ãã¤ãã¼ã¡ãã£ã¯ã
When increasing concurrency by using a multi-threaded web server like Puma, or multi-process web server like Unicorn, you must be aware of the number of connections your app holds to the database and how many connections the database can accept. Each thread or process requires a different connection to the database. To accommodate this, Active Record provides a connection pool that can hold severa
Ruby 㧠DB ãæ±ãã¡ãã£ã¨ããã¹ã¯ãªãããæ¸ãã¨ããActiveRecord ã§çSQLã使ãã¨è²ã æããã¨ãå¤ãã ãã®ããã®ã¡ã½ãããã¾ã¨ãã¦ã¿ãã äºåæºåï¼ establish_connection ä½æã»æ´æ°ç³»ï¼ execute æ¤ç´¢ç³»ï¼ select_all, select_one, select_rows, select_values, select_value ãã¬ã¼ã¹ãã«ãï¼ sanitize_sql_array äºåæºå establish_connection DBã¨ã®ã³ãã¯ã·ã§ã³ã確ç«ããã'mysql2', 'postgresql', 'redshift' ãªã©æ§ã ãªã¢ããã¿ã使ããã 以ä¸ã¯æ¥ç¶è¨å®ã®ä¸ä¾ã [MySQL] (è¦ mysql2 gem) require 'active_record' config = { adapter: 'mysql2
Rubyã®JITéçºã§ãããã¨æã£ã¦ããã¨ãå¤§ä½ @_ko1 ããã®ä½æ¥å¾ ã¡ã§ãããã¯ãã¦ãã¦æãªã®ã§ä½ããæ¸ããã¨æããJVMãæ¸ããã¨ã«ããã ã¾ã ãã®è¾ºã®ã¢ããªãæ°è»½ã«åãããã¬ãã«ã§ã¯å ¨ç¶ãªãããå¥ã«ç§å¯è£ã«éçºããå¿ è¦ããªãã¨æã£ãã®ã§å ¬éããã github.com ããã®ç´¹ä»ã¨ãç¾æç¹ã§å¦ã¹ããã¨ããã®è¨äºã«è¨é²ãã¦ããã ä½æ JVMãªã®ã ä»äºã§JVMè¨èªã使ã£ã¦ãã åãæå±ãã¦ããTreasure Dataã§ã¯ã大éæã«è¨ãã¨æ¬çªãµã¼ãã¼ã®ãµã¼ãã¹ã¯å¤§ä½Ruby, Java, Scala, Kotlinã§æ¸ããã¦ãã*1ã®ã§ãæ¢ã«Rubyã®VMã¯ããç¨åº¦ããã*2ãã¨ãèããã¨ãJVMããç解ãã¦ãã¾ãã°ç¤¾å ã®ä¸»è¦ãªè¨èªè©ä¾¡ç³»ãæãããã¨ã«ãªããéç¨é¢ã§æ´»èºã®æ©ä¼ãå¢ããæ°ããã¦ããã ã¾ããèªåãæè¿ä¸çªæ¸ãã¦ããã®ã¯Kotlinãªã®ã ããJVMã§åããã¦ãããã¨ã«ç±
Weâre excited to announce that Sorbet is now open source and you can try it today. Sorbet is a fast, powerful type checker designed for Ruby. It scales to codebases with millions of lines of code and can be adopted incrementally. We designed Sorbet to be used at Stripe, where the vast majority of our code is written in Ruby. Weâve spent the last year and a half developing and adopting Sorbet inter
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}