enthymeme has quit [Quit: rcirc on GNU Emacs 23.1.1]
dark has joined #ocaml
Associat0r has quit [Ping timeout: 265 seconds]
psnively has joined #ocaml
Associat0r has joined #ocaml
boscop has quit [Ping timeout: 246 seconds]
jakedouglas has quit [Quit: Leaving.]
Associat0r has quit [Quit: Associat0r]
Morphous has quit [Ping timeout: 245 seconds]
joewilliams_away is now known as joewilliams
enthymeme has joined #ocaml
psnively has quit [Quit: psnively]
jonathandav has quit [Ping timeout: 276 seconds]
jonathandav has joined #ocaml
M| has quit [Quit: leaving]
M| has joined #ocaml
Morphous has joined #ocaml
M| has quit [Ping timeout: 264 seconds]
joewilliams is now known as joewilliams_away
jakedouglas has joined #ocaml
maskd has quit [Quit: leaving]
M| has joined #ocaml
barismetin has joined #ocaml
barismetin has quit [Changing host]
barismetin has joined #ocaml
drk-sd has joined #ocaml
jeddhaberstro has quit [Quit: jeddhaberstro]
ttamttam has joined #ocaml
barismetin has quit [Remote host closed the connection]
ttamttam has quit [Quit: Leaving.]
barismetin has joined #ocaml
barismetin has quit [Changing host]
barismetin has joined #ocaml
ygrek has joined #ocaml
jsk has joined #ocaml
enthymeme has quit [Quit: rcirc on GNU Emacs 23.1.1]
jakedouglas has quit [Quit: Leaving.]
barismetin has quit [Remote host closed the connection]
komar_ has quit [Ping timeout: 240 seconds]
barismetin has joined #ocaml
barismetin has quit [Changing host]
barismetin has joined #ocaml
barismetin has quit [Remote host closed the connection]
komar_ has joined #ocaml
ttamttam has joined #ocaml
munga_ has joined #ocaml
ttamttam has quit [Quit: Leaving.]
Associat0r has joined #ocaml
barismetin has joined #ocaml
barismetin has quit [Changing host]
barismetin has joined #ocaml
boscop has joined #ocaml
avsm has joined #ocaml
barismetin has quit [Remote host closed the connection]
gildor has quit [Quit: leaving]
gildor has joined #ocaml
munga_ has quit [Ping timeout: 246 seconds]
pikachuyann has joined #ocaml
barismetin has joined #ocaml
barismetin has quit [Changing host]
barismetin has joined #ocaml
ikaros has joined #ocaml
ttamttam has joined #ocaml
barismetin has quit [Quit: Leaving...]
ttamttam has quit [Quit: Leaving.]
sepp2k has joined #ocaml
avsm has quit [Quit: Leaving.]
ygrek has quit [Ping timeout: 245 seconds]
derdon has joined #ocaml
maskd has joined #ocaml
derdon has quit [Read error: Operation timed out]
Narrenschiff has joined #ocaml
f[x] has quit [Ping timeout: 240 seconds]
f[x] has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
jsk has quit [Quit: Leaving.]
krankkatze has joined #ocaml
lvillani has joined #ocaml
jonafan_ has joined #ocaml
krankkatze has quit [Remote host closed the connection]
jonafan has quit [Ping timeout: 245 seconds]
lokydor has joined #ocaml
dmhouse has joined #ocaml
fschwidom has joined #ocaml
munga_ has joined #ocaml
ztfw has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
bzzbzz has joined #ocaml
dmhouse has quit [Read error: Operation timed out]
ygrek has joined #ocaml
lvillani has quit [Quit: Leaving]
<orbitz>
where can I find information on things like the range an int can represent, and what happens on overflow
<Camarade_Tux>
Pervasives' documentation: === Integers are 31 bits wide (or 63 bits on 64-bit processors). All operations are taken modulo 2^{31} (or 2^{63}). They do not fail on overflow. ===
<orbitz>
hrm
<orbitz>
That's good
fschwidom has quit [Remote host closed the connection]
<orbitz>
i'm a bit sadened tehre is no log for Num or Int64
<orbitz>
well i guess it makes sense
<orbitz>
since htose are floa tops
_unK has joined #ocaml
<gildor>
all: hi, forge.ocamlcore.org seems to have DNS issue (as usual every 6 months or so)
<gildor>
anyone can confirm this or I am alone ?
<Camarade_Tux>
working here
<gildor>
(a ticket has been opened into OVH BTS)
<gildor>
Camarade_Tux: you can "dig forge.ocamlcore.org"
<gildor>
?
<gildor>
Camarade_Tux: who's your FAI ?
<Camarade_Tux>
not working on my server in Los Angeles
<Camarade_Tux>
free
<gildor>
DNS propagation issue, quite sure
<gildor>
working at free, not working at orange, not working in Los Angeles
<gildor>
the issue disappear in 2 hours or so, like the last time I think
<gildor>
I hope that I will be able to bash OVH before
Narrenschiff_ has joined #ocaml
Narrenschiff has quit [Ping timeout: 252 seconds]
Narrenschiff_ is now known as Narrenschiff
f[x] has quit [Ping timeout: 268 seconds]
f[x] has joined #ocaml
avsm has joined #ocaml
kriko has joined #ocaml
_unK has quit [Remote host closed the connection]
dmhouse has joined #ocaml
derdon has joined #ocaml
<gildor>
all: DNS of forge.ocamlcore.org is back online
<kriko>
how do I iterate over list elements with ocaml?
<kriko>
e.g. I have [1;2;3]
<gildor>
List.iter
<kriko>
oh, tnx
dmhouse has quit [Ping timeout: 240 seconds]
ztfw has joined #ocaml
lvillani has joined #ocaml
thrasibule has quit [Ping timeout: 252 seconds]
thrasibule has joined #ocaml
<kriko>
if is_inside List.hd hd List.hd tl then []; -> function is inside takes 2 params, how do I fix this if so it stops complaining? :)
<kriko>
I just want to test if the result is [] :)
<orbitz>
kriko: when you ask questions please A) Use an ocaml pastebin (I suggest ideone.com) B) state the error. I amnot a human compiler
<kriko>
sorry, line 38: Error: This expression has type int list -> int list but is here used with type 'a list
<orbitz>
prefer print_endline over your printf's there, they are useless
<orbitz>
kriko: compare lien 16 to line 38
<kriko>
yes, one is a function the other is an if statement
<orbitz>
how many funcitons does skupno take?
<orbitz>
rr
<orbitz>
how many paraemters?
<kriko>
awww
<kriko>
thanks :D
<kriko>
I'm kinda tired, seems like it's getting to me
<orbitz>
then sleep
Submarine has joined #ocaml
<orbitz>
can i 'open' a specific type form a module into my curren tmodule?
maskd- has joined #ocaml
ikaros has joined #ocaml
thrasibule has quit [Ping timeout: 240 seconds]
maskd has quit [Ping timeout: 248 seconds]
<flux>
hmm
<flux>
well, not exactly
<flux>
you can do: type t = Foo.t = A of int | B of string
<flux>
obviously that has its downside..
<flux>
but that brings the constructors to the current scope if that's what you want
lvillani has quit [Quit: Leaving]
maskd- is now known as maskd
lvillani has joined #ocaml
<orbitz>
flux: but i have to redefine teh constructors?
<orbitz>
i can't just do type t = Foo.t
<flux>
sure you can
<flux>
but that doesn't bring the constructors into current scope if that's what you want
<flux>
(it sounded like you ded from the 'open' term)
Submarine has quit [Ping timeout: 276 seconds]
<orbitz>
Yeah, i want the ctor' sin my scope
<orbitz>
oh well, it was just for conveience I can get by without it
Narrenschiff has quit [Quit: Narrenschiff]
thieusoai has joined #ocaml
_unK has joined #ocaml
<flux>
in code that uses them a lot you can possibly use module aliases: module A = AbstractionLayer (or the expression version: let module A = B in .. )
<flux>
or in 3.12-to-be: open AbstractionLayer in expr or AbstractionLayer.(expr)
lvillani has quit [Quit: Leaving]
Submarine has joined #ocaml
lvillani has joined #ocaml
Submarine has quit [Read error: Operation timed out]
f[x] has quit [Ping timeout: 248 seconds]
ttamttam has joined #ocaml
f[x] has joined #ocaml
wormphlegm has joined #ocaml
Submarine has joined #ocaml
<kriko>
is there a way to dump a list into printf, so you can see exact structure? if there are nested lists....
Submarine has quit [Ping timeout: 240 seconds]
<Camarade_Tux>
you can use the toplevel's pretty-printing functionnality for that, you also have other dumpers (ocaml-show from kaustuv, or caml-inspect [ https://forge.ocamlcore.org/projects/caml-inspect/ ] )
<orbitz>
kriko: i generally work in the REPL for awhiel palying with things until i'm comfortable wiht the types then move to making front end apps
<Camarade_Tux>
I have to say I'm wondering if there's anything to dump a big tree to a file (an AST)
<orbitz>
one thing that is nice abotu haskell type classes is "derivign Show"
maattd has quit [Remote host closed the connection]
maattd has joined #ocaml
lokydor has quit [Ping timeout: 276 seconds]
<kriko>
if tl is a list, then "if (tl = [])" or "if (tl == [])" is the same comparison?
<adrien>
you probably want to avoid == for now
<adrien>
# [ 1 ] == [ 1 ];;
<adrien>
- : bool = false
<kriko>
hm
<kriko>
tnx
<derdon>
this shouldn't be a surprise
<adrien>
== means the two elements are the same in memory, here the two lists are different
<adrien>
= compares values
<kriko>
tnx for explanation - clear now
<kriko>
negation of = is != ?
<adrien>
<>
<kriko>
aaaahhh
<adrien>
negation of == is !=
ikaros has quit [Quit: Leave the magic to Houdini]
ikaros has joined #ocaml
catsai has quit []
ikaros has quit [Quit: Leave the magic to Houdini]
ikaros has joined #ocaml
<adrien>
woot, I think I'm going to deprecate/kill ocaml-gir :-)
<kriko>
is it possible to assign a value to global variable from a function, so the change is visible after the fun finishes?
<adrien>
kriko: you can use references for that
<kriko>
ok, will take a look
<kriko>
do you have any sample how to do that?
<adrien>
it's with 'ref': you create an int ref with 'let a = ref 42 in ...', you access the value of the reference with '!a' and you assign to the reference with 'a := 0;'
<kriko>
awesome, works. thanks
<adrien>
:-)
<orbitz>
kriko: it's a bad idea probably thouhg
wormphlegm has quit [Quit: wormphlegm]
<adrien>
yeah, it works but global variables are a great way to create bugs
<adrien>
oops
<adrien>
7zip used to be able to extract the scripts from nsis installers but because of (stupid) complaints, this got removed, last time I checked, uniextract used an older version of 7zip because of that but that may have changed
<adrien>
in any case, an old version of 7zip (check the changelogs to know when that was introduced) will do it
<adrien>
blearg
<adrien>
wrong channel
<adrien>
ah
<adrien>
ok, I *really* should go to bed ;p
derdon has quit [Ping timeout: 248 seconds]
<kriko>
ok I'm in trouble: http://ocaml.pastebin.com/r9hQLGnB - so when tl is not [] presek gives the right result, however when presek is [] I should return last value from that call
<kriko>
I'm not sure how to resolve this
<kriko>
line 18 and line 25
<kriko>
basically on line 25 should be what is on 18 at last recursion
<kriko>
the idea is to get intersect between lists
<orbitz>
what is the point of all tehe []' nd (@) on line 18?
dark has joined #ocaml
<orbitz>
kriko: why don't you take some time to clearly define teh sitautiosn you wan tot handle, write specific functions to handle those situations, and then combine them inot a function that dispatches to each oen properly?
<orbitz>
long functions in a language like ocaml tend ot mean you'ar edoing soemthign wrong in my experience
ikaros has quit [Quit: Leave the magic to Houdini]