walter|r has quit [Read error: Connection reset by peer]
walter|r has joined #ocaml
gpeterson has joined #ocaml
gpeterson has quit [Ping timeout: 248 seconds]
rand000 has quit [Quit: leaving]
Hannibal_Smith has quit [Quit: Leaving]
jprakash has joined #ocaml
jprakash has quit [Ping timeout: 252 seconds]
shinnya has quit [Ping timeout: 264 seconds]
ericwa has quit [Quit: Leaving...]
mcc has joined #ocaml
<mcc>
Hey um. Is there anyone about who understands the relationship between ocamlopt and ocamlbuild?
<dsheets>
module.native
ygrek has joined #ocaml
gpeterson has joined #ocaml
<mcc>
dsheets: dunno if that is a yes! :) um, i'm just gonna describe my problem. so i have made a small project: https://bitbucket.org/runhello/test-ctypes/src i am trying to work toward the idea of having a c program which includes ocaml compilation units and does calls both ways via ocaml-ctypes.
<mcc>
however, i—
darkf has joined #ocaml
<mcc>
oh, huh. i just realized "dsheets" shows up at the top of this thing i'm about to link ^_^;
<mcc>
is put this line in the myocamlbuild flag ["ocaml"; "link"; "native"; "output_obj"] @@ S[A"-output-complete-obj"; A"-ccopt"; A"\"`pkg-config --libs libffi`\""];
<mcc>
but, it did not interpolate the ``.
<mcc>
ah
<dsheets>
two options, use `Sh
<mcc>
ok so that is sort of what i am doing but i am not using the literal -L
<dsheets>
or invoke ocamlbuild with an env var
<mcc>
what is `Sh?
<mcc>
also an ocaml binding for sodium is super useful and i am excited to find this!
<dsheets>
see the top of that file for the env vars incoming from the makefile
<dsheets>
everyone in the community would love you if you made a nice tutorial or reference or really anything about wth is going on with the build tools
<dsheets>
ok, i gotta get back to hacking, ttyl
<mcc>
well, maybe i'll consider that if i ever learn how to do any of this * _ *
<mcc>
thank you for th ehelp!
<dsheets>
np, good luck!
ygrek has quit [Ping timeout: 246 seconds]
idegen has quit [Quit: Leaving.]
tmtwd has quit [Remote host closed the connection]
ygrek has joined #ocaml
swgillespie has joined #ocaml
ygrek has quit [Remote host closed the connection]
manizzle has quit [Ping timeout: 248 seconds]
gpeterson has joined #ocaml
gpeterson has quit [Ping timeout: 244 seconds]
Bhavya has joined #ocaml
tmtwd has joined #ocaml
ygrek has joined #ocaml
siddharthv_away is now known as siddharthv
dsheets has quit [Ping timeout: 246 seconds]
samrat has joined #ocaml
jprakash has joined #ocaml
jprakash has quit [Client Quit]
struktured has quit [Ping timeout: 264 seconds]
samrat has quit [Quit: Computer has gone to sleep.]
samrat has joined #ocaml
mcc has quit [Quit: This computer has gone to sleep]
larhat has joined #ocaml
larhat1 has quit [Ping timeout: 256 seconds]
BitPuffin|osx has quit [Ping timeout: 256 seconds]
<dongcarl>
Does anyone know why opam doesn't just add `eval (opam config env)` to the shell config but adds `. /home/dongcarl/.opam/opam-init/init.fish > /dev/null 2> /dev/null or true`? In fish shell the longer one doesn't work and wreaks havoc
huza has joined #ocaml
ygrek has quit [Ping timeout: 252 seconds]
sh0t has joined #ocaml
Haudegen has joined #ocaml
tmtwd has quit [Remote host closed the connection]
ollehar has joined #ocaml
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Simn has joined #ocaml
arquebus has joined #ocaml
Submarine has quit [Quit: Leaving]
sh0t has quit [Remote host closed the connection]
keen__________17 has joined #ocaml
keen__________16 has quit [Ping timeout: 256 seconds]
arquebus has quit [Quit: konversation disconnects]
xificurC has joined #ocaml
samrat has quit [Quit: Computer has gone to sleep.]
samrat has joined #ocaml
samrat has quit [Client Quit]
haesbaert has quit [Quit: leaving]
haesbaert has joined #ocaml
zpe has joined #ocaml
malc_ has joined #ocaml
rand000 has joined #ocaml
samrat has joined #ocaml
sh0t has joined #ocaml
<flux>
dongcarl, well, eval (opam config env) wouldn't work in posix shells..
malc_ has quit [Ping timeout: 250 seconds]
<flux>
oh, right, you referred to the fish inclusion line not being correct format :)
<flux>
well the idea I think is to put the initialization to its own file so that if it needs to be updated, it's immensely more easy than manipulating a file - instead, it can just be overwritten
<flux>
but if it adds a line to the fish init scripts that doesn't work, well, then it's certainly a bug :)
sh0t has quit [Client Quit]
malc_ has joined #ocaml
huza has quit [Quit: WeeChat 0.3.8]
<dongcarl>
yeah I've tested this on Ubuntu FreeBSD and Mac
<dongcarl>
Pretty sure it's a bug...
<dongcarl>
Do I open an issue on Github?
<flux>
dongcarl, yes, please :) (on the behalf of the opam developers, I'm not one)
<flux>
but it seems that when the fish support was introduced to 1.1.0-beta at 2013-06-17, it didn't do anything to such generic '.' part
<flux>
so it appears the inclusion mechanism hasn't considered that different shells do the command inclusion in a different way
<flux>
btw, how do you do it in fish? might be worth adding it to the issue, as not many are familiar with it
<flux>
and if you want to raise some interest in the issue ;-), you might want to look up and refer to pull request #655
<dongcarl>
flux: thanks for all the advice
<dongcarl>
what do you mean by how do I do it in fish?
<dongcarl>
I'm not especially good with the fish shell, I've just resorted to replacing the line with eval (opam config env)
<dongcarl>
flux: pull request #655 under opam-repository?
<MercurialAlchemi>
but I'm always wary of these special-purpose languages
ggherdov has joined #ocaml
<MercurialAlchemi>
you also have opa
<MercurialAlchemi>
though I don't think it's particularly functional
<Drup>
opa used to be functional, then it was not functional anymore
<Drup>
this sentence work with both meanings of "functional" :D
mcclurmc has quit [Remote host closed the connection]
ollehar has joined #ocaml
<MercurialAlchemi>
nice pun
<felipealmeida>
:D
so has joined #ocaml
andrewalker has joined #ocaml
mcclurmc has joined #ocaml
Submarine has joined #ocaml
Submarine has joined #ocaml
walter|r has joined #ocaml
<MercurialAlchemi>
of course "we changed the paradigm of the language" doesn't come off as a recommendation for a real-world project with paying customers
<MooseAndCaml>
Hi. Does anyone know if there is way to make a local random int generator? Random.init will initialize from a seed value, but it's global. I'm looking to have multiple generators with only local effects
samrat has joined #ocaml
<flux>
mooseandcaml, maybe you could try cryptokit?
<flux>
or does it have too high-quality generators (ie. slow) for your use?
<MooseAndCaml>
I'm running this on mobile, but it might do. I'm really only generating small ints.
<ggole>
Random.State allows that, doesn't it?
<flux>
well, you need to restore and save state before and after each random number
<flux>
I guess it's fast and works in non-threaded environments
<ggole>
Er, no you don't? Random.State.int takes the state as first argument.
<MooseAndCaml>
it looks like crypto is gpl. So Random.State may be the way to go?
<flux>
oh, never mind
<flux>
I didn't look inside the State module ;)
<ggole>
Oh, you're looking at the top-level of Random with #show :)
<ggole>
Right.
<flux>
no, I was looking the manual page :)
<flux>
I kinda thought the functionality was there, but I figured I must've misremembered :)
<flux>
mooseandcaml, cryptokit is lgpl with a special exception for linking with ocaml programs (ie. you can do it and not be effectively bound by gpl))
<flux>
* not legal advice ;-)
<MooseAndCaml>
ahh, thanks for the clarification.
samrat has quit [Ping timeout: 264 seconds]
samrat has joined #ocaml
ygrek has joined #ocaml
jao has joined #ocaml
samrat has quit [Ping timeout: 240 seconds]
samrat has joined #ocaml
Haudegen has quit [Ping timeout: 264 seconds]
Haudegen has joined #ocaml
MooseAndCaml has quit [Ping timeout: 246 seconds]
slash^ has joined #ocaml
BitPuffin|osx has joined #ocaml
jwatzman|work has joined #ocaml
samrat has quit [Ping timeout: 256 seconds]
MrScout has joined #ocaml
samrat has joined #ocaml
darkf has quit [Quit: Leaving]
haesbaert has joined #ocaml
samrat has quit [Ping timeout: 256 seconds]
samrat has joined #ocaml
BitPuffin|osx has quit [Ping timeout: 252 seconds]
dongcarl has joined #ocaml
jtfmumm has joined #ocaml
mort___ has quit [Ping timeout: 246 seconds]
kushal has quit [Read error: Connection reset by peer]
samrat has quit [Ping timeout: 246 seconds]
Haudegen has quit [Ping timeout: 250 seconds]
zpe has joined #ocaml
<Drup>
flux: it was very ML-y at the beginning, but to appeal to a bigger crowd, they changed to something quite similar to javascript, both in paradigm and syntax
<flux>
drup, is there some documentation highlighting the .. enhancements?
<flux>
but I understand it's a business, they do what the need to survive :)
<Drup>
it didn't really pay off anyway
<Drup>
No, I don't think there is any documentation
<flux>
how long ago did this happen?
<ollehar>
elm?
<Denommus>
ollehar: opa
<ollehar>
ok
<flux>
I kinda would like try try opa, but then I have applications that could benefit from the existing ocaml code
<flux>
and then there's eliom
<flux>
so why bother :)
<Drup>
flux: 2 or 3 y
<flux>
drup, so I guess if there was a benefit to be had, it would've been seen. but I haven't really seen a lot of push or marketing for opa.
<flux>
nobody has shoven compelling examples to my face!
<Drup>
flux: there was a bit of a push, 3 years ago
<Drup>
but it didn't caught and now it's dead :/
<flux>
dead dead? they've given up?
<Drup>
I don't know if the original founder gave up, but yeah, dead.
<flux>
oh, there's a book on it.. published Sep 2013.