Settings

Theme

Live coding is great fun

hughrawlinson.me

13 points by codeoclock 12 years ago · 12 comments

Reader

Peaker 12 years ago

> In fact, in haskell, everything is a function. There aren't any variables in haskell, but you can declare a function that takes no arguments and returns only one result

This is a common myth [1].

[1]: http://conal.net/blog/posts/everything-is-a-function-in-hask...

  • codeoclockOP 12 years ago

    Ok, what I meant by that was that everything that is 'defined' and 'solidified' (I don't think I know the right word to describe it) is a function in that you can't define variables of type, they're all something that a function returns, and have a more etherial quality. Yeah, I really don't have the words for what I think I'm trying to say, and I don't actually know that either, I'm just going by what people have told me and what I have read of haskell. I'm by no means even familiar with haskell at this stage, so whatever I say about haskell is conjecture from the perspective of a novice in an attempt to describe things to the extent that other novices can have a quick entry path to live-coding (which is the aim here rather than into FP/haskell)

  • omaranto 12 years ago

    Really, that myth is common? If so it explains why people seem to be afraid of Haskell: they think it has no numbers, characters, strings, lists, arrays, etc.

    Someone who believes the myth and is aware of Church encodings probably thinks everything is Church encoded in Haskell. Someone who believes the myth and is not aware of Church encodings will likely have no mental image to associate to Haskell, and feel it is truly alien.

  • melloclello 12 years ago

    It may be wrong, but is it, perhaps, a harmless and useful way to understand Haskell?

    (I have a friend who always tries to show me examples of neat stuff he's done in Haskell and I can never wrap my brain about it)

    • omaranto 12 years ago

      It's not useful at all, it makes Haskell sound bizarre. Haskell is much more of an ordinary programming language than this would suggest: like ordinary languages it has functions but also numbers, strings, list, arrays, etc.

    • aaronblohowiak 12 years ago

      When discussing technical matters, anything that isn't technically correct should be accompanied by a disclaimer.

      I usually like to say "just about", "informally" or "while there are some exceptions, it can be helpful to think about it as if..."

gagege 12 years ago

I'm just starting to get into this, and yes, it is a ton of fun. I started out using Tidal, now I'm moving onto Overtone (a Clojure library for making music) because it's more about synths and scales than Tidal, which is more about loops and samples.

Both of them are great though. Whichever you get into just depends on what you want to do. Overtone integrates with midi really well too.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection