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
asymptotically has quit [Quit: Leaving]
jbrown has joined #ocaml
ziyourenxiang has joined #ocaml
jao has quit [Ping timeout: 250 seconds]
jmiven has quit [Quit: co'o]
jmiven has joined #ocaml
recj has joined #ocaml
MicronXD21 has joined #ocaml
MicronXD21 has quit [Remote host closed the connection]
mfp has quit [Ping timeout: 272 seconds]
jao has joined #ocaml
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
troydm has joined #ocaml
jao has quit [Ping timeout: 252 seconds]
tormen has joined #ocaml
tormen_ has quit [Ping timeout: 244 seconds]
_whitelogger has joined #ocaml
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
<recj> is there by any chance a way to use a match statement to match a value with a condition
<recj> like match an integer with <,= or > some value, for example
larsemil5 has joined #ocaml
larsemil5 has quit [Remote host closed the connection]
<dsp> i know 0 ocaml but i did smth like let foo function
<dsp> | (a,b) where a > x ...
<dsp> the other day... i don't know if that's what you are asking recj
<recj> so that where is what I was looking for dsp
<recj> thanks
<dsp> check this https://pastebin.com/a1V6nDR2 .. .fib1 . (fib2 is wrong on that one due to missing parentheses around the arguments
<dsp> and i just noticed. it's not where but when
<recj> that's fine. thanks
<recj> also the function keyword isn't necessary right? is it one of those things where you write it to be more specific like (n:int) or (s : string) ?
<dsp> i have absolutely idea. i have less than 24hrs of ocaml exposure and all the keywords are falling hard from me , coming from carefree scheme ;)
<recj> lol. It's on my todo list to learn some kind of lisp, being an emacs user. I found this book people are raving about called "The Structure and Interpretation of Computer Programs" that teaches about program interpretation using lisp
<recj> I would think so.
<recj> Also I did fib n like this when starting out
<dsp> i would expect that i should be able to use that same syntax with a match???? it seems to me that you don't specify the type of function exactly. you leave the arguments openended for that kinda of function prototype match (but not prototype, value too.. it seems powerful)
<dsp> i am teaching SICP actually at the university i'm working at right now ;) it is probably the most amazing thing i have read in my entire programming career.
<dsp> and life. i consider it a masterpiece.
<dsp> definitely go through it and solve exercises. pm if you get stuck.
<recj> awesome. I have to read it then! :-)
<dsp> but ocaml seems to be having some very good ideas. like the idea that you can have a function(x, y, z) and specify x and y and get back a function of just z
<dsp> that's ultra cool syntactic sugar.
<recj> yeah, it is. makes life easier
<recj> oh I see what you did now.... where I used a match statement you used function and defined the cases
_whitelogger has joined #ocaml
_whitelogger has joined #ocaml
ggole has joined #ocaml
warriors has quit [Quit: Connection closed for inactivity]
metreo has left #ocaml [#ocaml]
_whitelogger has joined #ocaml
manas has joined #ocaml
_whitelogger has joined #ocaml
jack5638 has quit [Ping timeout: 244 seconds]
jack5638 has joined #ocaml
tane has joined #ocaml
vilinski has quit [Quit: Connection closed for inactivity]
manas has quit [Read error: Connection reset by peer]
manas has joined #ocaml
manas_ has joined #ocaml
manas has quit [Read error: Connection reset by peer]
kakadu has joined #ocaml
iAmDecim has joined #ocaml
jbrown has quit [Ping timeout: 252 seconds]
fraxamo has joined #ocaml
bartholin has joined #ocaml
Habib has joined #ocaml
jbrown has joined #ocaml
orbifx1 has joined #ocaml
phserr has joined #ocaml
asymptotically has joined #ocaml
phserr has quit [Client Quit]
mfp has joined #ocaml
orbifx1 has quit [Ping timeout: 268 seconds]
phserr has joined #ocaml
phserr has left #ocaml ["Leaving"]
sonologico has quit [Ping timeout: 246 seconds]
sonologico has joined #ocaml
iAmDecim has quit [Quit: WeeChat 1.9]
Habib has left #ocaml [#ocaml]
<sonologico> I'm trying to understand the implications of this PR: https://github.com/ocaml/ocaml/pull/1063. If you can only load modules once, how would you structure an application where you want to allow users to write plugins interactively? Meaning that they might need to reload it multiple times in the application while developing
jnavila has joined #ocaml
govg has joined #ocaml
fraxamo has quit [Quit: Leaving]
Guest65929 has joined #ocaml
govg has quit [Ping timeout: 268 seconds]
Guest65929 has quit [Remote host closed the connection]
Haudegen has joined #ocaml
<Drup> sonologico: well, the PR partially answers that. Use a caching mecanism.
manas has joined #ocaml
manas_ has quit [Ping timeout: 276 seconds]
manas has quit []
<sonologico> Drup, maybe I'm missing something. The idea in such a setup (that I described) is the module should be reevaluated
<sonologico> The user is interactively developing the plugin on top of the running application. Meaning that they would reload the plugin multiple times in the course of doing so and expect it to always have their latest definitions.
<Drup> If the pluging is being developed, then the new one is not the same as the old one.
<sonologico> I'm looking through the code to understand how the check is done, but I was under the impression that it was based only on the name of the module
weird_error has quit [Quit: weird_error]
<Drup> does the name really matters ? you can't access the name of the cmo inside the program.
jbrown has quit [Ping timeout: 264 seconds]
<sonologico> Not in principle, but in a multiple module plugin, you would have to name mangle the module names consistently across the files
<sonologico> or maybe not with packing
maximjaffe has joined #ocaml
jbrown has joined #ocaml
_whitelogger has joined #ocaml
manas has joined #ocaml
manas has quit [Client Quit]
manas has joined #ocaml
manas_ has joined #ocaml
manas has quit [Ping timeout: 268 seconds]
jao has joined #ocaml
metreo has joined #ocaml
ziyourenxiang has quit [Ping timeout: 268 seconds]
manas_ has quit []
orbifx1 has joined #ocaml
Jeanne-Kamikaze has joined #ocaml
fraxamo has joined #ocaml
zlsyx has joined #ocaml
jbrown has quit [Ping timeout: 244 seconds]
orbifx1 has quit [Ping timeout: 252 seconds]
manas has joined #ocaml
cschneid has quit [Ping timeout: 250 seconds]
oni-on-ion has quit [Ping timeout: 268 seconds]
oni-on-ion has joined #ocaml
manas has quit [Remote host closed the connection]
Haudegen has quit [Remote host closed the connection]
<MarcWeber> How to build debuggable executable (native or byte) with ocamlbuild ?
<def`> you can pass -tag debug or add "true: debug" in the _tags file
recj has quit [Ping timeout: 244 seconds]
wagle has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
wagle has joined #ocaml
wagle has quit [Client Quit]
wagle has joined #ocaml
ggole has quit [Remote host closed the connection]
nkaretnikov has joined #ocaml
<nkaretnikov> hi! having issues trying to install ocamlfind on macos. i'm not an ocaml user, just trying to compile a program that needs ocamlfind. any help would be appreciated! https://gist.github.com/nkaretnikov/7300fac487c3722e463147e20e127ff8
<nkaretnikov> fwiw, i installed ocaml and opam via brew with `brew install ocaml opam` and successfully installed `core` with opam. so i guess my setup is fine?
wagle has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
wagle has joined #ocaml
wagle has quit [Client Quit]
Guest82096 has joined #ocaml
wagle has joined #ocaml
wagle has quit [Client Quit]
Guest82096 has quit [Remote host closed the connection]
Haudegen has joined #ocaml
recj has joined #ocaml
<def`> nkaretnikov: if I were you I would try again in an opam managed "switch" (basically a switch is an installation of OCaml, and in your setup it is trying to use a system provided ocaml, probably installed by brew)
<def`> issues are always harder to diagnose with this setup because of there are more moving pieces
<def`> $ opam switch create 4.06.1
<def`> $ eval $(opam env) # update shell config
<def`> $ opam install ocamlfind
<def`> (from memory, sorry if I made a typo :P)
* nkaretnikov tries
orbifx1 has joined #ocaml
<nkaretnikov> def`: Undefined symbols for architecture x86_64 again during the switch, the symbols are different though
<nkaretnikov> should i open an issue in the opam repo maybe?
<def`> maybe, I don't know what is going on :P
zlsyx has quit [Quit: Leaving...]
wagle has joined #ocaml
<nkaretnikov> Will do. thanks anyway!
zlsyx has joined #ocaml
orbifx1 has quit [Ping timeout: 268 seconds]
wagle has quit [Client Quit]
al-damiri has joined #ocaml
zmt00 has joined #ocaml
wagle has joined #ocaml
wagle has quit [Client Quit]
fraxamo has quit [Quit: Leaving]
wagle has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
tankf33der has joined #ocaml
dmiles has quit [Ping timeout: 246 seconds]
metreo has left #ocaml [#ocaml]
jbrown has joined #ocaml
Jeanne-Kamikaze has quit [Quit: Leaving]
dmiles has joined #ocaml
zlsyx has quit [Quit: Leaving...]
jnavila has quit [Remote host closed the connection]
tane has quit [Quit: Leaving]
zlsyx has joined #ocaml
themsay has joined #ocaml
zlsyx has quit [Quit: Leaving...]
bartholin has quit [Remote host closed the connection]
asymptotically has quit [Remote host closed the connection]
asymptotically has joined #ocaml
asymptotically has quit [Remote host closed the connection]
emmanuel_erc has joined #ocaml
Haudegen has quit [Remote host closed the connection]
recj has quit [Quit: Lost terminal]
manas has joined #ocaml
jadrian has joined #ocaml
manas has quit [Ping timeout: 268 seconds]
<jadrian> how we upgrade to the newest ocaml version using opam?
<jadrian> I'm sure this is simple but I can't find a straightforward answer
keep_learning has joined #ocaml
<jadrian> one way appears to use `opam switch` to install a new compiler
<jadrian> then use switch export and import to the new compiler
<jadrian> but I'm not even sure how to check which ocaml versions are available
<jadrian> and I'm guessing there's a simpler route
kakadu has quit [Remote host closed the connection]
<jadrian> I found "opam switch reinstall system" but it fails, and indeed I don't have an ~/.opam/system
manas has joined #ocaml