<companion_cube>
it's quite possible that no one tested their packages for it
<dougmencken>
so make bytecode works
<dougmencken>
companion_cube: powerpc 32
<companion_cube>
like, very old Apple computers?
<dougmencken>
exactly
<companion_cube>
tough ^^
<companion_cube>
I think >99% of OCaml devs use the native backend (or maybe some js target)
zpe has joined #ocaml
<dougmencken>
companion_cube: lemme guess... it is x86
<dougmencken>
and possibly arm
<companion_cube>
and a few other architectures, I think, but yes, mostly
<companion_cube>
there might have been a powerpc backend that was deprecated, or something like that
hdon has joined #ocaml
<hdon>
hi all :) i'm new to ocaml. is it possible to pipe into a match?
<companion_cube>
do you mean like `41+1 |> (function 42 -> true | _ -> false)` ?
<hdon>
yes thank you companion_cube
Onemorenickname has quit [Read error: Connection reset by peer]
<dougmencken>
does ocamlc understand CPPFLAGS to search for headers?
<dougmencken>
or I need something like -ccopt $(LDFLAGS) ?
<companion_cube>
:s
<companion_cube>
probably the second option
zpe has quit [Ping timeout: 256 seconds]
mfp has quit [Ping timeout: 264 seconds]
shinnya has quit [Ping timeout: 256 seconds]
mk9 has quit [Quit: mk9]
zpe has joined #ocaml
gentauro has quit [Ping timeout: 268 seconds]
hdon has quit [Ping timeout: 256 seconds]
gentauro has joined #ocaml
hdon has joined #ocaml
hdon has quit [Ping timeout: 260 seconds]
zpe has quit [Ping timeout: 255 seconds]
<dougmencken>
yet xmlm required by odoc surprises: File "src/xmlm.ml", line 965, characters 19-47: Error: This expression has type string -> int -> int -> unit but an expression was expected of type bytes -> int -> int -> unit Type string is not compatible with type bytes Command exited with code 2.
<companion_cube>
xmlm is not -safe-string ready‽‽ that'd deserve an issue, I suppose
zpe has joined #ocaml
pioneer42 has left #ocaml [#ocaml]
onion has joined #ocaml
onion is now known as whoman
whoman is now known as onion
<dougmencken>
tips from internetz says: “ The new compiler (4.06.0) uses a special flag that causes that error. If you are in a hurry please switch to 4.05.0. ”
pierpa_ has quit [Quit: Page closed]
<dougmencken>
and surely I got 4.06 (:
zpe has quit [Ping timeout: 248 seconds]
<dougmencken>
as for ocamlc and includes... -ccopt -Iblah is the same as -I blah ( yeah, -I SPACE blah )
zpe has joined #ocaml
tarptaeya has joined #ocaml
shinnya has joined #ocaml
Thulium is now known as Duns_Scrotus
galacticstructs has joined #ocaml
zpe has quit [Ping timeout: 248 seconds]
<galacticstructs>
can you leave record fields undefined?
<companion_cube>
no
<companion_cube>
no variable or field can be undefined, galacticstructs
galacticstructs has quit [Ping timeout: 260 seconds]
zpe has joined #ocaml
hdon has joined #ocaml
hdon has quit [Ping timeout: 256 seconds]
cbot has joined #ocaml
zpe has quit [Ping timeout: 240 seconds]
wklm has joined #ocaml
VermillionAzure has quit [Ping timeout: 276 seconds]
zpe has joined #ocaml
zpe has quit [Ping timeout: 256 seconds]
cbot has quit [Quit: Leaving]
wklm has quit [Ping timeout: 264 seconds]
wklm has joined #ocaml
olle has joined #ocaml
FreeBirdLjj has joined #ocaml
Onemorenickname has joined #ocaml
zpe has joined #ocaml
moolc has joined #ocaml
spew has joined #ocaml
malina has joined #ocaml
gtrak has quit [Ping timeout: 248 seconds]
gtrak has joined #ocaml
zpe has quit [Remote host closed the connection]
wklm has quit [Ping timeout: 255 seconds]
wklm has joined #ocaml
spew has quit [Ping timeout: 268 seconds]
malina has quit [Quit: Throwing apples of Montserrat]
kakadu has joined #ocaml
wklm has quit [Ping timeout: 276 seconds]
wklm_ has joined #ocaml
wklm_ has quit [Client Quit]
zpe has joined #ocaml
jao has joined #ocaml
tarptaeya has quit [Quit: Byeeeeeee!]
tarptaeya has joined #ocaml
jao has quit [Ping timeout: 240 seconds]
<dougmencken>
gen blames too: File "gen.ml", line 1768, characters 39-40: Error: This expression has type bytes but an expression was expected of type string
<Drup>
companion_cube, your library was not safe-string ready since 2 years ago ? I'm so disapointed in you
pierpa has joined #ocaml
orbifx1 has joined #ocaml
mfp has joined #ocaml
<dougmencken>
eh... and opam-file-format is not bytecode-only friendly
<dougmencken>
ah it is, make byte
casperonw has quit [Remote host closed the connection]
pierpa has quit [Ping timeout: 260 seconds]
zolk3ri has joined #ocaml
orbifx1 is now known as orbifx
orbifx1 has joined #ocaml
<dougmencken>
and what is this one?
<dougmencken>
File "src/solver/opamSolver.ml", line 408, characters 41-46: Error: The function applied to this argument has type ?global_constraints:bool -> int This argument cannot be applied with label ~explain
<dougmencken>
“ O_CLOEXEC (Since Linux 2.6.23) Enable the close-on-exec flag for the new file descriptor. ” so logic "any and every non-windoze has it" is false
<dougmencken>
by teh way, oh sleepy chat, why this fails? let space = [%sedlex.regexp? Plus (Chars " \t\r\n")]
<dougmencken>
with Error: Uninterpreted extension 'sedlex.regexp'
<reynir>
maybe there's a sedlex.ppx
<reynir>
Yes
<reynir>
The error is saying the ppx extension 'sedlex.regexp' (»[%sedlex.regexp ...]«) is not being interpreted by anything
<dougmencken>
reynir: sure I have sedlex.ppx
<dougmencken>
and that’s not my own code
<reynir>
hm okay, maybe you need a different version then
<dougmencken>
-rw-r--r-- 1 root wheel 15799 Mar 31 06:42 ppx_sedlex.ml
<dougmencken>
reynir: different version of what?
<reynir>
of sedlex I guess
<reynir>
dougmencken: honestly I'm just guessing right now. I can maybe take a closer look later. Going to fix some furniture first...
mk9 has joined #ocaml
<dougmencken>
my sedlex is from git
moolc has quit [Remote host closed the connection]
<dougmencken>
Your branch is up-to-date with 'origin/master'
muelleme_ has joined #ocaml
zpe has joined #ocaml
muelleme has quit [Ping timeout: 248 seconds]
pierpa has quit [Ping timeout: 260 seconds]
mk9 has quit [Ping timeout: 264 seconds]
zpe has quit [Ping timeout: 264 seconds]
pierpa has joined #ocaml
<companion_cube>
Drup: mine are, sorry :p
<companion_cube>
Drup: but here it's xmlm, it seems
muelleme_ has quit [Ping timeout: 260 seconds]
chatchat1 has quit [Quit: leaving]
zv has joined #ocaml
Judocus has joined #ocaml
Haudegen has quit [Ping timeout: 264 seconds]
muelleme_ has joined #ocaml
pierpa has quit [Ping timeout: 260 seconds]
sh0t has joined #ocaml
muelleme_ has quit [Ping timeout: 248 seconds]
tarptaeya has joined #ocaml
pierpa has joined #ocaml
olle has joined #ocaml
pierpa_ has joined #ocaml
pierpa has quit [Ping timeout: 260 seconds]
jimmyrcom has joined #ocaml
ygrek has joined #ocaml
spew has joined #ocaml
muelleme_ has joined #ocaml
spew has quit [Ping timeout: 276 seconds]
mk9 has joined #ocaml
jao has joined #ocaml
rwmjones|HOLS has quit [Ping timeout: 246 seconds]
rwmjones has joined #ocaml
ygrek has quit [Ping timeout: 268 seconds]
<dougmencken>
any idea why stuff like "let digit = [%sedlex.regexp? '0' .. '9']" fails?
<octachron>
are you using the `-ppx` option with the right ppx?
<seliopou_>
is there a list of docker images available from travis scripts? specifically that support certain versions of the ocaml compiler
<seliopou_>
?
seliopou_ is now known as seliopou
<dougmencken>
octachron: like ocamlc -ppx sedlex.ppx thatfile.ml ?
<octachron>
is sedlex.ppx an executable in your path?
vodkaInferno has joined #ocaml
<dougmencken>
or -ppx /opt/ocaml-4.06/lib/site-lib/sedlex/ppx/ppx.exe ?
<seliopou>
ah, you have to specify minor versions for the docker images to work
sh0t has quit [Ping timeout: 240 seconds]
<octachron>
dougmencken, the last one sounds right
<octachron>
dougmencken, you also need the --as-ppx option -ppx "/opt/…/ppx.exe --as-ppx"
<dougmencken>
hmm, this prints "Error: Unbound module Sedlexing"
pierpa_ has quit [Ping timeout: 260 seconds]
muelleme_ has quit [Ping timeout: 240 seconds]
olle has quit [Ping timeout: 260 seconds]
pierpa has joined #ocaml
<octachron>
Sedlexing is a runtime dependency introduced by the ppx (when it works)
<dougmencken>
all I found is /opt/ocaml-4.06/lib/site-lib/sedlex/sedlexing.mli
spew has joined #ocaml
pierpa has quit [Ping timeout: 260 seconds]
tarptaeya has quit [Quit: Byeeeeeee!]
<dougmencken>
and it is sure inside sedlex.cma
kakadu has joined #ocaml
<dougmencken>
I dunno why that ppx can’t find it
<octachron>
It is not the ppx anymore, it is the code that you are compiling that need it, ocamlopt -ppx '…' -I /opt/…/sedlex …
<dougmencken>
ah okay, and strangely enough when I did 'make' after that, it succeeded
mk9 has quit [Quit: mk9]
mk9 has joined #ocaml
sh0t has joined #ocaml
grblwa has joined #ocaml
Geekingfrog has joined #ocaml
pierpa has joined #ocaml
sh0t has quit [Ping timeout: 240 seconds]
spew has quit [Ping timeout: 264 seconds]
orbifx has joined #ocaml
grblwa has quit [Quit: Page closed]
muelleme_ has joined #ocaml
kino` has joined #ocaml
spew has joined #ocaml
orbifx has quit [Ping timeout: 260 seconds]
<dougmencken>
octachron: thanks, it works
jimmyrcom has quit [Ping timeout: 264 seconds]
<dougmencken>
is it safe to ppx every file mentioned in makefile too, to not deal with these two specially
<octachron>
with a high probability yes, it should only increase compilation time
<dougmencken>
great, plus I found portable way to do the same
<dougmencken>
ocamlfind printppx sedlex.ppx
shakalaka has quit [Ping timeout: 268 seconds]
<dougmencken>
I hope such warnings are safe findlib: [WARNING] Interface uTF8.cmi occurs in several directories: libs/extlib-leftovers, /opt/ocaml-4.06/lib/site-lib/extlib
<companion_cube>
but is there json.cmi in the dir?
<companion_cube>
(.cmo are not enough)
<dougmencken>
.cmi is in src/code but not in _build
<companion_cube>
might be an issue then
<companion_cube>
.cmi are really important for compilation :)
<dougmencken>
so to locate module it needs both .cmi and .cmo yeah?
<companion_cube>
not "locate", but "use", definitely
<companion_cube>
without .cmi the compiler doens't know what's in a module
<companion_cube>
(what's public, that is)
<dougmencken>
okay, and thanks for pointing me where to look at
<companion_cube>
no pb :)
<dougmencken>
what is the same as thing.cmi for native? it looks like makefile mentiones no .cmi at all
<companion_cube>
.cmi are shared between bytecode and native
<companion_cube>
they only contain signatures
<companion_cube>
.cmo and .cmx are object files (with the code) for bytecode and native respectively
<dougmencken>
ah okay
<dougmencken>
next to know is what and when produces these .cmi
<companion_cube>
ocamlc -i
<companion_cube>
but ocamlbuild should do it for you?
<companion_cube>
if you use ocamlbuild
<dougmencken>
companion_cube: it uses "plain" makefile
<companion_cube>
:/
<companion_cube>
well. %.cmi: %.mli ocamlc -i $<
<companion_cube>
something like that I guess
<dougmencken>
hmm but in fact they are already here after make clean
<dougmencken>
so they are distributed
<dougmencken>
just not copied to _build
<kino`>
Hi
<kino`>
Is it possible to convert a Caml Hashmap to one offered in Core ?
<companion_cube>
no
<companion_cube>
core doesn't try to be compatible with the stdlib
<kino`>
Ok, thanks.
Haudegen has joined #ocaml
olle has joined #ocaml
<dougmencken>
I received comment about that my patch r/g sedlex.ppx from upstream: "the sedlex usage in haxe is correct, that's all a lot of people are building haxe successfully, so if it's not working for you, it isn't broken "
<dougmencken>
wonderful demonstration of unwelcoming new guys’s first contribution
<companion_cube>
weird
<companion_cube>
I didn't even know people from haxe were involved in sedlex
<dougmencken>
they just use it, and that’s why I welcomed ocaml’s big zoo on my side: I want to have some meta-language to have it to output both java and c++ sources from the same sources
<dougmencken>
so I found haxe, and it is built on ocaml (:
<companion_cube>
:/
<companion_cube>
sorry about that
<dougmencken>
ah, about what? that’s nice zoo
<dougmencken>
ocaml (;
cbot_ has joined #ocaml
cbot has quit [Ping timeout: 264 seconds]
bartholin has quit [Read error: Connection reset by peer]
<dougmencken>
next thing: Error: Cannot find file /opt/ocaml-4.06/lib/site-lib/xml-light/xml-light.cma
<dougmencken>
where xml-light make install does no more than cp xml.mli xmlParser.mli dtd.mli xml.cmi xmlParser.cmi dtd.cmi `ocamlc -where`