companion_cube changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.11 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.11/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
Haudegen has quit [Ping timeout: 260 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 240 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 240 seconds]
mxns has joined #ocaml
oriba has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
mxns has quit [Ping timeout: 272 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 276 seconds]
inkbottle has joined #ocaml
zebrag has quit [Ping timeout: 245 seconds]
rock64 has quit [Ping timeout: 264 seconds]
mxns has joined #ocaml
rock64 has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
richbridger has quit [Remote host closed the connection]
mxns has joined #ocaml
richbridger has joined #ocaml
osa1_ has joined #ocaml
osa1 has quit [Ping timeout: 260 seconds]
zozozo has quit [Ping timeout: 260 seconds]
zozozo has joined #ocaml
mxns has quit [Ping timeout: 245 seconds]
mxns has joined #ocaml
andreas303 has quit [Ping timeout: 268 seconds]
andreas303 has joined #ocaml
mfp has quit [Ping timeout: 260 seconds]
inkbottle has quit [Quit: Konversation terminated!]
boxscape has joined #ocaml
narimiran has joined #ocaml
mxns has quit [Ping timeout: 264 seconds]
boxscape has quit [Quit: Connection closed]
waleee-cl has quit [Quit: Connection closed for inactivity]
Serpent7776 has joined #ocaml
shawnw has joined #ocaml
White_Flame has quit [Ping timeout: 256 seconds]
TheLemonMan has joined #ocaml
Haudegen has joined #ocaml
White_Flame has joined #ocaml
raver has joined #ocaml
clockish_ has joined #ocaml
cqc_ has joined #ocaml
caasih_ has joined #ocaml
Duns_Scrotus_ has joined #ocaml
wildsebastian_ has joined #ocaml
madgen____ has joined #ocaml
bytesighs_ has joined #ocaml
mgsk__ has joined #ocaml
d_bot_ has joined #ocaml
stylewarning_ has joined #ocaml
higherorder__ has joined #ocaml
ec_ has joined #ocaml
lisq_ has joined #ocaml
RalfJ has joined #ocaml
jerith_ has joined #ocaml
jmiven_ has joined #ocaml
alexey_ has joined #ocaml
beaky_ has joined #ocaml
sim642_ has joined #ocaml
Tuplanolla has joined #ocaml
alexey_ has quit [Quit: leaving]
alexey has quit [Disconnected by services]
alexey has joined #ocaml
jmiven has quit [*.net *.split]
lisq has quit [*.net *.split]
clockish has quit [*.net *.split]
RalfJung has quit [*.net *.split]
higherorder_ has quit [*.net *.split]
d_bot has quit [*.net *.split]
ec has quit [*.net *.split]
mgsk has quit [*.net *.split]
Duns_Scrotus has quit [*.net *.split]
companion_cube has quit [*.net *.split]
stylewarning has quit [*.net *.split]
cqc has quit [*.net *.split]
jerith has quit [*.net *.split]
wildsebastian has quit [*.net *.split]
bytesighs has quit [*.net *.split]
caasih has quit [*.net *.split]
madgen_ has quit [*.net *.split]
beaky has quit [*.net *.split]
sim642 has quit [*.net *.split]
cqc_ is now known as cqc
madgen____ is now known as madgen_
clockish_ is now known as clockish
sim642_ is now known as sim642
caasih_ is now known as caasih
bytesighs_ is now known as bytesighs
Duns_Scrotus_ is now known as Duns_Scrotus
wildsebastian_ is now known as wildsebastian
companion_cube has joined #ocaml
mgsk__ is now known as mgsk
ec_ is now known as ec
stylewarning_ is now known as stylewarning
lisq_ is now known as lisq
beaky_ is now known as beaky
mbuf has joined #ocaml
arecaceae has quit [Remote host closed the connection]
arecaceae has joined #ocaml
vicfred has quit [Quit: Leaving]
<d_bot_> <Kakadu> I'm reading https://github.com/ocaml/ocaml/pull/9619 . Two questions:
<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> RWO might have a bit on 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> @Zach5050 you're calling string_of_expression on that pattern on line 20
<steenuil> which means you're matching the string returned by string_of_expression, not on the exp
<d_bot_> <Zach5050> Oh wow that makes sense now
<d_bot_> <Zach5050> thank you
<d_bot_> <Zach5050> Do you know a way that I can force it to be a Num
Serpent7776 has quit [Quit: leaving]
neiluj has joined #ocaml
neiluj has joined #ocaml
neiluj has quit [Changing host]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
<d_bot_> <Zach5050> I have this now, no errors and makes sense but I must find a way to recurse the expression
<d_bot_> <Zach5050> without that type error
<d_bot_> <Zach5050> I believe this should work, I am first testing to see if num, then recurse on it after the initial checks for the whole expression
<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!!!!!!!!!!!!!!!!!!
mxns has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
Jesin has quit [Quit: Leaving]
Haudegen has quit [Ping timeout: 260 seconds]