Tag Archives: programming

convenient file searching with Ruby, grep, and file

For my Linux kernel class, I often know that some struct exists somewhere, or remember seeing a macro defined in some file and it might be useful, but I can't remember where I saw something. I also end up trying to track down all the places a particular function is called, and don't want [...]
Posted in Programming | Also tagged | Leave a comment

merge sort, the eater of nodes

I’m so tickled to have completed an assignment for my Linux kernel class. The specification was as follows: Modify the algorithm that allocates a file descriptor for the open() and socket() calls. Implement a per-process variable availableFileDescriptor whose value is always the number of the first available file descriptor. Make sure that when a process [...]
Posted in Class, Daily life | Also tagged , | Leave a comment

the pain of Facebook application development

For the past few days, I’ve been trying to create a Facebook application for interacting with Github. I hoped to spend my time mainly on the Github portion, figuring out how to post wall posts on Facebook about recent Github activity, etc. However, I’ve instead argued with the various Facebook APIs. I [...]
Posted in Programming | Also tagged , | 2 Comments | Current music Prime by Hearts By Darts

two new programming projects

I’ve gone on a programming project binge today, coding first in C# on a project to add an enforceable Implements attribute to class members, then in PHP to write a Github application for Facebook. I’m interested in co-developing the Facebook app, too, and have emailed a few of my programmer friends at UK to [...]
Posted in Programming, Techy | Also tagged , | Leave a comment

heap sort in ML

This past semester for my programming languages class, we had to implement heap sort in Standard ML. This is my implementation, which I release under the GNU General Public License v3. I split the code into two separate files: shared.ml and heap_sort.ml, where shared.ml contains functions that might be of use with [...]
Posted in Programming | Also tagged | 1 Comment

giving up on the day, possibly due to frozen milk

I probably ought to go to bed and as soon as I take a shower (which will happen promptly after I finish this post…), I will. I don’t know why I have such a time getting to bed, but I always seem to drag my feet about it. Tony commented once that he’s [...]
Posted in Daily life | Also tagged , | Leave a comment

the wily C# shuffle

My programming languages professor is quite the wily one. For our last programming assignment in there, we’re to write a fraction class in both Java and Smalltalk, as part of our coverage of object-oriented languages. I asked if I could do C# and Smalltalk, since I really like C# and, darn it, everyone [...]
Posted in Class, Programming | Also tagged , | 2 Comments

how I made my languages professor twitch

Today in programming languages, the professor started going over Lisp. I was surprised to learn that function names are case insensitive in Lisp, so if you declare a function called incrementAll, you can invoke it by calling INCREMENTALL, incrementall, or any other case variant. I forgot about this because I’m not used to [...]
Posted in Class | Also tagged | Leave a comment

proof by failure of imagination

In programming languages today, someone had to answer this question: Prove the contention on page 40 that when a CLU iterator terminates, indicating to its parent for loop that there are no more values, the iterator’s activation record is actually at the top of the stack. — Advanced Programming Language Design by Raphael Finkel, p. 61 The guy’s [...]
Posted in Class | Also tagged | Leave a comment

first graduate classes

My first day of graduate classes were Thursday, and I must say having gone through them has made me feel better about this semester overall. Before Thursday, I had been stressing out because this is my first semester of graduate school and I plan on working 20 hours/week. Full-time for graduate students is [...]
Posted in Class | Also tagged , , | 1 Comment