<simon->
This function is applied to too many arguments,
<simon->
maybe you forgot a `;'
<simon->
I assumed it was because of missing parenthesising, but adding them in various ways didn't seem to solve it.
<Etaoin>
"not is_punct a_char" is what it's talking about I think
<Etaoin>
maybe "not (is_punct a_char)" ?
Etaoin has quit ["Client exiting"]
<Smerdyakov>
simon-, what is eggheads.org?
<simon->
Smerdyakov, the current development team of Eggdrop use it
<Smerdyakov>
Ew. Associated with Tcl coders. I don't know which is worse: that or wearing a swastika T-shirt. ;)
<simon->
Smerdyakov, you know, Eggdrop 1.7 supports Perl and Python already.
<simon->
and Ruby, too, I think
<Smerdyakov>
Those are all trash!
<simon->
Smerdyakov, make an O'Caml module ;-)
<simon->
or I could ...
<Smerdyakov>
No! You're not the boss of me!
<simon->
Smerdyakov, come to think of it, that's exactly what is needed!
<simon->
something not as slow as those scripting languages and not as ugly as C.
<Smerdyakov>
I'd prefer Haskell.
<Smerdyakov>
For no apparent reason other than... it's cool. :)
<simon->
I'd not.
<simon->
I doubt many would take use of a Haskell module
<Smerdyakov>
About as many would of OCaml. :D
<simon->
I read a few introduction guides to various languages and was scared far the most by haskell (not having any experience with functional programming)
<Smerdyakov>
Well why don't you just run home to mommy???
Herrchen has quit [Read error: 110 (Connection timed out)]
<simon->
might just have been the introductions.
<ayrnieu>
Bizarre that you'd want to make an O'Caml extension to eggdrop instead of an O'Caml rewrite to eggdrop, but OK.
<simon->
Smerdyakov, I'm already there.
<simon->
ayrnieu, simple: there already exists so much code for Eggdrop, and I would not either recode it myself nor convince the current development team to learn O'Caml.
* Smerdyakov
cringes thinking of making _any_ statically typed language play nice with Eggdrop.
<Smerdyakov>
What a waste. Hidden dynamic checks for _everything_.
<ayrnieu>
Perhaps I have bias from such IRC bots as 'purl'. I don't carry much respect for eggdrop bots.
<simon->
there is not much point in carrying respect for a bot.
<ayrnieu>
Just start writing an IRC client with emphasis on programmability, and then start writing bot-like modules for it.
<ayrnieu>
simon - not for the bots, for the program. For the massive code you mention.
<simon->
ayrnieu, massive code? I'd say about a few thousand lines. a rewrite could be done but one might as well just call it something else.
<Smerdyakov>
Yeah. Call it Ascendancy Troop!
durnew has joined #ocaml
<ayrnieu>
simon - I don't understand your bizarre turn-around, sorry.
<Smerdyakov>
durnew, are you a fan of Ascendancy Troop? Do you wish it had additional features?
<simon->
ayrnieu, excuse me?
<durnew>
Smerdyakov: i have no clue what in the world you're talking about
<Smerdyakov>
durnew, uh oh. We need to do more advertising! :O
<Smerdyakov>
durnew, OK, why does your web site say "C/C++/Java/Perl programming." I hope you have been/are being converted to functional programming!
<durnew>
yes, i am
<durnew>
well, i'm attempting to do so anyway
<durnew>
it's a rough transition though
<durnew>
procedural mess is engrained into my thinking process
<Smerdyakov>
My thesis is that that means you never learned procedural programming thoroughly enough.
<durnew>
you may be correct
<Smerdyakov>
Because it's the same thought processes involved in both, at the core.
<durnew>
well, i probably have learned either properly
<durnew>
still time to change this, i hope :)
<durnew>
er
<durnew>
probably haven't*
* durnew
slaps his forehead
<simon->
hrm...
<simon->
and out_of_word a_char last_char =
<simon->
if not is_punct a_char && is_punct last_char
<Riastradh>
Haskell is the best imperative programming language.
<durnew>
reading through SICP currently
<durnew>
if that doesn't do the trick, i may get have some of knuth's crap beat my brains in
<durnew>
-get
<durnew>
Riastradh: "best"?
<Riastradh>
durnew, 'best.'
<simon->
what could be wrong with this code? it says that 'This function is applied to too many arguments' beginning at the 'not'.
<durnew>
heh
<ayrnieu>
durnew - I'd suggest that you learn a given functional programming language instead of functional programming concepts, at least to begin -- though I enjoyed SICP.
<durnew>
Riastradh: what qualifies it as the best?
<ayrnieu>
simon - functions bind stronger than you seem to realize. You probably want: if not (is_punct a_char) && is_punct last_char
<simon->
ayrnieu, ah, d'oh!
<ayrnieu>
also 'more strongly'
<Riastradh>
durnew, it's better than all of the other ones.
<simon->
ayrnieu, I assumed 'not' acted as an operator rather than actually a function.
<durnew>
right.
<Riastradh>
It was a bit of a joke. I was hoping someone would ask me 'man, what are you smoking?' so I could answer 'a monadic spliff.'
<Smerdyakov>
Riastradh, you aren't funny.
<durnew>
ayrnieu: i would, but it's the conceptualizing the pieces of a program that i need help with :P
<Riastradh>
Smerdyakov, your presence just spoils jokes.
<simon->
Riastradh, I sometimes choose to ignore what I do not understand, otherwise I'd be asking too much.
<simon->
Riastradh, though when you mention it, I can see the humor.
<ayrnieu>
Indeed, I'd tend to write Haskell over C, unless I happened to have a C project that I wanted to hack.
<Riastradh>
Actually, Scheme is an even better imperative language, and the LAMBDA: The Ultimate Imperative paper predated Haskell.
<ayrnieu>
Speaking of Scheme, where does SICP hide its source? sisc.sf.net has a .jar, but fastjar doesn't seem capable of extracting it.
<Riastradh>
...er, do you mean SISC?
<ayrnieu>
indeed, I do.
<Riastradh>
Just get CVS.
<ayrnieu>
OK.
<ayrnieu>
I've finally stopped despising Java as a possible programming language, with gcj and several jdks and jikes and such on this machine.
<ayrnieu>
So now I can get to despising it for library braindamage =)
<durnew>
yikes, gcj :\
<ayrnieu>
no, 'jikes' and gcj.
<Riastradh>
You must admit that it has a _LOT_ of libraries, which are very convenient to steal and utilize in Scheme.
<ayrnieu>
Riastradh - I can't admit that until I have an idea of the libraries available to Java. I've mostly ignored it.
<durnew>
java's platform is enormous
<durnew>
too large :\
<durnew>
J2EE is kind of cool though
<ayrnieu>
Java's presence on the Zaurus interested me.
<durnew>
heh, my friend's obsession with zaurus nearly drove him into bankrupcy :)
<ayrnieu>
eh, how so?
<durnew>
well, he bought 3 units the first week they came out, and then got laid off the next week
<durnew>
:)
<durnew>
those 3 units were his cash reserves
eternite has joined #ocaml
<eternite>
hi!
mattam_ has joined #ocaml
ayrnieu has quit [Read error: 104 (Connection reset by peer)]
ayrnieu has joined #ocaml
mattam has quit [Read error: 60 (Operation timed out)]
Kinners has joined #ocaml
buggs|afk has joined #ocaml
buggs has quit [Connection timed out]
mimosa has joined #ocaml
Herrchen has joined #ocaml
<Herrchen>
moin
gim has joined #ocaml
ayrnieu has quit ["screen"]
ayrnieu has joined #ocaml
ayrnieu has quit [Client Quit]
ayrnieu has joined #ocaml
maihem has joined #ocaml
ayrnieu has left #ocaml []
brwill is now known as brwill_zzz
lus|wazze has joined #ocaml
lus|wazze has quit [Client Quit]
lus|wazze has joined #ocaml
mattam_ is now known as mattam
<mattam>
does anybody know how to force a redraw on a widget in lablgtk2 ?
<smkl>
does lablgtk2 have #misc stuff?
<smkl>
did you try #misc#realize or #misc#draw?
maihem has quit ["Client exiting"]
<mattam>
it has, i'm trying
<mattam>
#draw works, thanks
two-face has joined #ocaml
two-face has left #ocaml []
Kinners has left #ocaml []
maihem has joined #ocaml
ayrnieu has joined #ocaml
rox has quit [Read error: 104 (Connection reset by peer)]
rox has joined #ocaml
karryall has joined #ocaml
rox has quit [Read error: 104 (Connection reset by peer)]
rox has joined #ocaml
Defcon7 has quit [Remote closed the connection]
maihem has quit [Read error: 104 (Connection reset by peer)]
buggs|afk is now known as buggs
maihem has joined #ocaml
Defcon7 has joined #ocaml
brwill_zzz is now known as brwill
pattern has joined #ocaml
<pattern>
"What many people do not realize, is that Visual Basic, C# and Java programmers use the same concepts [map, filter, fold/unfold], and in contrast to functional programmers, they deeply appreciate unfold!"