00:08
eikke has joined #ocaml
00:16
myx has joined #ocaml
00:37
_sivoais is now known as sivoais
00:59
lolcathost has quit [Quit: Lost terminal]
01:03
Playground has joined #ocaml
01:03
Playground is now known as lolcathost
01:10
r126l has quit [Remote host closed the connection]
01:17
r126l has joined #ocaml
01:17
leoncamel has joined #ocaml
01:19
madroach has quit [Ping timeout: 244 seconds]
01:20
madroach has joined #ocaml
01:35
dabd has joined #ocaml
01:36
<
dabd >
can anyone recommend me a good book from the following list: ocaml.org/books.html?
01:40
lolcathost has quit [Quit: leaving]
01:41
eikke has quit [Ping timeout: 255 seconds]
01:45
Playground has joined #ocaml
02:31
astertronistic has joined #ocaml
02:36
Yoric has joined #ocaml
03:01
Yoric has quit [Ping timeout: 252 seconds]
03:18
BobDole has joined #ocaml
03:19
Playground is now known as Catnaroek
03:52
leoncamel has quit [Ping timeout: 255 seconds]
04:05
Siphonblast has joined #ocaml
04:11
leoncamel has joined #ocaml
04:14
weie has joined #ocaml
04:17
wormphlegm has quit [Read error: Connection reset by peer]
04:17
wormphlegm has joined #ocaml
04:44
cdidd has joined #ocaml
04:51
myx has quit [Quit: ушёл]
04:52
lusory has quit [Quit: leaving]
05:16
jewel has joined #ocaml
05:19
Submarine has joined #ocaml
05:46
sampego has joined #ocaml
05:51
dabd has quit [Quit: Ex-Chat]
05:59
sampego has quit [Ping timeout: 245 seconds]
05:59
jewel has quit [Ping timeout: 265 seconds]
06:07
BiDOrD has joined #ocaml
06:09
sampego has joined #ocaml
06:09
BiDOrD_ has quit [Ping timeout: 264 seconds]
06:21
Cyanure has joined #ocaml
06:31
<
flux >
the new ocaml.org seems pretty
06:37
Snark has joined #ocaml
06:57
<
orbitz >
yeah, nice that ocaml is getting a fresh-face
07:00
djcoin has joined #ocaml
07:05
astertronistic has quit [Remote host closed the connection]
07:12
answer_42 has joined #ocaml
07:17
Siphonblast has quit [Read error: Connection reset by peer]
07:20
<
testcocoon >
adrien: did you have a look on camldebug stability issue?
07:21
cago has joined #ocaml
07:22
Siphonblast has joined #ocaml
07:25
hkBst has joined #ocaml
07:25
hkBst has quit [Changing host]
07:25
hkBst has joined #ocaml
07:30
hkBst has quit [Read error: Connection reset by peer]
07:30
hkBst has joined #ocaml
07:30
hkBst has quit [Changing host]
07:30
hkBst has joined #ocaml
07:39
mika1 has joined #ocaml
07:43
leoncamel has quit [Ping timeout: 252 seconds]
07:46
ftrvxmtrx has joined #ocaml
07:48
ontologiae has joined #ocaml
07:49
fusillia has joined #ocaml
07:52
hkBst has quit [Read error: Connection reset by peer]
07:52
hkBst has joined #ocaml
07:52
hkBst has quit [Changing host]
07:52
hkBst has joined #ocaml
07:57
Siphonblast has quit [Read error: Connection reset by peer]
08:08
<
adrien >
testcocoon: haven't been able to touch anything; working on the cross-compiler has taken all my time
08:10
mye has joined #ocaml
08:11
Siphonblast has joined #ocaml
08:13
thomasga has joined #ocaml
08:13
Siphonblast has quit [Remote host closed the connection]
08:15
ikaros has joined #ocaml
08:19
arquebus has joined #ocaml
08:19
|jbrown| has joined #ocaml
08:20
jbrown__ has quit [Ping timeout: 255 seconds]
08:30
mfill has joined #ocaml
08:31
eikke has joined #ocaml
08:35
mfill has quit [Quit: leaving]
08:44
mika1 has quit [Quit: Leaving.]
08:55
pango is now known as pangoafk
08:56
_andre has joined #ocaml
09:04
arquebus has quit [Remote host closed the connection]
09:07
BobDole has quit [Ping timeout: 260 seconds]
09:13
larhat has joined #ocaml
09:18
fantasticsid has joined #ocaml
09:21
Kakadu has joined #ocaml
09:28
mcclurmc_away is now known as mcclurmc
09:28
mika1 has joined #ocaml
09:29
Kakadu_ has joined #ocaml
09:34
<
ousado >
adrien: wihch/what cross-compiler are you working on?
09:38
<
adrien_oww >
windows
09:38
<
adrien_oww >
or more configurations but the architecture to cross-compile isn't there yet no matter the arch
09:38
<
adrien_oww >
(it's not a huge amount of work but I don't have much free time)
09:39
<
ousado >
so one can target windows from a sane place
09:39
larhat has quit [Quit: Leaving.]
09:42
larhat has joined #ocaml
09:47
eikke has quit [Ping timeout: 255 seconds]
09:48
chambart has joined #ocaml
10:20
chambart has quit [Ping timeout: 260 seconds]
10:21
mcclurmc is now known as mcclurmc_away
10:23
mika1 has quit [Quit: Leaving.]
10:32
hkBst_ has joined #ocaml
10:32
hkBst has quit [Ping timeout: 248 seconds]
10:39
xlr has joined #ocaml
10:49
Catnaroek has quit [Ping timeout: 248 seconds]
10:57
Cyanure has quit [Remote host closed the connection]
10:57
mcclurmc_away is now known as mcclurmc
11:12
mika1 has joined #ocaml
11:13
<
Kakadu >
matthewt: Maybe you don't need comma?
11:13
<
matthewt >
i knew it. thanks
11:18
mika1 has quit [Quit: Leaving.]
11:19
Submarine has quit [Ping timeout: 272 seconds]
11:28
Yoric1 has joined #ocaml
11:32
hkBst_ has quit [Remote host closed the connection]
11:32
hkBst_ has joined #ocaml
11:32
hkBst_ has quit [Changing host]
11:32
hkBst_ has joined #ocaml
11:34
eikke has joined #ocaml
11:50
hkBst_ has quit [Ping timeout: 255 seconds]
11:50
hkBst_ has joined #ocaml
11:50
hkBst_ has quit [Changing host]
11:50
hkBst_ has joined #ocaml
11:55
beckerb has joined #ocaml
12:01
mika1 has joined #ocaml
12:05
larhat has quit [Quit: Leaving.]
12:07
hkBst_ has quit [Ping timeout: 246 seconds]
12:09
hkBst_ has joined #ocaml
12:14
|jbrown| has quit [Quit: Client exiting]
12:16
chambart has joined #ocaml
12:20
ttamttam has joined #ocaml
12:20
ttamttam has quit [Remote host closed the connection]
12:20
ttamttam has joined #ocaml
12:33
mika1 has quit [Quit: Leaving.]
12:37
milosn has joined #ocaml
12:42
milosn has quit [Ping timeout: 248 seconds]
12:42
mika1 has joined #ocaml
12:50
larhat has joined #ocaml
13:01
ttamttam has quit [Quit: ttamttam]
13:02
ttamttam has joined #ocaml
13:04
leoncamel has joined #ocaml
13:06
fusillia has quit [Ping timeout: 265 seconds]
13:09
ttamttam has quit [Quit: ttamttam]
13:10
ttamttam has joined #ocaml
13:20
fusillia has joined #ocaml
13:37
tane has joined #ocaml
13:39
tane has quit [Remote host closed the connection]
13:39
tane has joined #ocaml
13:44
hkBst_ has quit [Read error: Connection reset by peer]
13:44
hkBst_ has joined #ocaml
13:44
hkBst_ has quit [Changing host]
13:44
hkBst_ has joined #ocaml
13:48
lusory has joined #ocaml
13:48
milosn has joined #ocaml
13:48
tane has quit [Quit: Verlassend]
13:49
justdit_ has joined #ocaml
13:49
justdit has quit [Ping timeout: 272 seconds]
13:54
tane has joined #ocaml
13:56
Kakadu_ has quit [Quit: Page closed]
14:02
fraggle_laptop has quit [Remote host closed the connection]
14:08
jewel has joined #ocaml
14:15
milosn has quit [Ping timeout: 244 seconds]
14:15
milosn has joined #ocaml
14:18
fantasticsid has quit [Remote host closed the connection]
14:28
smondet has joined #ocaml
14:32
Kakadu has quit [Remote host closed the connection]
14:32
Kakadu has joined #ocaml
14:44
ttamttam1 has joined #ocaml
14:45
f[x] has quit [Read error: Operation timed out]
14:45
ttamttam has quit [Ping timeout: 246 seconds]
14:47
hkBst_ has quit [Quit: Konversation terminated!]
14:59
fusillia has quit [Ping timeout: 246 seconds]
15:01
Playground has joined #ocaml
15:05
fayden has quit [Ping timeout: 265 seconds]
15:11
sampego has quit [Quit: Page closed]
15:16
larhat has quit [Quit: Leaving.]
15:19
fayden has joined #ocaml
15:20
tane has quit [Quit: Verlassend]
15:21
mika1 has quit [Quit: Leaving.]
15:30
Playground has quit [Quit: leaving]
15:32
lolcathost has joined #ocaml
15:40
cago has left #ocaml []
15:42
<
testcocoon >
adrien: I was just asking if you had time to look on it. BTW: I will also need to work on remote debugging with oqamldebug.
15:49
tac has joined #ocaml
15:52
ontologiae has quit [Ping timeout: 255 seconds]
15:53
thomasga has quit [Quit: Leaving.]
15:54
milosn has quit [Ping timeout: 252 seconds]
15:54
milosn has joined #ocaml
15:56
fayden has quit [Read error: Operation timed out]
15:56
justdit_ has quit [Remote host closed the connection]
16:06
<
adrien >
testcocoon: almost no free time during the week; only during some weekends
16:06
Yoric1 has quit [Ping timeout: 252 seconds]
16:09
ftrvxmtrx has quit [Quit: Leaving]
16:13
troydm has joined #ocaml
16:13
<
troydm >
where should i ask opam related questions?
16:13
<
troydm >
my installation suddenly started doing this
16:14
ttamttam1 has quit [Quit: ttamttam1]
16:17
thomasga has joined #ocaml
16:24
<
Leonidas >
hmm, when I build an executable with oasis/ocamlbuild, it calls the executable filename.{native,byte} and not like the section name in _oasis. Is there a way to fix this?
16:26
gnuvince has quit [Ping timeout: 252 seconds]
16:34
<
adrien >
I'm not aware of one
16:35
<
adrien >
as far as I'm concern, I don't install the output of any build system system-wide with "make install" without making a package
16:35
<
adrien >
and you shouldn't either :P
16:38
* adrien
is going to remove ocamlbuild from yypkg's build system: its dependencies on posix tools on windows is simply too annoying
16:39
<
adrien >
I'll play with ocamlfind's conf directly to setup cross-compiler (will see how well it plays)
16:40
<
Leonidas >
well, I don't want to install it, but I think that my executables are named sensibly is actually a pretty basic requirement
16:42
<
adrien >
what's the issue with the suffix?
16:42
<
adrien >
it allows building both at once which is often pretty handy
16:47
eikke has quit [Ping timeout: 264 seconds]
16:47
Kakadu has joined #ocaml
16:50
gnuvince has joined #ocaml
16:54
fayden has joined #ocaml
16:55
chambart has quit [Read error: Operation timed out]
16:57
<
Leonidas >
adrien: well, I'd like to call the thing in a sensible way, without any stupid suffixes.
16:57
chambart has joined #ocaml
16:57
<
Leonidas >
actually, I think ocaml uses way too many suffices, like ocamlopt.opt :-/
16:57
<
Leonidas >
it looks just terribly messy
16:57
<
adrien >
ln -s _build/your_binary.native your_binary
16:58
<
adrien >
invoke: ocamlbuild -no-links
16:58
<
Leonidas >
yes, that's what I'll do.
16:58
<
adrien >
the ".opt" suffix for ocamlopt.opt is again not avoidable
16:58
<
Leonidas >
actually, it would be, if one assumed "ocamlopt" is the default compiler
16:58
<
adrien >
however you shouldn't get close to that and you should always use ocamlfind if you need to invoke the compiler (and in ocamlfind's config, you can set the default compiler)
16:59
<
adrien >
ocamlopt and ocamlc are the default compilers, yes
16:59
<
Leonidas >
yes, that's not a problem, it is just an opservation
16:59
<
Leonidas >
*observation, even :)
16:59
<
adrien >
ocamlopt.opt and ocamlc.opt aren't available everywhere
16:59
<
Leonidas >
but what currently bugs me is that my build script does not link in my C code
17:00
<
adrien >
explain a bit more
17:01
<
Leonidas >
well, at least this is the relevant part
17:01
chambart has quit [Ping timeout: 246 seconds]
17:01
<
Leonidas >
and now I want to run ost_version_number which is defined in Archive_stubs.c
17:01
<
Leonidas >
CAMLprim value ost_version_number(value unit)
17:02
<
Leonidas >
src/launch.o: In function `camlLaunch__entry':
17:02
<
Leonidas >
/home/marek/ostreamer/_build/src/launch.ml:3: undefined reference to `ost_version_number'
17:02
<
Leonidas >
src/Archive.o: In function `camlArchive':
17:02
<
Leonidas >
(.data+0x10): undefined reference to `ost_version_number'
17:02
<
Leonidas >
collect2: error: ld returned 1 exit status
17:02
<
Leonidas >
this is what happens when I try to build it
17:04
<
Leonidas >
it looks like it does not link the C file, which is strange since it does compile it to Archive_stubs.o
17:04
<
adrien >
is your ocaml function named "ost_version_numerb"?
17:05
<
Leonidas >
I don't have such a function
17:05
<
Leonidas >
I just have this:
17:05
<
Leonidas >
external version_number: unit -> unit = "ost_version_number"
17:06
metasyntax has joined #ocaml
17:06
<
adrien >
you've put Archive_stubs.c in "CSources"?
17:07
<
Leonidas >
adrien: yes, as you can see in the gist. CSources: Archive_stubs.c
17:08
<
adrien >
why CCLib: -larchive?
17:09
<
Leonidas >
adrien: because ost_version_number calls archive_version_number from libarchive
17:09
<
Leonidas >
it is actually just meant as wrapper around the C function.
17:11
<
Leonidas >
adrien: yes I am, that's also where I copied the CCLib from
17:11
<
Leonidas >
but I don't want to work on that at the moment, I'd rather create my own binding
17:12
<
adrien >
can you clean the build and run ocamlbuild with -classic-display and show me the output?
17:12
<
Leonidas >
(nothing against ocaml-archive, I haven't used it, so I can't comment on its quality)
17:12
<
Leonidas >
setup.ml: unknown option `-classic-display'.
17:13
<
Leonidas >
not sure I follow :-/
17:13
<
adrien >
that's an option to ocamlbuild
17:13
<
Leonidas >
how to specify it?
17:13
<
adrien >
so when you run "ocaml setup.ml", it says it runs "ocamlbuild ......"
17:13
<
Leonidas >
as I don't call ocamlbuild
17:13
<
adrien >
copy-paste that and add -classic-display
17:13
<
Leonidas >
ah, alright!
17:18
<
adrien >
can you clean and run the command again?
17:18
<
Leonidas >
oh, sorry, will do
17:22
lolcathost has quit [Quit: leaving]
17:22
<
adrien >
19:05 Leonidas : external version_number: unit -> unit = "ost_version_number"
17:22
lolcathost has joined #ocaml
17:22
<
adrien >
in which file is this?
17:27
<
Leonidas >
adrien: Archive.ml
17:27
<
Leonidas >
ost_version_number is in Archive_stubs.c
17:28
<
Leonidas >
and I call Archive.version_number from launch.ml
17:49
Yoric has joined #ocaml
17:52
<
adrien >
Leonidas: it should go in /lasgist 10
18:01
<
Leonidas >
adrien: lasgist 10?
18:03
<
adrien >
non-empty buffer and then power loss
18:03
<
adrien >
Leonidas: how do you refer to ost_version_number in your launch.ml file?
18:03
<
Leonidas >
let _ = print_endline (Printf.sprintf "ost-launch %d" Archive.version); Archive.version_number ()
18:04
<
Leonidas >
uh, yeah, imagine this with proper indent :)
18:04
<
adrien >
I need to see the whole code at once :P
18:04
<
Leonidas >
adrien: alright, I'll just paste everything
18:04
mcclurmc is now known as mcclurmc_away
18:07
emmanuelux has joined #ocaml
18:07
Attic has joined #ocaml
18:07
Attic has left #ocaml []
18:17
djcoin has quit [Quit: WeeChat 0.3.9.2]
18:18
eni has joined #ocaml
18:22
_andre has quit [Quit: leaving]
18:27
mye has quit [Quit: mye]
18:29
<
adrien >
I think I remember
18:31
<
Leonidas >
well, I posted to caml-list, maybe someone has an idea
18:31
<
adrien >
ocamlfind ocamlopt -a -cclib -lost -cclib -larchive src/Archive.cmx -o src/ost.cmxa
18:31
<
adrien >
+ ocamlfind ocamlopt -g -linkpkg src/Archive.cmx src/launch.cmx -o src/launch.native
18:31
<
adrien >
see the second line: it uses .cmx files
18:31
<
adrien >
(because it can)
18:32
<
Leonidas >
to be honest, I don't know what the difference is, ocamls build system is completely alien to me :)
18:32
<
adrien >
cmx = object file
18:32
<
adrien >
cmxa = library file
18:33
<
adrien >
afaiu, the issue is that "Library" doesn't define a library that can be used directly from inside your project
18:33
<
Leonidas >
so, it looks like in the -linkpkg line, it is missing to link with Archive_stubs.o?
18:34
<
adrien >
because it has no reason to use it
18:34
<
adrien >
rather: it knows of no reason to use it
18:35
<
Leonidas >
adrien: heh
18:35
<
Leonidas >
I looked up at ocaml-archive and realized that it has a BuildDepends line for the test executables
18:36
emmanuelux has quit [Remote host closed the connection]
18:36
<
Leonidas >
when I add BuildDepends: ost in ost-launch it works fine
18:37
emmanuelux has joined #ocaml
18:39
<
Kakadu >
Leonidas: it is your message in caml-list about linking error?
18:40
<
Leonidas >
Kakadu: yes, I just added a follow-up with the solution for future reference
18:41
<
Kakadu >
yeah, I see
18:43
Submarine has joined #ocaml
18:43
Submarine has quit [Changing host]
18:43
Submarine has joined #ocaml
18:44
jamii has joined #ocaml
18:58
jamii has quit [Ping timeout: 264 seconds]
19:00
ontologiae has joined #ocaml
19:11
jewel has quit [Ping timeout: 255 seconds]
19:12
jamii has joined #ocaml
19:17
mcclurmc has joined #ocaml
19:20
milosn_ has joined #ocaml
19:20
milosn has quit [Ping timeout: 252 seconds]
19:20
milosn_ is now known as milosn
19:21
dmilith has joined #ocaml
19:26
gnuvince has quit [Ping timeout: 265 seconds]
19:33
gnuvince has joined #ocaml
19:38
gnuvince has quit [Ping timeout: 264 seconds]
19:42
Cyanure has joined #ocaml
19:44
ontologiae has quit [Read error: Operation timed out]
19:45
lolcathost has quit [Quit: leaving]
19:45
lolcathost has joined #ocaml
19:49
weie has quit [Quit: Leaving...]
19:53
<
fasta >
adrien: which build system do you use when you can choose?
19:56
Submarine has quit [Remote host closed the connection]
19:57
<
adrien >
I find ocamlbuild effective; and now through oasis
19:58
<
adrien >
it has some issues but it works fairly well
19:58
ontologiae has joined #ocaml
20:04
ontologiae has quit [Ping timeout: 252 seconds]
20:08
eikke has joined #ocaml
20:13
eikke has quit [Ping timeout: 260 seconds]
20:14
ski has quit [Ping timeout: 252 seconds]
20:16
ski has joined #ocaml
20:26
tac has left #ocaml []
20:30
<
Leonidas >
adrien: you are not CamaradeTux by any chance?
20:30
<
adrien >
Leonidas: I am
20:30
<
Leonidas >
oh, the world is small. I know your nick from somewhere. HN or something :)
20:31
<
adrien >
hah, yeah, I've had to keep the nickname on several places
20:32
gnuvince has joined #ocaml
20:33
<
Leonidas >
fasta: the advantage of oasis is that it is potentially able to generate makefiles for other build systems
20:33
<
Leonidas >
also: writing the makefiles is not remotely as painful als OMake
20:35
larhat has joined #ocaml
20:37
larhat has quit [Read error: Connection reset by peer]
20:37
larhat has joined #ocaml
20:39
larhat has quit [Client Quit]
20:39
larhat has joined #ocaml
20:42
gnuvince has quit [Ping timeout: 265 seconds]
20:48
Snark has quit [Quit: Quitte]
20:51
answer_42 has quit [Ping timeout: 276 seconds]
20:58
gnuvince has joined #ocaml
21:02
ohama has quit [Remote host closed the connection]
21:06
ohama has joined #ocaml
21:07
eni has quit [Ping timeout: 246 seconds]
21:12
xavierm02 has joined #ocaml
21:12
<
xavierm02 >
I have this type
21:12
<
xavierm02 >
type base_boolean_expression =
21:12
<
xavierm02 >
| Var of int
21:12
<
xavierm02 >
| Not of base_boolean_expression
21:12
<
xavierm02 >
| And of base_boolean_expression list
21:12
<
xavierm02 >
| Or of base_boolean_expression list
21:12
<
xavierm02 >
And I want to create the trees from strings such as ¬((¬1∨(3∨5))∧0∧(((3∧3)∨3)∧(3∧3)))
21:12
<
xavierm02 >
How can I do that?
21:13
<
xavierm02 >
I know ocaml has built-in things to parse strings
21:13
<
xavierm02 >
but from what I understood, it'd work if And was base_boolean_expression * base_boolean_expression but in my case it won't becuase I have base_boolean_expression list
21:19
gnuvince has quit [Ping timeout: 250 seconds]
21:26
Cyanure has quit [Remote host closed the connection]
21:27
Yoric has quit [Ping timeout: 252 seconds]
21:47
<
troydm >
i can't still figure out this error with opam
21:47
<
troydm >
it works now
21:47
<
troydm >
strange really strange
21:48
<
troydm >
and now it doesn't work again
21:49
smondet has quit [Ping timeout: 255 seconds]
21:51
<
troydm >
hmm it seems it's related to my working directory
21:51
<
troydm >
strange indeed
22:07
gnuvince has joined #ocaml
22:08
gnuvince has quit [Client Quit]
22:08
gnuvince_ has joined #ocaml
22:19
xavierm02 has quit [Quit: Leaving]
22:22
mcclurmc has quit [Quit: Leaving.]
22:23
ontologiae has joined #ocaml
22:31
Yoric has joined #ocaml
22:37
tane has joined #ocaml
22:40
Siphonblast has joined #ocaml
22:42
Yoric has quit [Ping timeout: 252 seconds]
22:44
jamii has quit [Ping timeout: 244 seconds]
22:44
gnuvince_ is now known as gnuvince
22:55
thomasga has quit [Quit: Leaving.]
23:01
ikaros has quit [Quit: Ex-Chat]
23:05
ousado has quit [Remote host closed the connection]
23:10
milosn has quit [Remote host closed the connection]
23:12
tane has quit [Quit: Verlassend]
23:16
milosn has joined #ocaml
23:22
ontologiae has quit [Ping timeout: 256 seconds]
23:27
emmanuelux has quit [Remote host closed the connection]
23:39
fayden has quit [Quit: Bye]
23:47
cdidd has quit [Remote host closed the connection]