As I wrote in a previous post, I’m on my way to learn forth, and to do so, rewrite my Lispy raytracer into a.. Forthy raytracer. Of course, the first steps are deciding on some implementation ideas.
I decided to allocate a few global variables (for “current point”, “current vector”, “light source”, etc), to avoid too much clutter in the stack. This way it will be cleaner, maybe even cleaner than my Lisp version.
After following a twitter feed about programming, I got overwhelmed by FORTH related posts. I had already read something about forth before (stack-based, somewhat fast, good for embedded devices), but so many bit.ly links pointing to webs of implementations of FORTH and FORTH things made me decide to, well, take a deeper look.
Looks like a nice language, having something I enjoy about Lisp (interactivity) and something I like about PostScript (stack based).
The easiest way to debug: valgrind with the most powerful text editor: emacs A few days ago my office mate told me about the great debugging tool known as valgrind. Before I have been using the great pairing of emacs+gdb to debug segmentation faults and memory leaks… Now I would never use gdb for this. Moreover, I found a way to somewhat use it from within a shell in emacs to allow fast error browsing.
Maybe you remember my previous post about detection of copied assignments? Well, now I can say it succeeded. CJuicer is a flex script, generating a lexycal analyzer with a rudimentary parser of C code, it outputs a PostScript with the “logical tree” of loops, function calls and conditionals. Same trees, copied assignment (unless it is simple code, then almost everyone writes the same), without problems with changing names of variables. Thus it could beat diff.
Made with Sketchbook Mobile…
in an iPod Touch
All hail hypnotoad… in real life
I want to start by saying that I might buy an iPad, and definitely like it, in an abstract setting. But I think that Steve Jobs is kind of blind through his own charisma. He likes the iPad… then it should be liked (and bought) by everyone.
I don’t think the iPad is gona be a hit.
I got linked to Ipad’s “history”: Someone on MetaFilter posted a link to my emacs on iPod blog post in the thread about the launch of Apple’s iPad.
You may also like
ParseList(ScrambleList(Relateds(Linux,iPod,Mac,emacs)),5)