POV-Ray : Newsgroups : povray.off-topic : Livecoding in Haskell Server Time
12 Oct 2026 10:42:58 EDT (-0400)
  Livecoding in Haskell (Message 1 to 27 of 27)  
From: Gilles Tran
Subject: Livecoding in Haskell
Date: 24 Jan 2012 19:16:30
Message: <4f1f49de$1@news.povray.org>
I don't read these groups regularly these days so perhaps this was posted 
before.
Just in case Andrew didn't see it: this guy makes music by coding in 
Haskell... live!
http://yaxu.org/category/livecoding/

G.


Post a reply to this message

From: nemesis
Subject: Re: Livecoding in Haskell
Date: 25 Jan 2012 10:59:08
Message: <4f2026cc@news.povray.org>
Gilles Tran escreveu:
> I don't read these groups regularly these days so perhaps this was 
> posted before.
> Just in case Andrew didn't see it: this guy makes music by coding in 
> Haskell... live!
> http://yaxu.org/category/livecoding/

bah, these Haskell guys are always late and derivative in the ideas:

http://www.imagine27.com/articles/2009-04-09-010147_live_lisp_art_opengl_synth_sound.html
http://impromptu.moso.com.au/gallery.html

perhaps they've spent too much time in compiling and getting the types 
right? ;)


BTW, a very interesting topic no doubt.  More info on it: 
http://toplap.org/index.php/Main_Page

I always felt like old music composers such as Bach to be programmers by 
nature...


Post a reply to this message

From: Invisible
Subject: Re: Livecoding in Haskell
Date: 26 Jan 2012 08:01:46
Message: <4f214eba$1@news.povray.org>
On 25/01/2012 03:59 PM, nemesis wrote:

> bah, these Haskell guys are always late and derivative in the ideas

That's like saying that every 20th century novelist is "late and 
derivative in the ideas" because there were writers in the 19th century 
also. :-P

> perhaps they've spent too much time in compiling and getting the types
> right? ;)

That's like saying "perhaps the Lisp guys spent too much time in getting 
the brackets right?"


Post a reply to this message

From: nemesis
Subject: Re: Livecoding in Haskell
Date: 26 Jan 2012 08:30:57
Message: <4f215591$1@news.povray.org>
Invisible escreveu:
> On 25/01/2012 03:59 PM, nemesis wrote:
> 
>> bah, these Haskell guys are always late and derivative in the ideas
> 
> That's like saying that every 20th century novelist is "late and 
> derivative in the ideas" because there were writers in the 19th century 
> also. :-P

well, and they largely are.

Like, after watching the latest Sherlock Holmes movie I noticed how the 
character has come a full circle:  its popularity spawned many imitators 
  in cheap magazines and it eventually led to cheap, pulp fiction, which 
eventually led to super hero comic books which eventually led to Batman, 
"the greatest detective of all time", according to DC Comics.  And 
indeed, there is Batman on the screen, except for no cape or batbelt 
(actually, in the first movie, he carries some belt full of tools).

>> perhaps they've spent too much time in compiling and getting the types
>> right? ;)
> 
> That's like saying "perhaps the Lisp guys spent too much time in getting 
> the brackets right?"

but they spend none at all, given the text editors do that for them, and 
much to their advantage BTW. You can see that in the video of the Lisp 
guy livecoding and extracting, editing and rearranging large chuncks of 
code easily, because they are bracketed and the editor handles any of 
that in a breeze. ;)

-- 
a game sig: http://tinyurl.com/d3rxz9


Post a reply to this message

From: Darren New
Subject: Re: Livecoding in Haskell
Date: 26 Jan 2012 23:28:38
Message: <4f2227f6$1@news.povray.org>
On 1/26/2012 5:30, nemesis wrote:
> but they spend none at all, given the text editors do that for them

Yeah. I use Eclipse at work, and I'll call BS on that one.  I spend way more 
time taking out the stupid shit Eclipse inserts than I do inserting 
punctuation myself.

-- 
Darren New, San Diego CA, USA (PST)
   People tell me I am the counter-example.


Post a reply to this message

From: nemesis
Subject: Re: Livecoding in Haskell
Date: 27 Jan 2012 05:55:00
Message: <web.4f22817d8decd384fdaea3f0@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> On 1/26/2012 5:30, nemesis wrote:
> > but they spend none at all, given the text editors do that for them
>
> Yeah. I use Eclipse at work, and I'll call BS on that one.  I spend way more
> time taking out the stupid shit Eclipse inserts than I do inserting
> punctuation myself.

Welcome back!  I see you're motivated. :)

Good to know you're programing in Lisp, but you should rather try emacs+slime.


Post a reply to this message

From: Invisible
Subject: Re: Livecoding in Haskell
Date: 27 Jan 2012 06:43:58
Message: <4f228dfe$1@news.povray.org>
On 27/01/2012 04:28 AM, Darren New wrote:

> Yeah. I use Eclipse at work, and I'll call BS on that one. I spend way
> more time taking out the stupid shit Eclipse inserts than I do inserting
> punctuation myself.

Heh, and I thought Eclipse was supposed to be the best IDE ever. :-P

But yeah, that sounds more or less like every IDE I've ever used... I 
guess that's why I don't use an IDE very often? (Apart from the extreme 
cost. And the lack of support for the formats I want to work with...)


Post a reply to this message

From: nemesis
Subject: Re: Livecoding in Haskell
Date: 27 Jan 2012 07:45:00
Message: <web.4f229b888decd384fdaea3f0@news.povray.org>
Invisible <voi### [at] devnull> wrote:
> On 27/01/2012 04:28 AM, Darren New wrote:
>
> > Yeah. I use Eclipse at work, and I'll call BS on that one. I spend way
> > more time taking out the stupid shit Eclipse inserts than I do inserting
> > punctuation myself.
>
> Heh, and I thought Eclipse was supposed to be the best IDE ever. :-P
>
> But yeah, that sounds more or less like every IDE I've ever used... I
> guess that's why I don't use an IDE very often? (Apart from the extreme
> cost. And the lack of support for the formats I want to work with...)

Fighting the IDE is not a good idea.  It's only inserting stupid shit because
your stupid shit language demands it.  That and "best enterprise practices".  If
you waste time and energy removing boilerplate that is the very goal of an IDE,
you'd rather just use a simpler language and straight text editor... of course,
if there's no bossy whip behind you...


Post a reply to this message

From: Orchid Win7 v1
Subject: Re: Livecoding in Haskell
Date: 27 Jan 2012 16:29:48
Message: <4f23174c$1@news.povray.org>
>> Heh, and I thought Eclipse was supposed to be the best IDE ever. :-P
>>
>> But yeah, that sounds more or less like every IDE I've ever used... I
>> guess that's why I don't use an IDE very often? (Apart from the extreme
>> cost. And the lack of support for the formats I want to work with...)
>
> Fighting the IDE is not a good idea.  It's only inserting stupid shit because
> your stupid shit language demands it.  That and "best enterprise practices".  If
> you waste time and energy removing boilerplate that is the very goal of an IDE,
> you'd rather just use a simpler language and straight text editor... of course,
> if there's no bossy whip behind you...

I think you just said "if you need an IDE, your language sucks". ;-)

That said, my development environment tends to consist of having an 
editor window open, and a command prompt open, and repeatedly jabbing 
the up array until the command I want appears. It would be nice if 
somebody could invent the simple idea of being able to define the 
commands a want in a small text file, and give me a row of buttons (or 
better yet, keyboard shortcuts) to execute those commands...

...oh, wait. Somebody already did. It's called Emacs. >_<


Post a reply to this message

From: Darren New
Subject: Re: Livecoding in Haskell
Date: 28 Jan 2012 00:57:29
Message: <4f238e49$1@news.povray.org>
On 1/27/2012 2:50, nemesis wrote:
> Welcome back!  I see you're motivated. :)

Oh, I just have much less time to BS here, I fear. :-)

> Good to know you're programing in Lisp, but you should rather try emacs+slime.

I'm programming in Java. I just felt the need that day to gripe about Eclipse.

-- 
Darren New, San Diego CA, USA (PST)
   People tell me I am the counter-example.


Post a reply to this message

From: Darren New
Subject: Re: Livecoding in Haskell
Date: 28 Jan 2012 00:59:06
Message: <4f238eaa@news.povray.org>
On 1/27/2012 3:43, Invisible wrote:
> Heh, and I thought Eclipse was supposed to be the best IDE ever. :-P

It sucks pretty hard, actually. It's not even really an IDE as much as it is 
an IDE builder framework thing. Of course, people have built a lot of 
languages into it and stuff (and Google has plug-ins for the google-specific 
languages and such), but for something like Java it seems way more annoying 
than something like VS is for C#.

-- 
Darren New, San Diego CA, USA (PST)
   People tell me I am the counter-example.


Post a reply to this message

From: Darren New
Subject: Re: Livecoding in Haskell
Date: 28 Jan 2012 01:04:51
Message: <4f239003$1@news.povray.org>
On 1/27/2012 4:41, nemesis wrote:
> Fighting the IDE is not a good idea.  It's only inserting stupid shit because
> your stupid shit language demands it.

No. I mean I have something like

    mystream.write(myobject);

and I want to call mymethod in the middle, to get

    mystream.write(mymethod(myobject, 3));

and what I get is

    mystream.write(mymethod(object_to_methodize, method_counter)myobject);

because Eclipse figures that rather than giving you drop-down pop-up boxes 
like Visual Studio, it'll actually insert the crap into your input stream, 
forcing you to delete it instead. Then it'll take over your arrow keys and 
enter key, so if you actually do delete the inserted parameter name and try 
to cursor to the end of the line, it'll randomly stick you somewhere inside 
the expression, depending on how far the parser has gotten.

> you'd rather just use a simpler language and straight text editor...

I'd definitely rather use a language with more power and less boilerplate, 
but that's not the problem here. The problem is that Eclipse (until I 
figured out how to turn that off, except for the buggy bits, that is) would 
inject what it thought you wanted into the text, rather than offer 
suggestions. Now, having switched all that crap off, it just randomly 
inserts parens after function calls.

-- 
Darren New, San Diego CA, USA (PST)
   People tell me I am the counter-example.


Post a reply to this message

From: Darren New
Subject: Re: Livecoding in Haskell
Date: 28 Jan 2012 01:07:09
Message: <4f23908d$1@news.povray.org>
On 1/27/2012 13:29, Orchid Win7 v1 wrote:
> I think you just said "if you need an IDE, your language sucks". ;-)

No.  If you need code generation, your language sucks.  IDEs can be helpful 
even for good languages.

> ...oh, wait. Somebody already did. It's called Emacs. >_<

You know Tcl. Go for it. That's about 10 lines of code.

-- 
Darren New, San Diego CA, USA (PST)
   People tell me I am the counter-example.


Post a reply to this message

From: Darren New
Subject: Re: Livecoding in Haskell
Date: 28 Jan 2012 01:08:46
Message: <4f2390ee$1@news.povray.org>
On 1/27/2012 4:41, nemesis wrote:
>  It's only inserting stupid shit because
> your stupid shit language demands it.

Oh, and if it would actually do useful stuff, like when I type

    myobject.mymethod()

and mean

    myobject.myMethod()

and have it actually correct that, or even offer completions on local 
variable names and such, that would be handy. It every once in a while will 
do something surprisingly helpful, but otherwise it's pretty darn annoying.

-- 
Darren New, San Diego CA, USA (PST)
   People tell me I am the counter-example.


Post a reply to this message

