00:10
smimou has quit ["bli"]
00:10
vorago_ has joined #ocaml
00:10
vorago has quit ["leaving"]
00:11
vorago_ is now known as vorago
00:13
psnively has quit []
00:15
piggybox3 is now known as piggybox
00:22
benny has joined #ocaml
00:39
benny_ has quit [Read error: 110 (Connection timed out)]
00:45
malc_ has quit ["leaving"]
01:46
shawn_ has joined #ocaml
01:57
seafoodX has joined #ocaml
02:41
shawn_ has quit ["This computer has gone to sleep"]
02:42
shawn_ has joined #ocaml
03:43
shawn_ has quit [Read error: 113 (No route to host)]
04:04
G has quit ["Kernel Upgrade"]
04:06
joshcryer has quit [Read error: 110 (Connection timed out)]
04:31
joshcryer has joined #ocaml
04:37
G has joined #ocaml
05:05
TFKv2 has joined #ocaml
05:12
bluestorm_ has joined #ocaml
05:22
TFK has quit [Read error: 110 (Connection timed out)]
05:54
pango has quit [Remote closed the connection]
05:55
pango has joined #ocaml
06:15
shawn_ has joined #ocaml
06:31
shawn_ has quit [Connection timed out]
06:31
shawn_ has joined #ocaml
07:01
ygrek has joined #ocaml
07:05
Clintach has joined #ocaml
07:13
smimou has joined #ocaml
07:48
lde has quit [Read error: 110 (Connection timed out)]
07:49
lde has joined #ocaml
07:52
smimou has quit ["bli"]
08:07
seafoodX has quit []
08:25
piggybox3 has joined #ocaml
08:38
piggybox has quit [Read error: 110 (Connection timed out)]
08:54
Alfred_ has joined #ocaml
09:12
mrael has quit [Read error: 110 (Connection timed out)]
09:40
Mr_Awesome has quit ["time to impregnate a moth"]
10:57
<
fremo >
FIFO stack in ocaml...
10:58
<
fremo >
.. I wonder who to do it... Arrays ? ...
10:59
<
fremo >
open Queues :)
11:00
<
rwmjones >
fremo, try two lists back to back, just a sec
11:01
<
fremo >
on to push and the other to pop and fill when pop list empty ?
11:01
<
rwmjones >
actually, OCaml has a Queue module
11:01
<
rwmjones >
but if you want a persistent structure, then the two-lists trick works
11:01
<
fremo >
persistent for marshaling ?
11:02
<
fremo >
what is this trick ? :)
11:02
<
rwmjones >
no persistent as in purely functional
11:03
<
rwmjones >
sorry, I'm sick as a pike today so brain not functioning .. I'll find that web page eventually .....
11:03
<
fremo >
ok, without arrays ?
11:03
<
fremo >
ok, thank you, dont bother, I'll find it
11:04
<
rwmjones >
and go down to:
11:04
<
rwmjones >
"Following is a simple example, taken from Chris Okasaki's excellent and readable PhD thesis, Purely Functional Data Structures ..."
11:04
<
rwmjones >
and continue reading from there
11:05
<
rwmjones >
that's an O(1) (amortised) persistent queue structure
11:23
tty56 has joined #ocaml
11:39
tty56_ has quit [Read error: 110 (Connection timed out)]
12:00
<
rwmjones >
ygrek, yes I think so
12:01
<
ygrek >
no loop-irrelevant code elimination?
12:01
<
rwmjones >
not last time I looked ... I had to do code movement by hand
12:02
_blackdog has joined #ocaml
12:02
<
ygrek >
ok, thanks, it is a little bit surprising..
12:26
tty56 has quit [Read error: 104 (Connection reset by peer)]
12:45
np has joined #ocaml
12:47
_blackdog has quit [Remote closed the connection]
12:49
_blackdog has joined #ocaml
12:51
np has quit ["ChatZilla 0.9.78.1 [Firefox 2.0.0.4/2007051502]"]
13:50
_blackdog has left #ocaml []
14:16
yodafinger_ has joined #ocaml
14:16
yodafinger_ is now known as yodafinger
14:18
Modius has quit [Connection timed out]
14:49
Smerdy has joined #ocaml
15:00
smimou has joined #ocaml
15:05
Smerdyakov has quit [Read error: 110 (Connection timed out)]
15:18
pango has quit [Remote closed the connection]
15:19
slipstream has joined #ocaml
15:25
pango has joined #ocaml
15:39
kelaouchi has quit ["leaving"]
15:40
Smerdy is now known as Smerdyakov
15:43
Alfred_ is now known as Alfred___
15:43
Alfred___ is now known as Alfred____
15:45
ygrek has quit [Remote closed the connection]
15:49
ygrek has joined #ocaml
15:56
kelaouchi has joined #ocaml
15:57
kelaouchi has quit [Client Quit]
15:58
kelaouchi has joined #ocaml
16:02
screwt8 has quit [Read error: 104 (Connection reset by peer)]
16:08
visage has joined #ocaml
16:09
slipstream has quit ["leaving"]
16:11
love-pingoo has joined #ocaml
16:20
screwt8 has joined #ocaml
16:27
Modius has joined #ocaml
16:29
smimram has joined #ocaml
16:32
oxylin has joined #ocaml
16:37
kelaouchi has quit [Client Quit]
16:38
smimou has quit [Read error: 110 (Connection timed out)]
16:41
smimram is now known as smimou
17:12
malc_ has joined #ocaml
17:14
oxylin has quit ["Ex-Chat"]
17:23
love-pingoo has quit ["Connection reset by pear"]
17:39
malc_ has quit ["leaving"]
17:39
kelaouchi has joined #ocaml
17:44
slipstream has joined #ocaml
17:48
Len1 has joined #ocaml
18:06
Mr_Awesome has joined #ocaml
18:10
descender has quit ["Elegance has the disadvantage that hard work is needed to achieve it and a good education to appreciate it. - E. W. Dijkstra"]
18:25
yodafinger has quit [Read error: 110 (Connection timed out)]
18:48
kelaouchi has quit [Client Quit]
18:58
qwwqe has joined #ocaml
19:02
piggybox has joined #ocaml
19:07
piggybox3 has quit [Success]
19:19
Submarine has joined #ocaml
19:57
Mr_Awesome has quit ["time to impregnate a moth"]
19:59
<
fremo >
Is it possible to get an exception backtrace in a try with bloc ?
20:11
Mr_Awesome has joined #ocaml
20:30
slipstream has quit [Read error: 104 (Connection reset by peer)]
20:35
malc_ has joined #ocaml
20:53
<
pango >
fremo: not afaik, only on uncaught exceptions
20:53
<
fremo >
ok thanks :)
20:55
love-pingoo has joined #ocaml
21:02
revax has joined #ocaml
21:11
Smerdyakov has quit ["Leaving"]
21:37
Clintach has quit [Read error: 113 (No route to host)]
21:51
psnively has joined #ocaml
22:26
eu-prleu-peupeu has joined #ocaml
22:26
<
eu-prleu-peupeu >
hello
22:42
bohanlon has joined #ocaml
22:43
qwwqe has quit ["Leaving"]
22:43
qwwqe has joined #ocaml
22:45
<
eu-prleu-peupeu >
:)
22:45
<
eu-prleu-peupeu >
are OCaml applications single-threaded ?
22:45
<
psnively >
Not necessarily; there's actually good thread support in the standard libraries.
22:46
<
psnively >
However, you should be aware that the garbage collector is not concurrent.
22:46
<
eu-prleu-peupeu >
hmm i see
22:46
<
psnively >
It's thread-safe, of course, but not concurrent.
22:47
<
eu-prleu-peupeu >
ahh this seems very good
22:47
<
eu-prleu-peupeu >
:)
22:47
<
eu-prleu-peupeu >
is this an extension ?
22:48
<
psnively >
Yes, but the new system is making a valiant effort to track the OCaml mainline aggressively. Indeed, you'll see that the current JoCaml is based on the current OCaml, 3.10.0.
22:49
<
eu-prleu-peupeu >
nice :)
22:50
<
eu-prleu-peupeu >
i read about MetaOCaml
22:50
<
eu-prleu-peupeu >
is it easy ou possible to mix MetaOCaml with JOCaml ?
22:51
<
psnively >
Yes. Someday one hopes that we will see a combined ConCoqMetaJoCamlDuce (to string together the various modified systems I'm familiar with)...
22:51
<
psnively >
Not that I'm aware of.
22:51
<
eu-prleu-peupeu >
very good
22:51
<
eu-prleu-peupeu >
maybe in OCaml 4 :P
22:51
<
eu-prleu-peupeu >
heheh
22:52
<
eu-prleu-peupeu >
im planning on learning OCaml, for 3D demos
22:52
<
eu-prleu-peupeu >
i tried to strip down some executables, so i can reduce their size, but they insist on not running
22:52
<
eu-prleu-peupeu >
it prints out an error that no bytecode was found
22:53
<
psnively >
My inclination would be not to worry about binary size.
22:53
<
eu-prleu-peupeu >
i tried them with the simple "strip" command, and then with UPX, both didn't work
22:53
<
psnively >
In any case, I believe that OCaml is an excellent choice for work in 3D. I presume you're using lablgl?
22:53
<
malc_ >
erm that was for eu-prleu-peupeu
22:54
bohanlon has quit ["ERC Version 5.2 (IRC client for Emacs)"]
22:54
<
psnively >
Oh, how interesting. Thanks, malc_. :-)
22:54
<
malc_ >
hmm... that ML archive is peculiar
22:54
<
malc_ >
Date: NaN-NaN-NaN (NaN:NaN)
22:55
<
eu-prleu-peupeu >
psnively, im using glcaml because of 2.1
22:55
<
eu-prleu-peupeu >
it not that i need it right now
22:55
<
eu-prleu-peupeu >
im only testing, and learning the basic stuff of the language
22:55
<
psnively >
Ah, I see.
22:55
Alfred____ has quit [Read error: 104 (Connection reset by peer)]
22:56
<
eu-prleu-peupeu >
also i liked their stub to the Ocaml Graphic package
22:56
<
eu-prleu-peupeu >
to open a window with a GL context without using any external lib
22:57
<
psnively >
Yes. I wish someone would update labgl, though... I appreciate lablgl's type safety.
22:57
<
eu-prleu-peupeu >
i think it would be a good thing to try and build a 3D 'engine' with these concepts JOCaml introduces
22:57
<
eu-prleu-peupeu >
do you know of any 3D engine in OCaml ?
22:58
<
psnively >
Someone did a Quake-ish engine in OCaml... very simplified thing, IIRC.
22:58
<
eu-prleu-peupeu >
:)
22:59
<
eu-prleu-peupeu >
and their implementation of the vector, with those operators overloaded is quite ugly :/
23:00
<
psnively >
Yes. Well, there's another extension for you: gcaml.
23:00
<
eu-prleu-peupeu >
isn't there a better way to do operator overloading ? like really redefining the '+' and '+.' ?
23:00
bohanlon has joined #ocaml
23:00
qwwqe has quit [Read error: 110 (Connection timed out)]
23:00
<
eu-prleu-peupeu >
i have to go now, its 24h...
23:00
<
eu-prleu-peupeu >
ill look into that
23:01
<
eu-prleu-peupeu >
thanks a lot :)
23:01
<
psnively >
Good luck!
23:01
<
eu-prleu-peupeu >
thanx, ocaml seems very good :)
23:01
<
psnively >
I like it a lot!
23:02
<
eu-prleu-peupeu >
hasta la pasta
23:02
eu-prleu-peupeu has left #ocaml []
23:08
<
Len1 >
hello guys, when you write (f a)::(g b), is f called before g or should I think more functionnal ?
23:10
<
pango >
Len1: either think more functional, or use a construct whose evaluation order is defined in the language
23:11
<
pango >
Len1: like let v = e1 in e2 <= e1 is evaluated before e2
23:11
thorat has joined #ocaml
23:11
<
psnively >
Len1: Try not to care. :-)
23:11
<
Len1 >
psnively: I need to care, that's the point
23:11
<
Len1 >
pango, thanks :)
23:12
<
psnively >
Well, hence "try." But if you can't avoid it, then pango's got the answer.
23:12
<
psnively >
And ask yourself if you could restructure your code to avoid the order-of-evaluation dependency.
23:13
<
Len1 >
the restructure is the best solution but I have less then 11h left to finish my work
23:14
<
psnively >
Ah. Then let is indeed your friend.
23:14
<
Len1 >
yes, simple to write, simple to read
23:15
<
psnively >
And perhaps a refactoring opportunity will arise at some future date... so, note to self. :-)
23:19
kelaouchi has joined #ocaml
23:32
qwwqe has joined #ocaml
23:33
qwwqe_ has joined #ocaml
23:38
thorat has left #ocaml []
23:45
qwwqe has quit [Nick collision from services.]
23:45
qwwqe_ is now known as qwwqe