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
vsui has joined #ocaml
ziyourenxiang has joined #ocaml
Haudegen has quit [Ping timeout: 259 seconds]
oni-on-ion has quit [Remote host closed the connection]
oni-on-ion has joined #ocaml
vsui has quit [Ping timeout: 248 seconds]
Jeanne-Kamikaze has quit [Quit: Leaving]
silver has quit [Read error: Connection reset by peer]
keep_learning_M has quit [Quit: This computer has gone to sleep]
keep_learning_M has joined #ocaml
kapilp has joined #ocaml
AtumT has quit [Quit: AtumT]
oni-on-ion has quit [Remote host closed the connection]
oni-on-ion has joined #ocaml
mfp has quit [Ping timeout: 245 seconds]
philt has left #ocaml [#ocaml]
Jeanne-Kamikaze has joined #ocaml
gravicappa has joined #ocaml
DanielRi1hman has quit [Quit: leaving]
DanielRichman has joined #ocaml
jao has quit [Ping timeout: 258 seconds]
Jeanne-Kamikaze has quit [Quit: Leaving]
narimiran has joined #ocaml
keep_learning_M has quit [Quit: This computer has gone to sleep]
ravenousmoose has joined #ocaml
ggole has joined #ocaml
Serpent7776 has joined #ocaml
unyu has quit [Remote host closed the connection]
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
unyu has joined #ocaml
iovec has joined #ocaml
kakadu has joined #ocaml
gravicappa has quit [Ping timeout: 244 seconds]
ShalokShalom has joined #ocaml
FreeBirdLjj has joined #ocaml
ravenousmoose has joined #ocaml
tane_ has joined #ocaml
ShalokShalom62 has joined #ocaml
ShalokShalom62 has quit [Remote host closed the connection]
Haudegen has joined #ocaml
mfp has joined #ocaml
tane_ has quit [Remote host closed the connection]
tane has joined #ocaml
_whitelogger has joined #ocaml
tane has quit [Quit: Leaving]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 272 seconds]
_whitelogger has joined #ocaml
govg has quit [Ping timeout: 268 seconds]
<ShalokShalom> hi there
<ShalokShalom> where does esy save my files?
<ShalokShalom> I hope not in /usr/bin or so?
silver has joined #ocaml
dimitarvp has joined #ocaml
dimitarvp has quit [Quit: Bye]
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gravicappa has joined #ocaml
AtumT has joined #ocaml
<narimiran> another begninner's question: in the toplevel REPL i can do `let ht = Hashtbl.create 44;;`, but when i try to do the same (minus ;;) in a file that i want to compile, i get "Error: The type of this expression, ('_weak1, '_weak2) Hashtbl.t, contains type variables that cannot be generalized Command exited with code 2."
<narimiran> how to create and use hash tables in compiled files? what am i doing wrong?
<ggole> You can't have weak type variables that cross files because of soundness problems. The solution is to give the table a concrete type.
<narimiran> so, `let ht: <something> = ....`?
<ggole> Yep
<ggole> Or in the module signature you can give a concrete type (or leave that binding out entirely)
<narimiran> i tried `let ht : (string, string) = Hashtbl.create 44` but it still isn't correct. what is the correct syntax?
<hannes> narimiran: according to https://caml.inria.fr/pub/docs/manual-ocaml/libref/Hashtbl.html#VALcreate it is ('a, 'b) Hashtbl.t -- you'll need to write "let ht : (string, string) Hashtbl.t = ..."
<ggole> Yeah. You can #show Hashtbl.create in the toplevel to get an idea of the type to write, btw.
<narimiran> hannes: thank you!! i have been reading that, but didn't realize what to do with that `t`
<narimiran> ggole: nice, i didn't know about `#show`
<hannes> narimiran: the "('a, 'b) t" is the tye expression -- a type parametrised by 'a and 'b (where 'a is the key, 'b is the value).
<narimiran> hannes: yeah, i understood `('a, 'b)` part, but `t` was confusing to me
govg has joined #ocaml
<narimiran> generally, what would you recommend as the best learning material? i'm combining everything i can find, but probably i'm missing something
kjak has quit [Ping timeout: 246 seconds]
jao has joined #ocaml
govg has quit [Ping timeout: 246 seconds]
ShalokShalom has quit [Remote host closed the connection]
vsui has joined #ocaml
<octarin> Real World OCaml is probably the most complete introductory material you could find, imho
<narimiran> octarin: thanks! is it still up-to-date? (e.g. i see lots of examples in various places having `open Core.Std`, but it seems that `open Core` is the current way of doing things? anything else that might be outdated?)
jao has quit [Remote host closed the connection]
_whitelogger has joined #ocaml
<octarin> narimiran: it is true they make an extensive use of the Core module from Jane Street. Their reason is that it supports a lot of functions that are not in the standard OCaml environment. However, it still contains a lot of useful functions and modules, so you can do without Core anyway.
<octarin> The sole difference with Core are the functions that are loaded. But the teaching of RealWorld OCaml about language stuff such as modules, functors, exceptions etc is still up to date and not Core dependant.
<narimiran> great, thanks!
vsui has quit [Ping timeout: 244 seconds]
vsui has joined #ocaml
jao has joined #ocaml
ravenousmoose has joined #ocaml
vsui has quit [Ping timeout: 268 seconds]
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vsui has joined #ocaml
ravenousmoose has joined #ocaml
kapilp has quit [Quit: Connection closed for inactivity]
q9929t has joined #ocaml
kakadu_ has joined #ocaml
kakadu has quit [Ping timeout: 268 seconds]
tane has joined #ocaml
vsui has quit [Ping timeout: 248 seconds]
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jnavila has joined #ocaml
Jeanne-Kamikaze has joined #ocaml
jnavila has quit [Ping timeout: 258 seconds]
ravenousmoose has joined #ocaml
jnavila has joined #ocaml
<oni-on-ion> narimiran, there is dev.realworldocaml version newest
kapilp has joined #ocaml
<narimiran> oni-on-ion: oh! nice, thank you! (i immediately went to check if/how did they replace Core.Std :))
<oni-on-ion> yw =)
jnavila has quit [Ping timeout: 268 seconds]
ShalokShalom has joined #ocaml
jnavila has joined #ocaml
ShalokShalom has quit [Remote host closed the connection]
ShalokShalom has joined #ocaml
Jesin has quit [Quit: Leaving]
Jesin has joined #ocaml
gravicappa has quit [Ping timeout: 272 seconds]
jnavila has quit [Remote host closed the connection]
ziyourenxiang has quit [Ping timeout: 272 seconds]
glass has left #ocaml [#ocaml]
theglass has joined #ocaml
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dmiles has quit [Read error: Connection reset by peer]
ravenousmoose has joined #ocaml
jbrown has joined #ocaml
narimiran has quit [Remote host closed the connection]
ggole has quit [Quit: Leaving]
webshinra has quit [Remote host closed the connection]
tane has quit [Quit: Leaving]
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
webshinra has joined #ocaml
caltelt_ has joined #ocaml
djellemah has joined #ocaml
caltelt_ has quit [Remote host closed the connection]
caltelt_ has joined #ocaml
kapilp has quit [Quit: Connection closed for inactivity]
dmiles has joined #ocaml
Serpent7776 has quit [Quit: leaving]
Jeanne-Kamikaze has quit [Quit: Leaving]
kapilp has joined #ocaml
Netsu has quit [Quit: Page closed]
caltelt_ has quit [Remote host closed the connection]
caltelt_ has joined #ocaml
caltelt_ has quit [Ping timeout: 272 seconds]
AtumT has quit [Quit: AtumT]
djellemah has quit [Quit: Leaving]
iovec has quit [Quit: Connection closed for inactivity]
Haudegen has quit [Ping timeout: 245 seconds]
Jeanne-Kamikaze has joined #ocaml
kakadu_ has quit [Remote host closed the connection]
ygrek has joined #ocaml
ziyourenxiang has joined #ocaml