gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.0 http://bit.ly/aNZBUp
Yoric has quit [Quit: Yoric]
ftrvxmtrx has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
ftrvxmtrx has quit [Quit: Leaving]
ftrvxmtrx has joined #ocaml
rks has joined #ocaml
drunK has quit [Remote host closed the connection]
elehack has joined #ocaml
<oriba> someone here who already implemented interpreters and compilers?
ulfdoz has quit [Read error: Operation timed out]
ulfdoz has joined #ocaml
mnabil_ has quit [Ping timeout: 240 seconds]
elehack has quit [Ping timeout: 240 seconds]
elehack has joined #ocaml
bbc has quit [Read error: Connection reset by peer]
tautologico has quit [Quit: tautologico]
elehack has quit [Ping timeout: 240 seconds]
elehack has joined #ocaml
infoe has quit [Ping timeout: 240 seconds]
infoe has joined #ocaml
mikemc has quit [Read error: Operation timed out]
mikemc has joined #ocaml
Modius has joined #ocaml
almaisan-away has quit [Ping timeout: 240 seconds]
boscop__ has joined #ocaml
boscop_ has quit [Ping timeout: 240 seconds]
Amorphous has quit [Ping timeout: 272 seconds]
Amorphous has joined #ocaml
tautologico has joined #ocaml
eye-scuzzy has quit [Ping timeout: 240 seconds]
eye-scuzzy has joined #ocaml
elehack has quit [Quit: not a typewriter]
shm has quit [Ping timeout: 246 seconds]
shm has joined #ocaml
infoe has quit [Read error: Connection reset by peer]
infoe has joined #ocaml
oriba has quit [Remote host closed the connection]
tautologico has quit [Ping timeout: 265 seconds]
tautologico has joined #ocaml
tautologico has quit [Client Quit]
cthuluh has quit [Ping timeout: 260 seconds]
cthuluh has joined #ocaml
edwin has joined #ocaml
lewis1711 has joined #ocaml
<lewis1711> http://okmij.org/ftp/Scheme/scheme.ml ha, take that Ocaml type system :)
jonrafkind has joined #ocaml
Snark has joined #ocaml
almaisan-away has joined #ocaml
almaisan-away is now known as al-maisan
ygrek has joined #ocaml
al-maisan is now known as almaisan-away
jonrafkind has quit [Ping timeout: 265 seconds]
drunK has joined #ocaml
ygrek has quit [Ping timeout: 240 seconds]
Yoric has joined #ocaml
mnabil has quit [Read error: Connection reset by peer]
mnabil has joined #ocaml
Sieben has joined #ocaml
<lewis1711> i thought at least one of you might have found the link interesting;(
ygrek has joined #ocaml
lpereira has joined #ocaml
myu2 has joined #ocaml
ygrek has quit [Ping timeout: 240 seconds]
ikaros has joined #ocaml
joewilliams_away has quit [*.net *.split]
theDroggl has quit [*.net *.split]
lpereira has quit [*.net *.split]
edwin has quit [*.net *.split]
lewis1711 has quit [*.net *.split]
coucou747 has quit [*.net *.split]
Sieben has quit [*.net *.split]
Axioplase_ has quit [*.net *.split]
asmanur has quit [*.net *.split]
krktz has quit [*.net *.split]
Sieben has joined #ocaml
lpereira has joined #ocaml
lewis1711 has joined #ocaml
edwin has joined #ocaml
coucou747 has joined #ocaml
Axioplase_ has joined #ocaml
asmanur has joined #ocaml
krktz has joined #ocaml
joewilliams_away has joined #ocaml
theDroggl has joined #ocaml
<lewis1711> what is the “|” procedure called in ocaml?
vpalle has joined #ocaml
vpalle has quit [Ping timeout: 276 seconds]
ygrek has joined #ocaml
vpalle has joined #ocaml
lpereira has quit [Ping timeout: 246 seconds]
vpalle has quit [Ping timeout: 260 seconds]
<mfp> lewis1711: do you mean the bit-wise or operator? lor (as in 1 lor 2)
bbc has joined #ocaml
<lewis1711> mfp: the one used for apattern mathcing
<lewis1711> *pattern matching
<lewis1711> | (a, b) -> a
<mfp> it's just... syntax; I don't think it's got any particular name
<lewis1711> yeah but it does something
<lewis1711> i thought it was a procedure
<flux> or-pattern maybe?
<lewis1711> guess is just syntax
<flux> the official manual has a section on syntax
eye-scuzzy has quit [Read error: Operation timed out]
lewis1711 has quit [Quit: Leaving.]
eye-scuzzy has joined #ocaml
vpalle has joined #ocaml
lpereira has joined #ocaml
vpalle has quit [Ping timeout: 241 seconds]
noplot has joined #ocaml
rks has quit [Quit: foo]
vpalle has joined #ocaml
bbc has quit [Quit: leaving]
<adrien> thelema: the change in my terminal config for backspace kills backspace in vim, have to revert it back
decaf has joined #ocaml
__marius__ has quit [Remote host closed the connection]
rks has joined #ocaml
<thelema> adrien: you can/should probably fix vim, although that I know less about.
shm has quit [Ping timeout: 250 seconds]
<mrvn> I highly doubt vim is to blame there
<adrien> vim is going to work with xterm's default, maybe it could be made to work with both however
<mrvn> or maybe the thing that breaks with sane terminal settings needs fixing
<mrvn> just a thought
<adrien> I'd say both ;-)
noplot has quit [Ping timeout: 264 seconds]
<thelema> odd - my vim works fine with my terminal settings
<thelema> that said, of course the ubuntu/debian people would make sure that everything plays nicely
oriba has joined #ocaml
asmanur_ has joined #ocaml
asmanur has quit [Ping timeout: 246 seconds]
init1 has joined #ocaml
decaf has quit [Quit: Leaving]
almaisan-away is now known as al-maisan
albacker has joined #ocaml
bbc has joined #ocaml
al-maisan is now known as almaisan-away
qeb2 has joined #ocaml
qeb2 has quit [Client Quit]
tautologico has joined #ocaml
jonrafkind has joined #ocaml
boscop__ has quit [Ping timeout: 240 seconds]
ftrvxmtrx has quit [Quit: Leaving]
joewilliams_away is now known as joewilliams
cthuluh has quit [Read error: Operation timed out]
<albacker> if i have 'ç' inside a file and use input_char i read '\195'; '\167'; and then \n. Is there any possible way to have that char in just one read?
<adrien> encode your file as iso8859-1 or iso8859-15
cthuluh has joined #ocaml
<albacker> adrien: by having those two values, can i put them together to get ç ? And can i know the encoding of a file from ocaml?
<ezyang> albacker: What do you mean by "put them together"?
<ezyang> Do you know what character encodings are?
<albacker> no
<adrien> your have wide-chars, your file is probably utf-8 or utf-16 and ocaml doesn't understand wide characters, camomille does however
<ezyang> albacker: That would be a good thing to find out.
<albacker> how do you change the encoding of a file?
<adrien> iconv for conversions
<adrien> are you on windows?
<ezyang> I usually make my editor do it. But you really ought to be using UTF-8
<albacker> adrien: thanks.
<albacker> im using iconv.
<albacker> ezyang: i couldn't find anything under gedit, and if i use utf8 doesnt that mean ill have the same problem?
<ezyang> well, it depends on what you're really trying to do.
cthuluh has quit [Read error: Operation timed out]
joewilliams is now known as joewilliams_away
boscop has joined #ocaml
cthuluh has joined #ocaml
shm has joined #ocaml
Snark has quit [Quit: Ex-Chat]
vpalle has quit [Ping timeout: 246 seconds]
shm has left #ocaml []
<thelema> albacker: BatIO.read_uchar reads a unicode character from a channel
<thelema> specifically UTF8.
<albacker> thelema: BatIO, what package is it? libbatteries-ocaml-dev?
<thelema> yes
rks has quit [Ping timeout: 265 seconds]
rks has joined #ocaml
vpalle has joined #ocaml
WonTu has joined #ocaml
WonTu has left #ocaml []
<ezyang> Does OCaml have a library for generating random distributions over a discrete set (say, integers)
gildor has quit [Ping timeout: 264 seconds]
gildor has joined #ocaml
roconnor has quit [Read error: Connection reset by peer]
roconnor has joined #ocaml
vpalle has quit [Ping timeout: 260 seconds]
<thelema> ezyang: iirc, I got something like that from one of ocaml's math library bindings
<thelema> gsl or something
<ezyang> ok, I've been avoiding gsl but this seems like a reasonable use case for it.
vpalle has joined #ocaml
<ezyang> Given some value of some random type, is there a "uniform" way of printing it?
<ezyang> Somethingl ike the Haskell show typeclass.
_unK has joined #ocaml
<ezyang> looks like no.
lpereira has quit [Quit: Leaving.]
drunK has quit [Ping timeout: 264 seconds]
vpalle has quit [Ping timeout: 264 seconds]
<tautologico> maybe you can use something like sexplib
<ezyang> so, what I'm actually trying to do is figure out if ocaml-gsl prescribes a default random generator, or actually it's just something they randomly picked out of hat.
<ezyang> source code I think it's not even specified anywhere :-/
<ezyang> I just tried Std.dump and it gave me '13', which I'm not sure how to interpret.
<ezyang> ok, think I figured it out though
<tautologico> what do you mean with default random generator? the Random module?
<ezyang> no, GSL
<ezyang> it has its own random number generators. a bunch of them.
vpalle has joined #ocaml
init1 has quit [Quit: Quitte]
bbc has quit [Quit: 23h]
eelte has joined #ocaml
coucou747 has quit [Ping timeout: 246 seconds]
groves has joined #ocaml
mnabil_ has joined #ocaml
ygrek has quit [Ping timeout: 240 seconds]
edwin has quit [Remote host closed the connection]
_unK is now known as drunK
ulfdoz has quit [Ping timeout: 255 seconds]
vpalle has quit [Ping timeout: 265 seconds]
boscop has quit [Ping timeout: 240 seconds]
vpalle has joined #ocaml
vk0 has quit [Read error: Operation timed out]
vk0 has joined #ocaml
Yoric has quit [Quit: Yoric]
jonrafkind has left #ocaml []
flx_ has joined #ocaml
bzzbzz has quit [Read error: Connection reset by peer]
flux has quit [Ping timeout: 250 seconds]
mnabil has quit [Ping timeout: 260 seconds]
flx_ is now known as flux
tautologico has quit [Quit: tautologico]
bzzbzz has joined #ocaml
mnabil has joined #ocaml
ftrvxmtrx has joined #ocaml
mnabil_ has quit [Ping timeout: 265 seconds]
groovy2shoes has joined #ocaml