From: nemesis
Subject: Re: Livecoding in Haskell
Date: 28 Jan 2012 08:30:01
Message: <web.4f23f8178decd38672f67ac0@news.povray.org>
Orchid Win7 v1 <voi### [at] devnull> wrote:
> >> Heh, and I thought Eclipse was supposed to be the best IDE ever. :-P
> >>
> >> But yeah, that sounds more or less like every IDE I've ever used... I
> >> guess that's why I don't use an IDE very often? (Apart from the extreme
> >> cost. And the lack of support for the formats I want to work with...)
> >
> > Fighting the IDE is not a good idea.  It's only inserting stupid shit because
> > your stupid shit language demands it.  That and "best enterprise practices".  If
> > you waste time and energy removing boilerplate that is the very goal of an IDE,
> > you'd rather just use a simpler language and straight text editor... of course,
> > if there's no bossy whip behind you...
>
> I think you just said "if you need an IDE, your language sucks". ;-)
>
> That said, my development environment tends to consist of having an
> editor window open, and a command prompt open, and repeatedly jabbing
> the up array until the command I want appears. It would be nice if
> somebody could invent the simple idea of being able to define the
> commands a want in a small text file, and give me a row of buttons (or
> better yet, keyboard shortcuts) to execute those commands...
>
> ...oh, wait. Somebody already did. It's called Emacs. >_<

Btw, if you use bash,  it used the some of the same useful keyboard shortcuts as
emacs,  including the always handy "reverse find", so that rather than typing up
array like mad to find an often used command, you may just type crtl+r+"some
word in the command".  Notice it's interactive, so that as you are typing the
words,  it goes displaying the closest matches. Type ctrl+r again and again if
you want to see further entries.

How I learned that? I RTFM'd.


Post a reply to this message

From: Orchid Win7 v1
Subject: Re: Livecoding in Haskell
Date: 29 Jan 2012 16:55:48
Message: <4f25c064$1@news.povray.org>
>> ...oh, wait. Somebody already did. It's called Emacs. >_<
>
> You know Tcl. Go for it. That's about 10 lines of code.

10 lines that will take you at least a month to figure out. :-P


Post a reply to this message

From: Orchid Win7 v1
Subject: Re: Livecoding in Haskell
Date: 29 Jan 2012 16:56:44
Message: <4f25c09c$1@news.povray.org>
>> That said, my development environment tends to consist of having an
>> editor window open, and a command prompt open, and repeatedly jabbing
>> the up array until the command I want appears.
>
> Btw, if you use bash,

Nope. CMD.EXE.


Post a reply to this message

From: nemesis
Subject: Re: Livecoding in Haskell
Date: 30 Jan 2012 14:09:34
Message: <4f26eaee$1@news.povray.org>
Orchid Win7 v1 escreveu:
>>> That said, my development environment tends to consist of having an
>>> editor window open, and a command prompt open, and repeatedly jabbing
>>> the up array until the command I want appears.
>>
>> Btw, if you use bash,
> 
> Nope. CMD.EXE.

oh, a masochist.  My bad...


Post a reply to this message

From: Invisible
Subject: Re: Livecoding in Haskell
Date: 31 Jan 2012 04:02:44
Message: <4f27ae34$1@news.povray.org>
>>> Btw, if you use bash,
>>
>> Nope. CMD.EXE.
>
> oh, a masochist. My bad...

It's the standard command interpreter on Windows. Shame it sucks, but hey.


Post a reply to this message

From: nemesis
Subject: Re: Livecoding in Haskell
Date: 31 Jan 2012 11:55:01
Message: <web.4f281c358decd38352a052d0@news.povray.org>
Invisible <voi### [at] devnull> wrote:
> >>> Btw, if you use bash,
> >>
> >> Nope. CMD.EXE.
> >
> > oh, a masochist. My bad...
>
> It's the standard command interpreter on Windows. Shame it sucks, but hey.

yeah, you can also use the (sub)standard text editor that comes with it and
likewise for browser, image editor, shame whip etc...


Post a reply to this message

From: Orchid Win7 v1
Subject: Re: Livecoding in Haskell
Date: 31 Jan 2012 14:48:21
Message: <4f284585$1@news.povray.org>
>>>>> Btw, if you use bash,
>>>>
>>>> Nope. CMD.EXE.
>>>
>>> oh, a masochist. My bad...
>>
>> It's the standard command interpreter on Windows. Shame it sucks, but hey.
>
> yeah, you can also use the (sub)standard text editor that comes with it and
> likewise for browser, image editor, shame whip etc...

Most of these things are easy to replace. But I'm not aware of any 
replacement command shell that doesn't suck.

