Pete's Log: stupid strtok

Entry #1050, (Coding, Hacking, & CS stuff)
(posted when I was 22 years old.)

I hate strtok. I need to rid the monad of it. The monad was, at one point today, "silently failing" ... actually, upon closer inspection, it was segfaulting on a line doing strtok stuff. figures.

mona export transformations work! at least the simple ones. I also got rid of a bunch of the hardcoded values in monad. there's still some remaining, but I'm working on it. uid/gid of the monad is now also set to a proper (I hope -- need to doublecheck what inode I'm looking at) value, instead of to the hardcoded uid of what used to be Rich Kendall's uid on his machine here. heheh.

My current mission is to remove dead code from mona. there is much. I discovered that one point in the code, instead of calling memcpy, calls a function cp_mem2xform, which was defined earlier in the file and is called only once. it is exactly memcpy, but unoptimized. brilliant. I quickly replaced that call with memcpy. But I think Rob loves mona as much as I do, his comment on the matter:

I have no idea why. However, be sure to remain true to the Mona way when        
removing the extraneous code. That is, remove the function CALL, but            
leave the cp_mem2xform prototype and definition.     

I was quite amused. ugh. oops. monad process leak. should likely look into fixing that.

In a binge of removing unused and unecessary code, I just removed about 20 variables, 3 macros, 3 functions, 1 struct definition, and well over 100 lines of code. The term bloat is one that, I feel, describes mona well. Of course, removing mona bloat is, at this point, kinda like shooting fish in a barrel.

oh, and word has it I won't be working on mona all summer! haha. not that I was planning to. But once I get back from Boston, mona shall hopefully be a thing of the past. there's rumor of some cool pim stuff Dr Brockman wants me to look into. we'll see how that goes.