metaprogramming

most popular fresh hot now
1 2 »
http://www.randomhacks.net/articles/2007/07/01/ruby-metaprogramming-javascript-rspec-bdd

Ruby-style metaprogramming in JavaScript websnapr

I’ve been trying to make JavaScript a bit more like Ruby. In particular, I want to support Ruby-style metaprogramming in JavaScript. This would make it possible to port over many advanced Ruby librari
>30 days ago by qubit, 1 User, more info save
http://code.google.com/p/trimpath/wiki/trimjunction

TrimJunction websnapr

In a nutshell: mindlessly copy and port Rails, because it's a great web MVC framework. The result should be a web MVC framework that runs in either the client AND the server.
>30 days ago by qubit, 2 Users, more info save
http://www.chrisseaton.com/katahdin/

Katahdin websnapr

Katahdin is a programming language where the syntax and semantics are mutable at runtime.
>30 days ago by qubit, 1 User, more info save
http://g0dmode.com/ruby/injector.rb

injector.rb websnapr

easily inject code into/around ruby methods
>30 days ago by qubit, 1 User, more info save
http://www.oreillynet.com/ruby/blog/2007/03/why_was_rails_only_possible_wi.html

Why was Rails only possible with Ruby? websnapr

while these clone/borrowers can approach the productivity of Rails in their language, they will not be able to match Rails completely. The reason for this is found in one simple word: Ruby.
>30 days ago by qubit, 1 User, more info save
http://dablog.rubypowerandlight.com/2007/1/7/meta-shmeta-learning-ruby-horizontally

Meta, shmeta: learning Ruby horizontally websnapr

there’s a trend toward drawing an increasingly sharp line between regular programming and “metaprogramming” in Ruby discussions, where metaprogramming is understood to mean… well, I’m not sure what it
>30 days ago by qubit, 1 User, more info save
http://clemens.endorphin.org/liskell

Liskell websnapr

Liskell is a new syntax frontend for Haskell. Next to its syntax in the form of symbolic expressions — which is known from Lisp — Liskell also features an extended meta-programming facility.
>30 days ago by qubit, 1 User, more info save
http://weblog.raganwald.com/2007/03/approach-to-composing-domain-specific.html

An Approach to Composing Domain-Specific Languages in R ... websnapr

Ruby is often touted as a good language for writing Domain-Specific Languages (“DSLs”). There are a few arguments in favour of writing a DSL as part of an application.
>30 days ago by qubit, 1 User, more info save
http://raganwald.com/source/dsl_and_let.html

Domain Specific Language support in Ruby websnapr

A Domain Specific Language is used to introduce a new scope with an embedded set of methods.
>30 days ago by qubit, 1 User, more info save
http://redhanded.hobix.com/inspect/ablockcostume.html

A Block Costume websnapr

We follow Block, who goes into a cloak room and emerges with a change of fashion. A black hat for its dark magic, a dagger for its villianous theft of an instance’s binding, and a glimmering red ring
>30 days ago by qubit, 1 User, more info save
http://common-lisp.net/project/patty/

Patty [functional data structures on top of CLOS] websnapr

Patty is a small library that facilitates working with functional data structures. It consists of a few macros and metaclasses that integrate nicely with CLOS. Code using patty is similar in style to
>30 days ago by qubit, 1 User, more info save
http://metalua.luaforge.net

Metalua websnapr

Metalua is a metaprogramming extension to Lua 5.1, i.e. a compiler which allows to extend the language's syntax and semantics from within programs.
>30 days ago by qubit, 1 User, more info save
http://www.infoq.com/articles/eval-options-in-ruby

Evaluation Options in Ruby websnapr

Ruby provides a few different types of evaluation options; however, the evals I use most often are: eval, instance_eval, and class_eval
>30 days ago by qubit, 1 User, more info save
http://errtheblog.com/post/1109

alias_method_bling websnapr

ately I’ve been thinking a lot about How and When. Two old friends. They’re pretty quiet, but play a huge role (I think) in making us better at doing what we do.
>30 days ago by qubit, 1 User, more info save
http://blog.labnotes.org/2007/02/06/method_missing-best-saved-for-last/

method_missing: best saved for last websnapr

Java doesn’t have much of a heritage for meta-programming. Very few brave through thick forests of reflectors, proxies and code enhances, even less come out the other side. Ruby on the other hand, in
>30 days ago by qubit, 1 User, more info save
http://dablog.rubypal.com/articles/2007/01/07/meta-shmeta-learning-ruby-horizontally

Meta, shmeta: learning Ruby horizontally websnapr

One of the great accomplishments of Ruby is that its object and class model bring about a wonderful unity and simplicity. Even things that might seem like they should be hard or obscure are actually v
>30 days ago by qubit, 1 User, more info save
http://blog.evanweaver.com/articles/2007/01/05/truth-accessors-in-rails

truth accessors in rails websnapr

It might be nice to be able to ask obj.variable? for any accessor-defined @variable.
>30 days ago by qubit, 1 User, more info save
http://blog.caboo.se/articles/2006/12/21/metaprogramming-for-n00bz

metaprogramming for n00bz websnapr

“monkeypatching”, but when you want to reopen a class and add some methods, you don’t want to use class_eval or instance_eval. In fact, you (apparently) shouldn’t ever use class_eval
>30 days ago by qubit, 1 User, more info save
http://weblog.raganwald.com/2006/11/significance-of-meta-circular_22.html

The significance of the meta-circular interpreter websnapr

A meta-circular interpreter is a special case of a self-interpreter that applies only to programs where the primary representation of the program is a primitive data type in the language itself (this
>30 days ago by qubit, 1 User, more info save
http://weblog.jamisbuck.org/2006/11/20/under-the-hood-activerecord-base-find-part-2

ActiveRecord::Base.find, Part 2 websnapr

When working with Rails, it is tempting to conceptualize ActiveRecord#find into some genie that magically reaches into your database and pulls back the records matching the criteria you specified. The
>30 days ago by qubit, 1 User, more info save
http://www.therailsway.com/2006/11/15/tracks-part-1

The Rails Way: Tracks: Part 1 websnapr

illustrated a few common errors and antipatterns
>30 days ago by qubit, 1 User, more info save
http://weblog.techno-weenie.net/2006/11/15/extending-your-rails-classes-from-plugins

Extending your Rails classes from plugins websnapr

thinking about a simpler, slightly more explicit way of handling this. Sometimes having too much transparency and magic is a bad thing. So, forget all the load_path mingling
>30 days ago by qubit, 1 User, more info save
1 2 »

Power-User for metaprogramming