Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Journal of Aardvajk



Allocator Pools

Posted by Aardvajk, 24 April 2015 · 0 views

After a brief battle with a bad phase of mental health issues, I've yet again restarted Om from scratch. I want to try a different approach to look up of variables this time as I was encountering some problems using the approach of storing indices from top of stack backwards. Instead this time, I'm going to try storing a stack offset when a function is ca...


Om: Short Circuit Evaluation, Ternary Operators and Native Functions

Posted by Aardvajk, 11 April 2015 · 0 views

Short Circuit Evaluation

The way I'd previously been doing and and or in the VM was with specific instructions, OpCode::Land and OpCode::Lor , which popped the top two stack values, then pushed the boolean result of anding or oring their boolean interpretations. Something like:

bool Machine::land(){ TypedValueGuard a(s, vs.pop().value); TypedVal...


Control Structures in Om

Posted by Aardvajk, 08 April 2015 · 0 views

Control Structures in Om

I've just finished up the basic control structures for the Om language and virtual machine, namely while, if/else and two forms of for loop. The second form of the for loop, what we'll call the for-each, is a little bit more interesting but I'll explain how the normal structures work first.

The control structures are all based...


Inside the Om Virtual Machine

Posted by Aardvajk, 02 April 2015 · 0 views

Inside the Om Virtual Machine

I've basically rewritten the entire project from scratch since my last entry since I really felt I could do better in terms of organisation and wanted to pay more attention to correctly releasing resources when an error occurred. I'm nearly back at the same point of functionality I had before, but in a much better structure...


Om

Posted by Aardvajk, 18 March 2015 · 0 views

Thought rather than posting random stream of conciousness updates about the Om scripting language, I'd try and post a bit more of a structured introduction to the syntax today. Will write some stuff up about the C++ API as an when it is more finished.

Om is a dynamically typed language, in that each value carries its type around with it, and anything can...






PARTNERS