00:03
jeremiah has joined #ocaml
00:07
diakopte1 is now known as diakopter
00:09
vpalle_ has quit [Read error: 113 (No route to host)]
00:56
seafood_ has joined #ocaml
01:05
buluca has joined #ocaml
01:36
seafood_ has quit []
01:37
seafood_ has joined #ocaml
01:38
seafood_ has quit [Client Quit]
01:39
darinm has joined #ocaml
01:44
smimou has quit ["bli"]
01:57
psnively has quit []
02:17
univac has quit [Read error: 104 (Connection reset by peer)]
02:19
yminsky has joined #ocaml
02:19
univac has joined #ocaml
02:23
robozni has joined #ocaml
02:51
yminsky has quit []
02:56
seafood_ has joined #ocaml
03:13
buluca has quit [Read error: 113 (No route to host)]
03:47
pango_ has quit [Remote closed the connection]
03:50
pango_ has joined #ocaml
04:03
Abo-Marwan has quit [Remote closed the connection]
04:03
screwt8 has quit [Remote closed the connection]
04:22
seafood_ has quit []
04:26
Abo-Marwan68 has joined #ocaml
04:28
screwt889 has joined #ocaml
05:32
seafood_ has joined #ocaml
06:31
sgnb has left #ocaml []
06:38
joshcryer has quit [Connection timed out]
06:45
piggybox_ has joined #ocaml
06:51
univac has quit [zelazny.freenode.net irc.freenode.net]
06:53
unfo-ninja is now known as unfo-
06:55
univac has joined #ocaml
06:58
joshcryer has joined #ocaml
08:02
piggybox has quit [Connection timed out]
08:10
ygrek has joined #ocaml
08:20
asmanur has joined #ocaml
08:26
salierix has joined #ocaml
08:48
seafood_ has quit []
08:59
filp has joined #ocaml
09:21
seafood_ has joined #ocaml
09:21
asmanur has quit [Read error: 110 (Connection timed out)]
09:25
asmanur has joined #ocaml
10:21
LeCamarade has joined #ocaml
10:29
l_a_m has quit [Remote closed the connection]
10:29
TaXules has quit [Remote closed the connection]
10:29
TaXules has joined #ocaml
11:01
lde`` has joined #ocaml
11:15
Yoric[DT] has joined #ocaml
11:17
lde` has quit [Read error: 110 (Connection timed out)]
11:25
<
salierix >
Morning again.
11:30
<
Yoric[DT] >
How do you do ?
11:34
seafood_ has quit []
11:50
piggybox has joined #ocaml
11:54
jlouis has joined #ocaml
11:59
buluca has joined #ocaml
12:07
jlouis_ has quit [Read error: 110 (Connection timed out)]
12:08
piggybox_ has quit [Connection timed out]
12:14
yminsky has joined #ocaml
12:18
yminsky has quit [Client Quit]
12:54
vpalle_ has joined #ocaml
13:06
filp has quit ["Bye"]
13:09
filp has joined #ocaml
13:11
buluca has quit [Read error: 113 (No route to host)]
13:23
<
salierix >
How do I make an int32?
13:30
piggybox has quit [Connection timed out]
13:35
bluestorm_ has joined #ocaml
13:36
<
Yoric[DT] >
salierix: suffix your integer with "l".
13:36
<
Yoric[DT] >
- : int32 = 3l
13:37
<
Yoric[DT] >
A pleasure.
13:43
vpalle_ has quit ["Leaving"]
13:46
love-pingoo has joined #ocaml
13:50
fasta has joined #ocaml
14:01
xavierbot has joined #ocaml
14:01
<
rwmjones >
salierix, the above is good for int32 constants. Also there are functions in the Int32 module for making them from other types, eg:
14:02
<
rwmjones >
Int32.of_string "3";;
14:02
<
xavierbot >
- : int32 = 3l
14:02
<
rwmjones >
Int32.of_int 3;;
14:02
<
xavierbot >
- : int32 = 3l
14:02
<
rwmjones >
Int32.of_float 3.0;;
14:02
<
xavierbot >
- : int32 = 3l
14:02
<
LeCamarade >
O! xavierbot works?
14:02
<
rwmjones >
oh yeah, when I start him up
14:02
<
LeCamarade >
rwmjones: You are running the bot, if I may ask?
14:03
<
LeCamarade >
He evals?????
14:03
<
rwmjones >
LeCamarade, yes
14:03
<
LeCamarade >
Mon Dieu!
14:04
<
LeCamarade >
rwmjones: Seen lambdabot of #haskell?
14:04
<
LeCamarade >
I guess you threw my stinky sources out and started anew, no?
14:04
<
rwmjones >
yeah, I mention you on the web page though ...
14:04
<
LeCamarade >
She's on drugs. She's got plugins and all. She's a fine bot.
14:05
<
LeCamarade >
Almost as good as xavierbot. ;o)
14:05
<
LeCamarade >
Wow. So the bot didn't die. Phew. I'm quitting my job on Friday, and that was one of the things I wanted finished. I'm glad 'tis done. Do you fork a new process for every eval?
14:11
<
rwmjones >
LeCamarade, no, because it's more useful to keep around existing variables & functions
14:11
<
rwmjones >
let x = 1 ;;
14:11
<
rwmjones >
x + x ;;
14:12
xavierbot has quit [Remote closed the connection]
14:12
xavierbot has joined #ocaml
14:12
<
rwmjones >
what on earth is going o with my network connection
14:12
<
rwmjones >
let x = 1 ;;
14:12
<
xavierbot >
val x : int = 1
14:13
<
rwmjones >
x + x ;;
14:13
<
xavierbot >
- : int = 2
14:14
<
LeCamarade >
rwmjones: Okay ... what's the Perl for? :o\
14:14
<
bluestorm_ >
LeCamarade: IRC lib
14:15
<
LeCamarade >
Oh. I had been hacking on an IRC lib for OCaml when I thought I'd be doing this. To parse the messages and so on.
14:15
<
bluestorm_ >
re-using an existing lib is a good idea
14:16
<
rwmjones >
perl just has much better support for irc
14:16
<
rwmjones >
and "doing IRC" is separate from evaling ocaml phrases anyway
14:16
l_a_m has joined #ocaml
14:17
<
LeCamarade >
Yeah. True.
14:17
<
Yoric[DT] >
Is there any Windows user around here to whom I could ask a favor ?
14:18
<
LeCamarade >
Yoric[DT]: I have Windows running, but no OCaml. If that matters.
14:18
<
Yoric[DT] >
No, it doesn't matter.
14:18
<
Yoric[DT] >
I just need a file decompressed.
14:18
<
LeCamarade >
Shoot.
14:18
<
Yoric[DT] >
Let me give you the URL.
14:18
<
LeCamarade >
With WinZip?
14:18
<
Yoric[DT] >
No, it's an exe.
14:19
<
Yoric[DT] >
I can't decompress it under Wine.
14:19
<
rwmjones >
Yoric[DT], have you tried cabextract?
14:19
<
Yoric[DT] >
I can try.
14:19
<
Yoric[DT] >
Hey, it works.
14:19
<
Yoric[DT] >
Thanks :)
14:19
<
Yoric[DT] >
mmmhhh....
14:19
* LeCamarade
goes to apt-get install cabextract
14:19
<
Yoric[DT] >
Now, the next question is: how do I decompress a .msp ?
14:20
<
Yoric[DT] >
cabextract again :)
14:20
<
LeCamarade >
I have it, actually.
14:20
<
rwmjones >
what sort of file is it?
14:20
<
rwmjones >
LeCamarade, you probably have cabextract if you ever installed the M$ web fonts
14:20
<
rwmjones >
they are .exe's compressed the same way
14:20
<
LeCamarade >
Yeah. I have it. Installed them.
14:21
<
Yoric[DT] >
Well, all that to find out that there is no documentation in that .exe .
14:22
<
LeCamarade >
Raise your hand if you wish OCaml assigned evaluations to `it', like all MLs.
14:22
<
unfo- >
Yoric[DT], it installs 3 dlls and one slup.exe into Program files :)
14:22
* Yoric[DT]
raises hand.
14:22
<
Yoric[DT] >
unfo-: yeah, I've just seen that.
14:22
<
rwmjones >
probably ... only in the toplevel though?
14:22
* LeCamarade
counts. One ...
14:22
<
Yoric[DT] >
unfo-: so where the heck is the documentation ?
14:22
<
bluestorm_ >
LeCamarade: 'it' ?
14:23
<
unfo- >
Yoric[DT], should there be documentation with the install package? I would guess on Microsoft.com / MSDN
14:23
<
bluestorm_ >
unit ?
14:23
<
Yoric[DT] >
unfo-: looking for it.
14:23
<
LeCamarade >
bluestorm_: Yes. Like ML and Haskell, et al.
14:23
<
Yoric[DT] >
unfo-: that is, I have been looking for it for about 1h.
14:23
<
xavierbot >
- : int = 23
14:23
* Yoric[DT]
has often wondered why there was no "it" in the toplevel.
14:23
<
bluestorm_ >
what would it give otherwise ?
14:24
<
unfo- >
Yoric[DT], you want to program with it or wha?
14:24
<
LeCamarade >
So, instead of saying - : int = 23, it would be it : int = 23, and you can refer to it later.
14:24
<
Yoric[DT] >
unfo-: no, I'm just trying to understand the security model.
14:24
<
unfo- >
Yoric[DT], ah k
14:24
<
Yoric[DT] >
I'm writing a blog entry about the security of Air, Prism and Silverlight.
14:24
<
Yoric[DT] >
The first two are documented.
14:24
<
Yoric[DT] >
The last one... not so much.
14:24
<
LeCamarade >
bluestorm_: The toplevel should have it, so that no evals are wasted. If you need the previous eval, you just say `it'.
14:24
<
unfo- >
Security through Obscurity <3
14:25
<
bluestorm_ >
LeCamarade: is "it" a value ?
14:25
<
bluestorm_ >
orelse we could have an #it instruction "send the same phrase again", but i don't really see the use for it
14:25
<
bluestorm_ >
and if it's a value, how would you type it ?
14:26
<
bluestorm_ >
'__a ? :-'
14:27
<
LeCamarade >
it would give you what the last statement was. It can be nifty.
14:27
piggybox has joined #ocaml
14:27
<
LeCamarade >
(+) 2 3 ;;
14:27
<
xavierbot >
- : int = 5
14:28
<
LeCamarade >
rwmjones: Wow. Thanks for the toplevel. Now explaining stuff should get orders easier! :o)
14:28
<
LeCamarade >
I wish xavierbot kept karma points. I'd mod you up a bit. :o)
14:29
<
LeCamarade >
xavierbot help
14:29
<
xavierbot >
hello LeCamarade, I am xavierbot 0.7, an OCaml toplevel
14:29
<
xavierbot >
expr ;; evaluate expr in toplevel and print result
14:29
<
xavierbot >
help help message
14:29
<
xavierbot >
restart restart the toplevel
14:29
<
xavierbot >
sleep go to sleep
14:29
<
xavierbot >
wake wake me up from sleep
14:30
<
Yoric[DT] >
Well, I'm currently digging blog entries.
14:30
<
Yoric[DT] >
unfo-: iirc, that entry doesn't contain one single word about security.
14:31
<
unfo- >
Yoric[DT], true dat
14:32
<
LeCamarade >
unfo-: `true dat'? Give me your nationality _right now_.
14:33
<
unfo- >
LeCamarade, .fi
14:34
<
LeCamarade >
Hmm. Okay. You are forgiven. Wrong suspect. :o)
14:39
<
LeCamarade >
List.map (fun _ -> "hello") [1; 2; 3; 4];;
14:39
<
xavierbot >
- : string list = ["hello"; "hello"; "hello"; "hello"]
14:40
david_koontz has joined #ocaml
14:40
<
LeCamarade >
let it = lazy(print_endline "Salut, tout le monde.");;
14:40
<
xavierbot >
val it : unit lazy_t = <lazy>
14:40
<
bluestorm_ >
LeCamarade: what were you looking for ?
14:40
<
LeCamarade >
Lazy.force it;;
14:40
<
xavierbot >
Characters 1-11:
14:40
<
xavierbot >
Lazy.force it;;
14:40
<
xavierbot >
^^^^^^^^^^
14:40
<
xavierbot >
Unbound value Lazy.force
14:40
<
LeCamarade >
bluestorm_: Looking for?
14:41
<
bluestorm_ >
nationality
14:41
<
LeCamarade >
Oh. Well, maybe something closer to the Carribean.
14:41
<
LeCamarade >
Or where African Diasporac music is popular.
14:42
<
LeCamarade >
Lazy.force(lazy(23)) ;;
14:42
<
xavierbot >
Characters 1-11:
14:42
<
xavierbot >
Lazy.force(lazy(23)) ;;
14:42
<
xavierbot >
^^^^^^^^^^
14:42
<
xavierbot >
Unbound value Lazy.force
14:42
<
LeCamarade >
The lazy module is removed?
14:42
<
bluestorm_ >
look at the sources :p
14:42
<
LeCamarade >
:o) Yeah.
14:43
<
bluestorm_ >
iirc the security is rather funny
14:43
<
bluestorm_ >
(and clever)
14:50
<
LeCamarade >
Which are the unsafe functions in String?
14:50
<
LeCamarade >
rwmjones: ping
14:50
<
rwmjones >
LeCamarade, pong
14:50
<
LeCamarade >
Which are the unsafe functions in String?
14:51
<
rwmjones >
I was thinking things like String.unsafe_get
14:51
<
LeCamarade >
Oh. And is Lazy unsafe is any way? It be blocked.
14:51
<
LeCamarade >
Lazy.force(lazy(2)) ;;
14:51
<
xavierbot >
Characters 1-11:
14:51
<
xavierbot >
Lazy.force(lazy(2)) ;;
14:51
<
xavierbot >
^^^^^^^^^^
14:51
<
xavierbot >
Unbound value Lazy.force
14:52
<
LeCamarade >
exit ;;
14:52
<
xavierbot >
- : unit = ()
14:52
<
rwmjones >
LeCamarade, the list is inclusive, not exclusive
14:52
<
rwmjones >
and basically anything which I haven't checked by hand isn't included
14:52
tsuyoshi_ is now known as tsuyoshi
14:52
<
rwmjones >
not sure about lazy specifically
14:54
<
bluestorm_ >
just send a patch :)
14:54
<
LeCamarade >
bluestorm_: I'm tied down by the job. Maybe when I quit the job ... :o)
15:11
love-pingoo has quit ["Connection reset by pear"]
15:24
buluca has joined #ocaml
15:35
authentic has quit [Read error: 113 (No route to host)]
15:36
crathman has joined #ocaml
15:40
<
vorago >
Bytecode generated by ocamlc under Linux with unix.cma won't run under mswin?
15:41
<
vorago >
If I compile that .ml file under w32 it generally works and necessary Unix functions are simulated.
15:41
<
vorago >
(Unix.select)
15:41
<
vorago >
By using linux-precompiled bytecode it says it lacks c primitive waitpid()
15:42
<
vorago >
(I don't use getpid there)
15:44
bluestorm_ has quit [Remote closed the connection]
15:45
gunark has quit [Read error: 104 (Connection reset by peer)]
16:11
Tetsuo has joined #ocaml
16:22
<
salierix >
Hm, the small sdlvideo example on the ocamlsdl site is wrong.
16:22
<
salierix >
should be put_pixel_color instead of put_pixel
16:27
buluc1 has joined #ocaml
16:29
LeCamarade has quit ["Home. To the kitten."]
16:30
asmanur has quit [Read error: 110 (Connection timed out)]
16:42
buluca has quit [Read error: 113 (No route to host)]
16:45
asmanur has joined #ocaml
17:12
lde`` is now known as lde
17:17
pango_ has quit [Remote closed the connection]
17:20
buluc1 has quit [Read error: 110 (Connection timed out)]
17:23
buluca has joined #ocaml
17:26
pango_ has joined #ocaml
17:33
filp has quit ["Bye"]
18:25
xavierbot has quit [Read error: 110 (Connection timed out)]
18:38
bluestorm_ has joined #ocaml
19:22
bluestorm_ has quit [Remote closed the connection]
19:32
Jedai has joined #ocaml
19:38
smimou has joined #ocaml
19:49
Torment has quit [Read error: 110 (Connection timed out)]
19:52
salierix has quit ["Leaving"]
20:25
Mr_Awesome has joined #ocaml
20:29
filp has joined #ocaml
20:48
asmanur has quit [Remote closed the connection]
21:02
darinm has joined #ocaml
21:02
darinm has quit [Remote closed the connection]
21:07
rx has quit ["ircN for mIRC"]
21:15
buluca has quit [Read error: 113 (No route to host)]
21:16
fasta has quit ["leaving"]
21:24
rx has joined #ocaml
21:40
piggybox has quit [Connection timed out]
21:49
david_koontz has quit [Success]
22:17
vorago has quit [No route to host]
22:32
tieTYT has joined #ocaml
22:33
<
tieTYT >
would you guys say that ocaml has reasonable tutorials? I found the haskell tutorials to be lacking
22:33
Tetsuo has quit ["Leaving"]
22:33
<
mbishop >
there are quite a few ocaml tutorials
22:33
<
tieTYT >
that doesn't mean they're good
22:34
<
mbishop >
although, the main one is a wiki
22:34
<
tieTYT >
the problem with the haskell one is they often skip many steps in the middle
22:34
<
tieTYT >
that sounds promissing
22:34
<
mbishop >
ocaml-tutorial.org
22:35
tieTYT has left #ocaml []
22:49
vorago has joined #ocaml
23:02
ygrek has quit [Remote closed the connection]
23:18
ita has joined #ocaml
23:33
jonathanv is now known as jonafan
23:40
buluca has joined #ocaml
23:50
bluestorm_ has joined #ocaml