(I could of course use bash - but then I'd have to constantly fight 
against all the Unixy stuff that doesn't belong on Windows...)


Post a reply to this message

From: Patrick Elliott
Subject: Re: Livecoding in Haskell
Date: 31 Jan 2012 18:51:36
Message: <4f287e88$1@news.povray.org>
On 1/31/2012 9:52 AM, nemesis wrote:
> Invisible<voi### [at] devnull>  wrote:
>>>>> Btw, if you use bash,
>>>>
>>>> Nope. CMD.EXE.
>>>
>>> oh, a masochist. My bad...
>>
>> It's the standard command interpreter on Windows. Shame it sucks, but hey.
>
> yeah, you can also use the (sub)standard text editor that comes with it and
> likewise for browser, image editor, shame whip etc...
>
>
Used to use 4Dos to extend that thing, but I refuse to pay what they 
want, just to add some color masking of file types, and a few commands, 
how ever useful, that MS never bothered to. MS decided a "better" 
solution was to create a command line "scripting host", which lacks the 
sandboxing that prevents it running some system commands instead regular 
applications. However, since they never gave anyone a damn clue it 
exists, or provided any easy way to figure out how the hell to use it... lol


Post a reply to this message

From: Darren New
Subject: Re: Livecoding in Haskell
Date: 1 Feb 2012 21:58:23
Message: <4f29fbcf@news.povray.org>
On 1/29/2012 13:55, Orchid Win7 v1 wrote:
>>> ...oh, wait. Somebody already did. It's called Emacs. >_<
>>
>> You know Tcl. Go for it. That's about 10 lines of code.
>
> 10 lines that will take you at least a month to figure out. :-P

You, maybe. :-)

-- 
Darren New, San Diego CA, USA (PST)
   People tell me I am the counter-example.


Post a reply to this message

From: Invisible
Subject: Re: Livecoding in Haskell
Date: 2 Feb 2012 04:39:49
Message: <4f2a59e5@news.povray.org>
>>> You know Tcl. Go for it. That's about 10 lines of code.
>>
>> 10 lines that will take you at least a month to figure out. :-P
>
> You, maybe. :-)

Do you have /any idea/ how many *hours* I've wasted trying to force Tk 
to lay out my stuff the way I actually want it to?! >_<


Post a reply to this message

From: nemesis
Subject: Re: Livecoding in Haskell
Date: 2 Feb 2012 10:56:23
Message: <4f2ab227$1@news.povray.org>
Invisible escreveu:
>>>> You know Tcl. Go for it. That's about 10 lines of code.
>>>
>>> 10 lines that will take you at least a month to figure out. :-P
>>
>> You, maybe. :-)
> 
> Do you have /any idea/ how many *hours* I've wasted trying to force Tk 
> to lay out my stuff the way I actually want it to?! >_<

if you were used to read or use google, you could actually learn rather 
than trial-and-error.


Post a reply to this message

From: Invisible
Subject: Re: Livecoding in Haskell
Date: 2 Feb 2012 11:01:04
Message: <4f2ab340$1@news.povray.org>
>> Do you have /any idea/ how many *hours* I've wasted trying to force Tk
>> to lay out my stuff the way I actually want it to?! >_<
>
> if you were used to read or use google, you could actually learn rather
> than trial-and-error.

Well, if the user manual actually explained what all the various options 
do rather than just giving a terse summary of each one, that might help. 
I doubt Google is going to find anything other than the online copy of 
said manual. It's not like Google answers questions; it can only find 
content that actually /exists/ in the first place.


Post a reply to this message

From: Darren New
Subject: Re: Livecoding in Haskell
Date: 2 Feb 2012 21:54:46
Message: <4f2b4c76$1@news.povray.org>
On 2/2/2012 8:01, Invisible wrote:
> manual. It's not like Google answers questions; it can only find content
> that actually /exists/ in the first place.

LMGTFY.

https://www.google.com/search?q=tcl+tk&btnG=Search+Books&tbm=bks&tbo=1

-- 
Darren New, San Diego CA, USA (PST)
   People tell me I am the counter-example.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.