pango has quit [Read error: 110 (Connection timed out)]
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
dylan has quit [Read error: 104 (Connection reset by peer)]
dylan has joined #ocaml
PhyukYiu has quit ["fatal disk error"]
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
batdog|gone has quit [Read error: 104 (Connection reset by peer)]
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
Snark has joined #ocaml
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
Submarine has joined #ocaml
ski has quit ["NMI"]
Schmurtz has quit [Read error: 113 (No route to host)]
ski has joined #ocaml
Snark has quit [Read error: 110 (Connection timed out)]
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
Revision17 has quit [Read error: 110 (Connection timed out)]
rillig_ has joined #ocaml
rillig has quit [Read error: 110 (Connection timed out)]
smimou has joined #ocaml
Skal has joined #ocaml
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
rillig_ is now known as rillig
Bigb[a]ng is now known as Bigbang
kryptt has joined #ocaml
kryptt has left #ocaml []
Skal has quit [Remote closed the connection]
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
jo_l_apache has joined #ocaml
mellum has joined #ocaml
descender has joined #ocaml
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
jo_l_apache has quit ["leaving"]
__DL__ has joined #ocaml
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
quamaretto has joined #ocaml
mikeX has joined #ocaml
<mikeX>
how could I get unsigned 32 bit integers in ocaml?
<mellum>
Int32.t
<dylan>
or just int32
<zmdkrbou>
it's signed
<mikeX>
well those seem to be signed
<mikeX>
and I'm interested in shift operations
<zmdkrbou>
you can use Big_int
<mikeX>
Int32.shift_right x y shifts x to the right by y bits. This is an arithmetic shift: the sign bit of x is replicated and inserted in the vacated bits
<mellum>
there's an unsigned shift in the Int32 module
<mikeX>
oh, yeah, found it, thanks zmdkrbou mellum
<mikeX>
actually I want to make a crc32 sum generator, do you know of an existing implementation?
<mikeX>
(in ocaml)
quamaretto has left #ocaml []
jo_l_apache has joined #ocaml
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
Schmurtz has joined #ocaml
Skal has joined #ocaml
mauke has quit [Remote closed the connection]
Bigbang is now known as Bigb[a]ng
mauke has joined #ocaml
TaXules has quit [Remote closed the connection]
jo_l_apache has quit [".ei mi cliva .i co'o"]
TaXules has joined #ocaml
TaXules has quit [Remote closed the connection]
TaXules has joined #ocaml
descender has quit ["XML is like violence, if it doesn't solve the problem, just use more."]
samx has quit ["Leaving"]
Bigb[a]ng is now known as Bigbang
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
tom_p has quit [Read error: 110 (Connection timed out)]
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
jo_l_apache has joined #ocaml
Bigbang is now known as Bigb[a]ng
ski has quit ["NMI"]
ski has joined #ocaml
slipstream-- has joined #ocaml
slipstream has quit [Connection timed out]
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
kral has joined #ocaml
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
jo_l_apache has quit ["bye bye"]
<Schmurtz>
hello, just a remark :
<Schmurtz>
do you know that all we say here is recorded and available on the internet ?
<Schmurtz>
I've just seen it, by searching my nickname on google
<dylan>
I had a rather comical conversation with... vodka
<dylan>
*vodka_goo about that
<zmdkrbou>
about what ?
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
<dylan>
the logs of #ocaml on the internet.
<dylan>
hmm, or maybe it was someone else. I just remember a surreal conversation about future generations watching our every move. XD
<dylan>
http://meme.b9.com/clog/ocaml/05.11.16 <er> for anyone who followed this discussion and is curious, or found a log of this on the web (hello stranger...)
__DL__ has quit [Remote closed the connection]
mauke has quit [Remote closed the connection]
m3ga has joined #ocaml
mauke has joined #ocaml
Bigb[a]ng is now known as Bigbang
<mikeX>
how come there is Sys.max_string|array_length?
<zmdkrbou>
it's because it's system-dependent
<mikeX>
well I meant, how come there's a limit to these things?
<dylan>
Because integers are limited to either 32 or 64 its?
<pango_>
because ocaml runs on computers
<dylan>
pango_: I like your answer better. :)
<mikeX>
stupid me... didn't think of indexing ...
* mikeX
hits his head against the wall
<zmdkrbou>
mikeX: because a system may want to limit possible sizes for string and arrays
<mikeX>
:/
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
KrispyKringle is now known as Wrong_Cabinet_Sa
Wrong_Cabinet_Sa is now known as KrispyKringle
kral has quit [""In girum imus nocte et consumimur igni.""]
m3ga has quit ["disappearing into the sunset"]
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
Schmurtz has quit ["Dodo !"]
<flux__>
isn't the actual limit somewhat less, though?
<flux__>
Sys.max_string_length is only 16 megabytes
<flux__>
it might be bigger with 64 bit environments, though
<flux__>
max array length is actually only 4 mega-elements :-o on my 32-bit host
<dylan>
same
<flux__>
I can actually think there could be software where that limitation could be a problem
<mellum>
well, get a real computer, then.
<flux__>
although I've heard of the string limitation having been encountered too..
<flux__>
mellum, to handle a measly 4 megainteger array I should have a 64-bit host?-)
<flux__>
so, the limit is greater with those then?
<mellum>
flux__: yes.
<mellum>
# Sys.max_string_length;;
<mellum>
- : int = 144115188075855863
<flux__>
I wonder if Bigarrays have that limit either..
Bigbang is now known as Bigb[a]ng
<mikeX>
Big arrays are not limited in size, unlike Caml arrays
<pango_>
they have to; just a higher limit
<flux__>
not limited by ocaml's memory management, then
<mikeX>
hmm, that's what the manual says
<flux__>
so from the pov of ocaml, they are unlimited?-)
<mikeX>
if you believe the manual :P
<flux__>
ocaml does limit instantiating and accessing them, because it requrires to use integer values for those operations..
<mikeX>
yes it appears it's using ints for indexing, creation