mfurr changed the topic of #ocaml to: OCaml 3.08.2 available! | Archive of Caml Weekly News: http://sardes.inrialpes.fr/~aschmitt/cwn/ | A free book: http://cristal.inria.fr/~remy/cours/appsem/ | Mailing List: http://caml.inria.fr/bin/wilma/caml-list/ | Cookbook: http://pleac.sourceforge.net/
xol has quit [Connection reset by peer]
malc_ has quit ["leaving"]
cmeme has joined #ocaml
gruevy has joined #ocaml
mattam has quit ["zZz"]
Greylensman has joined #ocaml
cjohnson has joined #ocaml
gruevy has quit ["ERC Version 5.0.1 $Revision: 1.726.2.3 $ (IRC client for Emacs)"]
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
jacobian has quit ["Client exiting"]
cjohnson has quit [Read error: 104 (Connection reset by peer)]
gim_ has joined #ocaml
gim has quit [Read error: 110 (Connection timed out)]
tautologico has quit []
cmeme has quit [Remote closed the connection]
cmeme has joined #ocaml
cmeme has quit [Remote closed the connection]
gim__ has joined #ocaml
cmeme has joined #ocaml
gim_ has quit [Read error: 60 (Operation timed out)]
Greylensman has quit ["Leaving"]
Sonarman has quit ["leaving"]
solarwind has joined #ocaml
humasect has quit [Read error: 54 (Connection reset by peer)]
humasect has joined #ocaml
mlh has quit [Read error: 110 (Connection timed out)]
mattam has joined #ocaml
vezenchio has joined #ocaml
pango__ has quit ["back to work :("]
zzorn has joined #ocaml
zzorn is now known as zzorn_away
smimou has joined #ocaml
__DL__ has joined #ocaml
Msandin has joined #ocaml
Herrchen has joined #ocaml
solarwin1 has joined #ocaml
solarwin1 has quit [Client Quit]
mattam has quit [Remote closed the connection]
mattam has joined #ocaml
solarwind has quit [Read error: 110 (Connection timed out)]
shawn_ has joined #ocaml
Msandin has quit [Read error: 110 (Connection timed out)]
shawn has quit [Read error: 110 (Connection timed out)]
tsume has quit [Read error: 104 (Connection reset by peer)]
tsume has joined #ocaml
Msandin has joined #ocaml
wrunt has joined #ocaml
ejt has joined #ocaml
_fab has quit [Read error: 60 (Operation timed out)]
_JusSx_ has joined #ocaml
_JusSx_ has quit [Client Quit]
_JusSx_ has joined #ocaml
gim__ has quit [Read error: 110 (Connection timed out)]
gim_ has joined #ocaml
_fab has joined #ocaml
ejt has quit [Read error: 110 (Connection timed out)]
<nlv11757_> i have a question; if I do a Int64.to_int on a 64bit system...do i lose precision?
<vincenz> even on a 32 bit system
<vincenz> you don't lose precision
<vincenz> but the range is limited
<nlv11757_> i'd expect if you do Int64.to_int(Int64.max_int) on a 32bit system...you would endup not with 2^63 - 1
<vincenz> no
<vincenz> and not on a 64 bit system
<vincenz> and not for Int32
<nlv11757_> im not following you
<vincenz> cause all data has a header
<vincenz> ona a 32 bit system
<vincenz> Int32.to_int(Int32.max+int) != 2^31-!
<nlv11757_> ok so what do you endup with....
<nlv11757_> undetermined?
<nlv11757_> hardware dependent?
<j_n> i thought the int size was fixed at 31 bits
<mflux> hmm.. my .cmo-files take 176k in total, yet the resulting binary is 724k. is it possible to create smaller binaries?
<mflux> I wonder if that has ocamlrun integrated
<mflux> but even that takes only 100k
solarwind has joined #ocaml
Herrchen has quit ["bye"]
Msandin has quit [Read error: 60 (Operation timed out)]
<nlv11757_> but what i meant was....by doing a Int64.to_int on a 32 bit machine, you are losing something like 31 bits right?
Msandin has joined #ocaml
<vincenz> ints are 31 bits and signed
<vincenz> so max_int = 2^30-1
<vincenz> nlv11757_: yes
<vincenz> nlv11757_: if you don't get qn exception....
<nlv11757_> ah ok, i just want to make sure i dont lose precision without warning.
<nlv11757_> im going to do a to_string instead
<vincenz> it's not precision!!!
<vincenz> stop saying precision
<vincenz> let's say your max_int is 12 and you have 16....so you get some other number or an exception... maybe it's modulo and you get 4...that's not at all 16, that's wrong
<vincenz> precision is when for instance you have 1.111 but can only have 2 digets after the comma
<vincenz> so you lose some precision 1.11
<vincenz> as you're not as near to the number
<vincenz> the term 'precision' does not exist for ints
zzorn_away has quit [Connection timed out]
<Msandin> Tywith now supports function types and types in other modules, woho:)
<nlv11757_> ok, so you dont lose precision, you simply lose the integer you had in mind
<nlv11757_> i apologize for misuing precision lol
<nlv11757_> you do lose precision actually :P because you arent as close to the original integer as you were
<vincenz> it's arbitrary
<vincenz> 5 meters is not an approximaation for 15 meters
<vincenz> 5 meters IS an approximation of 5.5
<vincenz> one with less precision
<nlv11757_> you could argue that 1 is a very bad approximation of 10
<Msandin> heh, arbitary ~= extremly unstable
<nlv11757_> :P
<Msandin> It would in any case be hair splitting and severe abuse of terminology:-)
<nlv11757_> no doubt :P
<Smerdyakov> There are floating point calulations that should yield 12 but give you 16 instead, and we certainly say that that is a loss of precision.
Skal has joined #ocaml
<Msandin> Well, unstable float functions can yield 10e10 where 1 one the correct answer, eg completly nonsense:)
<Smerdyakov> Yup! So we are disagreeing soundly with vincenz. :)
<Msandin> Well, I don't:-P
<Smerdyakov> You do, but you are in denial about it.
<Smerdyakov> Uh oh. I found a spelling error on your web site. You have 10 seconds to correct it before the consequences.
<Msandin> Nah, it's all bout terminology anyhow regardless of technicalities:)
<Msandin> Agh, what???
<Smerdyakov> "dependant"!!
<vincenz> Smerdyakov: you like getting on my nerves don't you :)
<Smerdyakov> I give up. I found two more on the next page I looked at.
<vincenz> Smerdyakov: the topic was that int_capping...that's not precision loss
<Smerdyakov> <vincenz> the term 'precision' does not exist for ints
<vincenz> right
<vincenz> ints as they exist in the type 'int'
<vincenz> you're not removing bottom digits but top digits
<vincenz> that's not precision loss
<Msandin> what web page, where, whose?
<Smerdyakov> But you can cast to float, do calculations, and cast back, and now you are talking about ints.
<vincenz> that was not the topic
<vincenz> the topic was doing Int64 -> int
<vincenz> for large numbers
X-Scale has joined #ocaml
<vincenz> Smerdyakov: you don't like me do you?
X-Scale has left #ocaml []
<Smerdyakov> vincenz, maybe that was the topic, but I interpreted your statement as a general one.
<vincenz> context is everything
<Msandin> Thanks, makes me wonder, should I moot those old pages or update... I'll see, but thanks=)
<vincenz> Smerdyakov: so you don't like me do you? You always rip my statements out of context so you can prove me wrong
<Smerdyakov> vincenz, bye!
<vincenz> heh, bye
<vincenz> l
* vincenz shrugs
<vincenz> Why are strings and char lists not interchangeable?
<vincenz> stronger...why is there not even functions for string <-> char list
<Msandin> Well, because that's an extremly costly implementation... there is a recent caml-list discussion
<Msandin> about it=)
<vincenz> I shall :)
<vincenz> thx
<nlv11757_> ah i stumbled into that myself, being a Haskell programmer and all :P
<vincenz> Msandin: know what date?
<vincenz> ah found it
<vincenz> Msandin: you could still implement it.... at an abstract level and compile it to correct code underneath
<vincenz> with some lowlevel conversion functions only when needed
* vincenz shrugs
<vincenz> that way you could keep the efficient implementation of strings
<vincenz> but still pattern match them as lists of chars
<vincenz> it's all about separation of concerns
<vincenz> type checking something as char list and then using assembly for string underneath shouldn't be too diffictul
<vincenz> ..difficult
<vincenz> just make sure the string is const string or something with no inplace modification and it gets even more efficient
<vincenz> nm..
<vincenz> strings have headers
<vincenz> but either way...string <-> char list should be easy to do
Msandin has quit [Read error: 60 (Operation timed out)]
Gueben has joined #ocaml
Msandin has joined #ocaml
zzorn_away has joined #ocaml
zzorn has joined #ocaml
<vegai> anyone of you checked the modules Equeue and Netclient?
<vegai> they seem like basis for doing something like what Twisted is for Python
<vincenz> where are they at? humps?
<vincenz> vegai: ?
_JusSx__ has joined #ocaml
<vincenz> and netclient is a client not a server
<vegai> yes, but you can do a server yourself with Equeue
<vegai> they're at least on ocaml-programming.de
<vincenz> so why mention netclient?
<vegai> it's based on Equeue
<vincenz> oh!
<vincenz> isn't twisted a level higher than equeue?
<vegai> well, not the lowest level of it :)
<vincenz> true
<vincenz> though there's no http1.1 parser
<vegai> I wish I had the chutzpah to help htem
<vincenz> me too
<vincenz> sockets arent' my thing
pango has joined #ocaml
<vincenz> wdialog looks like twisted tho
<vincenz> the people at ocaml-programming.de got it going on
_JusSx_ has quit [Read error: 110 (Connection timed out)]
CosmicRay has joined #ocaml
Submarine has joined #ocaml
zzorn has quit ["They are coming to take me away, ha ha"]
Snark has joined #ocaml
Snark has quit [Read error: 110 (Connection timed out)]
Snark has joined #ocaml
Msandin has quit [Read error: 60 (Operation timed out)]
Snark has quit [Remote closed the connection]
_JusSx__ has quit ["leaving"]
stef_ has quit [Read error: 54 (Connection reset by peer)]
cognominal has joined #ocaml
mlh has joined #ocaml
zzorn_away has quit ["They are coming to take me away, ha ha"]
Submarine has quit ["Leaving"]
vezenchio has quit ["I live in a yurt on the steppes of Sheepfuckistan. That's why."]
cognominal has quit [Remote closed the connection]
cognominal has joined #ocaml
__DL__ has quit ["Bye Bye"]
Skal has quit [Remote closed the connection]
CosmicRay has quit ["Client exiting"]
gim_ is now known as gim