Writing a compiler in Ruby bottom up - step 8
Part 8 adds support for assignment, and adds some minor runtime support (in C temporarily) for arithmetic and comparisons, and briefly discusses how... more »
0 commentsSave Tags: how-to, other languages, ruby
TraceViz: Visualizing traceroute output with graphivz
At one point I quickly hacked together a Ruby script to merge the paths generated by multiple traceroute runs together into directed graphs, showing... more »
0 commentsSave Tags: how-to, ruby, tools
Reducing coupling through unit tests
After my previous post on the subject of coupling and cohesion, a lot of the feedback I've gotten has been from people who want examples of lowering... more »
0 commentsSave Tags: how-to, methodology, opinion
Writing a compiler in Ruby bottom up - step 7
Seventh in my series on writing a compiler in Ruby: Using lambda/call to implement control structures, and finally making it possible to access... more »
0 commentsSave Tags: how-to, other languages, ruby
How to beat comment spam (for now, anyway)
Thoughts on defeating comment spam without user visible captcha's by using javascript.
0 commentsSave Tags: how-to, javascript, opinion, web 2.0
A brief introduction to Semantic Dictionary Encoding
SDE is, at it's most basic, a compression mechanism for the intermediate representation of a compiler. Similiarly to Huffman coding, an SDE encoder... more »
0 commentsSave Tags: methodology, other languages, research
Writing a compiler in Ruby bottom up - step 6
Sixth in my series on writing a compiler in Ruby: "How about some deferred evaluation and anonymous functions? Lambdas, or anonymous functions, can... more »
0 commentsSave Tags: how-to, other languages, ruby
Software ICs: Reuse should not always mean inheritance or configuration
Inheritance or configuration options has a cost in terms of increased complexity that can in some cases with advantage be avoided by maintaining... more »
0 commentsSave Tags: methodology, opinion, tools
Customizing the Ruby syntax highlighter for x86 assembler
I wrote about syntax hightlighting in Ruby a while ago. The Ruby Syntax library supports Ruby, YAML and XML out of the box. But it's also pretty easy... more »
0 commentsSave Tags: how-to, other languages, ruby
Rebuilding the build server on every build
I argue that with virtualization, there's a lot of compelling reasons and few downsides with not only rebuilding your applications from scratch... more »
3 commentsSave Tags: methodology, opinion, tools, unix-linux
Writing a compiler in Ruby bottom up - step 4
Fourth in a series on writing a compiler targeting x86. This part shows how to define functions, and adds a mechanism for adding a runtime... more »
0 commentsSave Tags: how-to, open source, other languages, ruby
Mini reviews of 19 Ruby template engines
I've seen lots of template systems in Ruby, but haven't been really been happy with any of them. Over the last few months or so I've kept notes of the... more »
0 commentsSave Tags: frameworks, reviews, ruby, web design
Writing a compiler in Ruby bottom up - Step 3
Third in a series - this part covers chaining expressions and compiling sub-expressions, and also includes a list of the upcoming parts. This one's... more »
0 commentsSave Tags: how-to, other languages, ruby
Making Graphviz diagrams pretty with XSL
A couple of years back I posted on my blog about an XSL transformation I used to clean up Graphviz output to make my diagrams prettier. I never posted... more »
0 commentsSave Tags: how-to, open source, tools, xml
Track your latest referrers using Rack and Ruby
As most bloggers I like to keep an eye on where my traffic is coming from, and especially when there are surges in traffic. I'm using both Google... more »
0 commentsSave Tags: frameworks, how-to, open source, ruby
Why coupling is always bad / Cohesion vs. coupling
In the discussion following my entry "Why Rails is total overkill and why I love Rack" several comments raised the issue of whether high coupling is... more »
0 commentsSave Tags: frameworks, opinion
http://www.hokstad.com/why-coupling-is-always-bad-cohesion-vs-coupling.html
In the discussion following my entry "Why Rails is total overkill and why I love Rack" several comments raised the issue of whether high coupling is... more »
2 commentsSave Tags: frameworks, opinion
Writing a compiler in Ruby bottom up - Step 2
Second part of my series on writing a compiler targeting i386 in Ruby. This part adds support for function calls, so a simple hello world can be... more »
0 commentsSave Tags: how-to, other languages, ruby
Writing a compiler in Ruby bottom up - Step 1
This is part 1 in what will be a long series (ca. 30 parts written so far) about writing a small compiler in Ruby "bottom up", in other words starting... more »
1 commentsSave Tags: how-to, other languages, ruby
URLs do not belong in the Views
It's bothered me for some time to hardcode URLs in my views. It means that if I want to revise the linking structure, I may need to modify the views... more »
0 commentsSave Tags: frameworks, opinion, ruby, web 2.0
Why Rails is total overkill and why I love Rack
Rails is total overkill. It tries to do "everything" in a massive framework where major components are tightly intervowen. Smaller frameworks like... more »
9 commentsSave Tags: frameworks, opinion, ruby, web 2.0
Rack middleware: Adding cache headers
Rack is an interface between web servers and Ruby web frameworks. This entry shows how to add cache headers to arbitrary Rack apps by plugging in a... more »
0 commentsSave Tags: frameworks, how-to, ruby, tools
Web2.0 style logo reflection with Ruby and Cairo
I keep trying to learn more about Cairo, and cheesy logo effects seems to be as good a way as any. This evening I was playing around with clip paths,... more »
0 commentsSave Tags: how-to, ruby, web 2.0, web design
Using Sequel and Ruby to import the Geonames database
A short howto on how to import the Geonames dataset into a database using Ruby and the Sequel ORM. The example uses Sqlite but can easily be adapter... more »
0 commentsSave Tags: database, how-to, ruby
Draw a logo with gradients with Ruby and Cairo
A short tutorial showing how to draw a logo with a gradient and simple drop shadow using Ruby and Cairo.
0 commentsSave Tags: how-to, ruby, web 2.0, web design