alexyk has quit [Read error: 110 (Connection timed out)]
<hcarty>
alexyk: There is a printing module as part of the OCaml Calendar library ... a sprintf-like function is in there somewhere
code17 has quit ["Leaving."]
dejj has left #ocaml []
fschwidom has quit [Remote closed the connection]
ulfdoz has quit ["deprecated"]
jeddhaberstro has quit []
snhmib has quit ["Good riddance!"]
jlouis has quit [Remote closed the connection]
mbtrimpe has joined #ocaml
mtrimpe has quit [Read error: 104 (Connection reset by peer)]
mbtrimpe has quit [Read error: 104 (Connection reset by peer)]
mtrimpe has joined #ocaml
pumpkin_ has joined #ocaml
struktured_ has joined #ocaml
struktured has quit [Read error: 110 (Connection timed out)]
willb has joined #ocaml
threeve has joined #ocaml
mtrimpe has quit [Success]
yellows has quit []
threeve has quit []
halberd has joined #ocaml
willb1 has joined #ocaml
willb1 has quit [Read error: 104 (Connection reset by peer)]
Amorphous has quit [Read error: 113 (No route to host)]
Amorphous has joined #ocaml
Axioplase has joined #ocaml
threeve has joined #ocaml
netx has left #ocaml []
johnnowak has joined #ocaml
jknick has quit ["leaving"]
struktured_ has quit [Read error: 110 (Connection timed out)]
willb has quit [Connection timed out]
struktured_ has joined #ocaml
[L]ink has joined #ocaml
apples` has quit ["Leaving"]
threeve has quit []
composer_ has joined #ocaml
sporkmonger has quit []
bla has quit [Read error: 113 (No route to host)]
[L]ink has quit ["Switch is the two front wheels."]
[L]ink has joined #ocaml
halberd has quit ["This computer has gone to sleep"]
Tankado has joined #ocaml
johnnowak has quit []
mbishop_ has joined #ocaml
_zack has joined #ocaml
mbishop has quit [Read error: 113 (No route to host)]
johnnowak has joined #ocaml
Tankado has quit []
Jedai has quit [Read error: 110 (Connection timed out)]
Jedai has joined #ocaml
Axioplase has quit ["bbl"]
pumpkin_ is now known as pumpkin
MichaelGG has joined #ocaml
<MichaelGG>
Does OCaml have any way of doing forward references of some sort?
Kerris4 has quit [Read error: 104 (Connection reset by peer)]
Kerris4 has joined #ocaml
Kerris4 has left #ocaml []
Kerris4 has joined #ocaml
johnnowak has left #ocaml []
asabil has joined #ocaml
<flux>
michaelgg, no
<flux>
michaelgg, you can prehaps work around that with function passing or references
<MichaelGG>
OK
<flux>
also you can have mutually recursive values with 'and'
<MichaelGG>
I think I got it figured out.
<MichaelGG>
YEa I was going to do that, but they span files/modules.
<MichaelGG>
I guess the better way is to just declare all the data in one file, then setup modules afterwards to work on them
<flux>
functorizing the interface might be one option
<flux>
I've used that approach :)
<MichaelGG>
I'm actually using F#, and I think I'm still thinking too .NET-ish (members and whatnot) versus OCaml
<MichaelGG>
I love these languages though. After coming from C/VB languages its a blast of intelligence.
<[L]ink>
VB is a horrible language, just about anythings a step up from that.
<MichaelGG>
dunno. I dislike VB, but I'd take VB over C many days. I Guess thats more runtime, etc. versus actual language.
<[L]ink>
C isn't so great either.
<MichaelGG>
yea not terribly impressed with either :P
<[L]ink>
But it's better than VB, most of the time.
<[L]ink>
And god knows it's better than C++
<MichaelGG>
I'm just sick i didnt find functional languages earlier in my life
<flux>
I learned some time ago that they had taught SML at our uni as the first language
<MichaelGG>
had?
<[L]ink>
Functional languages are the rockage.
<MichaelGG>
what do they use now?
<flux>
yes.. they later on switched to C (and now C++) due to pressure from other departments
<MichaelGG>
ew.
<[L]ink>
Ew.
<MichaelGG>
I've had good success giving people HtDP/Scheme to start off
<flux>
I actually don't mind C++
<flux>
although it's quite cumbersome compared to *ML; but it has its strengths
<[L]ink>
I'm an F#'er as well.
<[L]ink>
C++ is messy.
<[L]ink>
It's a jack of all trades, but master of none.
<MichaelGG>
F# is amazing. particularly that MSR was able to penetrate MS
<[L]ink>
Foundations of F# is a good book.
<MichaelGG>
i suppose C++ with the right libraries and whatnot can be done well. i just dislike anything that lets generate buffer overflows, or crash a whole process cause of a null ref somewhere.
<MichaelGG>
ive read all the F# books. well , still reading F# for scientists.
<[L]ink>
C++ was designed to fix the problems with C which it failed, it was also designed to be backwards compatible with C, and that failed as well. It's got horrible grammar, and about 100 other things I could read of, but that doesn't stop it from being the only choice for a certain project sometimes.
<MichaelGG>
im surprised .net didnt embrace such ideas from the start.
<[L]ink>
But I always encourage people to see if there is a better way to do it without C++ before using C++
<MichaelGG>
like what projects?
<MichaelGG>
i mean, aprat from specially constrainted platforms or non tech requirements..
<[L]ink>
Like, any project that could be done better with other languages.
<MichaelGG>
No, i mean, when is C++ the only options
<[L]ink>
If you can do it right in one language, why would you choose a crappier one.
<[L]ink>
Pretty much never
<flux>
it might be more difficult to find people writing F# than it is to find people writing C++
<[L]ink>
Well of course.
<[L]ink>
Alot of people are actually too scared to embrace functional programming.
<[L]ink>
Most just think it's a 'fad' without looking at the history of it.
<MichaelGG>
flux, I think thats a misleading statement though
<[L]ink>
F# being a certifide .NET language will surely bring more people into functional programming however.
<flux>
michaelgg, how so?
<MichaelGG>
First, anyone I'd want to hire would be able to use a functional language.
<[L]ink>
Thats a good thing.
<MichaelGG>
i get this with C#/F# all the time
<MichaelGG>
"oh theres more C# devs!"
<flux>
michaelgg, well, actually we had a recent new hire
<MichaelGG>
the answer is "what kind of crap hiring process do you have that you'd hire a professional developer, and they'd be totally confused by functional concepts?"
<flux>
in a month he had relatively good idea about ocaml
<MichaelGG>
yea it doesnt take too long, if youre hiring for intelligence...
<flux>
but he hasn't been working with it for a while, so I guess should he resume doing that, there will be some starting problems..
<MichaelGG>
I can see in some projects, i.e., where theres little technical challenge. Like, perhaps a company getting a contact form written for their website would be foolish not to pick some popular language.
<MichaelGG>
But anything of substance...
|Raynes| has joined #ocaml
[L]ink has quit [Nick collision from services.]
|Raynes| is now known as [L]ink
asabil has quit [Read error: 104 (Connection reset by peer)]
asabil has joined #ocaml
_zack has quit ["Leaving."]
ulfdoz has joined #ocaml
MichaelGG has quit [Read error: 110 (Connection timed out)]
malc_ has joined #ocaml
Demitar has joined #ocaml
rwmjones_ has joined #ocaml
mfp_ is now known as mfp
robocop has joined #ocaml
<robocop>
Hello.
<robocop>
what the function to convert string to char list ? exemple : "test" -> ['t'; 'e'; 's'; 't']
fschwidom has joined #ocaml
<flux>
you just asked about String.make 1 yesterday.. can you use it to make such a function?
<malc_>
# let tol s = let rec f l i = if i = String.length s then List.rev l else f (s.[i]::l) (i+1) in f [] 0;;
<malc_>
val tol : string -> char list = <fun>
<flux>
(there isn't one already)
<malc_>
# tol "haha";;
<malc_>
- : char list = ['h'; 'a'; 'h'; 'a']
<flux>
ooh, right, you asked to the different direction :)
<flux>
yes, that works
<flux>
but, if you're really lazy, you can use Array.init and Array.to_list
<robocop>
I don't understand why the compilater says "Syntax error" on else raise (Fail "Erreur de syntaxe") .
<robocop>
I've you got an idea ?
threeve has joined #ocaml
sporkmonger has quit [Read error: 110 (Connection timed out)]
<__me>
Arent you missing a then before the begin?
<__me>
Add 'then' at the end of line 20
<robocop>
O, yes, you right.
<robocop>
Thanks.
Spiwack has joined #ocaml
willb has joined #ocaml
sporkmonger_ is now known as sporkmonger
<twobitsprite>
Smerdyakov, tsuyoshi: thanks
__me has left #ocaml []
<munga>
compiling one of my projects I get this wired error: The files parsing.cmi and parsing.cmi make inconsistent assumptions over interface Parsing
<munga>
do you have any idea where it might come from ? maybe a camlp4 related problem ?
<Spiwack>
might be a cyclic depenency issue
dejj has quit ["Leaving..."]
pango has quit [Remote closed the connection]
<flux>
maybe you have two different files called parsing.mli involved in the project
<munga>
flux: nope. there is only a small file called parsing.ml
<munga>
actually I can compile the ml : /usr/bin/ocamlc.opt -c -I +camlp4 -pp camlp4of -o parsing.cmo parsing.ml
<munga>
but then it fails when I try to compile another ml that depends on it ...
<flux>
munga, have you tried renaming that to something else?
<munga>
uhmmmmm good one !
asabil has quit ["Ex-Chat"]
<munga>
yep. that was it. well spotted . thanks flux !
pango has joined #ocaml
dabd has joined #ocaml
middayc has joined #ocaml
alexyk_ has quit []
Kerris4 has quit ["Leaving."]
alexyk has joined #ocaml
rwmjones is now known as rwmjones_afk
marmotine has joined #ocaml
Spiwack has quit ["Leaving"]
tomh has joined #ocaml
threeve has quit []
jeddhaberstro has joined #ocaml
robocop has left #ocaml []
Yoric[DT] has joined #ocaml
rwmjones_afk is now known as rwmjones
fschwidom has joined #ocaml
threeve has joined #ocaml
pumpkin has quit []
mtrimpe has joined #ocaml
sporkmonger has quit [Read error: 104 (Connection reset by peer)]
sporkmonger has joined #ocaml
[L]ink has quit [Read error: 110 (Connection timed out)]
fschwidom has quit [Remote closed the connection]
mtrimpe has quit []
alexyk has quit []
alexyk_ has joined #ocaml
alexyk_ has quit [Client Quit]
sporkmonger_ has joined #ocaml
alexyk has joined #ocaml
threeve has quit [Read error: 104 (Connection reset by peer)]
threeve has joined #ocaml
alexyk has quit []
sporkmonger has quit [Read error: 110 (Connection timed out)]
sporkmonger_ is now known as sporkmonger
threeve_ has joined #ocaml
threeve has quit [Read error: 104 (Connection reset by peer)]
threeve_ has quit [Read error: 54 (Connection reset by peer)]
MichaelGG has joined #ocaml
sporkmonger_ has joined #ocaml
sporkmonger has quit [Connection timed out]
sporkmonger_ is now known as sporkmonger
anders has joined #ocaml
threeve has joined #ocaml
mbishop_ is now known as mbishop
johnnowak has joined #ocaml
apples` has joined #ocaml
johnnowak has left #ocaml []
sporkmonger_ has joined #ocaml
sporkmonger_ has quit [Client Quit]
dabd has quit [Client Quit]
snhmib has joined #ocaml
snhmib has quit [Client Quit]
snhmib has joined #ocaml
sporkmonger has quit [Read error: 110 (Connection timed out)]
marmotine has quit ["mv marmotine Laurie"]
jlouis has joined #ocaml
Camarade_Tux has quit ["Leaving"]
mfp has quit [Read error: 110 (Connection timed out)]
mfp has joined #ocaml
alexyk has joined #ocaml
Gionne has joined #ocaml
slash_ has joined #ocaml
mfp has quit [Read error: 110 (Connection timed out)]
mfp has joined #ocaml
mfp has quit [Read error: 104 (Connection reset by peer)]
threeve_ has joined #ocaml
threeve_ has quit [Read error: 104 (Connection reset by peer)]
threeve_ has joined #ocaml
threeve has quit [Read error: 104 (Connection reset by peer)]