Articles in the Coding category

  1. Kaffeeklatsch teaser

    I got Kaffeeklatsch back out of the toy box the other day and started integrating the Affe compiler into it. The goal is to remove Lua entirely, as it's an unmanaged dependency and has been giving some odd errors as of late, crashing mono after a few seconds.

    The ...

    Tagged as : C# Kaffeeklatsch
  2. Another one bites the dust

    Seems my computer decided I've hacked enough on WikiBench this week. This morning I smelled something odd, and after checking my email noticed that my CPU temperature was 84C. I usually push 80C when listening to music or watching video, but when it's been idle 50C is more ...

  3. I'm running out of title ideas

    But not motivation to code.

    Since my last post, the following changes have been made to Affe:

    • The AffeCompiler class has been split into two classes. AffeCompiler stores information about the configuration (host type and symbol table) and passes copies to AffeCompilerState for actual compilation. This allows the host class ...
    Tagged as : C#
  4. More Affe hackery

    Today I added:

    • Variable persistence. If a field of type ScriptState is tagged [AffeBound] on the host class, it will be used to store the state of all of the variables local to the script. If no such field is found, no state preserving IL will be emitted.
    • Bound methods ...
    Tagged as : C#
  5. Affe evolves (Get it? It's a pun.)

    Well, the plan was to have Affe be a simple language. I guess it still is, but I've been adding support for many C-style language features and tweaking other features over the past day. Specifically, the following:

    • Added if/else support, with the same nesting rules as C.
    • Added ...

    Tagged as : C#
  6. Affe

    Introducing my new CLI language, Affe. While not exactly flexible, the language will be useful to me.

    Since the goal was to have an expression-evaluating language that targets DynamicMethod instead of Assembly, it's not used the same way most other languages are. It cannot be used to define subroutines ...

    Tagged as : C#
  7. Simple XML-RPC library

    I decided to use the XML-RPC standard in a project I'm working on, and meebey suggested that I release it as a separate project.

    So here it is: Org.Cdh.Xmlrpc. Just svn co https://layla.chrishowie.com/svn/Xmlrpc. No fancy reflection stuff yet. The library was designed ...

    Tagged as : C# XML-RPC
  8. Cast abuse

    Every so often when reading through some C# code I'll run across the as keyword. Now this is a very nifty feature of C#. Just like the familiar parenthetical cast, it returns the object cast to the new type if it succeeds. However, if it fails then it simply ...

    Tagged as : C#
  9. WikiBench: Persistence

    One of the things I'd been dreading implementing in WikiBench is state persistence. This is, however, very important. When the user closes the application, they should find it in the same state they left it in when they open it later.

    This is a tricky one to get right ...

    Tagged as : C# VandalSniper Wikipedia

Page 5 / 8