adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org and http://caml.inria.fr | http://ocaml.org/releases/4.02.0.html | Public channel logs at http://irclog.whitequark.org/ocaml
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
nojb has quit [Quit: nojb]
SomeDamnBody has joined #ocaml
badon has joined #ocaml
ontologiae has joined #ocaml
madroach has quit [Ping timeout: 250 seconds]
madroach has joined #ocaml
struktured has joined #ocaml
q66 has quit [Quit: Leaving]
Simn has quit [Quit: Leaving]
shinnya has quit [Ping timeout: 258 seconds]
serge has joined #ocaml
shinnya has joined #ocaml
darkf has joined #ocaml
serge has quit [Ping timeout: 255 seconds]
Submarine has joined #ocaml
samrat has joined #ocaml
samrat has quit [Ping timeout: 244 seconds]
tnguyen has quit [Quit: tnguyen]
samrat has joined #ocaml
sheijk has joined #ocaml
sheijk has quit [Client Quit]
samrat has quit [Ping timeout: 258 seconds]
sheijk_ has quit [Ping timeout: 244 seconds]
samrat has joined #ocaml
ontologiae has quit [Ping timeout: 245 seconds]
samrat has quit [Ping timeout: 265 seconds]
<mcc> so... here's a question. i am trying to build an ocaml program at the command line. it uses a ppx (sedlex)
samrat has joined #ocaml
<mcc> i am trying to use scons, which has a ocaml "tool" on their website-- in other words the ocaml module for it is slightly old and only semi-supported.
<mcc> when i was recommended to build before, i was told to let ocamlfind perform the compilation.
inf-groupoid is now known as pyon
<mcc> the scons tool wants to compile stuff like: ocamlopt -o build/test -ccopt -L/Users/mcc/.opam/system/lib/sedlex -I /Users/mcc/.opam/system/lib/sedlex /Users/mcc/.opam/system/lib/sedlex/sedlexing.cmxa build/test.ml
<mcc> I find, experimentally, i can get it to build if i say: ocamlopt -o build/test -ccopt -L/Users/mcc/.opam/system/lib/sedlex -I /Users/mcc/.opam/system/lib/sedlex -ppx /Users/mcc/.opam/system/lib/sedlex/ppx_sedlex /Users/mcc/.opam/system/lib/sedlex/sedlexing.cmxa build/test.ml
<mcc> what is that ppx_sedlex program, and how can i predict its name? That is, how would ocamlfind have found it?
<mcc> there's a -ppxopt argument to ocamlfind mentioned in the man page, but it is not documented
<Drup> please, ditch this thing or make it use ocamlfind.
<mcc> haha
<mcc> i'm interested in that second option.
badon has quit [Quit: Leaving]
argp has quit [Ping timeout: 240 seconds]
<mcc> the "ocaml module" is a pretty short python script.
samrat has quit [Ping timeout: 265 seconds]
<Drup> but really, you should use one of the ocaml build systems ...
<mcc> what do people normally use for build systems with ocaml? omake? make?
<Drup> you are learning the language, make yourself a favor by not reinventing the tool to make the language easier to use.
<mcc> maybe so, but at a later stage this project might pick up c++ components or have self-hosting stages or whatever.
<Drup> since you are doing a simple project and starting, I would say, use oasis
<mcc> but i guess i could delay using a general build system until i need one.
<mcc> ok.
<Drup> if you really want to use a general purpose one, you can look up OCamlMakefile
<mcc> ok
samrat has joined #ocaml
nicoo has quit [Ping timeout: 246 seconds]
samrat has quit [Ping timeout: 265 seconds]
_whitelogger has joined #ocaml
whitequark has joined #ocaml
badon has joined #ocaml
hausdorf_ has joined #ocaml
hausdorff has quit [Ping timeout: 255 seconds]
mcclurmc has joined #ocaml
nicoo has joined #ocaml
samrat has joined #ocaml
yomimono has joined #ocaml
samrat has quit [Ping timeout: 240 seconds]
NoNNaN has joined #ocaml
hausdorf_ has quit [Remote host closed the connection]
govg has quit [Quit: Lost terminal]
govg has joined #ocaml
ontologiae has joined #ocaml
huza has joined #ocaml
jonludlam has quit [Ping timeout: 245 seconds]
jonludlam has joined #ocaml
ontologiae has quit [Ping timeout: 240 seconds]
Submarine has quit [Remote host closed the connection]
ontologiae has joined #ocaml
serge has joined #ocaml
hausdorff has joined #ocaml
MrScout has joined #ocaml
MrScout has quit [Remote host closed the connection]
MrScout has joined #ocaml
jonludla` has joined #ocaml
Submarine has joined #ocaml
Submarine has joined #ocaml
jonludlam has quit [Ping timeout: 255 seconds]
hausdorff has quit [Remote host closed the connection]
siddharthv_away is now known as siddharthv
ontologiae has quit [Ping timeout: 264 seconds]
yomimono has quit [Ping timeout: 264 seconds]
hausdorff has joined #ocaml
hausdorff has quit [Remote host closed the connection]
hausdorff has joined #ocaml
hausdorff has quit [Read error: Connection reset by peer]
MrScout has quit [Ping timeout: 255 seconds]
samrat has joined #ocaml
<whitequark> reynir: [%of_yojson:] works like this
<whitequark> given x : Yojson.Safe.t, [%of_yojson: (int*int)] t will deserialize a pair of ints
<whitequark> this syntax doesn't work with records though, so perhaps its usefulness is marginal
SomeDamnBody has quit [Ping timeout: 265 seconds]
thmslld has quit [Ping timeout: 255 seconds]
larhat1 has quit [Quit: Leaving.]
huza has quit [Quit: WeeChat 0.3.8]
mcclurmc has quit [Remote host closed the connection]
hhugo2 has joined #ocaml
hhugo1 has quit [Ping timeout: 265 seconds]
pgomes has joined #ocaml
marvimias has joined #ocaml
marvimias has left #ocaml ["Leaving"]
psy_ has quit [Read error: No route to host]
psy_ has joined #ocaml
nojb has joined #ocaml
taion809 has quit [Remote host closed the connection]
octachron has joined #ocaml
ebzzry has joined #ocaml
ebzzry__ has quit [Read error: Connection reset by peer]
<reynir> Hm okay
<whitequark> oh, and your first question
<whitequark> no, you'll have to write your own code
<whitequark> if you have any ideas on how to improve that, please open an issue
<reynir> OK thanks :)
MercurialAlchemi has joined #ocaml
WraithM has joined #ocaml
octachron has quit [Ping timeout: 255 seconds]
nojb has quit [Quit: nojb]
govg has quit [Read error: Connection reset by peer]
serge has quit [Remote host closed the connection]
govg has joined #ocaml
serge has joined #ocaml
BitPuffin has quit [Ping timeout: 265 seconds]
dav has quit [Ping timeout: 272 seconds]
dav has joined #ocaml
serge has quit [Ping timeout: 250 seconds]
<whitequark> whaaaat
<whitequark> why does ocamlc dlopen() the dll*.so during linking?! O_o
keen_________ has quit [Read error: Connection reset by peer]
keen_________ has joined #ocaml
pharpend has left #ocaml ["WeeChat 0.4.3"]
jonludla` has quit [Ping timeout: 272 seconds]
pgomes has quit [Ping timeout: 264 seconds]
octachron has joined #ocaml
divyanshu has joined #ocaml
Arsenik has joined #ocaml
marynate has joined #ocaml
MercurialAlchemi has quit [Remote host closed the connection]
mcc has quit [Quit: This computer has gone to sleep]
MercurialAlchemi has joined #ocaml
Arsenik has quit [Read error: Connection reset by peer]
<dmbaturin> Are there test coverage checking tools?
<whitequark> bisect
<dmbaturin> Oh, it's in opam. Nice.
WraithM has quit [Ping timeout: 244 seconds]
gustav__1 has quit [Ping timeout: 245 seconds]
gustav___ has joined #ocaml
govg has quit [Quit: leaving]
<MercurialAlchemi> I was looking for a package implementing a rose tree and a zipper yesterday, but I didn't find anything
hyperboreean has joined #ocaml
<MercurialAlchemi> Not that it's terribly difficult to implement, but it's odd that no package for something generally useful like that exists
Nahra has quit [Ping timeout: 265 seconds]
serge has joined #ocaml
hhugo2 has quit [Quit: Leaving.]
tane has joined #ocaml
psy_ has quit [Ping timeout: 244 seconds]
larhat has joined #ocaml
tangentstorm has joined #ocaml
<tangentstorm> hey all. i don't suppose you guys have an ocaml eval bot we could borrow for #learnprogramming, by any chance?
<whitequark> it's simpler / less powerful / easier to get up and running
kakadu has joined #ocaml
WraithM has joined #ocaml
<companion_cube> MercurialAlchemi: what would you use the rose tree for?
<flux> whitequark, look fun. no LICENSE/COPYING, though ;)
<MercurialAlchemi> companion_cube: If you know ledger-cli, I want to process data from a CSV export, and since categories are organized in a tree, my report needs to store data in a rose tree
<flux> ah, there is _oasis which mentions it
<companion_cube> MercurialAlchemi: just defining the datatype is so easy in OCaml that no one has packaged it, I guess
<companion_cube> zippers are another problem
jonludlam has joined #ocaml
<MercurialAlchemi> companion_cube: well, I'll just steal the Haskell implementation, I guess
<MercurialAlchemi> companion_cube: maybe package it while I'm at it
<whitequark> flux: yeah
<MercurialAlchemi> I saw there was a library with generic data structures (but not rose trees) made during an old Summer of Code, but it doesn't seem to be maintained
AltGr has joined #ocaml
<companion_cube> yes, I stumbled upon it too
hausdorff has joined #ocaml
<companion_cube> MercurialAlchemi: do you have a link? I lost it again
lordkryss has joined #ocaml
<flux> ocaml really could use a nice data structures library. there is reins, but it's not maintained either, afaik.
<companion_cube> ah, thanks
<companion_cube> I remember why I didn't steal code from reins: license
<flux> LGPL with the linking exception?
<companion_cube> yes
<tangentstorm> cool, whitequark... looks like this evaluates anything eval.in supports, too, right?
<flux> right, not suitable for copying verbatim
<whitequark> tangentstorm: yes
<companion_cube> it's fine, but I have a BSD-licensed library
jonludla` has joined #ocaml
<flux> and you don't want to just depend on it?
toolslive has joined #ocaml
WraithM has quit [Ping timeout: 265 seconds]
jonludlam has quit [Ping timeout: 255 seconds]
<companion_cube> flux: oh, I meant, copying some code into my own library, which doesn't have a compatible license
<companion_cube> I'd have scavenged the AVL trees, for instance
<flux> but could you not have just used the AVL trees without copying the code in?
<MercurialAlchemi> companion_cube: yes, that was reins
<companion_cube> flux: to maintain the code you need to copy it, I think
shinnya has quit [Ping timeout: 256 seconds]
<companion_cube> I have my own data-structure library, in some sense (although I miss some things in reins)
<flux> ooh, ooh, where is it?-)
<companion_cube> https://github.com/c-cube/ocaml-containers (stability/usability can vary)
<companion_cube> I should cleanup the misc/ dir -_-
_andre has joined #ocaml
* MercurialAlchemi wishes that OCaml could standardize on at least the most common data structures
<flux> what I like about C++ containers is than in principle I can store elements in multiple data structures by storing iterators inside them (though you need to be careful about invalidation)
<flux> too bad this library apparently lets all data live its own island ;)
<whitequark> bleargh
<whitequark> llvm bindings segfault on 4.02 because of some wackiness in the runtime wrt caml_local_roots
<whitequark> I don't want to bisect :(
<companion_cube> flux: what do you mean "in multiple data structures"?
<companion_cube> in ocaml too you can do fun x -> [x], [|x|]
<flux> companion_cube, well I mean that I could have two lists, for objects that are < 100 and objects that are < 10000
<flux> if I find the object in the first list, I can remove it from the second list in constant time
<companion_cube> oh, that
<companion_cube> well it's totally incompatible with OCaml's persistent structures
<flux> yes.
<flux> I suppose the functional way is to use maps from identifiers to objects
<companion_cube> you can write a custom recursive function though
<companion_cube> if lists are sorted
jonludla` has quit [Ping timeout: 245 seconds]
<companion_cube> in linear time
<companion_cube> flux: I like the tradeoff between safety and efficiency OCaml provides
<companion_cube> "though you need to be careful about invalidation
<companion_cube> " <---- this is very dangerous and error-prone
<flux> well, you already need to be careful when you have double-linked lists
<companion_cube> exactly
<flux> in c++ making mistakes can introduce crashes, in ocaml only infinite loops :)
Simn has joined #ocaml
<companion_cube> mostly, yes
<whitequark> and exceptions
psy_ has joined #ocaml
AltGr has left #ocaml [#ocaml]
<whitequark> jpdeplaix: r221139 in LLVM is of interest to you
<whitequark> I made it so that setting any environment variables is never needed and LLVM build is still relocatable, but you need to alter META slightly
zpe has joined #ocaml
marynate has quit [Read error: Connection reset by peer]
\u has quit [Ping timeout: 255 seconds]
\q has joined #ocaml
tane has quit [Quit: Verlassend]
\q has quit [Ping timeout: 240 seconds]
<ggherdov> uh, I just read LLVM weekly #44 and it talks a lot about ocaml bindings. Is there a specific homepage/wiki/whatever about llvm ocaml bindings?
\q has joined #ocaml
<whitequark> ggherdov: there is API documentation, accessible from the web at http://llvm.moe/ocaml/, and the Kaleidoscope tutorial: http://llvm.org/docs/tutorial/OCamlLangImpl1.html
<whitequark> the latter needs some severe rewriting unfortunately
<ggherdov> whitequark: thanks. You're the guy LLVM weekly is talking about, correct?
<whitequark> yes
<ggherdov> ok. cheers!
<companion_cube> I still don't remember where to find the paper(s) that describe whole-set operations on AVL trees
<companion_cube> which is apparently used for standard Map/Set
dsheets has joined #ocaml
hausdorff has quit [Remote host closed the connection]
hausdorff has joined #ocaml
ingsoc has joined #ocaml
hausdorff has quit [Ping timeout: 244 seconds]
WhatElse has joined #ocaml
<WhatElse> hi guys
<WhatElse> is it possible to run an ocaml application without compiling it? (I’m really newbie)
<whitequark> you can run a single .ml file using $ ocaml foo.ml
<WhatElse> I have a lot of .ml files, and if I run the main one (main.ml) it complains about dependencies in other ml
<WhatElse> but I can’t figure out an “order” between all those files
<whitequark> you should really compile it, in that case.
nojb has joined #ocaml
<WhatElse> ok, I was asking because application is big and compiling it requires a lot of time
<whitequark> you can compile it to bytecode
<WhatElse> with ocamlc, right?
<whitequark> mmm, yes
<whitequark> usually you'd have a buildsystem
<WhatElse> yes it uses make
<WhatElse> I was even trying to use ocamldebug, but it ends unexpectedly
<whitequark> ocamldebug is ... well ... don't use it
_whitelogger has joined #ocaml
<WhatElse> wow.. but people really use ocaml?! I’m finding out that is very.. ugly.. to work with in big projects
<rom1504> WhatElse: and people even uses C ;) ;)
<whitequark> WhatElse: you can use gdb with ocamlopt
<whitequark> on linux it puts the source mapping in debug info, though you can't examine any values
<whitequark> generally it depends on mindset, for example I only use a debugger in extreme cases, eg segfaults. Most of the time well-designed APIs, tests and debug prints solve everything
<WhatElse> I see, but ocamlopt seems even more slow than ocamlc
<WhatElse> ok I’ll try that way, but I feel so ‘90s
<whitequark> are you using ocamlc with ocamlfind or just ocamlc?
<whitequark> if the latter, invoke ocamlc.opt instead of ocamlc, it will be much faster
<Drup> WhatElse: and if you are in 4.02.0, upgrade
<WhatElse> actually I’m using make so I didn’t know
<WhatElse> Drup: yes I am
<Drup> there is a compiler performance bug in 4.02.0, fixed in 4.02.1
<WhatElse> Drup: ok, thank you I’ll try
<Drup> ocamlc is quite fast, so if your build is really really slow, there is something wrong :p
<rom1504> ocamlc stuff.ml && sleep 1000
govg has joined #ocaml
<WhatElse> ooook I’ll check, I’ve just downloaded a project and I’m trying to understand how it works
<whitequark> which one, btw?
<Drup> I was going to ask the same :D
<Drup> this website
<Drup> so geocity
<WhatElse> I’m very new to this stuff so it’s likely that my configuration has some probles
<WhatElse> I know.. :/
<Drup> ok so 1)
<rom1504> Last updated: 14-Fev-2005
<Drup> it's not a project that huge
<WhatElse> actually is part of bigger project: avispa http://www.avispa-project.org/
<Drup> 2) urk
<WhatElse> but I have to study just that part, so I’m focusing on it
<WhatElse> I know that websites are ugly and projects old.. but I have to.. so.. please don’t say that, it’s frustrating! :D
<WhatElse> anyway, how do you print any value on any point of an ocaml program?
* whitequark grins
<Drup> hihi :p
<Drup> WhatElse: don't you think you should learn about OCaml first ? :)
<whitequark> you can't. you need to call a dedicated printing function for that kind of value.
<WhatElse> whitequark: as I feared :(
<nojb> WhatElse: need to write custom printers. Using something like sexplib can make it easier …
<Drup> "To compile you need the OCaml native code compiler, version 3.02" /insert rainbow
<WhatElse> nojb: I’ll check it
<whitequark> in >=4.02 there is an easy method to infer those
<Drup> calm down guys. WhatElse: what do you want to print ?
<WhatElse> Drup: I have to place some printf in the code to see what is inside function’s parameters
<Drup> what types.
<Drup> It's an old project, I'm pretty sure they defined printers for everything
<WhatElse> Drup: I don’t know yet. I’ve seen that there is a Printf module, should I use a specific function for any type or there is some “magical” printf I can use for everything?
<Drup> nothing magical
<WhatElse> whitequark: I’ll try it
<MercurialAlchemi> I guess there could be something "magical" when modular implicits become mainstream
<Drup> I like the fact there are literally no mli in this project
<whitequark> MercurialAlchemi: it still doesn't help if you have records
<whitequark> or variants
<WhatElse> Drup: what does it mean?
<whitequark> or parametric types
<whitequark> really, you will still need ppx_deriving :P
<Drup> whitequark: you still need the deriving to create the printer, but the invokation is more magical :p
<whitequark> yeah
<Drup> WhatElse: ".mli" is the type of file for interfaces
<Drup> and it's the common way to put documentation, too.
<WhatElse> Drup: oh, okay, so are you saying that it is architecturally a mess?
<whitequark> Drup: LOL
<Drup> WhatElse: oh, that was obvious
<Drup> :D
<WhatElse> ahahahha poor me :/
<gdsfh> btw there is https://github.com/ygrek/scraps/blob/master/mlvalues.py that helps to inspect ocaml values under gdb (never used it myself however)
<whitequark> gdsfh: you lose a lot of info after typechecking though
<gdsfh> thanks, cap!
<whitequark> now I know you're russian.
reynir is now known as facedesk
facedesk is now known as reynir
<gdsfh> it was obvious from my previous messages, where i gave a link to some rus lang blog entry.
<whitequark> meh, that's no fun at all
<gdsfh> being a russian? agreed.
<whitequark> inferring primary language from figures of speech seeping through unintentionally though? now that's interesting
<whitequark> well, that too, yes
<WhatElse> anyway thank you for help guys :)
mort___ has joined #ocaml
govg has quit [Quit: leaving]
<toolslive> well, you can for example infer that ocaml was designed by french speaking people.
<toolslive> just from looking at the syntax of the language.
<whitequark> you can?
<toolslive> yes.
<whitequark> how?
<toolslive> the pattern matching syntax is a dead give-away
<toolslive> .... when .....
<gdsfh> look at the syntax of parametrized types, int list for example.
<toolslive> "quand"
<toolslive> a native speaker would say "where"
mort___ has quit [Quit: Leaving.]
<reynir> sometimes I forget it's not "with"
<whitequark> hm
<reynir> what does that say about my language :)
<toolslive> you're probably not a native french speaker ;)
<Drup> toolslive: you don't need to look that far
<reynir> haha :)
<Drup> let's open the ocaml manual
<Drup> "Xavier Leroy, Damien Doligez, Alain Frisch, Jacques Garrigue, Didier Rémy and Jérôme Vouillon "
<Drup> :]
q66[lap] has quit [Read error: Connection reset by peer]
q66[lap] has joined #ocaml
<toolslive> yes, but I was limiting it to the syntax of the language itself. the manual is full of typos that only native french speakers would make.
<Drup> :D
<Drup> (some people would say "patch welcome" ;)
<Drup> gdsfh: the reversed type application comes from ML, which wasn't designed by frenchs :p
<toolslive> so is the documentation... Actually I once did send a patch for these things, but got completely ignored.
<toolslive> that's ok, it's not important
<whitequark> toolslive: you can send a PR on github.com/ocaml/ocaml and it won't be ignored
<Drup> ocaml-manual probably, in fact
<toolslive> that was before the github days...
<whitequark> sure
<whitequark> I'm just saying that now it's easier to keep these things visible
<toolslive> yes! you're absolutely right....
<whitequark> sigh~~
<whitequark> Drup: why did I let you write C
<Drup> I don't know, but I can only say I warned you.
ggole has joined #ocaml
<whitequark> it segfaults somewhere else, but only if I execute the float_of_const thingies in test_constant
oscar_toro has quit [Ping timeout: 244 seconds]
<whitequark> so I have a pretty good idea of what's the issue
<whitequark> now, I *did* review the code.
<whitequark> so I'm as much to blame.
<Drup> what did I do wrong ?
<whitequark> I don't know yet
<Drup> (you know the best point ?)
<whitequark> oh
<whitequark> I actually introduced the bug myself
<Drup> (I'm supposed to teach intro to programming in a few month, for first year students)
<whitequark> ... lol
<Drup> (and it's in C)
<Drup> so, what's the bug ? :D
<whitequark> mismatched CAMLparam/CAMLreturn leaves garbage in caml_local_roots
<whitequark> and it crashes somewhere else in caml_raise.
<Drup> oh, you removed the one I put because it was not allocating or something ?
<whitequark> no, I added some
<Drup> ah
<whitequark> but only for 2 of 3 returns
<Drup> :D
<whitequark> ... after removing some
<whitequark> I think?
mort___ has joined #ocaml
<whitequark> why did I add them at all?
<whitequark> was I on drugs when I committed that?
<Drup> bah, it happens
<whitequark> ... the commit message doesn't mention the change.
<whitequark> probably fatfingered.
<whitequark> oh, no, there's an allocation in the middle.
gustav___ has quit [Ping timeout: 264 seconds]
<Drup> you're talking about "llvm_float_of_const", right ?
<whitequark> yeah
gustav___ has joined #ocaml
<whitequark> yay, no segfaults anymore.
<Drup> :)
hausdorff has joined #ocaml
anders has joined #ocaml
<anders> I have a program written in ocaml on OS X. using ocaml from homebrew. if I compile it on my laptop with a haswell CPU, then move the resulting binary to an older sandy bridge PC it crashes: "invalid instruction"
<anders> (i'm using ocamlopt.opt)
hausdorff has quit [Ping timeout: 260 seconds]
<whitequark> yes.
<anders> how can I prevent that? i want binaries that run on any 64-bit mac
<Drup> whitequark, you would make a good prolog interpreter.
<whitequark> anders: try passing -ccopt -arch x86_64 to ocamlopt
serge has quit [Remote host closed the connection]
serge has joined #ocaml
siddharthv is now known as siddharthv_away
<anders> whitequark: nope, also tried -ccopt -march=x86-64
<whitequark> odd
<anders> yes indeed
<anders> i compiled with -verbose now, and I don't see anything odd passed to clang that would cause this
<anders> -> 0x1000879f7: shrxq %rcx, %rax, %rcx << crashes
<nojb> how can I convert an int32 to a float *as an unsigned integer* ?
<whitequark> nojb: opam install uint
<anders> oh! i know what the problem is. it's homebrew. because it links with some static library, that must be the cause. the homebrew ocaml is compiled with too fancy optimizations
<anders> thanks anyway
<nojb> whitequark: yes, I know about uint - I was wondering if there was another way …
<whitequark> nojb: no
<whitequark> what's the issue with uint?
kakadu has quit [Quit: Konversation terminated!]
kakadu has joined #ocaml
samrat has quit [Quit: Computer has gone to sleep.]
<nojb> whitequark: nothing in particular - I would prefer not to have the additional dependency …
<whitequark> small and self-contained, I don't see the problem
<whitequark> *facedesk*
<whitequark> I spent a few hours trying to figure out why the dependency is not linked into dllllvm.so.
<whitequark> -lx is in the ldflags.
<whitequark> well, it was because the linker doesn't link in whatever is not referenced, and the only place it was referenced was in the OCaml code... which, obviously, does not go into dllllvm.so.
<whitequark> I bet there are a few more fun bugs with the same signature.
mort___ has quit [Quit: Leaving.]
<whitequark> oh, yeah, it's chock-full of these.
BitPuffin has joined #ocaml
elfring has joined #ocaml
serge has quit [Remote host closed the connection]
mort___ has joined #ocaml
serge has joined #ocaml
larhat has quit [Read error: Connection reset by peer]
larhat1 has joined #ocaml
thomasga has joined #ocaml
hausdorff has joined #ocaml
gnzh has joined #ocaml
hausdorff has quit [Ping timeout: 244 seconds]
ocp has joined #ocaml
larhat1 has quit [Ping timeout: 264 seconds]
oscar_toro has joined #ocaml
_5kg has quit [Ping timeout: 265 seconds]
Thooms has joined #ocaml
jgjl has joined #ocaml
psy_ has quit [Remote host closed the connection]
larhat has joined #ocaml
shinnya has joined #ocaml
oscar_toro has quit [Ping timeout: 245 seconds]
bytbox has quit [Remote host closed the connection]
<WhatElse> how can I downgrade to ocaml 4.01.0? opam switch 4.01.0 fails
<Drup> what's the error message ?
<WhatElse> make[1]: *** [camlp4out] Error 137 - make: *** [world] Error 2
<WhatElse> not very helping
<Drup> retry with -verbose and pastebin the whole result
<WhatElse> (at least for me)
<WhatElse> ok
anders has left #ocaml [#ocaml]
_5kg has joined #ocaml
mort___ has quit [Quit: Leaving.]
<WhatElse> here it is: http://pastebin.com/0CgEcZQz
mort___ has joined #ocaml
mort___ has quit [Client Quit]
<Drup> I have literally no idea
<Drup> but
<Drup> use 4.02.1
<WhatElse> I can’t.. because it fails to execute an old bytecoded file
<WhatElse> before upgrading to 4.02.1, I can execute ‘ocamlrun xxx.bytecode’
<Drup> ah, and you don't have the source to recompile it, I presume ?
<WhatElse> Fatal error: the file 'hlpsl2if.bytecode' is not a bytecode executable file
<WhatElse> no
<WhatElse> I haven’t
<Drup> pfiou, you're not helped
<WhatElse> there should be some major changes in bytecode (I think)
<Drup> one instruction was added in 4.02
<WhatElse> :/
hausdorff has joined #ocaml
<WhatElse> ok
<jpdeplaix> whitequark: how should I change the opam package ?
<whitequark> jpdeplaix: if it uses system LLVM: no changes needed
hausdorff has quit [Ping timeout: 255 seconds]
<whitequark> if it builds LLVM: the commit message says what you need to do
<jpdeplaix> oh I see
<jpdeplaix> thanks
psy_ has joined #ocaml
<whitequark> this will work for all combinations of ocaml/ocamlc/ocamlc -custom/ocamlopt
<whitequark> without setting any environment variables that opam doesn't already set
ontologiae has joined #ocaml
vogler has joined #ocaml
ysz_ has joined #ocaml
ontologiae has quit [Ping timeout: 265 seconds]
samrat has joined #ocaml
ysz_ has quit [Ping timeout: 245 seconds]
serge has quit [Remote host closed the connection]
ontologiae has joined #ocaml
serge has joined #ocaml
Thooms has quit [Ping timeout: 255 seconds]
struktured has quit [Ping timeout: 265 seconds]
darkf has quit [Quit: Leaving]
psy_ has quit [Read error: Connection reset by peer]
Thooms has joined #ocaml
BitPuffin has quit [Ping timeout: 265 seconds]
yomimono has joined #ocaml
abc_ has joined #ocaml
abc_ has quit [Client Quit]
ontologiae has quit [Ping timeout: 256 seconds]
BitPuffin has joined #ocaml
elfring has quit [Quit: Konversation terminated!]
_whitelogger has joined #ocaml
toolslive has joined #ocaml
jgjl_ has joined #ocaml
q66[lap] has quit [Quit: Textual IRC Client: www.textualapp.com]
jgjl has quit [Ping timeout: 265 seconds]
toolslive has quit [Ping timeout: 260 seconds]
yomimono has quit [Ping timeout: 260 seconds]
bytbox has joined #ocaml
WhatElse has quit [Quit: WhatElse]
psy_ has joined #ocaml
toolslive has joined #ocaml
mcclurmc has joined #ocaml
panini has joined #ocaml
larhat has quit [Quit: Leaving.]
zozozo has quit [Ping timeout: 244 seconds]
girrig has quit [Ping timeout: 264 seconds]
abbe has quit [Ping timeout: 256 seconds]
Thooms has quit [Ping timeout: 250 seconds]
abbe has joined #ocaml
zozozo has joined #ocaml
girrig has joined #ocaml
bytbox has quit [Remote host closed the connection]
hausdorff has joined #ocaml
badkins has joined #ocaml
girrig has quit [Ping timeout: 245 seconds]
hausdorff has quit [Ping timeout: 258 seconds]
q66[lap] has joined #ocaml
girrig has joined #ocaml
WhatElse has joined #ocaml
dav has quit [Ping timeout: 255 seconds]
dav_ has joined #ocaml
NoNNaN has quit [Ping timeout: 246 seconds]
WhatElse has quit [Ping timeout: 265 seconds]
WhatElse has joined #ocaml
nicoo has quit [Ping timeout: 246 seconds]
zpe has quit [Remote host closed the connection]
thmslld has joined #ocaml
jgjl_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BitPuffin has quit [Remote host closed the connection]
q66[lap] has quit [Quit: Textual IRC Client: www.textualapp.com]
slash^ has joined #ocaml
bytbox has joined #ocaml
bytbox has quit [Remote host closed the connection]
q66[lap] has joined #ocaml
lordkryss has joined #ocaml
hausdorff has joined #ocaml
Simn has quit [Ping timeout: 260 seconds]
AlexRussia has quit [Ping timeout: 255 seconds]
samrat has quit [Ping timeout: 255 seconds]
gnzh has quit [Ping timeout: 265 seconds]
samrat has joined #ocaml
oscar_toro has joined #ocaml
Hannibal_Smith has joined #ocaml
thmslld has quit [Quit: Leaving]
Arsenik has joined #ocaml
samrat has quit [Ping timeout: 265 seconds]
nojb has quit [Ping timeout: 265 seconds]
samrat has joined #ocaml
AlexRussia has joined #ocaml
boogie has joined #ocaml
q66[lap] has quit [Quit: Textual IRC Client: www.textualapp.com]
zpe has joined #ocaml
ski has quit [Ping timeout: 240 seconds]
zpe has quit [Read error: Connection reset by peer]
zpe has joined #ocaml
_whitelogger has joined #ocaml
_whitelogger has joined #ocaml
axiles has joined #ocaml
thomasga has quit [Quit: Leaving.]
samrat has quit [Quit: Computer has gone to sleep.]
thomasga has joined #ocaml
Submarine has quit [Read error: Connection reset by peer]
Submarine has joined #ocaml
oscar_toro has joined #ocaml
George___ has joined #ocaml
SoemDamnBody has joined #ocaml
koderok_ has quit [Quit: koderok_]
<SoemDamnBody> Can anybody tell me how to run a suite of tests sequentially with ounit2?
octachron has quit [Quit: Leaving]
<SoemDamnBody> I have been looking everywhere for it
oscar_toro has quit [Quit: Leaving.]
oscar_toro has joined #ocaml
axiles has quit [Read error: Connection timed out]
axiles has joined #ocaml
<George___> Hi, how I can print a character string in hex format?
<ggole> Character string?
<George___> binary string
<George___> character string is the term used in ocaml documentations.
<George___> looks equivalent to a binary string
<ggole> Oh, right. You can convert chars to ints, from which it should be fairly easy to print.
<George___> my variable is of type string
<George___> can I iterate over it?
<ggole> Sure, String.iter
<George___> great! let me try it
<ggole> Or a for loop and indexing: take your pick.
<ggole> I would probably go for the for loop because you are likely to want to treat the first char specially (no space in front of it).
claudiuc_ has quit [Remote host closed the connection]
<George___> thanks
MrScout has quit [Remote host closed the connection]
jwatzman|work has quit [Quit: jwatzman|work]
BitPuffin has quit [Ping timeout: 260 seconds]
toolslive has quit [Quit: Leaving]
nojb has joined #ocaml
bytbox has joined #ocaml
dsheets has quit [Ping timeout: 272 seconds]
ggole has quit []
Bluddy_ has joined #ocaml
_andre has quit [Quit: leaving]
badon_ has joined #ocaml
badon has quit [Disconnected by services]
badon_ is now known as badon
martintrojer has quit [Ping timeout: 256 seconds]
martintrojer has joined #ocaml
nicoo has joined #ocaml
jwatzman|work has joined #ocaml
SoemDamnBody has quit [Quit: Page closed]
q66[lap] has joined #ocaml
q66 has joined #ocaml
thomasga has quit [Quit: Leaving.]
Lasher` has quit [Ping timeout: 258 seconds]
Lasher` has joined #ocaml
Simn has quit [Quit: Leaving]
thomasga has joined #ocaml
shinnya has joined #ocaml
manud has joined #ocaml
claudiuc has joined #ocaml
ocp has quit [Quit: Leaving.]
slash^ has quit [Read error: Connection reset by peer]
nojb has quit [Quit: nojb]
jwatzman|work has quit [Quit: jwatzman|work]
nojb has joined #ocaml
q66[lap] has quit [Quit: Textual IRC Client: www.textualapp.com]
q66[lap] has joined #ocaml
NoNNaN has joined #ocaml
WraithM has joined #ocaml
elfring has joined #ocaml
ingsoc has quit [Quit: Leaving.]
wwilly has joined #ocaml
Hannibal_Smith has quit [Quit: Sto andando via]
govg has quit [Quit: leaving]
MrScout has joined #ocaml
govg has joined #ocaml
manud is now known as manu-coffee
George___ has quit [Ping timeout: 246 seconds]
manu-coffee has quit [Quit: manu-coffee]
manud has joined #ocaml
gdsfh1 has joined #ocaml
gdsfh has quit [Ping timeout: 255 seconds]
WraithM has quit [Ping timeout: 255 seconds]
hausdorff has quit [Remote host closed the connection]
manud has quit [Quit: manud]
nojb has quit [Quit: nojb]
NoNNaN has quit [Ping timeout: 246 seconds]
nojb has joined #ocaml
jwatzman|work has joined #ocaml
larhat has joined #ocaml
hausdorff has joined #ocaml
manud has joined #ocaml
nojb has quit [Quit: nojb]
oscar_toro1 has joined #ocaml
oscar_toro has quit [Ping timeout: 245 seconds]
nojb has joined #ocaml
Bluddy_ has quit [Quit: Connection closed for inactivity]
pgomes has quit [Quit: Leaving]
hhugo1 has joined #ocaml
Hannibal_Smith has joined #ocaml
shinnya has quit [Ping timeout: 244 seconds]
Arsenik has quit [Remote host closed the connection]
larhat has quit [Quit: Leaving.]
wwilly has left #ocaml ["Leaving"]
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 265 seconds]
zpe has quit [Ping timeout: 245 seconds]
elfring has quit [Quit: Konversation terminated!]
olauzon has quit [Quit: olauzon]
Submarine has quit [Remote host closed the connection]
hhugo2 has joined #ocaml
sheijk has joined #ocaml
hhugo1 has quit [Ping timeout: 256 seconds]
Submarine has joined #ocaml
Submarine has joined #ocaml
hausdorff has quit [Remote host closed the connection]
hausdorff has joined #ocaml
govg has quit [Quit: leaving]
govg has joined #ocaml
WraithM has joined #ocaml
zpe has joined #ocaml
nojb has quit [Quit: nojb]
NoNNaN has joined #ocaml
manud has quit [Quit: manud]
WraithM has quit [Client Quit]
WraithM has joined #ocaml
zpe has quit [Ping timeout: 255 seconds]
nojb has joined #ocaml
nlucaron1 has quit [Quit: leaving]
manud has joined #ocaml
lyles has quit [Quit: Leaving]
nojb has quit [Quit: nojb]
manud has quit [Quit: manud]
manud has joined #ocaml
manud has quit [Client Quit]
sheijk has quit [Ping timeout: 264 seconds]
hsuh has quit [Ping timeout: 255 seconds]
jao has joined #ocaml
jao has quit [Changing host]
jao has joined #ocaml
hsuh has joined #ocaml
shinnya has joined #ocaml
robink has quit [Ping timeout: 255 seconds]
sheijk has joined #ocaml
kakadu has quit [Quit: Konversation terminated!]
zpe has joined #ocaml
struktured has joined #ocaml
MrScout has quit [Remote host closed the connection]