サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
中東情勢
www.johnhawthorn.com
I saw a project a couple weeks back which allows writing and running Crystal methods inline inside a Ruby file. It’s a neat project, and I don’t want to take away from it but something in the README example looked off to me. require 'crystalruby' require 'benchmark' module Fibonnaci crystalize [n: :int32] => :int32 def fib_cr(n) a = 0 b = 1 n.times { a, b = b, a + b } a end module_function def fib
Rails 6 comes with some improvements to ActionView template performance: Compiled templates are de-duplicated in more situations Dev-mode now caches templates between requests, which should feel much more production-like Template resolution (matching render "users/user" to users/_user.html.erb) is much faster when uncached A further improvement would be to load templates eagerly. Template compilat
Just-in-time is an illusion. Albert Einstein This week, Takashi Kokubun (@k0kubun) merged the first implementation of a JIT compiler in MRI ruby. k0kubun @k0kubun I've just committed the initial JIT compiler for Ruby. It's not still so fast yet (especially it's performing badly with Rails for now), but we have much time to improve it until Ruby 2.6 (or 3.0) release. github.com/ruby/ruby/commit/ed9
While having a vim discussion on twitter with @_jaredn, I remembered that having a delay in entering normal mode after pressing ESC (switching to normal mode) really frustrates me. This delay exists because many keys (arrows keys, ALT) rely on it as an escape character. Here’s the setup I’ve used for a while for near instantaneous switch into normal mode. vim A simple solution for vim is to :set e
このページを最初にブックマークしてみませんか?
『www.johnhawthorn.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く