<jimi_hendrix>
what is the most idiomatic way of checking if a string is just numeric characters?
Yoric has joined #ocaml
destrius has joined #ocaml
<jimi_hendrix>
nvm, figured something nice out
madroach has quit [Ping timeout: 244 seconds]
madroach has joined #ocaml
travisbrady has joined #ocaml
mindbender1 has quit [Quit: Leaving.]
myx has quit [Ping timeout: 255 seconds]
diego_diego has joined #ocaml
diego_diego has quit [Client Quit]
lolcathost has joined #ocaml
lolcathost has quit [Ping timeout: 265 seconds]
jimi_hendrix has quit [Ping timeout: 245 seconds]
lolcathost has joined #ocaml
cornihilio has joined #ocaml
<cornihilio>
I know a bit of lisp and haskell, and I want to learn ocaml very quickly in the next few days. what books should I read? what should I do?
<cornihilio>
destrius: okay, I switched to that. thanks for the suggestion!
<cornihilio>
are there any particularly good books on ocaml?
<cornihilio>
on amazon nothing stands out
<hongboz>
cornihilio: the oriely ocaml book
<hongboz>
cornihilio: the official caml-mode is good enough.
tac has joined #ocaml
<cornihilio>
hongboz: thank you!
hyperboreean has quit [Ping timeout: 245 seconds]
hyperboreean has joined #ocaml
lolcathost has quit [Ping timeout: 260 seconds]
lolcathost has joined #ocaml
lolcathost has quit [Changing host]
lolcathost has joined #ocaml
lolcathost has quit [Client Quit]
hongboz has quit [Ping timeout: 252 seconds]
lolcathost has joined #ocaml
lolcathost has quit [Changing host]
lolcathost has joined #ocaml
<destrius>
cornihilio: there's an online book on standard ml (sml) at http://www.cs.cmu.edu/~rwh/smlbook/, it could be useful for leaning about ml's in general. sml syntax has some differences from ocaml though
cdidd has joined #ocaml
lambdas` has joined #ocaml
lambdas has quit [Ping timeout: 245 seconds]
tac-tics has joined #ocaml
mjonsson has quit [Read error: Operation timed out]
tac has quit [Ping timeout: 245 seconds]
lolcathost has quit [Ping timeout: 260 seconds]
tac-tics has quit [Ping timeout: 245 seconds]
lolcathost has joined #ocaml
leoncamel has joined #ocaml
lambdas`` has joined #ocaml
lambdas` has quit [Ping timeout: 240 seconds]
lolcathost has quit [Quit: Lost terminal]
lolcathost has joined #ocaml
lolcathost has quit [Changing host]
lolcathost has joined #ocaml
lolcathost has quit [Read error: Connection reset by peer]
cornihilio has quit [Ping timeout: 264 seconds]
everyonemines has joined #ocaml
lolcathost has joined #ocaml
lolcathost has quit [Changing host]
lolcathost has joined #ocaml
andreypopp has joined #ocaml
Cyanure has joined #ocaml
andreypopp has quit [Quit: sleep]
mindbender1 has joined #ocaml
andreypopp has joined #ocaml
pango is now known as pangoafk
Cyanure has quit [Remote host closed the connection]
hyperboreean has quit [Read error: Operation timed out]
jimi_hendrix has joined #ocaml
everyonemines has quit [Quit: Leaving.]
hyperboreean has joined #ocaml
answer_42 has joined #ocaml
andreypopp has quit [Quit: sleep]
BiDOrD_ has joined #ocaml
BiDOrD has quit [Ping timeout: 246 seconds]
answer_42 has quit [Ping timeout: 276 seconds]
lolcathost has quit [Ping timeout: 276 seconds]
hkBst has joined #ocaml
Cyanure has joined #ocaml
djcoin has joined #ocaml
lolcathost has joined #ocaml
lolcathost has quit [Changing host]
lolcathost has joined #ocaml
cago has joined #ocaml
eni has joined #ocaml
lolcathost has quit [Ping timeout: 240 seconds]
lambdas`` has left #ocaml []
f[x] has joined #ocaml
lolcathost has joined #ocaml
lolcathost has quit [Changing host]
lolcathost has joined #ocaml
lolcathost is now known as CPoverCPP
CPoverCPP has quit [Client Quit]
lolcathost has joined #ocaml
lolcathost has quit [Changing host]
lolcathost has joined #ocaml
andreypopp has joined #ocaml
fusillia has joined #ocaml
Snark has joined #ocaml
ontologiae has joined #ocaml
walter|r has quit [Read error: Connection reset by peer]
walter has joined #ocaml
Yoric has quit [Ping timeout: 256 seconds]
PM` has joined #ocaml
Kakadu has joined #ocaml
andreypopp has quit [Quit: sleep]
andreypopp has joined #ocaml
Yoric has joined #ocaml
mindbender2 has joined #ocaml
mmajchrzak_ has joined #ocaml
mindbender1 has quit [Ping timeout: 265 seconds]
PM has quit [Quit: leaving]
PM` is now known as PM
sepp2k has joined #ocaml
ikaros has joined #ocaml
destrius has quit [Ping timeout: 245 seconds]
mfill has joined #ocaml
_andre has joined #ocaml
destrius has joined #ocaml
ontologiae has quit [Read error: Connection reset by peer]
lolcathost has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
ontologiae has joined #ocaml
Yoric has quit [Ping timeout: 246 seconds]
destrius has quit [Quit: Leaving.]
eni has quit [Ping timeout: 246 seconds]
fraggle_ has quit [Ping timeout: 260 seconds]
fraggle_ has joined #ocaml
ontologiae has quit [Ping timeout: 240 seconds]
larhat has joined #ocaml
mye has joined #ocaml
ontologiae has joined #ocaml
fraggle_ has quit [Ping timeout: 256 seconds]
Yoric has joined #ocaml
<_andre>
does anyone know of a reason why caml_named_value() would return NULL for an exception registered with Callback.register_exception?
<Kakadu>
maybe YOu dont need caml_named_value?
<Kakadu>
> caml_failwith(s), where s is a null-terminated C string (with type char *), raises exception Failure with argument s.
<Kakadu>
ooops, it not you wnated
<_andre>
that works but i want to raise my own exception
<_andre>
never saw that happen before with the bindings i wrote
<_andre>
hmm if i call Callback.register_exception from an exported function then it works as expected
wagle has quit [Remote host closed the connection]
<_andre>
so the "let _ = ..." isn't being executed
<_andre>
for some reason
<flux>
_andre, do you have a library you package as .cma?
<flux>
well, the point is, that if the final executable doesn't use some .cmo from the .cma, the .cmo doesn't get linked, thus its toplevel statements don't get evaluated
<flux>
lablgtk works around this problem by providing a separate findlib package for the hooking-things-.cmo
<flux>
but I think you can work it around by making sure you use that hooking module from every other module or something. maybe it's not too easy.
<_andre>
yeah i just noticed that just calling any non-"external" function in the module makes it work
<_andre>
well an easy way is to define "external stub_foo : ..." and then let foo () = stub_foo ()
wagle has joined #ocaml
<_andre>
assuming foo is a function that must be called whenever the module is used
<_andre>
i guess never noticing this before was just "luck"
Neros_ has quit [Ping timeout: 268 seconds]
wagle has quit [Read error: Connection reset by peer]
wagle has joined #ocaml
ontologiae has quit [Read error: Operation timed out]
mmajchrzak_ has quit [Ping timeout: 240 seconds]
mjonsson has joined #ocaml
answer_42 has joined #ocaml
ontologiae has joined #ocaml
mfill has quit [Quit: leaving]
beckerb has joined #ocaml
mindbender2 has quit [Ping timeout: 265 seconds]
fasta_ has joined #ocaml
ousado_ has joined #ocaml
TDJACR_ has joined #ocaml
jonafan_ has joined #ocaml
vpm_ has joined #ocaml
notdan_ has joined #ocaml
kba_ has joined #ocaml
gusta157 has joined #ocaml
hkBst has quit [Read error: Connection reset by peer]
hkBst_ has joined #ocaml
djcoin has quit [*.net *.split]
notdan has quit [*.net *.split]
dwmw2_gone has quit [*.net *.split]
gustav__ has quit [*.net *.split]
TDJACR has quit [*.net *.split]
vpm has quit [*.net *.split]
ousado has quit [*.net *.split]
fasta has quit [*.net *.split]
jonafan has quit [*.net *.split]
kba has quit [*.net *.split]
mye_ has joined #ocaml
mye has quit [Ping timeout: 240 seconds]
mye_ is now known as mye
mattrepl has joined #ocaml
djcoin has joined #ocaml
notdan_ is now known as notdan
notdan has quit [Changing host]
notdan has joined #ocaml
dsheets has quit [Ping timeout: 246 seconds]
dsheets has joined #ocaml
mfp has quit [Ping timeout: 246 seconds]
mfp_ has joined #ocaml
bobry has quit [Ping timeout: 246 seconds]
bobry has joined #ocaml
dsheets has quit [Ping timeout: 246 seconds]
myx has joined #ocaml
bobry is now known as bobry_
gnuvince has quit [Read error: Operation timed out]
mjonsson has quit [Ping timeout: 265 seconds]
cago has quit [Quit: Leaving.]
cago has joined #ocaml
andreypopp has quit [Quit: sleep]
dwmw2_gone has joined #ocaml
mye has quit [Quit: mye]
avsm1 has joined #ocaml
<companion_cube>
sometimes I with functional programming would promote STL-like iterators
<Kakadu>
companion_cube: You want to break in the middle of iteration?
<companion_cube>
I would like, yeah, to be able to iterate on a container without knowing its implementation
<Qrntz>
companion_cube, what about Batteries' enums?
Neros_ has joined #ocaml
<companion_cube>
that looks nice
scigod has joined #ocaml
<companion_cube>
I should use it next time :)
<flux>
well, stl iterators are not only about breaking out of iteration
<flux>
you can do operations such as 'remove the element pointed by iterator from container'
<flux>
and iterate backwards
<Kakadu>
smells like zippers
<flux>
there was this ocaml data structure library, but I haven't heard a lot of it lately, so perhaps it isn't anymore active. reins.
<flux>
I've never used it, though
<companion_cube>
it's more that the language does not really allow for this kind of things at the type level
<companion_cube>
for iterators to be practical you need an easy conversion from the iterator to the element it points ot
<flux>
why wouldn't ocaml allow that in type level?
<flux>
you mean ocaml cannot return mutable references?
<flux>
I don't think that's a requirement for useful iterators
travisbrady has joined #ocaml
travisbrady has quit [Client Quit]
travisbrady has joined #ocaml
answer_42 has quit [Quit: WeeChat 0.3.9.1]
answer_42 has joined #ocaml
<companion_cube>
in C++, you can use an iterator as a pointer to elements, and by using -> instead of . you can use it almost as the element
travisbrady has quit [Quit: travisbrady]
scigod has left #ocaml []
avsm has quit [Ping timeout: 257 seconds]
avsm has joined #ocaml
<thelema>
companion_cube: if you'd like to build a C++-style iterator infrastructure with all the different types of iterators (forward,backward,read-only,random-access,sequential,etc.), I'd be interested in it for batteries
ocp has joined #ocaml
<companion_cube>
well, I don't even use batteries at the moment :/
xavierm02 has joined #ocaml
chambart has joined #ocaml
<thelema>
companion_cube: try out batteries' enum, then, and let me know what you think.
andreypopp has joined #ocaml
andreypopp has quit [Client Quit]
jamii has joined #ocaml
fraggle_laptop has joined #ocaml
jimi_hendrix has quit [Read error: Operation timed out]
chambart has quit [Ping timeout: 264 seconds]
Kakadu has quit []
ocp has quit [Quit: Leaving.]
andreypopp has joined #ocaml
hkBst_ has quit [Quit: Konversation terminated!]
andreypopp has quit [Client Quit]
andreypopp has joined #ocaml
andreypopp has quit [Client Quit]
jimi_hendrix has joined #ocaml
chambart has joined #ocaml
andreypopp has joined #ocaml
thelema has quit [Remote host closed the connection]
thelema has joined #ocaml
andreypopp has quit [Quit: sleep]
chambart has quit [Ping timeout: 240 seconds]
andreypopp has joined #ocaml
ImAlsoGreg has joined #ocaml
andreypopp has quit [Client Quit]
andreypopp has joined #ocaml
companion_cube has quit [Ping timeout: 245 seconds]
andreypopp has quit [Ping timeout: 245 seconds]
andreypopp has joined #ocaml
jamii has quit [Ping timeout: 240 seconds]
Cyanure has quit [Remote host closed the connection]
smondet has joined #ocaml
jamii has joined #ocaml
andreypopp has quit [Client Quit]
dwmw2_gone has quit [Ping timeout: 260 seconds]
andreypopp has joined #ocaml
andreypopp has quit [Client Quit]
companion_cube has joined #ocaml
andreypopp has joined #ocaml
andreypopp has quit [Client Quit]
Neros_ has quit [Ping timeout: 260 seconds]
Neros_ has joined #ocaml
andreypopp has joined #ocaml
andreypopp has quit [Client Quit]
Neros_ has quit [Ping timeout: 260 seconds]
jamii has quit [Ping timeout: 240 seconds]
jimi_hendrix has quit [Remote host closed the connection]
Yoric has quit [Ping timeout: 252 seconds]
mattrepl has quit [Quit: mattrepl]
jamii has joined #ocaml
<Qrntz>
are there any existing library bindings using SWIG?
<Qrntz>
I've read the manual but didn't know about the Coherence bindings, thanks
Neros_ has joined #ocaml
walter|r has joined #ocaml
walter has quit [Ping timeout: 260 seconds]
ousado_ is now known as ousado
ousado has quit [Changing host]
ousado has joined #ocaml
ontologiae has quit [Ping timeout: 246 seconds]
ontologiae has joined #ocaml
walter|r has quit [Quit: This computer has gone to sleep]
cago has left #ocaml []
Cyanure has joined #ocaml
Yoric has joined #ocaml
jamii has quit [Ping timeout: 240 seconds]
ontologiae has quit [Ping timeout: 260 seconds]
djcoin has quit [Quit: WeeChat 0.3.9.1]
ontologiae has joined #ocaml
myx has quit [Read error: Connection reset by peer]
bru has joined #ocaml
myx has joined #ocaml
<bru>
Good evening!
<bru>
I got a bit of a problem with omake: I'd like to build a .cmx (or a .o) in a subfolder (called parser). This parser.cmx will then be used to build the main program in the parent directory..
<bru>
However, I do not know how to tell omake to build this .cmx with an OMakefile…
<bru>
Indeed, I get : * omake error:
<bru>
File /usr/lib/omake/build/OCaml.om: line 1041, characters 4-70
<bru>
Do not know how to build "src/parser/parser.o" required for "src/cfgen.opt"
<thelema>
bru: so you've told it that cfgen.opt depends on parser.o
<thelema>
but it doesn't know how to build parser.o; is there a parser.c?
Neros_ has quit [Read error: Connection reset by peer]
<thelema>
sorry, it's been forever since I've messed with omake
<bru>
thelema, actually I have to build it from several cmx with "ocamlopt -pack -o parser,cmx *cmx
<bru>
"
<thelema>
so your parser.cmx is a pack of many other modules...
<bru>
and part of those *ml files themselves are generated with "ocamllex some_file.mll"!
<bru>
yes
<thelema>
sure, iirc, omake handles .mll just fine
<bru>
I put an OCamlGeneratedFiles(the mll files) directive in OMakeFile for them
gnuvince has joined #ocaml
<bru>
but then… how to build cmxes from those ml, and then merge them in parser, with omake?
<thelema>
what's the exact OCamlGeneratedFiles?
sepp2k has quit [Read error: No buffer space available]
sepp2k has joined #ocaml
<thelema>
you probably want to use OCamlPackage(parser, foo bar baz) to build your parser.cmx
<bru>
ohh ok
<bru>
thelema, the comments are from the default OMakefile:
<bru>
# Generated files
<bru>
#
<bru>
# Workaround for the fact that ocamldep does not pay attention to .mll
<thelema>
and you have .mll files corresponding? ok.
<thelema>
no problem there
<bru>
I'll try the OCamPackage, it sound good
wormphle1m has quit [Read error: Connection reset by peer]
wormphlegm has joined #ocaml
pangoafk is now known as pango
kevinlu310 has joined #ocaml
<kevinlu310>
I installed ocaml on my Ubuntu already, but why I still get error like this when I was trying to build some code: make: ocamlopt.opt: Command not found
<thelema>
I guess ubuntu doesn't install ocamlopt.opt, which is just the native-code compiled native-code compiler
<thelema>
there might be a package for it, I don't recall. You can change the makefile to use just plain ocamlopt and it will compile the same, just a bit slower
<adrien>
well, most of the time it's just as fast
<kevinlu310>
Thanks. I'll try.
<adrien>
the only times I've seen a difference, the file was already taking > 500ms in ocamlopt (byte-compiled)
<kevinlu310>
yeah. It works now.
<thelema>
kevinlu310: what package are you trying to compile, btw?
avsm1 has quit [Ping timeout: 252 seconds]
<kevinlu310>
thelema: just some data processing codes for analysing some servers availability
<thelema>
internal code?
<kevinlu310>
I don't think so.
beginner42 has joined #ocaml
<kevinlu310>
I downloaded those on public site
<thelema>
I'm asking so there can be some followup to fix the source
<thelema>
depending on ocamlopt.opt isn't kosher
<beginner42>
has someone here installed lablgtk2 on a ubuntu machine?
<thelema>
beginner42: I have lablgtk2 installed on my ubuntu machine
<wieczyk>
Maybe other word would be more adequate than problems.
Oejet has quit [Ping timeout: 260 seconds]
<wieczyk>
This list is very long and there are many problems, serious and not serious. I would like to read about compiler defects, like those in this blog entry.
<wieczyk>
Greping this list is too much work ;//
<wieczyk>
btw: where is wmeyer?
<yezariaely>
if my module filename is my_test.ml How can I access it in ocaml? {My_test, MyTest, My_Test, Mytest} didn't work.
<wieczyk>
I think that My_test
<yezariaely>
wieczyk: thx, my mistake. Forgot to compile the very module ... :(
jimi_hendrix has joined #ocaml
<jimi_hendrix>
is there a way to tell if a string is just alphabet characters without having to resort to regex? my google foo has failed me.
<thelema>
String.fold_left
<wieczyk>
You need to use ocaml-batteries.
<wieczyk>
To get BatChar.is_letter
<thelema>
unfortunately, batteries doesn't have string search functions that take predicates; I'd be happy to take contributions; I almost wrote them myself, but have been doing other work on batteries today
<wieczyk>
You are a batteries developer?
<wieczyk>
Are you...
<thelema>
yes.
<wieczyk>
Good job.
<thelema>
no, terrible job lately. 2.0 should have been released 10 months ago
<wieczyk>
Ok, let me correct my self.
<wieczyk>
Terrible job, please understand what is a deadline.
<thelema>
:)
<wieczyk>
and how it is important to popularize ocaml
<thelema>
first task, go through that list and remove anything that's already done. :)
<wieczyk>
OK. I will finish one thing and then analyze this list.
<wieczyk>
bleh git
<thelema>
git is your friend.
<wieczyk>
I prefer hg
<wieczyk>
In last work I had to switch from svn to hg and it was very easy
<wieczyk>
then I had to switch from hg to git and it was terrible for me.
<wieczyk>
I am not saying git is bat, but it has advanced interface.
<thelema>
the interface has improved, but yes, it still has its rough edges
<wieczyk>
bad8
<wieczyk>
bad*
<wieczyk>
too much batteries today ;
<wieczyk>
;]
<wieczyk>
Why equal for BatOption is in todo list? It is not enough to put let equal a b = compare a b == 0
<wieczyk>
?
<thelema>
no, because if we're comparing `Set.t option`s, we need custom comparison
<wieczyk>
Ok, I understand the problem.
<thelema>
looking, it seems there is Option.eq, which just needs to be renamed to equal
<thelema>
(as well as any other .eq functions)
<wieczyk>
OK
cdidd has quit [Remote host closed the connection]
<thelema>
it'd be great if you could help with this; having compare and equal functions for all types (that it makes sense for)
<wieczyk>
OK, I will try to do first patch
<wieczyk>
but give me 10-20 minutes for my stuff.
<jimi_hendrix>
thelema, String.fold_left doesnt seem to exist for me? is that also a batteries thing?
<thelema>
jimi_hendrix: oops, maybe it isn't in the stdlib...
<wieczyk>
thelema: any plans to replace stdlib with batteries?
<wieczyk>
by*
<companion_cube>
aww, mutation in ocaml is slow :(
<thelema>
wieczyk: that's what batteries is, a stdlib replacement. There's little to no chance that it'll be put into the inria SVN with the rest of the compiler
<thelema>
but there's the possibility that it gets adopted as part of a community ocaml distribution
<jimi_hendrix>
thelema, i dont think it is.
<jimi_hendrix>
i am somewhat disappointed with OCaml's standard string api
<wieczyk>
thelema: Yeah, some compiler distribution seems to be enough.
<wieczyk>
jimi_hendrix: everyone is disapointed with ocaml stdlib, it is why batteries exists.
<thelema>
jimi_hendrix: yes, it's not in the stdlib. Using what's in the stdlib, there's 'let ok = ref true in String.iter (function 'a'..'z' | 'A'..'Z' -> () | _ -> ok := false) str; !ok
<jimi_hendrix>
thank you
<thelema>
jimi_hendrix: you're welcome
mye has joined #ocaml
Snark has quit [Quit: Quitte]
srcerer_ has quit [Ping timeout: 246 seconds]
<wieczyk>
thelema: OK
<wieczyk>
thelema: I have while
<wieczyk>
so the first task is to use 'equal' with can be parametrized by predicate for containers.
<wieczyk>
Should I use a default branch?
<wieczyk>
btw: how to generate tags for ocaml?
<thelema>
yes, use master branch of github
<thelema>
what do you mean by tags? TAGS file? version control tagging?
<wieczyk>
The tags for vim.
<wieczyk>
the ctags for ocaml
<thelema>
ocamltags
<wieczyk>
How to use it, looks like crazy program for emacs
<wieczyk>
or well I read whole --help
<wieczyk>
Hm, --help looks like help for emacs
<thelema>
try `ocamltags *.ml*`
<wieczyk>
Works.
<wieczyk>
well
<wieczyk>
I dont know how to use relative directories with this tools. I am in batteries main directory and run 'ocamltags src/*/*.ml*' but it does not save the 'src' part of path
<wieczyk>
I would like to not change vim cwd ;/
<yezariaely>
../src/* ?
<wieczyk>
?
lolcathost has quit [Read error: Connection reset by peer]
<wieczyk>
I have problem that the generated TAGS file does not have whole path so my editor cannot do correct jumps.
<Yoric>
wieczyk: Because you haven't contributed to etags.
<Yoric>
I meant efuns.
<Yoric>
(unless you have, of course)
answer_42 has quit [Remote host closed the connection]
<wieczyk>
I will check it later.
mattrepl has joined #ocaml
<wieczyk>
thelema: btw: for some modules the equal function is already defined by functor in BatNumeric but it is hidden by interface.
<wieczyk>
thelema: for example batBool.mli does not have equal but it is provided (by functor) in batBool.ml
larhat has quit [Quit: Leaving.]
eikke has quit [Ping timeout: 264 seconds]
lolcathost has joined #ocaml
lolcathost has quit [Changing host]
lolcathost has joined #ocaml
Submarine has quit [Remote host closed the connection]
myx has quit [Ping timeout: 260 seconds]
<wieczyk>
Same problem in bigint. Is there any way to connect interface of module generated by functor with type of this functor. When someone add some new function to this function then all .mli files have to be alligned.
<wieczyk>
Could we do similar trick with functor as in .ml file?
larhat has joined #ocaml
<wieczyk>
module type BaseBig_int = module type of BatNumeric.Make(...)
<wieczyk>
include Basebig_int
<wieczyk>
?
<thelema>
yes, please export those
<thelema>
I'd rather have proper documentation than use functor magic to get correct interface
<thelema>
which means we have to explicitly add the `equal` functions
<thelema>
If there were a way to have both, I'd be on it like white on rice
<wieczyk>
Hehe.
<wieczyk>
Maybe it could be easy to write some tool which checks if exports are correct.
<wieczyk>
Compiler generates .annot so maybe it is possible without pain.
<thelema>
wieczyk: have a look st src/batteries_compattest.ml
<thelema>
I believe this could be extended for the verification you're thinking of
myx has joined #ocaml
<wieczyk>
btw: should be the List.mem extended to have some optiona parameter for equality predicate?
larhat has quit [Quit: Leaving.]
<thelema>
wieczyk: probably, although optional parameters can still cause backwards compatibility issues
<wieczyk>
I think that already some functions in stdlib are extended by batteries.
<wieczyk>
One time I had problem with that, I did not remember which one.
tane has quit [Quit: Verlassend]
<wieczyk>
Probably something in BatList.
<thelema>
a few are; we're trying to fix that as we find them, thus batteries_compattest.
<wieczyk>
Ok, first I will provide equal for all types.
<wieczyk>
Now sleep
<wieczyk>
cya, thanks for possibility to contribute sth to bat.
<thelema>
I don't think anything in batList is incompatible with stdlib because the compattest checks List. It doesn't check Format, Hashtbl, Map, Printf, Scanf, Set, Stack)
<thelema>
wieczyk: no problem
everyonemines has quit [Quit: Leaving.]
ikaros has quit [Quit: Ex-Chat]
<cornihilio>
I don't get this: max list l = List.fold left max 0 l
jamii has quit [Ping timeout: 244 seconds]
<cornihilio>
is that the same as max list l = List.fold left (max 0) l
<thelema>
umm, are you missing some _'s?
<cornihilio>
me?
<thelema>
do you mean let max_list l = List.fold_left max 0 l?
<cornihilio>
oh yes, yes I am. I'm copying from the oreilly pdf.
<thelema>
ok. No, these are not the same at all.
<thelema>
in the first case, fold_left is passed 3 arguments
<thelema>
in the second case, it's passed two arguments (max 0) and l
<cornihilio>
I don't get how in the first one it knows that max 0 is the function to apply over l
<thelema>
max 0 isn't the function to apply over l
<thelema>
fold_left takes three arguments, a function, an initial value and a list
<thelema>
it takes the first element of the list and the initial value, and reduces them with the function
<thelema>
to a single value
<thelema>
etc.
<cornihilio>
okay, that makes sense.
<cornihilio>
thank you!
<thelema>
btw, this max_list only works properly for non-negative lists
<cornihilio>
why is that?
<thelema>
i.e. max_list [-1; -4] returns 0
<cornihilio>
ah, right.
lolcathost has quit [Ping timeout: 260 seconds]
ontologiae has joined #ocaml
ikaros has joined #ocaml
dsheets has joined #ocaml
sepp2k has quit [Remote host closed the connection]
<Anarchos>
thelema in which base ?
<thelema>
Anarchos: 10
<Anarchos>
thelema then you got a problem :)
ocp has joined #ocaml
lolcathost has joined #ocaml
lolcathost has quit [Changing host]
lolcathost has joined #ocaml
Yoric has quit [Ping timeout: 255 seconds]
dedis1 has joined #ocaml
gnuvince has joined #ocaml
pleax has joined #ocaml
chambart has joined #ocaml
lolcathost has quit [Ping timeout: 255 seconds]
mjonsson has joined #ocaml
Neros has joined #ocaml
larhat has joined #ocaml
mattrepl has quit [Quit: mattrepl]
ocp has quit [Quit: Leaving.]
smondet has quit [Ping timeout: 276 seconds]
dedis1 has quit [K-Lined]
xavierm02 has quit [Quit: Leaving]
ontologiae has quit [Ping timeout: 246 seconds]
<beginner42>
adrien: hi, i finally got all the missing libs working, but now get a malformed log file exception
<beginner42>
in setup.log
<thelema>
beginner42: some error from oasis?
<thelema>
more details needed. I don't know what causes malformed log file exceptions
<thelema>
so the whole error will help.
<beginner42>
i did ocaml setup.ml -configure, ocaml setup.ml -build, worked just fine, but ocaml setup.ml -install gets me this exception
<beginner42>
E: Malformed log file 'path/lablwebkit-1.8.2/setup.log' at line 1
<thelema>
ok, that's good context. what package?
<thelema>
lablwebkit 1.8.2, I guess
<beginner42>
yes
<thelema>
are you using ocaml 4.00?
<beginner42>
yes
<thelema>
you probably have a setup.ml file generated by an old version of oasis; the fix is to regenerate the setup.ml file by running 'oasis setup'. to do this, you'll have to install oasis.
<beginner42>
is oasis available through opam?
<thelema>
yes
<beginner42>
it worked better except for this warning
<beginner42>
ocamlfind: [WARNING] You have installed DLLs but the directory /path/.opam/4.00.0/lib/stublibs is not mentioned in ld.conf
<thelema>
you should probably edit your .opam/4.00.0/lib/ld.conf file (or somewhere there) to include the stublibs directory
<thelema>
ocaml has an ld.conf file to help it find C stubs
<thelema>
you get this warning if ocamlfind installs stubs to a directory that's not in that ld.conf file
ikaros has quit [Quit: Ex-Chat]
<beginner42>
i have never had to deal with that, how do i have to edit the ld.conf file?
<thelema>
just a text file
<thelema>
one path per line
<beginner42>
the path pointing to which stublibs directory?
mindbender1 has quit [Quit: Leaving.]
<thelema>
/path/.opam/4.00.0/lib/stublibs
<thelema>
the one in the error message
<beginner42>
the ld.conf didnt exist so i created one, and then made ocaml setup.ml -install again but now i get the error that META already exists
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]