Kurt StephensNerd Up! | ||||||||||
programmingAbstraction .vs. Optimization
http://www.computerworld.com/comments/node/9141465#comment-553333 Abstractions can lead to greater flexibility and correctness at the expense of speed or size — there are good reasons that most programs are not crafted in machine code. The key to improving an abstraction’s performance is to compile it. Dynamic environments like Common Lisp are superior to languages and tools like: Java, C++, and C#, in this regard, because one can create abstractions that compile to efficient code. If the abstraction is cumbersome it might be a poor abstraction or its platform is poor for abstraction. Environments that give seamless access to a language’s compiler from inside the language itself are superior platforms for abstraction. Ruby: Caching #to_s for immutables (and a possible future for constant-folding)
Reference: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/26869 I have a proof-of-concept patch to MRI that caches It reduces the number of It requires a minor semantic change to Ruby core. This minor change could cascade into a huge performance improvement for all Ruby implementations — as will be illustrated later: #to_s may return frozen TM : The implementation of a real-time, single-threaded, type-segmented, conservative garbage collector
Introduction
Full documentation is located at: http://kurtstephens.com/pub/tredmill/current/doc/html/index.html Perl Dead, Long Live Perl?
Is Perl Dead? Hardly. http://digg.com/programming/Perl_is_Dead_Long_live_Perl But, after 16 years of Perl programming, and now working for a Ruby on Rails shop for the past 8 months, I haven’t touched any Perl and I’m happy. For me, the excitement about Ruby on Rails isn’t Rails, but Ruby. |
||||||||||
Recent comments
14 weeks 16 hours ago
26 weeks 6 days ago
29 weeks 2 days ago
29 weeks 3 days ago
29 weeks 3 days ago
29 weeks 3 days ago
29 weeks 4 days ago
31 weeks 6 days ago
31 weeks 6 days ago
34 weeks 3 days ago