keen_ has quit [Read error: Connection reset by peer]
Nijikokun has quit [Ping timeout: 250 seconds]
Nijikokun has joined #ocaml
c74d has joined #ocaml
keen_ has joined #ocaml
n3ss3s has quit [Ping timeout: 252 seconds]
guto has joined #ocaml
guto has left #ocaml [#ocaml]
MrScout has joined #ocaml
manizzle has quit [Ping timeout: 256 seconds]
djellemah_ has joined #ocaml
djellemah has quit [Ping timeout: 256 seconds]
michael_lee has quit [Quit: Ex-Chat]
Denommus has joined #ocaml
lambdahands has quit [Ping timeout: 256 seconds]
l1x has quit [Ping timeout: 256 seconds]
Sorella has quit [Ping timeout: 256 seconds]
lopex has quit [Ping timeout: 256 seconds]
strmpnk has quit [Ping timeout: 256 seconds]
cojy_ has quit [Ping timeout: 256 seconds]
ericbmerritt has quit [Ping timeout: 256 seconds]
eventualbuddha has quit [Ping timeout: 256 seconds]
S11001001 has quit [Ping timeout: 256 seconds]
strmpnk has joined #ocaml
S11001001 has joined #ocaml
ericbmerritt has joined #ocaml
lopex has joined #ocaml
cojy_ has joined #ocaml
lambdahands has joined #ocaml
Sorella has joined #ocaml
welterde has quit [Ping timeout: 256 seconds]
eventualbuddha has joined #ocaml
l1x has joined #ocaml
n3ss3s has joined #ocaml
struktured has joined #ocaml
nojb has quit [Quit: nojb]
ygrek has joined #ocaml
relrod has quit [Ping timeout: 256 seconds]
scythe- has quit [Ping timeout: 256 seconds]
scythe- has joined #ocaml
ldopa has quit [Ping timeout: 245 seconds]
relrod_ has joined #ocaml
struktured has quit [Ping timeout: 264 seconds]
badon has quit [Quit: Leaving]
asQuirreL has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
welterde has joined #ocaml
darkf has joined #ocaml
swgillespie has joined #ocaml
struktured has joined #ocaml
* Drup
invoke rgrinberg
BitPuffin has quit [Ping timeout: 255 seconds]
<dmbaturin>
Drup: Remote rgrinberg invocation?
<Drup>
RRC
<Drup>
Remote Rudi Call.
<dmbaturin>
How do I access ounit test data dir value from outside a test?
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<dmbaturin>
intestdata dir wants test context, but I want to avoid doing the same initialization in every test.
<dmbaturin>
* in_testdata_dir
badon has joined #ocaml
Nijikokun has quit [Ping timeout: 256 seconds]
c74d has quit [Remote host closed the connection]
nullcat_ has joined #ocaml
Nijikokun has joined #ocaml
c74d has joined #ocaml
<n3ss3s>
I think there might be some stats/ML term for this: If I have a bunch of key:value pairs and the values are integers in this case, and I want to determine when a value is significantly higher than the others to the point where I'd like to separate it from the pack, how do I calculate the threshold?
<n3ss3s>
I thought about something like being above some low multiple of the mean count, but that'll become less effective as multiple values start picking up speed
<Drup>
you want to extract outliers ?
<n3ss3s>
that sounds good. Now I feel embarrassed for not just using the method they taught in high school stats.
Guest35172 has quit [Remote host closed the connection]
64MACPAH2 has quit [Ping timeout: 255 seconds]
<xificurC_>
is there a way to destructure a list in let? let hd::tl = [1;2;5;3] in ...
<reynir>
Yes
<Drup>
exactly what you wrote :p
<reynir>
but you can only have one match case, so to speak
<xificurC_>
I'm getting a warning though
<xificurC_>
this pattern matching is not exhaustive
<dmbaturin>
xificurC_: If the list is not known at compile time, it's a way to Match_failure.
<xificurC_>
match l with
<xificurC_>
match l with | [] -> false | _ -> let hd::tl = List.map my_fun l
<xificurC_>
still warns :(
<dmbaturin>
try let x :: xs = ys with Match_failure _ -> [] :)
<xificurC_>
or I could match List.map my_fun l with ...
<ggole>
You can suppress the warning
<Drup>
or you can write correct code
<Drup>
:]
<ggole>
let a, b, ..., n = [<n things>] is perfectly correct
<Drup>
sure
<ggole>
(Usually you want to do something like List.map f [<n things>]
ilia has quit [Remote host closed the connection]
<xificurC_>
1 more question: type card = { rank : int; suit : suit }; now if I have a list of cards and want to get the ranks only, is List.map (fun c -> c.rank) l idiomatic?
<Drup>
yes
<xificurC_>
no shorthand for the function then, ok
<xificurC_>
thanks :)
ilia has joined #ocaml
gabemc has quit [Ping timeout: 255 seconds]
nullcat__ has joined #ocaml
c74d has quit [Read error: Connection reset by peer]
<ilia>
what is used now instead of floating point infinity or min_float of pi/2? utop prints [ `Deprecated_use_float_module ]
nullcat_ has quit [Ping timeout: 245 seconds]
<Drup>
well, it's rather clear: the Float module :D
antkong_ has joined #ocaml
bjorkintosh has joined #ocaml
c74d has joined #ocaml
<ggole>
ilia: that's because of Core
<ilia>
Thanks, am I supposed to install module Float separately?
MercurialAlchemi has quit [Remote host closed the connection]
MercurialAlchemi has joined #ocaml
fedjo has joined #ocaml
ggole_ has joined #ocaml
ggole has quit [Ping timeout: 264 seconds]
ontologiae_ has joined #ocaml
faserbuendel has quit [Quit: I have irrefutable proof that D < 0. It follows trivially from 2D > 3D, which is obviously true.]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ontologiae_ has quit [Ping timeout: 272 seconds]
Haudegen has quit [Ping timeout: 265 seconds]
matason has joined #ocaml
ggole_ is now known as ggole
Haudegen has joined #ocaml
jyc has quit [Ping timeout: 256 seconds]
jyc has joined #ocaml
IbnFirnas has quit [Read error: Connection reset by peer]
IbnFirnas has joined #ocaml
IbnFirnas has joined #ocaml
IbnFirnas has quit [Changing host]
kushal has joined #ocaml
jyc has quit [Ping timeout: 265 seconds]
AlexRussia has joined #ocaml
antkong_ has quit [Quit: antkong_]
jyc has joined #ocaml
avsm has joined #ocaml
ygrek has joined #ocaml
nojb has joined #ocaml
adrien_znc has quit [Remote host closed the connection]
araujo has joined #ocaml
Guest96739 is now known as troleBgone
troleBgone is now known as c-c
oscar_toro has quit [Ping timeout: 256 seconds]
maufred has quit [Ping timeout: 272 seconds]
maufred has joined #ocaml
psy_ has quit [Ping timeout: 256 seconds]
shinnya has joined #ocaml
matason has quit []
matason has joined #ocaml
ollehar has joined #ocaml
troydm has quit [Ping timeout: 264 seconds]
dsheets has quit [Ping timeout: 256 seconds]
lordkryss has joined #ocaml
jyc has quit [Ping timeout: 256 seconds]
kushal has quit [Excess Flood]
jyc has joined #ocaml
Kensan has quit [Remote host closed the connection]
nojb has quit [Quit: nojb]
s1n4 has joined #ocaml
maufred has quit [Ping timeout: 250 seconds]
maufred has joined #ocaml
cdidd_ has joined #ocaml
freling has joined #ocaml
cdidd has quit [Ping timeout: 255 seconds]
cdidd_ is now known as cdidd
S11001001 has quit [Ping timeout: 276 seconds]
S11001001 has joined #ocaml
thomasga has joined #ocaml
dsheets has joined #ocaml
oscar_toro has joined #ocaml
martintrojer has quit [Read error: Connection reset by peer]
martintrojer has joined #ocaml
martintrojer has quit [Max SendQ exceeded]
martintrojer has joined #ocaml
martintrojer has quit [Max SendQ exceeded]
<xificurC_>
I have 1 million combinations I'd need to run through. I'd like to avoid building the whole list and then consuming it. Haskell has lazy lists, python has generators or whatever they call them, is there an idiom here?
<companion_cube>
you need some kind of iterator
martintrojer has joined #ocaml
<xificurC_>
companion_cube: what are my options
martintrojer has quit [Max SendQ exceeded]
<xificurC_>
companion_cube: i see a lib from you called gen
<companion_cube>
yes
<companion_cube>
there is a "combinations" combinator
<dsheets>
ugh who owned ocaml.com and has it always been squatted?
martintrojer has joined #ocaml
Sorella has quit [Quit: Connection closed for inactivity]
<xificurC_>
companion_cube: where :o
<xificurC_>
companion_cube: what is the difference between Gen and GenLabels?
Nijikokun has quit [Ping timeout: 256 seconds]
<companion_cube>
just the fact that one uses labels and the other doesn't
<dmbaturin>
xificurC_: Lazy lists are not hard to make.
kushal has joined #ocaml
dav- has joined #ocaml
<xificurC_>
companion_cube: didn't see I can click on S, don't know the idiom either, thanks. What does intf stand for? Hope you don't mind all the questions
jonludlam has joined #ocaml
<xificurC_>
dmbaturin: I know they're not but I'd rather use something than reinvent
thomasga has quit [Quit: Leaving.]
<companion_cube>
xificurC_: _intf stands for "interface"
<xificurC_>
aaah
<companion_cube>
I think it comes from the Core/Async world, and found it convenient for not duplicating signatures
<companion_cube>
when a module type is large, I put it in Foo_intf, so that both foo.ml and foo.mli can use it with a single "module type S = Foo_intf.S" line
dav has quit [Ping timeout: 256 seconds]
<xificurC_>
so I should use Gen or GenLabels, not Gen_intf. Why having 2 modules, one with labels and one without? Is there a performance difference?
<flux>
no, it's the same. so the question "why have a non-labels module at all?" is probably answered by "backwards compatibility"
darkf has quit [Ping timeout: 276 seconds]
<flux>
the labeled interface may not be completely compatible with non-labeled one in presence of partially applied functions
<xificurC_>
flux: I see, so if I understand correctly there was Gen and when labels were implemented GenLabels was made in order not to break code that already used Gen
<flux>
yes, seems like a plausible explanation to me :)
<xificurC_>
thank you both, I'll shut up now :)
kushal has quit [Ping timeout: 256 seconds]
Guest31053 has joined #ocaml
milosn has quit [Ping timeout: 264 seconds]
Guest31053 has quit [Remote host closed the connection]
kakadu has joined #ocaml
thomasga has joined #ocaml
w0rp has quit [Read error: Connection reset by peer]
w0rp has joined #ocaml
myst|work has quit [Quit: Lost terminal]
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
AltGr has left #ocaml [#ocaml]
avsm has quit [Client Quit]
axiles has quit [Quit: Quitte]
Guest19272 is now known as johnelse
MercurialAlchemi has quit [Ping timeout: 256 seconds]
MercurialAlchemi has joined #ocaml
avsm has joined #ocaml
asQuirreL has joined #ocaml
darkf has joined #ocaml
nullcat__ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
avsm has quit [Quit: Leaving.]
bobry has joined #ocaml
Haudegen has quit [Ping timeout: 250 seconds]
antkong has joined #ocaml
s1n4 has quit [Quit: leaving]
Haudegen has joined #ocaml
antkong has quit [Ping timeout: 265 seconds]
kushal has joined #ocaml
darkf has quit [Ping timeout: 256 seconds]
milosn has joined #ocaml
michael_lee has quit [Quit: Ex-Chat]
asQuirreL has quit [Ping timeout: 264 seconds]
asQuirreL has joined #ocaml
troydm has joined #ocaml
AlexRussia has quit [Ping timeout: 252 seconds]
yomimono has joined #ocaml
milosn_ has joined #ocaml
milosn has quit [Ping timeout: 256 seconds]
milosn_ is now known as milosn
avsm1 has joined #ocaml
avsm1 has quit [Client Quit]
avsm1 has joined #ocaml
freling has quit [Quit: Leaving.]
TheLemonMan has joined #ocaml
BitPuffin has joined #ocaml
_andre has joined #ocaml
thomasga has quit [Quit: Leaving.]
avsm1 has quit [Quit: Leaving.]
darkf has joined #ocaml
asQuirreL has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
darkf has quit [Ping timeout: 256 seconds]
ygrek has quit [Ping timeout: 264 seconds]
fedjo has quit [Ping timeout: 246 seconds]
Haudegen has quit [Ping timeout: 250 seconds]
fraggle-boate has quit [Read error: Connection reset by peer]
milosn has quit [Read error: Connection reset by peer]
luzie has quit [Remote host closed the connection]
luzie has joined #ocaml
<MercurialAlchemi>
schoppenhauer1: sorry, no idea
thomasga has quit [Quit: Leaving.]
Jefffrey has joined #ocaml
mengu has joined #ocaml
sdothum has joined #ocaml
idegen has joined #ocaml
AlexRussia has joined #ocaml
thomasga has joined #ocaml
badkins has joined #ocaml
itPuffinB has joined #ocaml
slash^ has joined #ocaml
mengu has quit [Remote host closed the connection]
mengu has joined #ocaml
Sorella has joined #ocaml
patronus_ has quit [Read error: Connection reset by peer]
patronus has joined #ocaml
mengu has quit [Remote host closed the connection]
WanderingGlitch has quit [Ping timeout: 252 seconds]
badkins_ has joined #ocaml
badkins has quit [Ping timeout: 276 seconds]
wagle has joined #ocaml
wagle_ has quit [Ping timeout: 276 seconds]
WanderingGlitch has joined #ocaml
dav has joined #ocaml
dav- has quit [Ping timeout: 250 seconds]
thomasga has quit [Quit: Leaving.]
kakadu has quit [Quit: Page closed]
mengu has joined #ocaml
thomasga has joined #ocaml
orbitz has quit [Ping timeout: 255 seconds]
badkins_ is now known as badkins
orbitz has joined #ocaml
WanderingGlitch has quit [Ping timeout: 276 seconds]
cago1 has joined #ocaml
cago1 has quit [Client Quit]
cago1 has joined #ocaml
cago1 has quit [Client Quit]
WanderingGlitch has joined #ocaml
mengu has quit []
<xificurC_>
I'm looking at GenLabels' API and don't see how to initialize what I want. I basically have 50 cards and want to generate the 5 community cards and 2 enemy cards. So I have a list of cards, need to consume 5 and then 2 from the rest of them
<companion_cube>
how is it different from drawing 7 cards?
shinnya has joined #ocaml
milosn has joined #ocaml
thomasga has quit [Quit: Leaving.]
cago1 has joined #ocaml
cago1 has left #ocaml [#ocaml]
<flux>
..silence :)
hellome has joined #ocaml
<xificurC_>
because the 5 community cards are common while the other 2 are not. It is different if you get 2 aces on the table then when your enemy has them
badkins has quit []
<xificurC_>
C(50,7) <> C(50,5) * C(45,2)
<xificurC_>
correct me if I'm wrong though
Denommus has joined #ocaml
<flux>
so let's say you physically have a deck.. you pick 5 cards from it and name them 'common cards'? then you pick 2 cards and label them 'enemy cards'? I suppose not.
thomasga has joined #ocaml
schoppenhauer1 has left #ocaml ["Adé"]
tane has joined #ocaml
psy_ has joined #ocaml
kdef has joined #ocaml
<xificurC_>
it's not the same because if I count C(50,7) I lose many games. If I just mark the cards as numbers from 1 to 50 then C(50,7) will only generate 1 2 3 4 5 6 7. If I mark the first 5 as community and the last 2 as the enemy's cards I will never get e.g. 3 4 5 6 7 1 2
<Denommus>
I'm starting to feel functors are easier to reason about than most generic codes
octachron has joined #ocaml
<xificurC_>
so drawing 7 cards only will discard many games as equal while they are not as there is an ordering present
<xificurC_>
companion_cube, flux ^
<companion_cube>
xificurC_: Gen.(combinations 5 full_deck >>= fun community -> let enemy = full_deck - community in combinations 2 enemy)
<companion_cube>
something like this?
<companion_cube>
(you need some additional conversions between generators and lists)
<xificurC_>
companion_cube: so the full_deck - community you wrote is pseudo code, right. But I get the gist
<companion_cube>
the power of monads :)
<xificurC_>
companion_cube: thanks!
<companion_cube>
try it first
<xificurC_>
companion_cube: yeah, the only thing sad about it is how they are reimplemented everywhere instead of being overloaded
<companion_cube>
you mean the lack of higher-kinded types in OCaml?
<xificurC_>
if I want to use Lwt.Infix and Gen.Infix I have to qualify them
<companion_cube>
ah, right
<xificurC_>
companion_cube: type classes, or modular implicits if I understood correctly
kakadu has joined #ocaml
<companion_cube>
let open Gen.Infix in .... comes in handy
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
<xificurC_>
right
<xificurC_>
thank you for your time and patience :)
oscar_toro has quit [Ping timeout: 272 seconds]
yomimono has quit [Ping timeout: 256 seconds]
badkins has joined #ocaml
bugabinga has quit [Remote host closed the connection]
bugabinga has joined #ocaml
WanderingGlitch has quit [Changing host]
WanderingGlitch has joined #ocaml
ollehar has quit [Remote host closed the connection]
ollehar has joined #ocaml
Haudegen has quit [Ping timeout: 248 seconds]
asQuirreL has joined #ocaml
jonludlam has quit [Ping timeout: 264 seconds]
jeffmo has joined #ocaml
ollehar has quit [Remote host closed the connection]
ollehar has joined #ocaml
Denommus has quit [Ping timeout: 255 seconds]
badkins has quit [Read error: Connection reset by peer]
thomasga has quit [Quit: Leaving.]
bugabinga has quit [Remote host closed the connection]
jonludlam has joined #ocaml
ollehar1 has joined #ocaml
kdef has quit [Quit: Leaving]
dav- has joined #ocaml
thomasga has joined #ocaml
dav has quit [Ping timeout: 256 seconds]
dav- has quit [Ping timeout: 240 seconds]
Haudegen has joined #ocaml
oscar_toro has joined #ocaml
dav has joined #ocaml
Hannibal_Smith has joined #ocaml
MrScout has joined #ocaml
rand000 has joined #ocaml
jonludlam has quit [Ping timeout: 264 seconds]
darkf has quit [Quit: Leaving]
shinnya has quit [Ping timeout: 255 seconds]
jonludlam has joined #ocaml
badkins has joined #ocaml
leowzukw has quit [Quit: Lost terminal]
itPuffinB has quit [Ping timeout: 244 seconds]
jonludlam has quit [Ping timeout: 264 seconds]
Mercuria1Alchemi has joined #ocaml
adrien- has joined #ocaml
dav- has joined #ocaml
dav has quit [Ping timeout: 256 seconds]
MercurialAlchemi has quit [Ping timeout: 264 seconds]
Hannibal_Smith has quit [Quit: Leaving]
kdef has joined #ocaml
pyon has joined #ocaml
Hannibal_Smith has joined #ocaml
Submarine has joined #ocaml
Jefffrey has quit [Remote host closed the connection]
bugabinga has joined #ocaml
octachron has quit [Quit: Leaving]
asQuirreL has quit [Ping timeout: 244 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
MrScout_ has joined #ocaml
sdothum has joined #ocaml
MrScout has quit [Ping timeout: 265 seconds]
avsm has quit [Quit: Leaving.]
dsheets has quit [Ping timeout: 276 seconds]
jonludlam has joined #ocaml
Nijikokun has joined #ocaml
wagle is now known as wagle_
robink_ has quit [Ping timeout: 255 seconds]
robink_ has joined #ocaml
mal`` has quit [Ping timeout: 276 seconds]
mal`` has joined #ocaml
Gama11 has joined #ocaml
Jefffrey has joined #ocaml
wagle_ is now known as wagle
nullcat_ has joined #ocaml
bugabinga has quit [Remote host closed the connection]
avsm has joined #ocaml
thomasga has quit [Quit: Leaving.]
thomasga has joined #ocaml
ollehar has quit [Remote host closed the connection]
ollehar has joined #ocaml
antkong has joined #ocaml
ollehar has quit [Remote host closed the connection]
ollehar has joined #ocaml
jonludlam has quit [Ping timeout: 248 seconds]
dsheets has joined #ocaml
yomimono has joined #ocaml
bugabinga has joined #ocaml
ollehar has quit [Remote host closed the connection]
claudiuc has joined #ocaml
slash^ has quit [Read error: Connection reset by peer]
jonludlam has joined #ocaml
antkong has quit [Ping timeout: 272 seconds]
kdef has quit [Ping timeout: 244 seconds]
kdef has joined #ocaml
ollehar has joined #ocaml
robink_ is now known as robink
MrScout_ has quit [Remote host closed the connection]
ollehar has quit [Remote host closed the connection]
Tekilla_ has joined #ocaml
ollehar has joined #ocaml
mengu__ has joined #ocaml
ollehar has quit [Remote host closed the connection]
MrScout has joined #ocaml
ollehar has joined #ocaml
Tekilla_ has quit [Quit: Quitte]
Tekilla has joined #ocaml
Tekilla_ has joined #ocaml
A1977494 has joined #ocaml
MrScout has quit [Remote host closed the connection]
MrScout has joined #ocaml
Denommus has joined #ocaml
A1977494 has left #ocaml [#ocaml]
Tekilla_ has quit [Quit: Quitte]
ncthom91 has joined #ocaml
badon has joined #ocaml
TheLemonMan has joined #ocaml
nullcat_ has quit [Max SendQ exceeded]
kakadu has quit [Quit: Page closed]
nullcat_ has joined #ocaml
kdef has quit [Ping timeout: 248 seconds]
manizzle has joined #ocaml
shinnya has joined #ocaml
nullcat_ has quit [Max SendQ exceeded]
asQuirreL has joined #ocaml
bobry has quit [Quit: Connection closed for inactivity]
nojb has joined #ocaml
Tekilla has quit [Quit: Quitte]
asQuirreL has quit [Remote host closed the connection]
matason has quit []
nojb has quit [Remote host closed the connection]
nullcat_ has joined #ocaml
asQuirreL has joined #ocaml
ontologiae_ has joined #ocaml
nullcat_ has quit [Ping timeout: 256 seconds]
Hannibal_Smith has quit [Quit: Leaving]
kdef has joined #ocaml
mengu__ has quit [Remote host closed the connection]
ollehar has quit [Remote host closed the connection]
thomasga has quit [Ping timeout: 265 seconds]
Jefffrey has quit [Quit: Leaving...]
Haudegen has quit [Ping timeout: 272 seconds]
kakadu has joined #ocaml
kdef_ has joined #ocaml
jwatzman|work has joined #ocaml
jwatzman|work has quit [Changing host]
jwatzman|work has joined #ocaml
n3ss3s has joined #ocaml
badkins has quit []
Haudegen has joined #ocaml
matason has joined #ocaml
nullcat has joined #ocaml
ggole has quit []
thomasga has joined #ocaml
lordkryss has quit [Quit: Connection closed for inactivity]
ollehar1 has quit [Ping timeout: 244 seconds]
bugabinga has quit [Remote host closed the connection]
guto has joined #ocaml
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
freling has joined #ocaml
n3ss3s has quit [Ping timeout: 256 seconds]
n3ss3s has joined #ocaml
kdef has quit [Quit: Leaving]
<guto>
Hello peepz
nullcat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nojb has joined #ocaml
<guto>
is anybody out there
ollehar has joined #ocaml
<Drup>
Sure.
<guto>
Just plain strange, 10 min here and nobody talking XD
ollehar1 has joined #ocaml
<TheLemonMan>
enjoy the silence
<guto>
LOL
<guto>
like a dead channel
ollehar has quit [Remote host closed the connection]
<guto>
So any big projects in ocaml around here?
<guto>
Got some plans, but kind of 2 lazy now
struktured has joined #ocaml
<companion_cube>
there have been big projects in OCaml for decades
<guto>
I know there have been, just asking if somebody wanted to share with the rest and kill the awkward silence XD
<companion_cube>
many people on this chan are in France, which is why it's so quiet at 11pm :)
mengu has joined #ocaml
<guto>
well, I'm a night owl, so this is when I strive xD
_andre has quit [Quit: leaving]
<companion_cube>
what are your plans, then?
<companion_cube>
(just curious)
nojb has quit [Remote host closed the connection]
MrScout has quit [Remote host closed the connection]
<guto>
Well, wrote a very nice XML Parser the other day, and my college database has some nice XML web services, thinking of integrating that with my own email client I always wished to develop
<guto>
but don't know much about SMTP and stuff in OCaml, so need to research some more
<companion_cube>
ah, an email client, that's ambitious
<companion_cube>
there's an imap lib, and a simple smtp one afaik
struktured has quit [Ping timeout: 265 seconds]
<companion_cube>
but I don't think the SMTP lib features encryption right now
<guto>
I heard of them, at least the SMTP is really beta still
<guto>
well, I could help out on those
<guto>
maybe
<guto>
Well
<companion_cube>
that would be sweet
<guto>
going to walk the dog, brb
MrScout has joined #ocaml
<guto>
or he's gonna walk me, IDK XD
<companion_cube>
see you
mengu has quit [Ping timeout: 256 seconds]
guto has quit [Ping timeout: 250 seconds]
nullcat has joined #ocaml
matason has quit []
c74d has quit [Remote host closed the connection]
Nijikokun has quit [Ping timeout: 248 seconds]
Submarine has quit [Ping timeout: 248 seconds]
Nijikokun has joined #ocaml
nojb has joined #ocaml
c74d has joined #ocaml
nojb has quit [Client Quit]
guto has joined #ocaml
<guto>
am back
Gama11 has quit [Read error: Connection reset by peer]
<companion_cube>
so, how did you end up learning OCaml?
<guto>
college, even though I started learning functional programming in haskell and stuff
<guto>
they use it at my alma mater, for the purpose of teaching functional programming, hence what i said
<apache2>
alma mater?
<guto>
university
<companion_cube>
that's a good thing, my school didn't have enough FP at its curriculum imho
ollehar1 has quit [Remote host closed the connection]
<guto>
well, what was your degree?
<companion_cube>
engineer
<guto>
mine too
ollehar has joined #ocaml
<guto>
I did that course in the CS department
<guto>
I'm in electrical and computer engineering
<guto>
Kind of a proggraming fan, so I'm doing some of their courses, in a rogue way
<TheLemonMan>
lucky you, we do everything with pencil and paper
<guto>
me too
<TheLemonMan>
and the CS course was a joke
<guto>
in tests, of course
<guto>
where are you from?
<TheLemonMan>
Italy (sigh)
<companion_cube>
hey, sometimes a pencil isn't that bad
<companion_cube>
it's still the best way to quickly layout one's ideas
<guto>
Yes, every single time I'm planning a big ass thing, I either grab a pencil and paper, or a white board
<guto>
I like to pretend I'm a professor XD
<guto>
My dream though
<TheLemonMan>
you don't really want to use a pencil when you need accurate(-ish) numerical results
<companion_cube>
eh
<companion_cube>
grab python then? :p
<guto>
yep, numpy
<guto>
but damn , it's easier for me, my ole pencil and paper, because I do some trips every day in public transport
n3ss3s has quit [Ping timeout: 250 seconds]
<guto>
2 hours a day
<TheLemonMan>
drawing nyquist and bode diagrams by hand gives you a retro feeling
<guto>
LOL true, but you look at yourself and say silently "I'm badass"
<guto>
XD
<guto>
Which engineering course were you, companion?
<companion_cube>
CS
<TheLemonMan>
Electronic and Telecommunications
<companion_cube>
(handy tip about IRC: most clients tab-complete nicknames ;))
tane has quit [Quit: Verlassend]
<guto>
A fellow electronic masoquist, nice
<TheLemonMan>
oh, I got confused by the postfix nickname :)
<guto>
lol
<guto>
Would ask you any way, being efficient
<guto>
What's your favourite editor?
<companion_cube>
vim, of course!
* companion_cube
bites
<guto>
nice, me 2 XD
<TheLemonMan>
yep, definitely +1 for vim
<guto>
Without wanting to start a flame war, but am I the only one that thinks you need to either be Knuth or Shiva to use Emacs decently?
<guto>
Shiva -- The indian God
<guto>
Knuth -- self-explanatory
<companion_cube>
nah, I know nice people who use Emacs
<companion_cube>
that's nano users whom I usually suspect of madness
<guto>
LOL
<guto>
or ed people
yomimono has quit [Ping timeout: 248 seconds]
<guto>
those are truly hardcore
<Drup>
M-x butterfly
<guto>
LOL
<guto>
You know it
haelix has joined #ocaml
nullcat has quit [Read error: Connection reset by peer]
MrScout has quit [Read error: Connection reset by peer]
<guto>
Been thinking lately, why not form a group to that *nix thing powertools they have in the perl community, replicating all unix tools in ocaml?
<TheLemonMan>
been there, done that, the idea is nice from a educational point of view
<guto>
I find it very nice, very good code to learn a language
<guto>
me 2
MrScout has joined #ocaml
<guto>
actually helped a friend of mine, who's participating in that big project
<guto>
I'm a perl man too
Mercuria1Alchemi has quit [Ping timeout: 252 seconds]
<Drup>
You have my condolences for that.
<guto>
Why?
<Drup>
perl people tend to have symbol traumatism :D
<guto>
LOL no coding traumas, more like fucked up trust issues, but shit who doesn't?
<sheijk_>
TheLemonMan: the idea would also be nice when you want to port your shell scripts to a decent language (which is ocaml, of course)
<guto>
yep
<sheijk_>
had plenty of cases where i just reverted back to bash because i couldn't find a straight forward way to do certain things in ocaml (please don't ask me to provide a list, though :))
<guto>
LOL
<guto>
please do
freling has quit [Quit: Leaving.]
ncthom91 has joined #ocaml
<guto>
sheijk, tell me which, maybe I have done it before or somebody has
<guto>
please :D
<sheijk_>
guto: mostly because i can't really remember. but things like recursive grep, running multiple things in the background and redirecting stdin/out, etc. are things i remember to be easier in bash
<guto>
It's normal
<sheijk_>
all of this could be done by a lib but i couldn't find any
kakadu has quit [Remote host closed the connection]
<guto>
hmm ok
<Drup>
sheijk_: you know fileutils ?
<guto>
But you can write procedural ocaml
<guto>
it's not necessarily recursive
n3ss3s has joined #ocaml
<guto>
yes
tnguyen has joined #ocaml
nullcat_ has joined #ocaml
<sheijk_>
Drup: fileutils looks nice but it doesn't change the fact that it's still quite a bit of code to replicate grep etc. (and a lot more if you want the performance opts of gnu grep)
<guto>
true
<companion_cube>
which is not necessarily a good idea anywayy
<sheijk_>
guto: the issue is not functional programming at all
<companion_cube>
if you want to write a concurrent to grep, use rust imho
asQuirreL has quit [Ping timeout: 250 seconds]
<companion_cube>
competitor* ?
<sheijk_>
companion_cube: the thing is i do NOT want to write this. especially when it's trivial to use in shell script already
<companion_cube>
indeed
<guto>
That's obvious XD
<sheijk_>
but in theory having posix functionality in a nice well typed library would be a lot nicer than bash scripts. it's just a lot of work to replicate all or most posix tools and nobody ever did it
<guto>
challenge accepted XD
<sheijk_>
guto: yay. that's what i want to see :P
<guto>
Well, having a tough time now, but will start in the next holidays, at june, deal?
<guto>
want to join me in OCaml heaven? XD
asQuirreL has joined #ocaml
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jefffrey has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
<guto>
gonna go, ciao
guto has left #ocaml [#ocaml]
<kdef_>
ls
nullcat_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
larhat has joined #ocaml
n3ss3s has quit [Ping timeout: 264 seconds]
larhat has quit [Ping timeout: 272 seconds]
rand000 has quit [Quit: leaving]
ontologiae_ has quit [Ping timeout: 256 seconds]
MrScout_ has joined #ocaml
MrScout has quit [Ping timeout: 256 seconds]
asQuirreL has quit [Remote host closed the connection]
tianon has quit [Ping timeout: 255 seconds]
tianon has joined #ocaml
antkong has joined #ocaml
Denommus has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
MrScout_ has quit [Remote host closed the connection]