mfurr changed the topic of #ocaml to: OCaml 3.08.2 available! | Archive of Caml Weekly News: http://sardes.inrialpes.fr/~aschmitt/cwn/ | 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/
shawn has quit [Connection timed out]
mbh has joined #ocaml
vodka-goo has quit ["zzzZz"]
kinners has joined #ocaml
cognominal has quit [Remote closed the connection]
cognominal has joined #ocaml
vezenchio has quit ["Computer Science is no more about computers than astronomy is about telescopes"]
vezenchio has joined #ocaml
Demitar has quit ["Terminated with extreme prejudice - dircproxy 1.0.5"]
smkl has quit [Read error: 60 (Operation timed out)]
mattam has quit [Read error: 110 (Connection timed out)]
smkl has joined #ocaml
zzorn has quit ["They are coming to take me away, ha ha"]
JustinWick has joined #ocaml
JustinWick has quit []
JustinWick has joined #ocaml
Svrog has joined #ocaml
vezenchio has quit ["Computer Science is no more about computers than astronomy is about telescopes"]
JustinWick has quit [Read error: 104 (Connection reset by peer)]
<tsume> heh, okay this one is a hard one
<tsume> anyone here experienced with swig'ing C/C++ projects?
<tsume> I've been tryingfor the past hour.. I might not be creating the .i files right.
JustinWick has joined #ocaml
kinners has quit ["leaving"]
* tsume pets widestudio
Nutssh has joined #ocaml
monochrom has quit ["Few people understand "understanding"."]
Xolution has quit [Read error: 104 (Connection reset by peer)]
JustinWick has quit [Read error: 54 (Connection reset by peer)]
m3ga is now known as m3ga_
m3ga_ has left #ocaml []
johgro has joined #ocaml
smkl has quit [Read error: 110 (Connection timed out)]
Herrchen has joined #ocaml
Submarine has joined #ocaml
Banana has quit [Read error: 110 (Connection timed out)]
johgro has quit ["Leaving"]
como has joined #ocaml
smkl has joined #ocaml
Nutssh has quit ["Client exiting"]
mbh has quit ["leaving"]
como has quit [Client Quit]
m3ga has joined #ocaml
Svrog has quit [" HydraIRC -> http://www.hydrairc.com <- The professional IRC Client"]
_JusSx_ has joined #ocaml
Banana has joined #ocaml
vodka-goo has joined #ocaml
Marius777 has joined #ocaml
Marius777 has quit [Client Quit]
Marius777 has joined #ocaml
smkl has quit [Read error: 60 (Operation timed out)]
vincenz has quit [Read error: 104 (Connection reset by peer)]
smkl has joined #ocaml
m3ga has quit ["Client exiting"]
Msandin has joined #ocaml
Demitar has joined #ocaml
mlh_away has joined #ocaml
smimou has joined #ocaml
smkl has quit [Read error: 110 (Connection timed out)]
Msandin has quit [Read error: 110 (Connection timed out)]
Submarine has quit ["Leaving"]
vincenz has joined #ocaml
mlh_away has quit ["doo-da-do da-do doo-da-doo .."]
zzorn has joined #ocaml
smkl has joined #ocaml
Kurt has joined #ocaml
Marius777 has quit [Client Quit]
cjohnson has joined #ocaml
Kurt has quit [Remote closed the connection]
vezenchio has joined #ocaml
Msandin has joined #ocaml
cognominal has quit [Read error: 54 (Connection reset by peer)]
cognominal has joined #ocaml
cognominal has quit [Read error: 54 (Connection reset by peer)]
cognominal has joined #ocaml
smkl has quit [Read error: 60 (Operation timed out)]
Submarine has joined #ocaml
humasect has joined #ocaml
CosmicRay has joined #ocaml
smkl has joined #ocaml
zzorn is now known as zzorn_afk
smkl has quit [Read error: 60 (Operation timed out)]
cjohnson has quit ["5/4 of all people have trouble with fractions"]
cjohnson has joined #ocaml
tintin has quit [Read error: 110 (Connection timed out)]
pango has quit [Nick collision from services.]
pango has joined #ocaml
cjohnson has quit ["5/4 of all people have trouble with fractions"]
_fab has joined #ocaml
smkl has joined #ocaml
cjohnson has joined #ocaml
Elendil has joined #ocaml
<Elendil> hi
anyone has joined #ocaml
<Elendil> is it possible to use a for where i is incremented by 2 each step?
<Smerdyakov> Only pansies use 'for' in OCaml.
<Elendil> i want to use an array, and a for seems a good idea
<smimou> and what about 2*i ?
<Smerdyakov> Elendil, I don't agree.
<Elendil> why?
<Smerdyakov> Use the higher-order functions of the Array module instead.
<Elendil> which one?
<Smerdyakov> That depends on what you want to do!
<Elendil> for instance I want to modify t.(i) when i=1 (mod 3)
<Smerdyakov> Then I suggest Array.iteri.
* Smerdyakov escapes.
<Elendil> i dont agree
<Elendil> with (fun i _ -> if ... t.(i)<-...) ?
Banana has quit [Remote closed the connection]
<tsume> Smerdyakov: you use swig any?
<neale> I used swig long enough to determine that writing native wrappers was much, much easier.
<tsume> neale: you don't want to write native wrappers for WideStudio
<tsume> neale: its just a simple problem I can't figure out. its one problem which is causing me to get stuck
<tsume> neale: I need to have swig define a class bypass in the .i file.. I'm unsure how
<neale> I would be the wrong person to ask.
<neale> Sorry.
<neale> You're right, though; I don't want to write native wrappers for WideStudio.
<neale> I don't even know what WideStudio is.
<tsume> its a Free gui framework
<tsume> with its own gui designer
<tsume> and bindings to Ruby, Python, and Perl. Its written in C++
<tsume> its _really_ good
<tsume> I'm trying to use the mpfc.i file.. but its not working well
<tsume> its a very cross platform gui toolkit, its very nice.
<tsume> I want to use it with ocaml. Its nice to use it with C++ too :)
<anyone> every month I hear about a new GUI library.
<tsume> widestudio is from 95'
<tsume> its portable on every platform I know
<tsume> even works on many handhelds, and something called a BTRON
<tsume> anyone: widestudio is MIT licensed, so its free to use unlike *GPL licensed libs
<tsume> very easy to work with, generate code, etc. I'm trying to get it to work with ocaml
<tsume> It would be nice.
<anyone> I don't worry about licensing.
<tsume> anyone: I do.
<tsume> anyone: if I want to statically compile, I can statically compile without stupid restrictions of any closed source apps
<anyone> Every half a year I hear about a new licensing scheme.
<tsume> anyone: MIT hAs been around since the dawn of time. *GPL hasn't
<tsume> yes, I sigh at the new GUI libraries and licenses too. the new projects are stupid
<tsume> which is why I still use widestudio, the newer gui toolkits are ran by kids
<anyone> What about the MIT license? How new is it?
<tsume> MIT license is really old
<tsume> looking*
<tsume> anyone: GPL was what, 92? MIT was from the 80s, maybe 70s
<tsume> anyone: BSD and MIT are older, wiser and better than linux/gpl crud. You don't get out much, do you? :P
<anyone> The last sentence shows a flawed Western prejudice. But I understand you are just joking.
<tsume> X was created in 84-85 under MIT license at MIT. I don't knwo when the first MIT license was. MIT probably had previous projects under the license
<tsume> anyone: yes. see the ':P'
JustinWick has joined #ocaml
<tsume> anyone: irc text always sounds flame mongering unless people use emotion symbols
JustinWick has quit [Client Quit]
_fab has quit [Remote closed the connection]
Banana has joined #ocaml
<Amorphous> hi. anyone can tell me if there is a way to do the following with any ocaml (debug-)tools?: some code between try...with throws an exception and i want to know what part of the code does that (something like a line-number would be helpfull).
<anyone> I don't know of a way.
Kleene-AAH has joined #ocaml
<Submarine> run in ocamldebug
<Kleene-AAH> hi
<Amorphous> Submarine: is there a way to set something like a breakpoint at an exception?
<Submarine> you can set breakpoints if I remember well
<Submarine> or trace back in time from the uncaught exception
<Amorphous> the exception is caught (or is it possible to not catch an exception that is thrown between a try...with?). i can't see any info on setting a breakpoint on an exception at http://caml.inria.fr/ocaml/htmlman/manual030.html how would i do that or is it not possible?
<Submarine> use the trace back
<Submarine> you can walk back in time
<Submarine> just wait until the code crashes due to uncaught exception
<Submarine> then use back steps
<Amorphous> but the exception is caught.
<Amorphous> is it possible to not catch an exception that is thrown between a try...with?
<Submarine> aaah
<Submarine> do you know where it is caught?
<Amorphous> i now have: with |exception_foo s -> ... | e -> ...
<Amorphous> and it is caught at the | e
<Amorphous> is it possible to have an incomplete match there and therefor not catch some exceptions but specific ones?
Msandin has quit [Read error: 113 (No route to host)]
<Amorphous> or is there a way to get line numbers from the exception-variable e?
Zaius has joined #ocaml
<mrvn_> Amorphous: | x -> raise x
<Amorphous> outch i could just set an breakpoint at |e ->
<Amorphous> thx mrvn_ for the idea
<Zaius> is module Queue threadsafe without any preconditions?
<Submarine> no module has locks by default, afaik
<Elendil> val magic : 'a -> 'b
<Elendil> how is it possible?
<Submarine> Elendil, it's black magic
<Submarine> it's the ultimate polymorphic identity function
<Submarine> defined as "do nothing, but break the type system"
<Submarine> don't use it unless you know what you're doing
<Elendil> ok :)
<humasect> tsume: how is it going with WideStudio?
<Zaius> *hmm* i checked the queue-sourcecode, it is not threadsafe :/
<tsume> humasect: terrible
<humasect> hmm
<tsume> humasect: I'm 1 problem away from getting the swig wrappers to compile, and I can't figure it out
<humasect> perhaps i can help
<tsume> humasect: I need to wrap around this one class caled WSCvariable. Okay, I'll upload what I can tell and have
<humasect> k
<tsume> humasect: I see Hiribayashi has wrapped the class for the other languages as well. I'm not familiar with code linking, its something to due with setting a null var like in Ruby.. Qnil for the C interface
<tsume> minute, I'm also compiling misette wm
<humasect> k
<humasect> hmm, my Unix module has disappeared.
<tsume> humasect: you reinstalled ocaml or deleted the module? :P
<humasect> hm neither =)
<tsume> *poof* data loss
* humasect does make install from ocaml dir ...
<humasect> oh well. i didn't need it.
<tsume> humasect: if you wish to see what I'm doing, you might want to download widestudio, and make sure swig has ocaml bindings
<humasect> okay, i will have to find free space first
<tsume> its kinda big.. about 22MB :)
<tsume> well worth it however. its nice. though theres no freetype2 support, so I might just add a couplew lines in and send a patch. I haven't tried to use freetype2 with a Xt window, I imagine its just as easy as Xlib window.
kuribas has joined #ocaml
<Amorphous> i try to set a breakpoint (break @ BTProtocol 407) but it says "Can't find any event there." but on that line (list BTProtocol 407 407) is: "| e ->" (from the matching of a try...with) shouldn't there be an event? what am i doing wrong?
<humasect> tsume: soon =)
Msandin has joined #ocaml
Msandin has quit [Read error: 104 (Connection reset by peer)]
vincenz has quit [Read error: 60 (Operation timed out)]
drewr` has joined #ocaml
<_JusSx_> what does key:string mean?
vincenz has joined #ocaml
<_JusSx_> ~
<Demitar> It's a labeled argument.
<_JusSx_> ahh
<_JusSx_> never used labeled arg
<Demitar> Check chapter four of the manual.
<_JusSx_> yeah i read
<_JusSx_> however thanx
m3ga has joined #ocaml
<tsume> variant...
<tsume> hmm
<tsume> *sigh*
<tsume> WSCvariant is the class giving me grief.
Elendil has left #ocaml []
* tsume grins
<tsume> :)
<tsume> wow.. it compiled
<tsume> I can see that I need to modify mpfh.h to contain ocaml types
<tsume> still needs work, but its getting somewhere :)
<tsume> humasect: do you know much on C/C++ library interfacing with ocaml?
<Submarine> I know quite a bit for C.
mattam has joined #ocaml
<tsume> Submarine: and the ocaml interface ?
<tsume> Submarine: I'm trying to adapt this C++ library called WideStudio, its a GUI library which has been around since 95'
<tsume> Submarine: It requires interfacing to the library like in Ruby or Python.. using Qnil, PyObject, etc
_JusSx_ has quit ["leaving"]
<tsume> Submarine: I'm still a little fuzzy with ocaml, I'm wanting WideStudio to work with ocaml :)
<tsume> Submarine: I had to delete some important mathods to get it half way compiled
<Submarine> I know quite a bit, I mean, about interfacing C with OCaml.
<tsume> Submarine: I'll need to include them back, I delted exactly 12 methods, one needed PyObject. Is there a Object for ocaml in C?
<tsume> Submarine: and the other.. I'll need to look back and see.
<Submarine> PyObject is Python, right.
<tsume> Submarine: I copied the pythonlib/ folder to ocamllib/
<Submarine> what do you want? objects in OCaml?
<tsume> Submarine: I needed somethign to start with. its a generic mpfc.h which is modified for each *lib.
<tsume> Submarine: yes.
<tsume> Submarine: WideStudio is written in C++. I need Object access
<Submarine> try looking at how olablgtk does
* tsume blinks, olabgtk?
<Submarine> lablgtk
kuribas has left #ocaml []
smimou has quit ["?"]
mrvn has joined #ocaml
<humasect> back.. shortly
mrvn_ has quit [Read error: 60 (Operation timed out)]
<tsume> minute, I've almost have a custom runtime compiled
<tsume> I want this to work so badly :)
<tsume> I have a mpfc.cmi and cmo files at least
<neale> tsume: have you considered perl?
<tsume> neale: why would I consider perl?
<neale> I don't know, I'm just trying to get a reaction out of somebody.
<neale> didn't work.
<tsume> neale: troll :P
<neale> actually, I'm not sure why anybody would ever consider perl.
<tsume> neale: I'm waiting for thier vapourware
<neale> perl6?
<tsume> yes
<neale> perl 6 sounds like the "screw it, let's just start over" release.
<tsume> basically it is
* tsume waits for WideStudio to recompile with gcc34
Herrchen has quit ["good night"]