<d_bot_>
<Kakadu> 1) What is the second code-pointer in entry-point?
<d_bot_>
<Kakadu> 2) I believe that if I partially apply a closure I should be able to see the argument in closure's freevar1. Is it correct? Should I be able to print it as I expect from C?
olle has joined #ocaml
bartholin has joined #ocaml
jmiven_ is now known as jmiven
boxscape has joined #ocaml
<d_bot_>
<ggole> Closures can contain more than one code pointer, which is a trick that allows for more efficient `let rec`.
boxscape has quit [Quit: Connection closed]
<d_bot_>
<Kakadu> @ggole Do you know where I can read more about it?
<d_bot_>
<ggole> Hmm, good question. I can't actually remember where I picked up what I know about closures.
<d_bot_>
<ggole> I don't think I could point at anything specifically for OCaml then.
richbridger has quit [Ping timeout: 256 seconds]
nullcone has quit [Quit: Connection closed for inactivity]
bjorkintosh has quit [Remote host closed the connection]
bjorkintosh has joined #ocaml
mfp has joined #ocaml
TheLemonMan has quit [Remote host closed the connection]
smerdyakov has quit [Read error: Connection reset by peer]
smerdyakov has joined #ocaml
zebrag has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
osa1_ is now known as osa1
shawnw has quit [Ping timeout: 264 seconds]
Haudegen has joined #ocaml
TheLemonMan has joined #ocaml
olle has quit [Quit: Lost terminal]
neiluj has quit [Quit: leaving]
mxns has joined #ocaml
ewd has joined #ocaml
olle has joined #ocaml
ggole has joined #ocaml
tane has joined #ocaml
vicfred has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
mbuf has quit [Quit: Leaving]
mxns has quit [Ping timeout: 276 seconds]
mxns has joined #ocaml
<d_bot_>
<Saroupille> Question: I have a project, and for testing purposes, I would like to patch one function of this project. Maintaining a fork seems to be cumbersome, and especially, for different tests, I would patch different functions in different ways. I do not want to maintain a fork for each test. For different reasons, I cannot modify the original function. From what I understand, I want something quite close to what is called `Aspect-o
mxns has quit [Ping timeout: 245 seconds]
waleee-cl has joined #ocaml
nullcone has joined #ocaml
mxns has joined #ocaml
ewd has quit [Ping timeout: 256 seconds]
bartholin has quit [Quit: Leaving]
ggole has quit [Quit: Leaving]
Haudegen has joined #ocaml
ewd has joined #ocaml
richbridger has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
arecaceae has quit [Remote host closed the connection]
arecaceae has joined #ocaml
olle has quit [Ping timeout: 245 seconds]
mxns has joined #ocaml
narimiran has quit [Ping timeout: 245 seconds]
<d_bot_>
<Kakadu> METAOCaml question: Should it be possible to declare something on one module (file) and use it in *interesting* ways in another module(file)? Does it support cross-module inlining or something like that? The same question for Template Haskell
<d_bot_>
<elwinner> Hi all. I'm trying to run a market making game from https://github.com/sameerlal/OMakeMeAMarket, but whenever I try to run: make clean && make build && make play , I get a Segmentation fault at the make play part. I do not know how to approach this error as I'm just a newbie coder. Does anyone know how to fix this?
<d_bot_>
<Kakadu> It's highly likely that crash is in your code
<d_bot_>
<Kakadu> also using OMakefiles and compiling to bytecode in 2021 is weird. I could recommend you to use dune and compile only to native code
<d_bot_>
<Kakadu> Also, I thing WSL will be better experience then Cygwin
tizoc has quit [Quit: Coyote finally caught me]
tizoc has joined #ocaml
oriba has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
<d_bot_>
<Zach5050> Hello, does anyone understand this error? My Num condition should be excepting an exp type but it is saying something about a string
<steenuil>
you could also condense that as `Plus (Num tmp1, Num tmp2)`
<steenuil>
and the way you would do that is by calling string_of_expression on tmp1 and tmp2
<d_bot_>
<Zach5050> I wanted to keep it in the format that my professor had us do it just in case, was the second reccomandation in the case of the first? because i get an error otherwise because or typing
<d_bot_>
<Zach5050> of*
<d_bot_>
<Zach5050> wait are these bots or people
tane has quit [Quit: Leaving]
<d_bot_>
<Zach5050> that are replying, it says bot
<steenuil>
yeah, those that are marked as bot are people from the IRC channel
<d_bot_>
<Zach5050> I see okay
<d_bot_>
<octachron> Don't use `==` for equality.
<d_bot_>
<octachron> It tests physical equality (same address in memory).
<d_bot_>
<octachron> You should not branch/test on the results of `string_of_expression`
<d_bot_>
<octachron> But that would require to write a non-string based interpreter.
<d_bot_>
<octachron> Another point, building string by concatening small fragments with `^` is inefficient because you end up reallocating the whole string in construction for every little fragments.
<d_bot_>
<Zach5050> thank you @octachron I am a complete noob with ocaml and so just trying to get this project task functioning and then do that stuff later, hopefully this works
<d_bot_>
<octachron> Also, if you want to match on two value, you can use `match a, b with ...` rather than `match a with | a1 -> match b with ... `.
<d_bot_>
<Zach5050> perfect thank you!
<d_bot_>
<Zach5050> I got the true case working hallalujah!!!!!!!!!!!!!!!!!!