companion_cube changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.05.0 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.05/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
kakadu has quit [Ping timeout: 248 seconds]
<copy`> hurrdurrmurr: I had the same problem, try running eval `opam config env` and restarting emacs
<copy`> When it works you should be able to tab-complete the socket instead of selecting it from the filesystem
enterprisey has quit [Ping timeout: 248 seconds]
<hurrdurrmurr> copy`: cool thanks, will give it a try!
infinity0 has quit [Ping timeout: 248 seconds]
infinity0 has joined #ocaml
VermillionAzure has quit [Ping timeout: 248 seconds]
Vermie has quit [Ping timeout: 255 seconds]
silver has quit [Read error: Connection reset by peer]
govg has quit [Ping timeout: 248 seconds]
spew has joined #ocaml
mfp has quit [Ping timeout: 258 seconds]
cbot_ has joined #ocaml
cbot has quit [Ping timeout: 240 seconds]
pierpa has quit [Quit: Page closed]
VermillionAzure has joined #ocaml
Vermie has joined #ocaml
malc_ has quit [Ping timeout: 240 seconds]
shinnya has joined #ocaml
nomicflux has joined #ocaml
spew has quit [Ping timeout: 248 seconds]
sh0t has quit [Ping timeout: 248 seconds]
Vermie has quit [Ping timeout: 255 seconds]
VermillionAzure has quit [Ping timeout: 248 seconds]
dedgrant_ has quit [Quit: Leaving]
VermillionAzure has joined #ocaml
Vermie has joined #ocaml
sh0t has joined #ocaml
<kerrhau> what fp lang should I learn first?
samrat_ has joined #ocaml
cbot has joined #ocaml
cbot_ has quit [Ping timeout: 240 seconds]
enterprisey has joined #ocaml
bruce_r has joined #ocaml
VermillionAzure has quit [Ping timeout: 255 seconds]
Vermie has quit [Ping timeout: 255 seconds]
Vermie has joined #ocaml
VermillionAzure has joined #ocaml
shinnya has quit [Ping timeout: 248 seconds]
aytas__ has joined #ocaml
aytas__ has quit [Remote host closed the connection]
VermillionAzure has left #ocaml ["Leaving"]
govg has joined #ocaml
ski has quit [Remote host closed the connection]
nomicflux has quit [Quit: nomicflux]
bruce_r has quit [Ping timeout: 240 seconds]
Guest67555 has joined #ocaml
Guest67555 has quit [Client Quit]
zaquest has quit [Quit: Leaving]
bruce_r has joined #ocaml
littleli has quit [Quit: Connection closed for inactivity]
jbrown has quit [Ping timeout: 240 seconds]
kerrhau has quit [Ping timeout: 255 seconds]
infinity0_ has joined #ocaml
infinity0_ has quit [Changing host]
infinity0_ has joined #ocaml
infinity0 is now known as Guest51986
Guest51986 has quit [Ping timeout: 248 seconds]
zmt00 has quit [Quit: Leaving]
zaquest has joined #ocaml
parataxis_ has joined #ocaml
TarVanimelde has joined #ocaml
dogui has quit [Ping timeout: 248 seconds]
dogui has joined #ocaml
bruce_r has quit [Ping timeout: 255 seconds]
cbot has quit [Quit: Leaving]
freyr has joined #ocaml
TarVanimelde has quit [Quit: TarVanimelde]
sapristi has joined #ocaml
ollehar_ has joined #ocaml
sh0t has quit [Remote host closed the connection]
argent_smith has joined #ocaml
awal has quit [Quit: ZNC 1.6.4 - http://znc.in]
mfp has joined #ocaml
awal has joined #ocaml
awal is now known as Guest95989
Guest95989 is now known as awal
malina has quit [Remote host closed the connection]
malina has joined #ocaml
mali__ has joined #ocaml
malina has quit [Ping timeout: 246 seconds]
<orbifx[m]> kerrhau: OCaml of course?
TheLemonMan has joined #ocaml
parataxis_ has quit [Quit: Connection closed for inactivity]
Vermie has quit [Quit: Leaving]
_andre has joined #ocaml
<oh_lawd> oh, can I say this again: OCaml has by far the best out-of-the-box experience with emacs/spacemacs
<oh_lawd> I have about ten different languages I do, none of it has as easy beginner setup as ocaml
<oh_lawd> I was productive yesterday already
<oh_lawd> today I'll write one command line http rest client I always do with a new language, to get a grasp with how monads work in OCaml
<oh_lawd> except that it doesn't seem to support jbuild file syntax automatically
<oh_lawd> ah well, upgrading tuareg fixed the problem
samrat_ has quit [Ping timeout: 255 seconds]
ollehar_ has quit [Read error: Connection reset by peer]
<Leonidas> how can I make jbuilder compile a file using js_of_ocaml?
<Leonidas> I have created a library entry for my module
<Leonidas> with (js_of_ocaml ())
<oh_lawd> hmm, now I have problem with lwt, it seems to segfault utop
<oh_lawd> here's the valgrind log https://www.irccloud.com/pastebin/jcM5517k/
<oh_lawd> it seems lwt cannot find libev, even though it's installed
<oh_lawd> I get lwt 3.0.0, but github seems to find a tag 3.1.0
<Leonidas> have you run `opam update`?
<oh_lawd> let's try that
kakadu__ has joined #ocaml
<oh_lawd> that did it, thanks :)
sapristi has quit [Ping timeout: 255 seconds]
<oh_lawd> so now I know opam works more like apt, so I need to update the listings first
<M-martinklepsch> Hey there. I'm trying to get started with a basic ocaml project following https://adambard.com/blog/getting-started-with-ocaml/ but I'm having trouble installing things: http://sprunge.us/cFfG
tobiasBora has joined #ocaml
<M-martinklepsch> I tried uninstalling opam and deleting ~/.opam/ but that didn't help
<oh_lawd> what about trying `opam update` too?
<oh_lawd> if it worked for me, maybe it'll help you too :D
zolk3ri has joined #ocaml
<M-martinklepsch> I think I did that before but will try again
johnelse has quit [Read error: Connection reset by peer]
johnelse has joined #ocaml
<M-martinklepsch> also I just managed to install jbuilder but it's not showing up in `~/.opam/4.04.0/bin/`
<M-martinklepsch> (I checked that opam switch is configured to use 4.04.0)
Fardale is now known as test_fardale
test_fardale is now known as Fardale
dhil has joined #ocaml
samrat_ has joined #ocaml
<orbifx[m]> martinklepsch: can you run `opam switch` and examine the output
<orbifx[m]> Does it have any warnings near the bottom?
<M-martinklepsch> no Orbifx
mali__ has quit [Quit: Throwing apples of Montserrat]
<orbifx[m]> Which compiler does it say it's using?
<M-martinklepsch> 4.04.0 C 4.04.0 Official 4.04.0 release
<M-martinklepsch> Orbifx: when I install jbuilder it also says it's installed already
<M-martinklepsch> (I did install it earlier, just saying to state it's properly recognized by opam -- if that makes any sense)
<orbifx[m]> Maybe it's gone corrupted. Are you using Bash, or some other shell?
<M-martinklepsch> fish
<orbifx[m]> Can you try running Bash, to test if it's working there.
<orbifx[m]> ?
<M-martinklepsch> but shell aside, shouldn't the binary show up in ~/.opam/version/bin)/
<M-martinklepsch> but shell aside, shouldn't the binary show up in ~/.opam/version/bin?
<Fardale> M-martinklepsch: can you paste the output on `opam switch`
<Fardale> Ah no made a mistake
spew has joined #ocaml
<orbifx[m]> martinklepsch: it should, but whilst using fish, it might be checking a different dir
<M-martinklepsch> `opam config env` gives instructions for the user's shell, not for the shell it's running in, is that intended?
<orbifx[m]> yes
spew has quit [Read error: Connection reset by peer]
<orbifx[m]> because you are supposed to run `eval \`opam config env\``
<orbifx[m]> well that didn't work :P `eval '(opam config env)'` (but backticks not '
<orbifx[m]> Also, I just noticed that the code you pasted says it's trying to build in: `.opam/system/build/..`
<M-martinklepsch> in bash: http://sprunge.us/YDPM
<orbifx[m]> In short, I think your `.opam` might have got messed up, and it could be because of incompatibility with Fish. Just a theory.
<M-martinklepsch> I wiped it before and reinstalled opam as well :D
<M-martinklepsch> I guess I'll wipe it again and try with bash?
<orbifx[m]> I would
<orbifx[m]> and instead of using `.opam/opam-init/variables.sh`, use `eval ``opam config env`` `
<M-martinklepsch> ok, will give that a shot
<orbifx[m]> Single backtick
<orbifx[m]> One of these days I will get backtick escaping correctly
<companion_cube> `eval $(opam config env)`
<companion_cube> simpler :p
<orbifx[m]> Too easy :P
<orbifx[m]> It turns out it's: ``eval `opam config env` ``
<orbifx[m]> companion_cube: does your IRC client render markdown?
<companion_cube> no it doesn't
aubian is now known as Fistine
dhil has quit [Ping timeout: 248 seconds]
<orbifx[m]> martinklepsch: note that in `opam-init` there is a specialise `init.fish`
<orbifx[m]> But I still think you should get it work with bash, and then try fish.
<M-martinklepsch> yeah, I've been using these I think
<M-martinklepsch> like there is `eval (opam config env)` for fish which seems to be doing the same thing
<M-martinklepsch> it's kind of annoying that `opam config env` returns fish stuff even though I'm (temporarily) in bash
<M-martinklepsch> using `. ~/.opam/opam-init/init.sh` now
<M-martinklepsch> alright, works in bash :D
sapristi has joined #ocaml
<orbifx[m]> :)
<orbifx[m]> Either the Fish scripts have a bug, or somehow the environment got mixed through one bad command and the problem grew from there.
nomicflux has joined #ocaml
grayswandyr has joined #ocaml
<orbitz> Any suggestions on material to implement, end-to-end, an ML? Something for someone curious about what actually happens.
malc_ has joined #ocaml
shinnya has joined #ocaml
jbrown has joined #ocaml
dhil has joined #ocaml
<M-martinklepsch> OMG 🤦
grayswandyr has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<M-martinklepsch> Orbifx: I have an `install` function defined in fish which shadows the `install` thing used by opam
Jesin has quit [Quit: Leaving]
<orbifx[m]> Is that what messed it up?
nomicflux has quit [Quit: nomicflux]
<M-martinklepsch> yeah, figured it out by doing `opam install -y --debug jbuilder`, that showed me the install command was being used, then I tried running it manually and saw that it's running something else
nomicflux has joined #ocaml
nomicflux has quit [Client Quit]
johnelse has quit [Read error: No route to host]
johnelse has joined #ocaml
<orbifx[m]> :)
shinnya has quit [Ping timeout: 248 seconds]
ziyourenxiang has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
Jesin has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 260 seconds]
FreeBirdLjj has joined #ocaml
freyr has quit [Remote host closed the connection]
p1n34ppl3 has quit [Quit: Lost terminal]
snhmib has joined #ocaml
yomimono has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
dhil has quit [Ping timeout: 248 seconds]
enterprisey has quit [Ping timeout: 255 seconds]
zmt00 has joined #ocaml
dhil has joined #ocaml
samrat_ has quit [Ping timeout: 248 seconds]
ziyourenxiang has quit [Ping timeout: 252 seconds]
sh0t has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
dedgrant has joined #ocaml
FreeBirdLjj has joined #ocaml
<oh_lawd> if >>= is monadic bind, what is the purpose of >|=
<oh_lawd> and what is the cheatsheet for all these?
<oh_lawd> googling doesn't really help
<zolk3ri> lwt?
<oh_lawd> thanks!
<oh_lawd> it's still a bit hard to find all the docs
<oh_lawd> new language and all
<oh_lawd> so it was map
<oh_lawd> ha, thanks
<oh_lawd> hmm, is there some nice way to indent all these monad operations, I guess OCaml doesn't have do notation sugar?
<zolk3ri> Well, for indentation in general: https://opam.ocaml.org/blog/turn-your-editor-into-an-ocaml-ide/ if you haven't read it yet :D
<zolk3ri> I also use tuareg https://github.com/ocaml/tuareg
<zolk3ri> could come in handy
<theblatte> indenting code yourself is so 2016 >> https://github.com/ocaml-ppx/ocamlformat
andreas__ has quit [Quit: Connection closed for inactivity]
<oh_lawd> I use tuareg too
<oh_lawd> I still don't really like nested binds that much, there seem to be some extensions to support do notation, but I'd like to go with the core language for now
<oh_lawd> what is the general feeling about Facebook's reason in the OCaml community, haven't been following for a while
enterprisey has joined #ocaml
kakadu__ has quit [Quit: Konversation terminated!]
aziem has quit [Ping timeout: 248 seconds]
aziem has joined #ocaml
jnavila has joined #ocaml
sapristi has quit [Read error: Connection reset by peer]
zaquest has quit [Quit: Leaving]
sapristi has joined #ocaml
mk9 has joined #ocaml
jnavila has quit [Ping timeout: 240 seconds]
dhil has quit [Ping timeout: 264 seconds]
zaquest has joined #ocaml
dhil has joined #ocaml
enterprisey has quit [Remote host closed the connection]
kakadu has joined #ocaml
TheLemonMan has joined #ocaml
jnavila has joined #ocaml
tane has joined #ocaml
yomimono has quit [Ping timeout: 268 seconds]
ShalokShalom has joined #ocaml
yomimono has joined #ocaml
dedgrant_ has joined #ocaml
dedgrant has quit [Ping timeout: 255 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
enterprisey has joined #ocaml
el has left #ocaml [#ocaml]
enterprisey has quit [Remote host closed the connection]
jnavila has quit [Quit: Konversation terminated!]
jnavila_ has joined #ocaml
kakadu_ has joined #ocaml
kakadu has quit [Ping timeout: 240 seconds]
kerrhau has joined #ocaml
yomimono has quit [Ping timeout: 248 seconds]
mk9 has quit [Remote host closed the connection]
sh0t has quit [Remote host closed the connection]
jnavila_ has quit [Ping timeout: 258 seconds]
yomimono has joined #ocaml
ayxih has quit [Remote host closed the connection]
ayxih has joined #ocaml
spew has joined #ocaml
enterprisey has joined #ocaml
sapristi has quit [Quit: Leaving]
orbifx has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
dhil has quit [Ping timeout: 248 seconds]
bruce_r has joined #ocaml
snhmib has quit [Ping timeout: 240 seconds]
sh0t has joined #ocaml
sh0t has quit [Remote host closed the connection]
tane has quit [Quit: Leaving]
orbifx has quit [Ping timeout: 240 seconds]
navaja has joined #ocaml
ShalokShalom has quit [Remote host closed the connection]
yomimono has quit [Ping timeout: 248 seconds]
yomimono has joined #ocaml
<companion_cube> most people won't use it, I think
<companion_cube> once they are used to vanilla syntax
jnavila_ has joined #ocaml
enterprisey has quit [Remote host closed the connection]
jnavila_ has quit [Remote host closed the connection]
mk9 has joined #ocaml
navaja has quit [Ping timeout: 260 seconds]
mk9_ has joined #ocaml
mk9 has quit [Ping timeout: 268 seconds]
mk9_ has quit [Client Quit]
pierpa has joined #ocaml
malina has joined #ocaml
kakadu_ has quit [Remote host closed the connection]