00:06
ulfdoz_ has joined #ocaml
00:09
ulfdoz has quit [Ping timeout: 252 seconds]
00:09
ulfdoz_ is now known as ulfdoz
00:11
lamawithonel_ has quit [Ping timeout: 250 seconds]
00:13
arubin has quit [Quit: arubin]
00:39
lamawithonel_ has joined #ocaml
00:44
othiym23 has joined #ocaml
00:59
lamawithonel_ has quit [Ping timeout: 260 seconds]
01:23
Smerdyakov has quit [Quit: Leaving]
01:45
lamawithonel_ has joined #ocaml
02:01
lamawithonel_ has quit [Read error: Connection reset by peer]
02:02
lamawithonel_ has joined #ocaml
02:20
sepp2k has joined #ocaml
02:33
lamawithonel_ has quit [Ping timeout: 255 seconds]
02:44
lamawithonel_ has joined #ocaml
03:10
impy has quit [Ping timeout: 240 seconds]
03:16
impy has joined #ocaml
03:46
lamawithonel__ has joined #ocaml
03:47
lamawithonel_ has quit [Ping timeout: 264 seconds]
04:02
StepanKuzmin has quit [Read error: Connection reset by peer]
04:53
ulfdoz has quit [Ping timeout: 250 seconds]
05:35
rgee has joined #ocaml
05:51
ankit9 has joined #ocaml
05:52
wormphlegm has quit [Quit: leaving]
05:53
edwin has joined #ocaml
06:05
sebz has joined #ocaml
06:09
sebz has quit [Client Quit]
06:38
micro is now known as `micro
06:39
`micro is now known as micro
06:56
sebz has joined #ocaml
07:02
larhat has joined #ocaml
07:06
ikaros has joined #ocaml
07:10
bobry1 has joined #ocaml
07:10
bobry1 has quit [Client Quit]
07:11
bobry1 has joined #ocaml
07:12
Cyanure has joined #ocaml
07:13
ftrvxmtrx has quit [Quit: This computer has gone to sleep]
07:14
sebz has quit [Quit: Computer has gone to sleep.]
07:17
sebz has joined #ocaml
07:19
StepanKuzmin has joined #ocaml
07:21
sebz has quit [Client Quit]
07:22
ftrvxmtrx has joined #ocaml
07:24
ftrvxmtrx has quit [Client Quit]
07:25
sebz has joined #ocaml
07:32
sebz has quit [Quit: Computer has gone to sleep.]
07:36
sebz has joined #ocaml
07:39
sebz has quit [Client Quit]
08:22
sebz has joined #ocaml
08:26
ftrvxmtrx has joined #ocaml
08:43
munga has joined #ocaml
09:06
sgnb has quit [Remote host closed the connection]
09:09
StepanKuzmin has quit [Read error: Connection reset by peer]
09:13
StepanKuzmin has joined #ocaml
09:19
Amorphous has quit [Ping timeout: 240 seconds]
09:22
sgnb has joined #ocaml
09:29
avsm has joined #ocaml
09:34
Amorphous has joined #ocaml
09:35
eikke has joined #ocaml
09:35
<
eikke >
I'm having some troubles with ocamlbuild and C++
09:36
<
gildor >
ocamlbuild is not precisely targeted at C++
09:36
<
eikke >
trying to use some C++ code (not a library) from Ocaml, I created a C wrapper for the C++ stuff, and created a .clib file containing 2 .o entries
09:37
<
eikke >
I figured ;) not sure how to proceed though
09:37
<
eikke >
used to call a makefile from within ocamlbuild to compile everything, but then dependency calculation is all broken
09:38
<
gildor >
you'll have a hard time mixing makefile compilation and ocamlbuild (you need to output things into _build et al)
09:39
<
gildor >
what is the error ?
09:39
<
eikke >
I tried to add a rule similar to the default "ocaml C stubs: c -> o" rule (from ocaml_specific.ml) to my myocamlbuild file, but that doesnt work out
09:39
<
eikke >
which error?
09:39
<
gildor >
I suppose that you get some error output ?
09:40
<
eikke >
in which scenario I mean ;) I removed the whole makefile-trickery, now when using .clib and a .o rule in it, it fails because no input file is found (myfile.cpp isn't taken into account)
09:41
<
gildor >
copy/paste your ocamlbuild rules to ocaml.pastebin.com
09:45
<
eikke >
I modified too much :$
09:46
lopex has joined #ocaml
09:50
avsm has quit [Quit: Leaving.]
09:54
avsm has joined #ocaml
09:55
<
eikke >
thats +- what I'm trying to achievce
09:56
<
eikke >
it looks for t.c, but should use t.cpp instead
10:00
<
eikke >
looking at verbose output indicates the cpp -> o rule isnt used at all
10:07
<
eikke >
removing the module stuff does enable the rule
10:07
<
eikke >
but it fails since ocamlc doesn't know how to handle .cpp files (I think)
10:20
sebz has quit [Quit: Computer has gone to sleep.]
10:23
<
gildor >
eikke: check what ext_obj value is
10:23
<
gildor >
eikke: let () = prerr_endline x_o;; right after x_o
10:23
sebz has joined #ocaml
10:25
<
eikke >
I got somewhat further already :)
10:36
ztfw has joined #ocaml
10:41
avsm has quit [Quit: Leaving.]
10:49
avsm has joined #ocaml
10:51
_andre has joined #ocaml
10:55
StepanKuzmin has quit [Read error: Connection reset by peer]
10:56
lamawithonel__ has quit [Read error: Connection reset by peer]
10:58
munga has quit [Ping timeout: 255 seconds]
10:59
StepanKuzmin has joined #ocaml
11:01
lamawithonel__ has joined #ocaml
11:26
lamawithonel__ has quit [Read error: Connection reset by peer]
11:26
lamawithonel__ has joined #ocaml
11:28
lamawithonel__ has quit [Read error: Connection reset by peer]
11:28
lamawithonel__ has joined #ocaml
11:30
thomasga has joined #ocaml
11:36
dnolen_ has joined #ocaml
12:07
smerz has joined #ocaml
12:15
sepp2k has quit [Quit: Leaving.]
12:20
munga has joined #ocaml
12:31
zorun has quit [Read error: Connection reset by peer]
12:32
zorun has joined #ocaml
12:42
Julien_T has quit [Ping timeout: 240 seconds]
13:01
StepanKuzmin has quit [Remote host closed the connection]
13:01
bzzbzz has joined #ocaml
13:17
dnolen_ has quit [Quit: dnolen_]
13:27
solistic has joined #ocaml
13:45
waterChip has joined #ocaml
13:53
waterChip_ has joined #ocaml
13:56
waterChip has quit [Ping timeout: 240 seconds]
13:56
waterChip_ is now known as waterChip
14:06
zorun has quit [Quit: leaving]
14:09
waterChip has quit [Quit: waterChip]
14:15
fraggle_laptop has joined #ocaml
14:20
<
solistic >
Hi all, just trying to get started with OCaml. Is GODI the way to go?
14:20
<
flux >
solistic, it depends. what operating system do you run?
14:21
<
mehdid >
solistic: if you want to spend your life building all ocaml related packages, then yes.
14:21
<
mehdid >
(you may find gentoo interesting… if you like godi ;))
14:22
<
solistic >
I have an Ubuntu here
14:23
<
mehdid >
“apt-get install ocaml” then. (but, don't expect updates)
14:24
<
flux >
solistic, you will find that ubuntu has many ocaml packages
14:25
<
flux >
not sure if it comes with ocaml 3.12 yet, though
14:25
<
solistic >
no it does not
14:25
<
flux >
maybe it's not that critical, though
14:25
<
mehdid >
3.12 is in oneric
14:26
<
solistic >
or oneiric?
14:26
<
mehdid >
or whatever the name of 11.10 is
14:26
<
mehdid >
yeah — that name
14:29
<
solistic >
Just tried #require "postgresql" and it gives me "Error: Reference to undefined global `Mutex'"
14:30
<
solistic >
what the hell
14:30
<
edwin >
did you load topfind?
14:30
<
edwin >
fwiw it gives same error on Debian
14:31
<
edwin >
does the ocaml toplevel support threads?
14:31
<
solistic >
yes i used topfind
14:32
<
mehdid >
edwin: can you file a bugreport afainst the relevant package?
14:32
<
flux >
solistic, #thread;;
14:33
<
edwin >
yeah what flux said
14:33
<
solistic >
edwin: seems to work, thx
14:33
<
edwin >
mehdid: there already is, 564816, but its marked as fixed, hmm
14:34
<
mehdid >
edwin: thanks for the link.
14:34
<
edwin >
ah guess I should upgrade the package
14:34
<
mehdid >
it was decided that it was "normal"?
14:35
<
mehdid >
edwin: ah, no, note the fixed version.
14:35
<
edwin >
hmm I don't get that error
14:35
<
edwin >
let me try with ocamlfind
14:35
<
mehdid >
It was fixed in postgresql-ocaml/1.12.4-1, fwiw. What version are you using?
14:36
<
edwin >
1.14.0-1+b1, and 1.16.0-1
14:36
<
mehdid >
and you have the error in the toplevel?
14:36
<
edwin >
ok so with ocamlfind I do get the error
14:36
Cyanure has quit [Remote host closed the connection]
14:36
<
edwin >
ocamlfind: Error from package `postgresql': This library requires multi-threading support
14:36
<
edwin >
not from toplevel
14:37
<
mehdid >
hum… I guess I should check
_how_ it was fixed :)
14:37
<
mehdid >
maybe later
14:37
<
edwin >
+error(-mt)="This library requires multi-threading support"
14:37
* edwin
not a META-file expert
14:37
<
flux >
solistic, just stick the stuff in your ~/.ocalminit and stop worrying ;)
14:38
<
edwin >
mehdid: maybe its an ocamlfind problem then? #require and topfind are ocamlfind toplevel commands, aren't they?
14:38
<
solistic >
fyi: my version is 1.12.5-1
14:39
<
solistic >
flux: Ah, can put default command for ocaml in there, right? very nice....
14:40
<
flux >
edwin, well, it is a problem ocamlfind provides a solution for, but apparently there is a flaw in the solution :)
14:47
<
solistic >
I guess an alias for 'ledit -h ~/.ocamlhst -x ocaml' is a good idea, or is there some other toplevel worth looking at?
14:48
<
flux >
well, there is enhtop and then lwt apparently comes with one as well..
14:48
<
flux >
but I've just used rlwrap (basically the same as ledit)
14:49
sebz has joined #ocaml
14:49
<
solistic >
ok, i'll google them up
14:50
Julien_Tz has joined #ocaml
14:50
Julien_Tz is now known as Julien_T
15:12
<
solistic >
I'm just puzzled why I'd use 'let _ = print_string "foo";;' istead of just 'print_string "foo";;'
15:12
<
solistic >
Is this just a matter of taste, or are the practical reasons?
15:12
<
thelema_ >
solistic: best: 'let () = print_string "foo";;'
15:13
<
thelema_ >
for complex programs: `let main () = ... \n let () = main ()`
15:14
<
thelema_ >
also, ;; is better omitted outside the toplevel
15:14
<
solistic >
thelema_: ok, I just make sure that main returns unit, right?
15:15
<
solistic >
ok, I'll stick to that, thx
15:18
ankit9 has quit [Quit: Leaving]
15:33
sebz has quit [Quit: Computer has gone to sleep.]
15:54
joewilliams_away is now known as joewilliams
16:05
eikke has quit [Ping timeout: 252 seconds]
16:14
ftrvxmtrx has quit [Quit: This computer has gone to sleep]
16:39
ulfdoz has joined #ocaml
17:03
ftrvxmtrx has joined #ocaml
17:07
othiym23 has joined #ocaml
17:09
avsm has quit [Quit: Leaving.]
17:18
alfa_y_omega has quit [Ping timeout: 240 seconds]
17:20
bobry1 has quit [Ping timeout: 276 seconds]
17:22
alfa_y_omega has joined #ocaml
17:24
ikaros has quit [Quit: Ex-Chat]
17:25
ikaros has joined #ocaml
17:45
thomasga has quit [Quit: Leaving.]
17:48
solistic has quit [Quit: leaving]
17:48
munga has quit [Ping timeout: 240 seconds]
18:00
alfa_y_omega has quit [Ping timeout: 260 seconds]
18:03
alfa_y_omega has joined #ocaml
18:13
solistic has joined #ocaml
18:17
eikke has joined #ocaml
18:23
eikke has quit [Ping timeout: 240 seconds]
18:37
<
hcarty >
solistic: If you are using GODI, it is worth getting Lwt + all of its optional dependencies working in order to have Lwt's custom toplevel
18:47
lopex has joined #ocaml
18:51
_andre has quit [Quit: leaving]
18:51
<
solistic >
hcarty: I insstalled godi, I,ll check that out tommorow, gtg
18:51
solistic has quit [Quit: leaving]
19:06
eikke has joined #ocaml
19:14
avsm has joined #ocaml
19:29
eikke has quit [Ping timeout: 240 seconds]
19:31
* thelema_
gives up and uses batCache
19:32
zorun has joined #ocaml
19:59
impy has quit [Quit: impy]
19:59
impy has joined #ocaml
20:04
ulfdoz has quit [Ping timeout: 258 seconds]
20:24
ftrvxmtrx has quit [Read error: Connection reset by peer]
20:24
ftrvxmtrx has joined #ocaml
20:24
thomasga has joined #ocaml
20:25
thomasga has quit [Client Quit]
20:32
jamii has joined #ocaml
20:49
emmanuelux has joined #ocaml
20:59
zorun has quit [Quit: leaving]
21:12
edwin has quit [Remote host closed the connection]
21:15
eb4890 has joined #ocaml
21:22
fraggle_laptop has quit [Ping timeout: 276 seconds]
21:29
sepp2k has joined #ocaml
21:32
bobry has quit [Ping timeout: 252 seconds]
21:36
jamii has quit [Ping timeout: 240 seconds]
21:47
bobry has joined #ocaml
21:47
ikaros has quit [Quit: Ex-Chat]
21:47
ztfw has quit [Remote host closed the connection]
21:48
wagle has quit [Ping timeout: 276 seconds]
21:51
wagle has joined #ocaml
22:02
eb4890 has quit [Ping timeout: 255 seconds]
22:15
avsm has quit [Quit: Leaving.]
22:18
lamawithonel__ has quit [Read error: Connection reset by peer]
22:18
lamawithonel__ has joined #ocaml
22:50
iratsu has quit [Read error: Connection reset by peer]
23:03
Julien_T has quit [Ping timeout: 252 seconds]
23:20
emmanuelux has quit [Read error: Connection reset by peer]
23:24
sebz has joined #ocaml
23:25
emmanuelux has joined #ocaml
23:27
rixed has quit [*.net *.split]
23:33
rixed has joined #ocaml
23:34
munga has joined #ocaml
23:36
ogd has joined #ocaml
23:37
othiym23 has quit [Read error: Connection reset by peer]
23:38
othiym23 has joined #ocaml
23:39
ogd has quit [Read error: Connection reset by peer]
23:41
ogd has joined #ocaml
23:41
othiym23 has quit [Read error: Connection reset by peer]
23:41
ogd has quit [Client Quit]
23:42
othiym23 has joined #ocaml
23:45
othiym23 has quit [Read error: Connection reset by peer]
23:49
othiym23 has joined #ocaml