adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml MOOC http://1149.fr/ocaml-mooc | OCaml 4.02.3 announced http://ocaml.org/releases/4.02.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
badon has quit [Ping timeout: 252 seconds]
<grantwu> Never mind, there were some instructions I missed
badon has joined #ocaml
contempt has quit [Disconnected by services]
contempt has joined #ocaml
sepp2k has quit [Quit: Leaving.]
madroach has quit [Ping timeout: 260 seconds]
madroach has joined #ocaml
yegods_ has quit []
coody has joined #ocaml
yegods has joined #ocaml
aphprentice has joined #ocaml
grantwu has left #ocaml ["WeeChat 1.0.1"]
badon_ has joined #ocaml
badon has quit [Disconnected by services]
badon_ is now known as badon
yegods has quit [Remote host closed the connection]
^elyse^ has quit [Read error: Connection reset by peer]
^elyse^ has joined #ocaml
yegods has joined #ocaml
yegods has quit [Remote host closed the connection]
yegods has joined #ocaml
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yegods has quit [Remote host closed the connection]
fluter has quit [Ping timeout: 240 seconds]
Haudegen has quit [Ping timeout: 252 seconds]
fluter has joined #ocaml
ollehar has quit [Quit: ollehar]
Haudegen has joined #ocaml
lobo has quit [Quit: zleep]
yegods has joined #ocaml
pyx has quit [Quit: WeeChat 1.3]
TBads has joined #ocaml
fluter has quit [Ping timeout: 246 seconds]
fluter has joined #ocaml
ryanartecona has joined #ocaml
fluter has quit [Ping timeout: 240 seconds]
ryanartecona has quit [Quit: ryanartecona]
jeffmo has quit [Quit: jeffmo]
yegods has quit [Remote host closed the connection]
pyon has quit [Quit: fix config]
fluter has joined #ocaml
badon has quit [Quit: Leaving]
cow-orke1 has joined #ocaml
papy__ has joined #ocaml
jerith_ has joined #ocaml
Leonidas_ has joined #ocaml
GooseYAr1 has joined #ocaml
GooseYArd has quit [Write error: Broken pipe]
papy_ has quit [Write error: Broken pipe]
jrslepak has quit [Write error: Broken pipe]
cow-orker has quit [Write error: Broken pipe]
jerith has quit [Remote host closed the connection]
Leonidas has quit [Remote host closed the connection]
jrslepak_ has joined #ocaml
TBads has quit [Quit: WeeChat 1.3]
larhat has quit [Quit: Leaving.]
Leonidas_ is now known as Leonidas
NingaLeaf has joined #ocaml
pyon has joined #ocaml
^elyse^ has quit [Quit: Leaving...]
python476 has joined #ocaml
JacobEdelman has quit [Quit: Connection closed for inactivity]
fluter has quit [Ping timeout: 264 seconds]
ryanartecona has joined #ocaml
fluter has joined #ocaml
badon has joined #ocaml
jrslepak_ is now known as jrslepak
NingaLeaf has quit [Quit: Textual IRC Client: www.textualapp.com]
raphaelss has joined #ocaml
JacobEdelman has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
<Maelan> okay, so i had trouble mixing Scanf.fscanf & input_line
<Maelan> the first scanf behaved just as expected
<Maelan> then the input_line read the file from a weird position, not the ending point of the scan nor the start of file
<Maelan> then the second scanf resumed from the ending point of the first scanf
<Maelan> i thought there were synchronized?
<Maelan> and anyway, i do not understand the behaviour of input_line here
<Maelan> it starts at position 1029, looks like 1024, maybe the length of some scanf’s internal buffer? so scanf would take 1024 bytes from stdin, thus moving the file cursor, and keep them in its own buffer which is not known by functions such as input_line?
python476 has quit [Ping timeout: 246 seconds]
ismaelga has joined #ocaml
contempt has quit [Disconnected by services]
contempt has joined #ocaml
Bahman has joined #ocaml
nullcatxxx_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nullcatxxx_ has joined #ocaml
nullcatxxx_ has quit [Client Quit]
raphaelss has quit [Read error: Connection reset by peer]
nullcatxxx_ has joined #ocaml
ismaelga has quit [Remote host closed the connection]
mcmillhj has quit [Quit: Lost terminal]
xaimus has quit [Remote host closed the connection]
ygrek has quit [Ping timeout: 260 seconds]
nullcatx_ has joined #ocaml
nullcatxxx_ has quit [Ping timeout: 264 seconds]
psy_ has quit [Read error: Connection reset by peer]
shinnya has quit [Ping timeout: 264 seconds]
pierpa` has joined #ocaml
ljs has joined #ocaml
tmtwd_ has joined #ocaml
meiji11 has joined #ocaml
tmtwd has quit [Read error: Connection reset by peer]
mac10688 has quit [Ping timeout: 246 seconds]
tmtwd_ has quit [Remote host closed the connection]
native_killer has joined #ocaml
tmtwd has joined #ocaml
kevinch has quit [Quit: Computer has gone to sleep.]
fluter has quit [Ping timeout: 246 seconds]
fluter has joined #ocaml
kevinch has joined #ocaml
kolko has quit [Quit: ZNC - http://znc.in]
kevinch has quit [Quit: Computer has gone to sleep.]
nullcatxxx_ has joined #ocaml
nullcatx_ has quit [Ping timeout: 252 seconds]
darkf has joined #ocaml
ygrek has joined #ocaml
nullcatxxx_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xaimus has joined #ocaml
native_killer has quit [Ping timeout: 246 seconds]
cyraxjoe_ has joined #ocaml
cyraxjoe has quit [Ping timeout: 276 seconds]
igoroliveira has quit [Quit: Connection closed for inactivity]
kolko has joined #ocaml
slash^ has joined #ocaml
JacobEdelman has quit [Quit: Connection closed for inactivity]
<flux> sounds strange. I would certainly expect them to be synchronized as well, given they work on the same object.
<flux> maelan, I suppose you don't start reading in the Scanf.fscanf callback?
BitPuffin|osx has quit [Ping timeout: 272 seconds]
tmtwd has quit [Ping timeout: 255 seconds]
tmtwd has joined #ocaml
teknozulu has quit [Ping timeout: 244 seconds]
ljs has quit [Quit: Be back later ...]
MercurialAlchemi has joined #ocaml
Bahman_ has joined #ocaml
Bahman has quit [Ping timeout: 255 seconds]
tmtwd has quit [Ping timeout: 240 seconds]
ski has quit [Ping timeout: 260 seconds]
Mandus has quit [Ping timeout: 260 seconds]
Mandus has joined #ocaml
ski has joined #ocaml
Fullma has quit [Quit: Fullma]
darkf has quit [Read error: Connection reset by peer]
darkf has joined #ocaml
zv has quit [Remote host closed the connection]
coody has quit [Quit: Connection closed for inactivity]
meiji11 has quit [Read error: Connection reset by peer]
Kakadu has joined #ocaml
larhat has joined #ocaml
sh0t has joined #ocaml
Snark has quit [Ping timeout: 260 seconds]
Snark has joined #ocaml
aaronelkins has joined #ocaml
kolko has quit [Quit: ZNC - http://znc.in]
orbifx has joined #ocaml
sh0t has quit [Ping timeout: 250 seconds]
sh0t has joined #ocaml
<aaronelkins> Hi, do we have a irc command (like !mdn Array for Javascript) to show the docs about OCaml in this room?
<Kakadu> nope
kolko has joined #ocaml
<pierpa`> sigh. we have been steamrolled by javascript
<pierpa`> :)
<dmbaturin> aaronelkins: !anything is not an IRC command. It's a bot command. Bot commands vary among implementations and configurations.
<dmbaturin> This channel has no service bots, apart from _whitelogger who, like an NSA officer, says nothing and records everything silently.
MercurialAlchemi has quit [Ping timeout: 260 seconds]
MercurialAlchemi has joined #ocaml
zpe_ has joined #ocaml
<aaronelkins> dmbaturin: Yep
Bahman_ has quit [Ping timeout: 255 seconds]
sh0t has quit [Ping timeout: 276 seconds]
mort___ has joined #ocaml
dsheets has joined #ocaml
Haudegen has quit [Ping timeout: 272 seconds]
yegods has joined #ocaml
Haudegen has joined #ocaml
shinnya has joined #ocaml
Simn has joined #ocaml
dsheets has quit [Ping timeout: 272 seconds]
ygrek has quit [Ping timeout: 255 seconds]
larhat1 has joined #ocaml
larhat has quit [Read error: Connection reset by peer]
rand has joined #ocaml
Bahman has joined #ocaml
larhat1 has quit [Quit: Leaving.]
<Maelan> flux, i do not read in the callback
<Maelan> (i did in my actual problematic code, then i thought it could possibly be the source of trouble so i removed it, with no observable change)
<Maelan> (by the way, input_line starts reading at byte 1025, not 1029, so it’s definitively a story of scanf keeping for itself the 1024 first bytes)
orbifx2 has joined #ocaml
orbifx has quit [Ping timeout: 240 seconds]
python476 has joined #ocaml
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
dsheets has joined #ocaml
mort___ has quit [Quit: Leaving.]
dsheets has quit [Ping timeout: 272 seconds]
^elyse^ has joined #ocaml
^elyse^ has quit [Remote host closed the connection]
yegods has quit [Remote host closed the connection]
yegods has joined #ocaml
mort___ has joined #ocaml
pyon is now known as nyon
mac10688 has joined #ocaml
ousado has joined #ocaml
ousado has quit [Changing host]
ousado has joined #ocaml
<Maelan> for a minimal example: http://paste.awesom.eu/Maelan/wmqI&raw
<Maelan> ow, nevermind, i finally found it documented in the manual
<Maelan> > Warning: since all formatted input functions operate from a formatted input channel, be aware that each fscanf invocation will operate with a formatted input channel reading from the given channel. This extra level of bufferization can lead to a strange scanning behaviour if you use low level primitives on the channel (reading characters, seeking the reading position, and so on).
<Maelan> > As a consequence, never mix direct low level reading and high level scanning from the same regular input channel.
<Maelan> i just missed that paragraph when i searched around :-(
<Maelan> an entirely unrelated question:
aaronelkins has quit [Quit: aaronelkins]
<Maelan> given a recursive function like this: let rec f = function 0 -> [] | n -> n :: f (n-1)
<Maelan> would it be possible for the compiler to optimize it into a recursive function
psy_ has joined #ocaml
<Maelan> which first allocates the cell Cons(n,X) with X initialized to e·g· the null pointer (for the g·c·), then calls itself recursively, passing to the recursive call the memory location (the address of X) where to put its return value
<Maelan> ?
<Maelan> (of course, i meant “optimize it into a *tail*-recursive function)
<Maelan> ”
zpe_ has quit [Remote host closed the connection]
zpe_ has joined #ocaml
<zozozo> Maelan: there is a github pull request doing exactly that
FreeBirdLjj has joined #ocaml
zpe_ has quit [Ping timeout: 264 seconds]
<pierpa`> why he requires the annotation?
<pierpa`> ah, ok, I hadn't read the cons part yet
oli2_ has joined #ocaml
monod has joined #ocaml
<Maelan> oh zozozo, thanks :-
<Maelan> :-)
rand has quit [Ping timeout: 246 seconds]
monod has quit [Quit: Sto andando via]
johnelse has quit [Ping timeout: 246 seconds]
johnelse has joined #ocaml
johnelse is now known as Guest36997
<mort___> hm— got a strange opam behaviour — i appear to have a switch that's listed but can't be removed because it's not being passed to the solver
<mort___> any opam experts around?
zpe_ has joined #ocaml
native_killer has joined #ocaml
zpe_ has quit [Remote host closed the connection]
zpe_ has joined #ocaml
dsheets has joined #ocaml
zpe_ has quit [Ping timeout: 240 seconds]
^elyse^ has joined #ocaml
yegods_ has joined #ocaml
yegods has quit [Read error: Connection reset by peer]
ryanartecona has joined #ocaml
^elyse^ has quit [Client Quit]
dsheets has quit [Ping timeout: 272 seconds]
larhat has joined #ocaml
pierpa` has quit [Ping timeout: 244 seconds]
rand has joined #ocaml
mfp has quit [Read error: Connection reset by peer]
malc_ has joined #ocaml
ismaelga has joined #ocaml
mfp has joined #ocaml
moei has quit [Quit: Leaving...]
pootler has quit [Ping timeout: 246 seconds]
aphprentice has quit [Ping timeout: 264 seconds]
zpe has joined #ocaml
sz0 has quit [Ping timeout: 250 seconds]
ncthom91 has joined #ocaml
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
shinnya has quit [Ping timeout: 250 seconds]
zpe has quit [Ping timeout: 244 seconds]
<mort___> hm. ~/.opam appears to have gotten very wedged indeed. time to mv it away and start again… :/
divyanshu has joined #ocaml
<Drup> you should be able to just nuke the problematic switch directory
<Drup> (and take a look inside .opam/aliases
<mort___> it had started telling me things like
<mort___> : mort@greyjay:mrt#master= $; opam install ssl
<mort___> The following actions will be performed:
<mort___> ∗ install ssl 0.5.0
<mort___> =-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
<mort___> [ERROR] The sources of the following couldn't be obtained, aborting:
<mort___> - ssl.0.5.0
<mort___> (This may be fixed by running 'opam update')
<mort___> : mort@greyjay:mrt#master= $; opam update
<mort___> =-=- Updating package repositories =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
<mort___> [upstream-git] git://github.com/ocaml/opam-repository already up-to-date
<mort___> Updates available for system, apply them with 'opam upgrade':
<mort___> ===== ↻ 1 =====
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mort___> Drup: yes, opam/aliases did have teh alias recorded for the switch in question
ncthom91 has joined #ocaml
zpe has joined #ocaml
<mort___> hm. joy. `opam install ssl` results in unmet system dependencies for which depext reports nothing
^elyse^ has joined #ocaml
pootler has joined #ocaml
sz0 has joined #ocaml
aphprentice has joined #ocaml
mort___ has quit [Quit: Leaving.]
^elyse^ has quit [Quit: Leaving]
BitPuffin|osx has joined #ocaml
larhat has quit [Quit: Leaving.]
nyon is now known as pyon
tmtwd has joined #ocaml
groovy3shoes has joined #ocaml
aphprentice has quit [Ping timeout: 240 seconds]
^elyse^ has joined #ocaml
pootler has quit [Ping timeout: 240 seconds]
lambdahands has quit [Ping timeout: 240 seconds]
jun_ has quit [Ping timeout: 240 seconds]
jun_ has joined #ocaml
darkf has quit [Ping timeout: 240 seconds]
Kakadu has quit [Quit: Page closed]
yegods_ has quit [Remote host closed the connection]
groovy2shoes has quit [Ping timeout: 240 seconds]
aphprentice has joined #ocaml
pootler has joined #ocaml
lambdahands has joined #ocaml
kevinch has joined #ocaml
^elyse^ has quit [Quit: Leaving]
^elyse^ has joined #ocaml
shinnya has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
larhat has joined #ocaml
divyanshu has quit [Quit: Textual IRC Client: www.textualapp.com]
ljs has joined #ocaml
pacemkr has joined #ocaml
tmtwd has quit [Ping timeout: 240 seconds]
^elyse^ has quit [Quit: Leaving]
pacemkr has quit [Quit: Leaving.]
python476 has quit [Quit: Page closed]
python476 has joined #ocaml
groovy3shoes is now known as groovy2shoes
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kakadu has joined #ocaml
cyraxjoe_ has quit [Read error: Connection reset by peer]
native_killer has quit [Quit: Leaving]
cyraxjoe has joined #ocaml
averell has joined #ocaml
hubertus21 has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
kevinch has quit [Quit: Computer has gone to sleep.]
nuuit has joined #ocaml
JacobEdelman has joined #ocaml
ljs has quit [Quit: Be back later ...]
ygrek has joined #ocaml
tane has joined #ocaml
kevinch has joined #ocaml
ismael__ has joined #ocaml
python476 has quit [Quit: Page closed]
^elyse^ has joined #ocaml
ismaelga has quit [Ping timeout: 272 seconds]
python476 has joined #ocaml
Guest36997 is now known as johnelse
slash^ has quit [Read error: Connection reset by peer]
JacobEdelman has quit [Ping timeout: 240 seconds]
zpe has quit [Remote host closed the connection]
skeuomorf has joined #ocaml
xargs has joined #ocaml
JacobEdelman has joined #ocaml
zpe has joined #ocaml
ryanartecona has joined #ocaml
divyanshu has joined #ocaml
moei has joined #ocaml
skeuomorf has quit [Ping timeout: 272 seconds]
rand has quit [Quit: leaving]
AlexRussia has quit [Ping timeout: 260 seconds]
<MercurialAlchemi> down with exceptions!
zpe has quit [Remote host closed the connection]
ygrek has quit [Ping timeout: 255 seconds]
<jyc> does anyone know how to use camlimage to actually create a new image?
divyanshu has quit [Quit: Computer has gone to sleep.]
erider has joined #ocaml
erider has quit [Remote host closed the connection]
malc_ has quit [Ping timeout: 260 seconds]
erider has joined #ocaml
malc_ has joined #ocaml
erider has quit [Remote host closed the connection]
ismael__ has quit [Remote host closed the connection]
lobo has joined #ocaml
divyanshu has joined #ocaml
divyanshu has quit [Quit: Textual IRC Client: www.textualapp.com]
malc_ has quit [Ping timeout: 240 seconds]
TBads has joined #ocaml
malc_ has joined #ocaml
python476 has quit [Quit: Page closed]
python476 has joined #ocaml
orbifx has joined #ocaml
hubertus21 has quit [Quit: Connection closed for inactivity]
nullcatxxx_ has joined #ocaml
orbifx2 has quit [Ping timeout: 276 seconds]
JacobEdelman has quit [Quit: Connection closed for inactivity]
JacobEdelman has joined #ocaml
TBads has quit [Ping timeout: 252 seconds]
sh0t has joined #ocaml
ismaelga has joined #ocaml
AlexRussia has joined #ocaml
icbm has joined #ocaml
rand has joined #ocaml
yegods has joined #ocaml
xargs has quit [Quit: jmIrc destroyed by the OS]
stux|RC-only has quit [Ping timeout: 276 seconds]
stux|RC-only has joined #ocaml
stomp has quit [Ping timeout: 276 seconds]
fds has quit [Ping timeout: 276 seconds]
fds_ has joined #ocaml
stomp has joined #ocaml
ousado has quit [Ping timeout: 252 seconds]
ousado_ has joined #ocaml
badon has quit [Ping timeout: 255 seconds]
sh0t has quit [Read error: Connection reset by peer]
ismaelga has quit [Remote host closed the connection]
MercurialAlchemi has quit [Ping timeout: 260 seconds]
oli2_ has quit []
Simn has quit [Quit: Leaving]
ollehar has joined #ocaml
kevinch has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<Maelan> i do not manage to setup the uncaught exception handler
<Maelan> using Printexc.set_uncaught_exception_handler seems to have zero effect
icbm has left #ocaml ["Leaving"]
<Maelan> this is still the default handler which is called
<Maelan> in addition, apparently this same default handler does not use printers registered with Printexc.register_printer
rand has quit [Quit: leaving]
<Maelan> by contrast with Printexc.print (which prints ‘Uncaught exception: Blabla’ while the default handler for uncaught exceptions prints ‘Exception: Blabla.’)
<Maelan> is all this normal?
<ollehar> don't know :P
^elyse^ has quit [Quit: Leaving]
tane has quit [Quit: Verlassend]
^elyse^ has joined #ocaml
<ollehar> anyone have experience with tagless gc?
ljs has joined #ocaml
TBads has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]