Forgot your password?
typodupeerror
User Journal

Journal: Functional Programming and Abstracting Time

Journal by ansible

This recently became clear to me. With functional programming (FP), you are, in effect, trying to abstract out time as much as possible.

Non-FP languages let you abstract out concepts. You don't worry about sending SYN packets, you just start communication with socket(). You don't worry about the details of how directory entries are stored, you just run 'ls' or 'dir'.

But non-FP languages don't let you abstract out time. By that I mean you (as the programmer) always have to be conscious of (and make decisions about) sequence.

However, if this is a detail that the tools (like the compiler) can take care of for you, shouldn't you let it? It can generate better and more accurate assembly code than I can, so why don't I let it worry about sequence too, when it is able to manage the details correctly.

I am starting to like lazy evaluation and Haskell. More on this later.

User Journal

Journal: Learning New Programming Languages

Journal by ansible

Here's a slightly wacky idea for learning a new programming language (or two). This only works if you're fairly experienced programmer already.

Start with a good, fairly advanced programming book such as Peter Norvig's "Paradigms of Artificial Intelligence Programming". This book has all its examples written in Common Lisp. Then translate the examples into another language. In my case, Haskell. I don't really know Common Lisp all that well but that's fine.

I feel I need to do it this way because aside from the new concepts (such as monads or macros) learning a new programming language is mostly about loading the details of the syntax and libraries into my brain.

I know that the classic way is to just start programming in the new language, and pick up the pieces along the way. But I don't like doing that. I want to have a better handle on the new language so that my first real programs aren't excessively lame. But maybe that's just me.

User Journal

Journal: Maintaining the friends list 4

Journal by ansible

Heh. I've been on Slashdot quite a while, and this is the first time I've posted a journal entry. I've been thinking about setting up a blog for myself, maybe I'll just use Slashdot instead.

At any rate, I wonder how many other people go through the same process as I do for picking friends in Slashdot.

If I see a good post or two by someone, I'll often check their posting history, and read at least 7 to 10 of their previous posts. Usually, they'll have a few high rated ones, and some at the basic level. Which is 2 because they usually already have a karma bonus.

Then, if that all works out, I'll put that person in my friends list. I'd like to find more people who intelligently expouse positions I don't agree with. But I don't seem to find many of those.

BTW, unless I'm doing moderation, I usually browse at +3. That's enough to catch anyone marked as a friend or friend-of-a-friend, plus other highly rated posts.

In order to dial out, it is necessary to broaden one's dimension.

Working...