00:14
malc has quit [Read error: 110 (Connection timed out)]
00:50
Yurik has joined #ocaml
00:51
<
Yurik >
guys, can you explain what is 32 signal SIGRTMIN?
00:52
<
Yurik >
i got it in caml program :-\
00:56
graydon has left #ocaml []
01:04
Yurik has quit ["÷ÙÛÅÌ ÉÚ XChat"]
01:36
skylan has quit [Connection reset by peer]
01:40
Yurik has joined #ocaml
01:41
graydon has joined #ocaml
01:43
<
Yurik >
did you see my message about SIGRTMIN?
01:45
<
Yurik >
i'm really surprised a lot w/ it... it is fucking weird!
01:46
<
Yurik >
especially having it in caml program
01:46
<
whee >
what's that signal for
01:47
<
Yurik >
as i understand, it is user-defined
01:47
<
Yurik >
async singal
01:47
<
Yurik >
async signal
01:48
<
whee >
never even heard of it
01:48
<
whee >
can't find docs on it either
01:48
<
whee >
you're using linux I take it?
01:48
Yurik_ has joined #ocaml
01:49
<
Yurik_ >
in gdb i can see:
01:49
<
whee >
are you using linux?
01:51
mattam has quit ["leaving"]
01:51
Yurik__ has joined #ocaml
01:51
<
Yurik__ >
fucking connection :(
01:52
<
Yurik__ >
did you see cut from gdb?
01:52
<
Yurik__ >
Program received signal SIG32, Real-time event 32.
01:52
<
Yurik__ >
0x4010fd89 in sigsuspend () from /lib/libc.so.6
01:52
<
Yurik__ >
#1 0x400c3d87 in pthread_getconcurrency () from /lib/libpthread.so.0
01:52
<
Yurik__ >
#2 0x400c3599 in pthread_create () from /lib/libpthread.so.0
01:52
<
Yurik__ >
#3 0x810fc64 in caml_thread_initialize ()
01:52
<
Yurik__ >
#4 0x80e4664 in Thread__entry ()
01:52
<
Yurik__ >
#5 0x7 in ?? ()
01:53
<
Yurik__ >
#6 0x830818ee in ?? ()
01:53
<
Yurik__ >
Cannot access memory at address 0x40a1c189
01:53
<
Yurik__ >
yep, linux
01:54
<
Yurik__ >
i've spent few hours already and got no idea too
01:54
<
whee >
I don't think it's a caml problem
01:54
<
Yurik__ >
i don't think too... but it is really werid
01:54
<
Yurik__ >
i don't think too... but it is really weird
01:55
<
Yurik__ >
i've done even no real changes to program and it started doing so
01:55
<
Yurik__ >
and can't get it back :-\
01:56
<
Yurik__ >
and i have quite similar program (based on the same caml class) that works perfectly
01:56
<
Yurik__ >
(both of them use Ensemble)
01:58
<
Yurik__ >
what is a level of concurrency in terms of threads?
02:00
<
Yurik__ >
may be this will help
02:00
* Yurik__
is reading info libc
02:01
* Yurik__
is rollbacking to very original version.. :-(
02:01
Yurik__ has quit ["÷ÙÛÅÌ ÉÚ XChat"]
02:09
Yurik_ has quit [Read error: 110 (Connection timed out)]
02:15
Yurik has quit [Read error: 110 (Connection timed out)]
03:05
skylan has joined #ocaml
03:53
graydon has quit [Remote closed the connection]
03:58
graydon has joined #ocaml
05:37
TimFreeman has joined #ocaml
05:39
TimFreeman has left #ocaml []
06:03
gl has joined #ocaml
06:09
gl has quit [forward.freenode.net irc.freenode.net]
06:09
BeJiTo has quit [forward.freenode.net irc.freenode.net]
06:09
graydon has quit [forward.freenode.net irc.freenode.net]
06:09
nkoza has quit [forward.freenode.net irc.freenode.net]
06:09
whee has quit [forward.freenode.net irc.freenode.net]
06:09
xtrm has quit [forward.freenode.net irc.freenode.net]
06:09
smkl has quit [forward.freenode.net irc.freenode.net]
06:09
skylan has quit [forward.freenode.net irc.freenode.net]
06:09
SoreEel has quit [forward.freenode.net irc.freenode.net]
06:09
Segora has quit [forward.freenode.net irc.freenode.net]
06:09
emu has quit [forward.freenode.net irc.freenode.net]
06:09
Torquemada has quit [forward.freenode.net irc.freenode.net]
06:10
gl has joined #ocaml
06:10
graydon has joined #ocaml
06:10
skylan has joined #ocaml
06:10
BeJiTo has joined #ocaml
06:10
nkoza has joined #ocaml
06:10
SoreEel has joined #ocaml
06:10
xtrm has joined #ocaml
06:10
whee has joined #ocaml
06:10
smkl has joined #ocaml
06:10
Torquemada has joined #ocaml
06:10
emu has joined #ocaml
06:10
Segora has joined #ocaml
06:22
* gl
is away: I'm busy
07:26
gl has quit [Read error: 54 (Connection reset by peer)]
07:27
gl has joined #ocaml
07:47
mattam has joined #ocaml
08:23
graydon has left #ocaml []
09:39
karryall has joined #ocaml
10:14
mrvn has joined #ocaml
10:35
mrvn_ has quit [Read error: 110 (Connection timed out)]
11:32
BeJiTo has quit [Read error: 54 (Connection reset by peer)]
11:38
BeJiTo has joined #ocaml
11:47
lam__ has joined #ocaml
11:47
lam_ has quit [Read error: 104 (Connection reset by peer)]
12:03
TachYon25 has joined #ocaml
12:24
ayrnieu has joined #ocaml
12:25
lam__ has left #ocaml []
12:25
lam has joined #ocaml
12:33
smoke has joined #ocaml
12:38
__DL__ has joined #ocaml
12:38
__DL__ has left #ocaml []
13:12
BeJiTo has quit [Read error: 104 (Connection reset by peer)]
13:17
BeJiTo has joined #ocaml
13:23
lament has joined #ocaml
13:27
TachYon25 has quit ["bez ki³y nie ma zaliczenia (z prawd studentek AM)"]
13:46
aps has left #ocaml []
13:48
aps has joined #ocaml
13:57
TachYon25 has joined #ocaml
15:12
TachYon25 has quit ["bez ki³y nie ma zaliczenia (z prawd studentek AM)"]
15:43
graydon has joined #ocaml
16:14
lament has quit ["mental mantle"]
16:26
emu has quit [Remote closed the connection]
16:29
emu has joined #ocaml
16:41
zack has joined #ocaml
17:19
lament has joined #ocaml
18:15
systems has joined #ocaml
18:28
zack has left #ocaml []
18:41
karryall has quit []
18:50
TachYon25 has joined #ocaml
18:56
gl has quit [Read error: 104 (Connection reset by peer)]
18:57
gl has joined #ocaml
18:59
systems has left #ocaml []
19:13
graydon has quit [Read error: 110 (Connection timed out)]
19:24
TachYon25 has quit [Remote closed the connection]
20:14
BeJiTo has quit [Read error: 104 (Connection reset by peer)]
20:33
graydon has joined #ocaml
21:05
gl has quit [Connection timed out]
21:12
TachYon25 has joined #ocaml
21:24
ayrnieu has quit ["ERC v2.93 $Revision: 1.308 $ (IRC client for Emacs)"]
21:24
karryall has joined #ocaml
21:39
TachYon25 has quit ["bez ki³y nie ma zaliczenia (z prawd studentek AM)"]
21:44
gl has joined #ocaml
21:46
malc has joined #ocaml
21:57
<
mattam >
someone here tried lablgtkmathview ?
22:16
malc has quit [Read error: 110 (Connection timed out)]
22:51
uzdav has joined #ocaml
23:02
docelic has joined #ocaml
23:03
<
uzdav >
Hi everyone. I'm new to ocaml and am wondering if someone can explain something about modules.
23:04
<
uzdav >
Why doesn't this work? module Foo = struct
23:04
<
uzdav >
let create = 5
23:04
<
uzdav >
let f x = x
23:04
<
uzdav >
let bar = Foo.create
23:04
<
uzdav >
I get the following message:
23:04
<
uzdav >
File "test.ml", line 6, characters 10-20:
23:04
<
uzdav >
This expression is not a function, it cannot be applied
23:05
<
uzdav >
anyone there?
23:09
<
karryall >
you should either use ;;
23:10
<
karryall >
let bar = Foo.create ;;
23:10
<
karryall >
Foo.f bar ;;
23:10
<
karryall >
or use antoher let ...
23:10
<
karryall >
let _ = Foo.f bar
23:13
lament has quit ["mental mantle"]
23:15
gl has quit ["remember the girl, abused with forks, knives and razor blades!"]
23:16
<
uzdav >
thanks karryall, I tried w/ 1 semicolon, but I thought 2 were only needed in a toplevel, not in ocamlc. What's the difference?
23:17
* SoreEel
prefers the revised syntax
23:19
<
uzdav >
what would that be?
23:22
<
SoreEel >
I find the old syntax an aesthetic curmudgeon.
23:24
<
uzdav >
I presume this new syntax must be enabled somehow. Or is it a preprocessor? Just running ocamlc, it rejects "value x = 23;"
23:26
<
karryall >
uzdav: about the double-semicolon ...
23:26
<
karryall >
it's for compatibility with the toplevel
23:27
<
karryall >
in a module, you can't have expressions just like that
23:27
<
karryall >
they have to be in a let binding
23:28
<
uzdav >
ok, thanks.
23:28
<
uzdav >
... but not like this:
23:28
<
uzdav >
let bar = Foo.create in
23:28
<
uzdav >
Foo.f bar;;
23:28
<
uzdav >
I get a syntax error.
23:29
<
uzdav >
(I really like ocaml so far but the error messages are very terse.)
23:29
<
SoreEel >
What's the offending code?
23:29
<
uzdav >
module Foo = struct
23:29
<
uzdav >
let create = 5
23:29
<
uzdav >
let f x = x
23:29
<
uzdav >
let bar = Foo.create in
23:29
<
uzdav >
Foo.f bar;;
23:30
<
uzdav >
ocamlc test.ml
23:30
<
uzdav >
File "test.ml", line 6, characters 21-23:
23:30
<
uzdav >
Syntax error
23:30
<
karryall >
you can't have let .. in at toplevel
23:30
<
karryall >
let bar = Foo.create
23:30
<
karryall >
let foo = Foo.f bar
23:31
<
karryall >
let and let .. in are different
23:31
<
uzdav >
local vs global binding, right?
23:31
<
karryall >
that's one the things the revised syntax modifies
23:32
<
uzdav >
is that the only difference?
23:33
<
karryall >
hum, they do not appear at the same level
23:33
<
karryall >
a let .. in is an expression
23:34
<
karryall >
whereas a let is a structure element (part of a module)
23:35
<
uzdav >
Maybe I'm missing something, but why is the expression 5 valid at a toplevel, if a let..in is disallowed?
23:35
TachYon25 has joined #ocaml
23:36
<
karryall >
you mean the toplevel (the program) ?
23:36
<
karryall >
expr ;; is equivalent to let _ = expr
23:38
<
uzdav >
Aha! So the let...in does work when followed by ;;
23:38
<
uzdav >
I think I get it now. Thanks
23:38
<
uzdav >
Another question... I think the answer is "no".
23:39
<
uzdav >
Is there anything similar to scheme/lisp's "eval" functionality to run code dynamically?
23:40
<
uzdav >
Are there are ocaml interpreters written in ocaml? That might be a solution.
23:41
taw has joined #ocaml
23:41
<
karryall >
(never used it)
23:42
<
uzdav >
interesting. I'm looking at ocaml for its speed, coming from scheme.
23:43
<
SoreEel >
OCaml seems well suited for those sorts of tasks.
23:43
<
uzdav >
I'm looking at genetic algorithms, and while scheme is great, it's too slow for what I want to do.
23:43
<
taw >
i have problem with ocamlyacc - i want it to return foo_t list, how can i force it to include "open Foo" in .mli file ?
23:44
<
taw >
stuff in opening section doesn't get copied to .mli only to .ml
23:46
docelic has quit ["Client Exiting"]
23:47
gl has joined #ocaml
23:50
<
uzdav >
The documentation I have on ocamlyacc says that "the header is only visible by the rules and not by the declarations. In particular, this implies that module openings (open) are not taken into consideration in the declaration part and the types must therefore be fully qualified."
23:53
mattam has quit ["leaving"]
23:55
<
uzdav >
Maybe there's a switch to change that behavior, I don't know. I've never used it.
23:55
<
taw >
ok, i came around that
23:57
TachYon25 has quit ["bez ki³y nie ma zaliczenia (z prawd studentek AM)"]