30 Aug 2009 @ 2:52 PM 

So i haven’t been working on Haxer too much lately, mostly because i’ve hit a wall as far how to best convert some AS3 code to Haxe without having to implement a full parser/lexer. The main area i am struggling with is converting “o is Object” and “o as Object”  which sounds trivial at first, but when you look at the myriad of possible ways those statements can appear in code, it becomes a much more complex task.

In HaXe, the “is” operator/keyword/whatever it is, is written as “Std.is(obj, type)”  and the “as” operator is written as “cast(obj, type)”. This presents quite a challenge when you have lines like this in AS3:

  1. if(other is fObject && !(other.customData.flash9Renderer as fFlash9ObjectRenderer).eraseShadows) {

There are other, more complicated examples that make using regular expressions nearly impossible. I am open to a discussion as to how i might be able to implement such a conversion.

Posted By: Atmospherian
Last Edit: 30 Aug 2009 @ 02:52 PM

EmailPermalinkComments (2)
Tags
Tags: , , ,
Categories: Haxer, Projects, haXe, java
 30 Aug 2009 @ 11:32 AM 

I know it’s been a while since i’ve posted about InterIMAP and i want to let everyone know that i am planning to continue work on it, fixing bugs and adding features.

Based on the issues and discussions that have been posted on the codeplex site, it seems that some people are still using the old code base in the Synchronous folder tree. This branch will be marked as deprecated going forward as i will not be maintaining it anymore. The asynchronous branch contains far better code, and even supports performing operations in a synchronous manner (blocking the calling thread until the operation completes) so there is no reason to use the old code.

Through some basic testing i did on the code to see what state it is in, i noticed that the new message flag detection code was not working properly, marking messages as new that weren’t necessarily so. This will be the first area I will work on correcting as i recall the message flags that the server returns can vary from server to server (as most things with IMAP tend to be). Once i can correctly determine if a message is new or not i will work on implementing a quick and easy way of checking for new messages either in all folders, or in a specific folder only.

I encourage everyone who uses the library to submit any requests or bugs they find either on this blog or on the codeplex site so that they can be incorporated into the code.

Posted By: Atmospherian
Last Edit: 30 Aug 2009 @ 11:32 AM

EmailPermalinkComments (3)
Tags
Categories: C#, InterIMAP, Projects
Change Theme...
  • Users » 4
  • Posts/Pages » 25
  • Comments » 29
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

About Me



    No Child Pages.

Projects



    No Child Pages.

Downloads



    No Child Pages.