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