mfp changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.11.2 released | Inscription for OCaml Meeting 2010 is opened http://wiki.cocan.org/events/europe/ocamlmeetingparis2010
Drk-Sd has joined #ocaml
pimmhogeling has quit [Read error: 110 (Connection timed out)]
derdon has quit []
Drk-Sd has left #ocaml []
Drk-Sd` has joined #ocaml
mutew has quit [Read error: 110 (Connection timed out)]
tmaedaZ is now known as tmaeda
pflanze has joined #ocaml
Drk-Sd` has quit [Client Quit]
pad has joined #ocaml
boscop_ has joined #ocaml
_unK has quit [Remote closed the connection]
boscop has quit [Read error: 110 (Connection timed out)]
boscop_ has quit [Client Quit]
ski_ has quit ["Lost terminal"]
maskd has quit ["leaving"]
Narrenschiff has quit []
hcarty has quit [verne.freenode.net irc.freenode.net]
jlouis has quit [verne.freenode.net irc.freenode.net]
julm has quit [verne.freenode.net irc.freenode.net]
mattam has quit [verne.freenode.net irc.freenode.net]
BigJ2 has quit [verne.freenode.net irc.freenode.net]
__mattam__ has joined #ocaml
julm_ has joined #ocaml
hcarty__ has joined #ocaml
jlouis_ has joined #ocaml
BigJ2 has joined #ocaml
<pflanze> I'm looking into translating some language into ocaml;
<pflanze> does ocamlp4/ocamlp5 offer some base language I could target, or can I only target one of the normal ocaml syntaxes?
<pflanze> I intend to write my translator in another language that ocaml.
<pflanze> So the target language needs a textual representation that can be parsed by ocaml or ocamlpX
<pflanze> Different question: do the standard ocaml syntaxes offer ways to pass the original line and column positions? (something like #line in C, and also for columns)
bind_return has joined #ocaml
ski_ has joined #ocaml
tmaeda is now known as tmaedaZ
mutew has joined #ocaml
joewilliams is now known as joewilliams_away
clog has joined #ocaml
clog has joined #ocaml
CcSsNET has joined #ocaml
thrasibule has quit [Read error: 110 (Connection timed out)]
Amorphous has quit [Read error: 110 (Connection timed out)]
Amorphous has joined #ocaml
pad has quit [Remote closed the connection]
<yakischloba> is there a way to make the compiler yell at me when i dont catch possible exceptions?
mutew has quit [Read error: 110 (Connection timed out)]
<yakischloba> I see OcamlExc
<yakischloba> why does ocaml have exhaustive pattern matching but no way to see uncaught exceptions?
CcSsNET has quit [Read error: 110 (Connection timed out)]
<yakischloba> oh. I can catch the exception and then match it I guess?
julm_ has quit [Client Quit]
julm has joined #ocaml
<thelema> yakischloba: no way to have the compiler notify you of uncaught exceptions. Stack traces are good for dealing with this.
<yakischloba> yea that kinda sucks
<thelema> yup. OCaml isn't perfect - it'd require extensions of the type system to deal with uncaught exceptions, and most people would leave that off, as there's so many potential exceptions that could be raised but you know aren't.
<thelema> for instance invalid_argument - many functions sanity check their arguments, but I wouldn't want to use try..catch every time I used one of those functions
<thelema> There'd be too many warnings if I didn't turn them off.
<yakischloba> sure
<yakischloba> its just strange to think that for everything else thats so safe, an exception can kill your program
joewilliams_away is now known as joewilliams
lokydor has quit [Read error: 110 (Connection timed out)]
sgnb` has quit [Read error: 54 (Connection reset by peer)]
sgnb` has joined #ocaml
Camarade_Tux has quit [Remote closed the connection]
Asmadeus has quit [Remote closed the connection]
munga has quit [Read error: 110 (Connection timed out)]
chicco has quit [Read error: 110 (Connection timed out)]
__mattam__ has quit [jordan.freenode.net irc.freenode.net]
DWyatt has quit [jordan.freenode.net irc.freenode.net]
tab has quit [jordan.freenode.net irc.freenode.net]
hcarty_ has quit [jordan.freenode.net irc.freenode.net]
quelqun_dautre has quit [jordan.freenode.net irc.freenode.net]
svenl has quit [jordan.freenode.net irc.freenode.net]
brendan has quit [jordan.freenode.net irc.freenode.net]
WuJiang has quit [jordan.freenode.net irc.freenode.net]
olegfink has quit [jordan.freenode.net irc.freenode.net]
joewilliams has quit [jordan.freenode.net irc.freenode.net]
orbitz has quit [jordan.freenode.net irc.freenode.net]
julm has quit [jordan.freenode.net irc.freenode.net]
bind_return has quit [jordan.freenode.net irc.freenode.net]
BigJ2 has quit [jordan.freenode.net irc.freenode.net]
deavid has quit [jordan.freenode.net irc.freenode.net]
srcerer has quit [jordan.freenode.net irc.freenode.net]
eldragon has quit [jordan.freenode.net irc.freenode.net]
[df] has quit [jordan.freenode.net irc.freenode.net]
ski_ has quit [jordan.freenode.net irc.freenode.net]
hcarty__ has quit [jordan.freenode.net irc.freenode.net]
pflanze has quit [jordan.freenode.net irc.freenode.net]
jonafan has quit [jordan.freenode.net irc.freenode.net]
clog has joined #ocaml
joewilliams has joined #ocaml
mfp has joined #ocaml
infoe has joined #ocaml
cygnus_ has joined #ocaml
Leonidas has joined #ocaml
rbancroft has joined #ocaml
Gertm has joined #ocaml
diml has joined #ocaml
infoe- has joined #ocaml
struktured has joined #ocaml
Modius has joined #ocaml
prigaux has joined #ocaml
flux has joined #ocaml
mbishop has joined #ocaml
ned has joined #ocaml
patronus has joined #ocaml
mal`` has joined #ocaml
zhijie has joined #ocaml
ned is now known as Guest24845
haelix has joined #ocaml
companion_cube has joined #ocaml
peddie has joined #ocaml
mehdid has joined #ocaml
yakischloba has joined #ocaml
smimou has joined #ocaml
Alpounet has joined #ocaml
willb has joined #ocaml
gildor has joined #ocaml
npouillard has joined #ocaml
schme has joined #ocaml
schme has quit [Changing host]
schme has joined #ocaml
jimmyb2187 has joined #ocaml
Tianon has joined #ocaml
Tianon has quit [Changing host]
Tianon has joined #ocaml
tarbo2 has joined #ocaml
Amorphous has joined #ocaml
msteele has joined #ocaml
Pepe_ has joined #ocaml
Ori_B has joined #ocaml
mrvn has joined #ocaml
bacam has joined #ocaml
nimred has joined #ocaml
M| has joined #ocaml
caligula_ has joined #ocaml
hyperboreean has joined #ocaml
det has joined #ocaml
__marius__ has joined #ocaml
fremo_ has joined #ocaml
shr3kst3r has joined #ocaml
peper has joined #ocaml
DWyatt has quit [Read error: Connection timed out]
DWyatt has joined #ocaml
emias has joined #ocaml
fabjan has joined #ocaml
srcerer has joined #ocaml
pimmhogeling has joined #ocaml
joewilliams is now known as joewilliams_away
pimmhogeling has quit [Remote host closed the connection]
yakischloba has quit [Quit: Leaving.]
joewilliams_away has quit [*.net *.split]
joewilliams_away has joined #ocaml
pimmhogeling has joined #ocaml
sgnb` has joined #ocaml
TaXules has joined #ocaml
thelema has joined #ocaml
ulfdoz has joined #ocaml
bzzbzz has joined #ocaml
tensorpudding has joined #ocaml
sgnb` has quit [*.net *.split]
sgnb` has joined #ocaml
ikaros has joined #ocaml
tarbo2 has quit [Ping timeout: 240 seconds]
tarbo2 has joined #ocaml
chicco has joined #ocaml
Camarade_Tux has joined #ocaml
Asmadeus has joined #ocaml
sgnb` has quit [*.net *.split]
sgnb` has joined #ocaml
Yoric has joined #ocaml
ttamttam has quit [Quit: Leaving.]
maskd has joined #ocaml
maskd has quit [Killed (NickServ (GHOST command used by maskd-))]
maskd- has joined #ocaml
maskd- is now known as maskd
ttamttam has joined #ocaml
Submarine_ has joined #ocaml
Yoric has quit [Quit: Yoric]
Narrenschiff has joined #ocaml
Yoric has joined #ocaml
Drk-Sd has joined #ocaml
Yoric has quit [Quit: Yoric]
Gertm has quit [Ping timeout: 260 seconds]
ski_ has quit [Quit: Lost terminal]
_zack has joined #ocaml
_unK has joined #ocaml
_zack has quit [Ping timeout: 248 seconds]
bind_return has quit [Quit: Leaving]
tarbo2 has quit [Ping timeout: 260 seconds]
_zack has joined #ocaml
tarbo2 has joined #ocaml
derdon has joined #ocaml
sgnb` has quit [Read error: Connection reset by peer]
sgnb` has joined #ocaml
Narrenschiff has quit [Quit: Narrenschiff]
_zack has quit [Quit: Leaving.]
Gertm has joined #ocaml
ikaros_ has joined #ocaml
ikaros has quit [Ping timeout: 256 seconds]
Paczesiowa has joined #ocaml
djanderson has joined #ocaml
ikaros has joined #ocaml
ikaros has quit [Client Quit]
ikaros_ has quit [Ping timeout: 260 seconds]
tarbo2 has quit [Ping timeout: 248 seconds]
tarbo2 has joined #ocaml
ttamttam1 has joined #ocaml
ttamttam has quit [Ping timeout: 256 seconds]
maskd has quit [Quit: leaving]
CcSsNET has joined #ocaml
maskd has joined #ocaml
ulfdoz_ has joined #ocaml
ulfdoz has quit [Ping timeout: 276 seconds]
_zack has joined #ocaml
thrasibule has joined #ocaml
boscop has joined #ocaml
ulfdoz_ has quit [Ping timeout: 276 seconds]
ulfdoz has joined #ocaml
Paczesiowa has quit [Remote host closed the connection]
mutew has joined #ocaml
Submarine_ has quit [Ping timeout: 248 seconds]
ChanServ has quit [shutting down]
_zack has quit [Quit: Leaving.]
Submarine_ has joined #ocaml
_zack has joined #ocaml
elehack has joined #ocaml
ikaros has joined #ocaml
tarbo2 has quit [Ping timeout: 240 seconds]
mutew has quit [Quit: leaving]
tarbo2 has joined #ocaml
pimmhogeling has quit [Ping timeout: 260 seconds]
DWyatt has quit [Read error: No route to host]
mutew has joined #ocaml
thrasibule has quit [Ping timeout: 276 seconds]
zorg has joined #ocaml
zorg has quit [Client Quit]
derdon has quit [Quit: derdon]
<flux> hmph.. encouraged by the previous mentions that lwt 2.0.0 has some Event-kind of new functions (and it does!) I find it quite difficult to make use of them as conveniently..
Paczesiowa has joined #ocaml
_zack has quit [Quit: Leaving.]
Guest24845 has left #ocaml []
ned has joined #ocaml
tarbo2 has quit [Ping timeout: 256 seconds]
tarbo2 has joined #ocaml
<flux> I'm simply trying to do something like: let (recv, send) = wait () let rec server = choose [recv] >>= fun () -> server () and once I issue wakeup send (); I find the server loop to be in an infinite loop
<flux> so, it's not simply the same as Event.receive then
<flux> well, I used a really, really ugly hack
<flux> instead of let (recv, send) = wait () I used let chan = ref (wait ()) and whenever I receive a new message, I reassign the pair
tarbo2 has quit [Ping timeout: 240 seconds]
<flux> I suppose the best game-plan is to write a proper message passing layer over that
<flux> atleast I can send into it without being in the Lwt-monad \o/.
julm has quit [Quit: leaving]
tarbo2 has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
<flux> ocsigen-mailing-list doesn't seem to have lwt-related discussions, and lwt doesn't have one.. ?
<diml> flux: Lwt.wait is not for message passing, if you want some kind of message passing for lwt you can use Lwt_mvar
thrasibule has joined #ocaml
<flux> diml, how do you wait for messages from multiple mvar message sources?
<flux> they don't seem to have the equivalent of 'select' or 'choose'
mutew has quit [Ping timeout: 258 seconds]
<diml> you can do something like that: select [Lwt_mvar.take mvar1; Lwt_mvar.take mvar2; ...]
<flux> hm, good point
mutew has joined #ocaml
<flux> I'll try that, if I'll bump into different problems
<flux> thanks!
<flux> hmm, wait. so mvar always contains a value?
<flux> agh, nevermind :)
<flux> works just great, thank you again!
<flux> (although now the 'put'-part is in the monad, but that can be worked around with ignore_result)
tarbo2 has quit [Ping timeout: 264 seconds]
tarbo2 has joined #ocaml
yakischloba has joined #ocaml
Yoric has joined #ocaml
Yoric has quit [Quit: Yoric]
itewsh has joined #ocaml
mutew has quit [Ping timeout: 256 seconds]
itewsh has quit [Ping timeout: 264 seconds]
yziquel has joined #ocaml
CcSsNET has quit [Ping timeout: 260 seconds]
tarbo2 has quit [Ping timeout: 260 seconds]
tarbo2 has joined #ocaml
itewsh has joined #ocaml
Yoric has joined #ocaml
hiptobecubic has joined #ocaml
<yziquel> concerning nativeint, is there some C code available to create a nativeint from C side?
<hiptobecubic> I'm using slackware 13. I just installed ocaml and i'm trying to run the first example here: http://www.ocaml-tutorial.org/the_structure_of_ocaml_programs. It's complaining. Error: Reference to undefined global `Graphics'
<flux> hiptobecubic, maybe the graphics related packages come in a separate package. or perhaps you need to build it on your own.
<thelema> hiptobecubic: how did you compile?
<hiptobecubic> flux, but 'open Graphics;;' works whereas 'open Feijafoijojaef;;' does not
<thelema> yziquel: I'd expect there's a macro...
<yziquel> hiptobecubic: do you a have a graphics.cmi somwhere?
<hiptobecubic> yziquel, let me check... /usr/lib/ocaml ?
<yziquel> hiptobecubic: dunno. depends how you got ocaml.
<yziquel> hiptobecubic: for me, /usr/lib/ocaml/graphics.cmi
<hiptobecubic> yeah i have it
<yziquel> hiptobecubic: what's your system?
<hiptobecubic> Linux eleanor 2.6.32.5-eleanor-smp #1 SMP PREEMPT Sun Jan 24 03:10:00 CST 2010 x86_64 AMD Turion(tm) 64 X2 Mobile Technology TL-60 AuthenticAMD GNU/Linux
<hiptobecubic> Slackware-current
<yziquel> hiptobecubic: how did you install ocaml?
<hiptobecubic> The Objective Caml toplevel, version 3.11.1
<thelema> yziquel: look in byterun/mlvalues.h for Nativeint_val()
<yziquel> thelema: thanks.
<flux> hiptobecubic, #load "graphics.cma";; ?
_zack has joined #ocaml
<hiptobecubic> yziquel, http://vpaste.net/Lv1Ow?ft=sh
<hiptobecubic> flux, worked
Submarine_ has quit [Quit: Leaving]
<yziquel> thelema: i'm looking for Val_nativeint. there are some finalisation, serialisation functions for nativeints in ints.c
smimou has quit [Ping timeout: 256 seconds]
smimou has joined #ocaml
smimou has quit [Ping timeout: 258 seconds]
<yziquel> thelema: caml_copy_nativeint
smimou has joined #ocaml
CcSsNET has joined #ocaml
lokydor has joined #ocaml
lokydor has quit [Client Quit]
pimmhogeling has joined #ocaml
BigJ2 is now known as BigJ
derdon has joined #ocaml
BigJ has quit [Ping timeout: 260 seconds]
julm has joined #ocaml
ttamttam1 has quit [Quit: Leaving.]
BigJ has joined #ocaml
Fare has joined #ocaml
<Fare> is there any other non-local return than try ... raise ?
<Fare> like the block ... return-from of common-lisp
ikaros has joined #ocaml
slash_ has joined #ocaml
mutew has joined #ocaml
lokydor has joined #ocaml
ikaros_ has joined #ocaml
ikaros has quit [Ping timeout: 260 seconds]
ikaros has joined #ocaml
ikaros_ has quit [Ping timeout: 256 seconds]
tmaedaZ has joined #ocaml
tmaedaZ is now known as tmaeda
CcSsNET has quit [Ping timeout: 256 seconds]
eldragon has quit [Read error: Connection reset by peer]
eldragon has joined #ocaml
_unK has quit [*.net *.split]
BigJ has quit [*.net *.split]
_zack has quit [*.net *.split]
itewsh has quit [*.net *.split]
elehack has quit [*.net *.split]
Camarade_Tux has quit [*.net *.split]
joewilliams_away has quit [*.net *.split]
eldragon has quit [*.net *.split]
mutew has quit [*.net *.split]
Fare has quit [*.net *.split]
pimmhogeling has quit [*.net *.split]
smimou has quit [*.net *.split]
thrasibule has quit [*.net *.split]
djanderson has quit [*.net *.split]
Asmadeus has quit [*.net *.split]
TaXules has quit [*.net *.split]
hiptobecubic has quit [*.net *.split]
shr3kst3r has quit [*.net *.split]
fremo_ has quit [*.net *.split]
det has quit [*.net *.split]
mrvn has quit [*.net *.split]
bacam has quit [*.net *.split]
msteele has quit [*.net *.split]
Pepe_ has quit [*.net *.split]
gildor has quit [*.net *.split]
mehdid has quit [*.net *.split]
peddie has quit [*.net *.split]
mal`` has quit [*.net *.split]
ned has quit [*.net *.split]
cygnus_ has quit [*.net *.split]
Leonidas has quit [*.net *.split]
mfp has quit [*.net *.split]
hcarty_ has quit [*.net *.split]
jlouis has quit [*.net *.split]
jonafan has quit [*.net *.split]
[df] has quit [*.net *.split]
hcarty has quit [*.net *.split]
brendan has quit [*.net *.split]
derdon has quit [*.net *.split]
julm has quit [*.net *.split]
Paczesiowa has quit [*.net *.split]
bzzbzz has quit [*.net *.split]
tarbo2 has quit [*.net *.split]
Gertm has quit [*.net *.split]
sgnb` has quit [*.net *.split]
tensorpudding has quit [*.net *.split]
fabjan has quit [*.net *.split]
emias has quit [*.net *.split]
ulfdoz has quit [*.net *.split]
Drk-Sd has quit [*.net *.split]
thelema has quit [*.net *.split]
srcerer has quit [*.net *.split]
yziquel has quit [*.net *.split]
ikaros has quit [*.net *.split]
yakischloba has quit [*.net *.split]
lokydor has quit [*.net *.split]
slash_ has quit [*.net *.split]
Yoric has quit [*.net *.split]
boscop has quit [*.net *.split]
maskd has quit [*.net *.split]
chicco has quit [*.net *.split]
tmaeda has quit [*.net *.split]
M| has quit [*.net *.split]
peper has quit [*.net *.split]
nimred has quit [*.net *.split]
Amorphous has quit [*.net *.split]
jimmyb2187 has quit [*.net *.split]
willb has quit [*.net *.split]
companion_cube has quit [*.net *.split]
haelix has quit [*.net *.split]
patronus has quit [*.net *.split]
prigaux has quit [*.net *.split]
struktured has quit [*.net *.split]
diml has quit [*.net *.split]
infoe- has quit [*.net *.split]
Modius has quit [*.net *.split]
rbancroft has quit [*.net *.split]
infoe has quit [*.net *.split]
olegfink has quit [*.net *.split]
orbitz has quit [*.net *.split]
svenl has quit [*.net *.split]
WuJiang has quit [*.net *.split]
mattam has quit [*.net *.split]
quelqun_dautre has quit [*.net *.split]
Alpounet has quit [Quit: ``Do what you think you can't do.'']
emias has joined #ocaml
fabjan has joined #ocaml
tensorpudding has joined #ocaml
sgnb` has joined #ocaml
Gertm has joined #ocaml
tarbo2 has joined #ocaml
hcarty has joined #ocaml
_zack has joined #ocaml
thrasibule has joined #ocaml
srcerer has joined #ocaml
thelema has joined #ocaml
Drk-Sd has joined #ocaml
ulfdoz has joined #ocaml
pimmhogeling has joined #ocaml
[df] has joined #ocaml
peddie has joined #ocaml
bacam has joined #ocaml
joewilliams_away has joined #ocaml
yziquel has joined #ocaml
yakischloba has joined #ocaml
ikaros has joined #ocaml
TaXules has joined #ocaml
mehdid has joined #ocaml
det has joined #ocaml
mutew has joined #ocaml
mfp has joined #ocaml
fremo_ has joined #ocaml
bzzbzz has joined #ocaml
Paczesiowa has joined #ocaml
elehack has joined #ocaml
eldragon has joined #ocaml
itewsh has joined #ocaml
94SAAAN9U has joined #ocaml
maskd has joined #ocaml
boscop has joined #ocaml
Yoric has joined #ocaml
slash_ has joined #ocaml
lokydor has joined #ocaml
Asmadeus has joined #ocaml
Camarade_Tux has joined #ocaml
cygnus_ has joined #ocaml
Fare has joined #ocaml
jonafan has joined #ocaml
BigJ has joined #ocaml
quelqun_dautre has joined #ocaml
WuJiang has joined #ocaml
mattam has joined #ocaml
orbitz has joined #ocaml
svenl has joined #ocaml
olegfink has joined #ocaml
infoe has joined #ocaml
rbancroft has joined #ocaml
diml has joined #ocaml
infoe- has joined #ocaml
struktured has joined #ocaml
Modius has joined #ocaml
prigaux has joined #ocaml
patronus has joined #ocaml
haelix has joined #ocaml
companion_cube has joined #ocaml
willb has joined #ocaml
jimmyb2187 has joined #ocaml
Amorphous has joined #ocaml
nimred has joined #ocaml
M| has joined #ocaml
peper has joined #ocaml
chicco has joined #ocaml
tmaeda has joined #ocaml
_unK has joined #ocaml
smimou has joined #ocaml
Pepe_ has joined #ocaml
Leonidas has joined #ocaml
hcarty_ has joined #ocaml
gildor has joined #ocaml
brendan has joined #ocaml
julm has joined #ocaml
mal`` has joined #ocaml
mrvn has joined #ocaml
shr3kst3r has joined #ocaml
hiptobecubic has joined #ocaml
jlouis has joined #ocaml
tarbo2 has quit [Ping timeout: 258 seconds]
msteele has joined #ocaml
Alpounet has joined #ocaml
Fare is now known as Guest67513
itewsh has quit [Quit: There are only 10 kinds of people: those who understand binary and those who don't]
Guest67513 has left #ocaml []
yakischloba has quit [Quit: Leaving.]
jlouis has quit [Quit: leaving]
jlouis has joined #ocaml
tarbo2 has joined #ocaml
eldragon has quit [Quit: Saliendo]
eldragon has joined #ocaml
tmaeda is now known as tmaedaZ
hiptobecubic has quit [Ping timeout: 252 seconds]
jlouis has quit [Quit: Reconnecting]
jlouis has joined #ocaml
lokydor has quit [Ping timeout: 240 seconds]
derdon has joined #ocaml
<derdon> hello
<derdon> is the author of this wiki: http://ocaml-tutorial.org/ currently online?
Paczesiowa has quit [Remote host closed the connection]
<derdon> I've just found a little bug (an HTML tag is not rendered)
Yoric has quit [Quit: Yoric]
<thelema> derdon: you're looking for rwmjones
<thelema> he doesn't seem to be here at the moment - submit bugs here: https://savannah.nongnu.org/projects/modcaml/ (I think)
<derdon> thelema: well, the link you posted is not related to the tutorial in any way
<thelema> the tutorial runs on cocanwiki, which shares the same mailing list as modcaml, so I assume bugs submitted to its tracker go to the author.
hiptobecubic has joined #ocaml
tmaedaZ is now known as tmaeda
_zack has quit [Quit: Leaving.]
<derdon> hm, I simply wait for rwmjones, that's the most straightforward way