69 posts tagged metaprogramming
Subscribe-
Smalltalk Daily 5/7/08: Looking at Introspection
http://www.cincomsmalltalk.com/ blog/ blogView?showComments=true&printTitle=…On today's Smalltalk Daily, we take a look at Smalltalk's introspection capabilities. Technorati Tags: smalltalk, metaprogramming, introspection
-
Smalltalk Daily 5/7/08: Looking at Introspection
http://www.cincomsmalltalk.com/ blog/ blogView?showComments=true&printTitle=…On today's Smalltalk Daily, we take a look at Smalltalk's introspection capabilities. Technorati Tags: smalltalk, metaprogramming, introspection
-
Multimethods in C# (Part 1)
http://themechanicalbride.blogspot.com/ 2008/ 05/ multimethods-in-c-part-1.htmlHave you ever needed to perform an action based on the run-time type of one or more objects? Let's take a hypothetical spaceship game for example. There are three types of objects: an Asteroid, an X-Wing and a TIE-Fighter. They are related in the following inheritance hierarchy: We have a collection of SpaceObjects that we update in a tight loop.
-
COLA Brainfuck
http://lambda-the-ultimate.org/ node/ 2796COLA Brainfuck From the Software Architecture Group at the Hasso Plattner Institut: Our tutorial on COLA provides insight on how programming languages can be implemented using the combined abstractions and an implementation of parsing expression grammars in COLA.
-
Web2.0 Expo is here in San Francisco from April 22nd through 25th!
http://sfblogg.com/ 2008/ 04/ 24/ web20-expo-is-here-in-san-francisco-from-april…Web 2.0 Expo is here again in San Francisco, a Web 2.0 exhibition featuring all the top Web 2.0 companies. It’s held only once a year so if you are a Web 2.0 geek like me, I highly suggest you attend it. Tomorrow, I will take some pictures and videos from the Web2.0 expo and post it on SFBlogg.
-
Extend modules instead of defining methods on a metaclass
http://blog.jayfields.com/ 2008/ 04/ extend-modules-instead-of-defining.htmlIn the entry Replace method_missing with dynamic method definitions I have the following example code. class Decorator def initialize(subject) subject.public_methods(false).each do |meth| (class << self; self; end).class_eval do define_method meth do |*args| subject.send meth, *args end
-
Extend modules instead of defining methods on a metaclass
http://blog.jayfields.com/ 2008/ 04/ extend-modules-instead-of-defining.htmlIn the entry Replace method_missing with dynamic method definitions I have the following example code. class Decorator def initialize(subject) subject.public_methods(false).each do |meth| (class << self; self; end).class_eval do define_method meth do |*args| subject.send meth, *args end
-
Scheme macro systems
http://lambda-the-ultimate.org/ node/ 2753Scheme macro systems [Chicken-users] macro systems and chicken (long), Alex Shinn, Apr 2008. There seems to be a lot of confusion in the Chicken community, and the Lisp community in general, about the different macro systems, so I thought provide some background information and discussion of the eggs available in Chicken and their uses.
-
Testing Anti-Pattern: Metaprogrammed Tests
http://blog.jayfields.com/ 2008/ 03/ testing-anti-pattern-metaprogrammed.htmlUpdate at bottom Update 2 for Saikuro reported cyclomatic complexity Update 3 for Flog I despise metaprogrammed tests. The problem with metaprogrammed tests is that they introduce more questions than answers.
-
Testing Anti-Pattern: Metaprogrammed Tests
http://blog.jayfields.com/ 2008/ 03/ testing-anti-pattern-metaprogrammed.htmlUpdate at bottom Update 2 for Saikuro reported cyclomatic complexity Update 3 for Flog I despise metaprogrammed tests. The problem with metaprogrammed tests is that they introduce more questions than answers.