dan2 changed the topic of #ocaml to: OCaml 3.08.2 available! | Archive of Caml Weekly News: http://sardes.inrialpes.fr/~aschmitt/cwn/ | A tutorial: http://merjis.com/richj/computers/ocaml/tutorial/ | A free book: http://cristal.inria.fr/~remy/cours/appsem/ | Mailing List: http://caml.inria.fr/bin/wilma/caml-list/ | Cookbook: http://pleac.sourceforge.net/
CosmicRay has quit ["Leaving"]
smimou has quit ["?"]
CosmicRay has joined #ocaml
smkl has joined #ocaml
cryptilox has joined #ocaml
<dan2> is there an snmp layer for ocaml
<neale> I don't see one.
<neale> So you have three options:
<neale> 1. Write one
<neale> 2. Keep looking or hire someone to write one
<neale> 3. Use a C library
<neale> well, and I guess there's 4. Decide you don't really need it.
<dan2> 4 is not an option
<dan2> I'll probably write C bindings
<neale> me, I'd do 3 too
<dan2> neale: however, I think a more appropriate battleplan is number 5
<neale> ?
<dan2> 5. Spew data over a Unix Socket and use python to do SNMP
<neale> heh
<dan2> neale: much faster, easier approach
<dan2> neale: in fact, thats the easiest of the approaches
<dan2> neale: I can whip something up in python in 5 minutes
<dan2> neale: the parser would be super simple
<dan2> though it is kinda irritating nobody has an snmp binding for ocaml
mlh has quit [Client Quit]
<dan2> is there anything you can do with if that you can't do with match?
<neale> if ((function ()) > min(x, y))
<dan2> neale: easy
<dan2> match (function ()) with
<dan2> hmm
<dan2> let a = function ()
<dan2> match a with
<dan2> | _ when a > min(x,y)
<neale> well if you want to get down to brass tacks
_fab has joined #ocaml
<neale> let b = (((function ()) > min(x, y))) in
<neale> match b with
<neale> | True -> whatever
<neale> so no, there's nothing you can do with if that you can't do with match
<neale> but the question is, would you want to.
<dan2> neale: I don't like `if' in ocaml
<neale> I think it's great
<dan2> nah, match is better
<neale> ^ " -m" ^ (shell_escape (if description = "" then "No log message" else description)) ^
<neale> I'd hate to only be able to use a match statement in there.
<neale> but then, I never use for or while loops
<dan2> neale: hmm, well in that case if makes sense, but I'm using match for 3 or more things
<neale> and some folks probably think they're the best ever
<Riastradh> if & match serve different purposes. Neither is 'better' than the other.
<monochrom> ^ " -m" ^ (shell_escape (match description = "" with true -> "No log message" | false -> description)) ^
<monochrom> I concede it takes a few more characters.
<neale> IMHO it's a little more difficult to read as well.
<dan2> neale: then go put on your glasses
fab__ has quit [Read error: 110 (Connection timed out)]
<neale> let's start a thread about it on slashdot
<monochrom> hahaha
<dan2> neale: that might give ocaml a substantial user base
<dan2> :)
<neale> perhaps, but probably not the userbase anybody wants ;)
<neale> just imagine all the people in this channel
<neale> "Can I use OCaml in my XBox Beowulf cluster?!?!?!!!"
<dan2> hahahahahaha
<drewr> Yeah but the inevitable acronym is quite apropos to the party-goers: LAMO.
<neale> heh
<neale> it's fun to rip on slashdot ;)
<drewr> It's like the mall -- get enough anonymous people in one place and you start to see humanity at its finest.
<neale> or band-aid
<drewr> From SP?
<neale> british joke, I guess.
<neale> I need to quit reading so much BBC and The Register.
* drewr feels a slight breeze near his head.
<neale> it's like USA-for-Africa, if you remember that.
<neale> "We are the world"
<neale> anyhow, I actually have an OCaml question ;)
<drewr> neale: Ah!
<neale> I want to define a virtual class A, and I want B and C to inherit from it.
<drewr> I prefer Randy Watson's rendition in ``Coming To America.''
<neale> I want to be able to create a B or a C object, depending on argv, and pass them into the same functions.
<dan2> ewwwwwwwww
<dan2> GPLv3
<neale> So, do I want to define a class interface to do that, and tell all the functions to accept that interface?
<dan2> I am not liking where it is going
<monochrom> neale: I suppose so.
<monochrom> It's actually possible to just say "A" to all the functions, i.e., probably you don't need a separate class interface.
<neale> really?
* neale tries
<monochrom> I haven't tried lately. I am using old memory.
<neale> easy enough to test.
CosmicRay has left #ocaml []
<neale> wow, you're right!
<neale> I should keep all these little test programs I write, someone might find them useful.
CosmicRay_ has joined #ocaml
CosmicRay_ is now known as CosmicRay
<neale> naw, probably not.
mrsolo_ has quit ["Leaving"]
cryptilox has quit [Read error: 110 (Connection timed out)]
<monochrom> if you collect enough of them, they'll become another ocaml tutorial
<monochrom> or a large faq
<monochrom> you'll be more famous than that C faq guy.
monochrom has quit ["Few people understand "understanding"."]
CosmicRay has quit [Read error: 113 (No route to host)]
yakker has quit [Read error: 113 (No route to host)]
shammah has quit ["Leaving"]
cjohnson has joined #ocaml
smkl has quit [Read error: 238 (Connection timed out)]
Herrchen_ has joined #ocaml
cjohnson has quit ["The main attraction: distraction"]
Herrchen has quit [Read error: 60 (Operation timed out)]
mrsolo has joined #ocaml
smkl has joined #ocaml
humasect has joined #ocaml
gl has joined #ocaml
gl has left #ocaml []
smkl has quit [Read error: 238 (Connection timed out)]
cmeme has quit [Remote closed the connection]
cryptilox has joined #ocaml
cmeme has joined #ocaml
cmeme has quit [Remote closed the connection]
cmeme has joined #ocaml
humasect has quit [Read error: 60 (Operation timed out)]
<pango> getting used to nonsense is probably the less painful way to get used to life
vezenchio has joined #ocaml
cryptilox has quit ["BitchX: now with flavor crystals!"]
smkl has joined #ocaml
<pango> an example is religion
swarm has joined #ocaml
pango has quit ["brb"]
pango has joined #ocaml
swarm has quit [Read error: 60 (Operation timed out)]
mrsolo has quit [Read error: 60 (Operation timed out)]
shawn has quit [Read error: 110 (Connection timed out)]
shawn has joined #ocaml
smkl has quit [Read error: 238 (Connection timed out)]
swarm has joined #ocaml
hoMer has joined #ocaml
hoMer has quit [Remote closed the connection]
mlh_ has joined #ocaml
mlh_ has quit [Client Quit]
smkl has joined #ocaml
swarm has quit [Read error: 110 (Connection timed out)]
smkl has quit [Read error: 238 (Connection timed out)]
solarwind has quit ["leaving"]
smkl has joined #ocaml
wolfman8k has quit [Read error: 110 (Connection timed out)]
CosmicRay has joined #ocaml
mrsolo has joined #ocaml
smkl has quit [Read error: 238 (Connection timed out)]
lodewijk has joined #ocaml
smkl has joined #ocaml
swarm has joined #ocaml
pango has quit ["Leaving"]
mrvn_ has joined #ocaml
mrvn has quit [Read error: 110 (Connection timed out)]
monochrom has joined #ocaml
drewr has quit ["movie playback getting sloooow..."]
smkl has quit [Read error: 238 (Connection timed out)]
swarm has quit []
lodewijk has quit ["BitchX Lite I said!"]
smkl has joined #ocaml
monochrom has quit ["Few people understand "understanding"."]
monochrom has joined #ocaml
smkl has quit [Read error: 238 (Connection timed out)]
smkl has joined #ocaml
vezenchio has quit ["haibane · renmei"]
mrvn_ is now known as mrvn