adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.07.1 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.07/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml | Due to ongoing spam, you must register your nickname to talk on the channel
deli has joined #ocaml
dmiles has joined #ocaml
SgrA has quit [Ping timeout: 252 seconds]
spew has quit [Quit: Connection closed for inactivity]
pierpal has joined #ocaml
keep_learning_M has quit [Quit: This computer has gone to sleep]
keep_learning_M has joined #ocaml
keep_learning_M has quit [Client Quit]
SgrA has joined #ocaml
al-damiri has quit [Quit: Connection closed for inactivity]
SgrA has quit [Ping timeout: 250 seconds]
notzmv has joined #ocaml
ziyourenxiang has quit [Ping timeout: 246 seconds]
marsam has joined #ocaml
fantasticsid has joined #ocaml
fantasticsid has quit [Client Quit]
Haudegen has quit [Ping timeout: 244 seconds]
ocabot has quit [Ping timeout: 244 seconds]
h11 has quit [Ping timeout: 240 seconds]
jao has quit [Remote host closed the connection]
ocabot has joined #ocaml
FreeBirdLjj has joined #ocaml
jao has joined #ocaml
ocabot has quit [Ping timeout: 268 seconds]
companion_cube has quit [Ping timeout: 252 seconds]
ocabot has joined #ocaml
companion_cube has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 244 seconds]
ygrek has joined #ocaml
SgrA has joined #ocaml
h11 has joined #ocaml
mfp has quit [Ping timeout: 250 seconds]
marsam has quit [Ping timeout: 252 seconds]
keep_learning_M has joined #ocaml
tormen has joined #ocaml
tormen_ has quit [Ping timeout: 268 seconds]
keep_learning_M has quit [Quit: This computer has gone to sleep]
Jeanne-Kamikaze has joined #ocaml
keep_learning_M has joined #ocaml
jao has quit [Ping timeout: 272 seconds]
iovec has quit [Quit: Connection closed for inactivity]
glassofethanol has joined #ocaml
glassofethanol has left #ocaml [#ocaml]
ygrek has quit [Ping timeout: 250 seconds]
KeyJoo has joined #ocaml
quipa_ has quit [Remote host closed the connection]
quipa_ has joined #ocaml
quipa_ has quit [Max SendQ exceeded]
quipa_ has joined #ocaml
deli has quit [Ping timeout: 250 seconds]
quipa_ has quit [Max SendQ exceeded]
quipa_ has joined #ocaml
quipa_ has quit [Remote host closed the connection]
quipa_ has joined #ocaml
MadcapJake has quit [Quit: MadcapJake]
MadcapJake has joined #ocaml
<Enjolras> greet is a function that takes a string, appends it to the string "Hello " using the string concat operator ^
<Enjolras> then greet "World" calls this function
<Enjolras> "y in greet" is not how it reads.
<Enjolras> let greet y = "Hello" ^ y <- this binds the function fun y -> "Hello " ^ y" to the name greet
<Enjolras> then "in" means, this binding is defined for the following expression greet "World", which is a simple function call
<quarters> Enjolras, thank you!
<quarters> so greet won't be able to be called again
<quarters> it was purely defined to be called that one time
<Enjolras> well you can call it several times
<Enjolras> let greet y = "Hello" ^ y in greet "World" ^ " and" ^ greet " you"
<Enjolras> this will return "Hello World and Hello you"
<Enjolras> but yes, it is defined to be called in the follow expression
<Enjolras> for instance let f x = let g x = x + 1 in g x in f 4
<Enjolras> g is not visible outside of the body of f
<Enjolras> that being said, you better read an introduction to ocaml :)
<quarters> Enjolras, I've been trying to find one but I couldn't even find one that describes ^ as being for string concatenation. I had to look up "caret ocaml" in google
<Enjolras> i'm not really sure what are good book for beginner to be honnest
<quarters> I'm coming from c-based languages and I was wondering if there's one you can recommend...the ones on ocaml.org have been difficult to follow with regards to having the info get me going
<quarters> gotcha
<Enjolras> https://sketch.sh/new/ocaml btw you can go there and type things
<Enjolras> to see what they do
<quarters> I'm also a bit confused as to how ocaml can have a repl despite it being a compiled language
<Enjolras> as far as i know, the modern cool and free book to learn ocaml is https://realworldocaml.org/
<quarters> thanks again. I'll check it out!
<Enjolras> it has a repl, because it also has a bytecode interpreter
<Enjolras> and compiling to the bytecode is really fast.
<quarters> gotcha
<Enjolras> and executing the bytecode is not so fast but fast enough for a repl
_whitelogger has joined #ocaml
_whitelogger has joined #ocaml
ggole has joined #ocaml
_whitelogger has joined #ocaml
sagotch has joined #ocaml
_whitelogger has joined #ocaml
notzmv has quit [Ping timeout: 246 seconds]
keep_learning_M has quit [Quit: This computer has gone to sleep]
keep_learning_M has joined #ocaml
dmiles has quit [Ping timeout: 240 seconds]
quipa_ has quit [Read error: Connection reset by peer]
dmiles has joined #ocaml
mfp has joined #ocaml
bartholin has joined #ocaml
powerbit has quit [Ping timeout: 250 seconds]
powerbit has joined #ocaml
powerbit has quit [Excess Flood]
powerbit has joined #ocaml
powerbit has quit [Excess Flood]
powerbit has joined #ocaml
quipa has joined #ocaml
quipa has quit [Max SendQ exceeded]
quipa has joined #ocaml
KeyJoo has quit [Quit: KeyJoo]
KeyJoo has joined #ocaml
wilfredh has joined #ocaml
iovec has joined #ocaml
jao has joined #ocaml
Armael has quit [Quit: WeeChat 2.1]
MadcapJake has quit [Quit: MadcapJake]
MadcapJake has joined #ocaml
MadcapJake has quit [Client Quit]
MadcapJake has joined #ocaml
jnavila has joined #ocaml
rain2 has joined #ocaml
rain1 has quit [Ping timeout: 245 seconds]
beginner has joined #ocaml
<tautologico> you can have a REPL with a native-code compiler too
<ggole> There's a branch with a native toplevel
<ggole> Probably broken at the moment though
Haudegen has joined #ocaml
jao has quit [Ping timeout: 250 seconds]
<octachron> The native toplevel is part of the main branch and generally works fine, it is just experimental and not installed by default
spew has joined #ocaml
KeyJoo has quit [Quit: KeyJoo]
jnavila has quit [Ping timeout: 246 seconds]
ggole has quit [Ping timeout: 250 seconds]
initiumdoeslinux has joined #ocaml
nullifidian_ has joined #ocaml
nullifidian has quit [Ping timeout: 272 seconds]
ggole has joined #ocaml
ggole has quit [Ping timeout: 250 seconds]
bartholin has quit [Remote host closed the connection]
ggole has joined #ocaml
slamzy has joined #ocaml
initiumdoeslinux has quit [Remote host closed the connection]
jnavila has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
slamzy has quit [K-Lined]
slamzy has joined #ocaml
ygrek has joined #ocaml
ygrek has quit [Ping timeout: 245 seconds]
initiumdoeslinux has joined #ocaml
pioneer42 has joined #ocaml
beginner has quit [Quit: Page closed]
initiumdoeslinux has quit [Remote host closed the connection]
<companion_cube> Drup: rejoice, I'm starting to appreciate OCaml functors more as I'm writing rust :p
jao has joined #ocaml
gravicappa has joined #ocaml
marsam has joined #ocaml
al-damiri has joined #ocaml
marsam has quit [Remote host closed the connection]
initiumdoeslinux has joined #ocaml
initiumdoeslinux has quit [Ping timeout: 246 seconds]
pioneer42 has left #ocaml [#ocaml]
<Drup> companion_cube: #greengrasssyndrom
<companion_cube> tbh I also love traits in the small
<companion_cube> it's really a matter of scale, heh
<companion_cube> traits/implicits/typeclasses are incredibly better for local things (hash,equality,print, etc.)
<companion_cube> but functors are good for large-scale parametrization (ocamlgraph-style)
<def`> hash, equality, print , ... :'(
<companion_cube> also, for stuff like `From` and `Into` and the likes, it makes APIs really flexible
<companion_cube> (not to mention iterators and collect…)
<companion_cube> I'd just also like to have functors to parametrize whole libraries :p
<companion_cube> (or bigfunctors, whichever)
marvin2 has quit [Ping timeout: 240 seconds]
jao has quit [Ping timeout: 240 seconds]
jao has joined #ocaml
marvin2 has joined #ocaml
initiumdoeslinux has joined #ocaml
initiumdoeslinux has quit [Ping timeout: 246 seconds]
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #ocaml
pierpal has quit [Ping timeout: 250 seconds]
pierpal has joined #ocaml
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #ocaml
pierpal has quit [Ping timeout: 272 seconds]
pierpal has joined #ocaml
pierpal has quit [Ping timeout: 245 seconds]
deli has joined #ocaml
gravicappa has quit [Remote host closed the connection]
Haudegen has quit [Ping timeout: 246 seconds]
pierpal has joined #ocaml
quipa has quit [Remote host closed the connection]
quipa has joined #ocaml
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #ocaml
quipa has quit [Max SendQ exceeded]
quipa has joined #ocaml
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #ocaml
quipa has quit [Remote host closed the connection]
dinosaure has quit [Quit: WeeChat 1.6]
quipa has joined #ocaml
quipa has quit [Max SendQ exceeded]
quipa has joined #ocaml
quipa has quit [Max SendQ exceeded]
jnavila has quit [Remote host closed the connection]
jnavila has joined #ocaml
quipa has joined #ocaml
initiumdoeslinux has joined #ocaml
quipa has quit [Max SendQ exceeded]
Haudegen has joined #ocaml
initiumdoeslinux has quit [Ping timeout: 250 seconds]
bartholin has joined #ocaml
kakadu has joined #ocaml
nullifidian__ has joined #ocaml
nullifidian_ has quit [Ping timeout: 250 seconds]
sonologico has joined #ocaml
ggole has quit [Quit: ggole]
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #ocaml
pierpal has quit [Ping timeout: 245 seconds]
pierpal has joined #ocaml
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #ocaml
pierpal has quit [Read error: Connection reset by peer]
initiumdoeslinux has joined #ocaml
pierpal has joined #ocaml
initiumdoeslinux has quit [Ping timeout: 246 seconds]
emily has quit [Quit: leaving]
Haudegen has quit [Ping timeout: 244 seconds]
deli has quit [Remote host closed the connection]
sonologico has quit [Ping timeout: 268 seconds]
Haudegen has joined #ocaml
Brocoli_ has joined #ocaml
Brocoli_ has quit [Client Quit]
Armael has joined #ocaml
Armael has quit [Quit: WeeChat 2.1]
Armael has joined #ocaml
Armael has quit [Client Quit]
steenuil_ has joined #ocaml
Armael has joined #ocaml
Armael has quit [Client Quit]
steenuil has quit [Ping timeout: 250 seconds]
Armael has joined #ocaml
wilfredh has quit [Quit: Connection closed for inactivity]
initiumdoeslinux has joined #ocaml
initiumdoeslinux has quit [Ping timeout: 250 seconds]
kotrcka has joined #ocaml
kakadu has quit [Remote host closed the connection]
jnavila has quit [Remote host closed the connection]
mengu has joined #ocaml
powerbit has quit [Ping timeout: 268 seconds]
initiumdoeslinux has joined #ocaml
powerbit has joined #ocaml
powerbit has quit [Excess Flood]
initiumdoeslinux has quit [Ping timeout: 240 seconds]
powerbit has joined #ocaml
bartholin has quit [Remote host closed the connection]
initiumdoeslinux has joined #ocaml
initiumdoeslinux has quit [Ping timeout: 250 seconds]
ziyourenxiang has joined #ocaml