Leonidas changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.13.0 released: https://ocaml.org/releases/4.13.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
gwizon has quit [Ping timeout: 240 seconds]
ski has joined #ocaml
<d_bot> <Sliver> I have a problem to configurate OPAM on my computer.
<d_bot> <Sliver> What can I do ?
<d_bot> <NULL> Can you connect to the internet at all within Cygwin ?
<d_bot> <NULL> (For IRC users, how are images sent across; are they at all ?)
kaph has joined #ocaml
<d_bot> <NULL> It kinda works, cool. Funny how on our side the image is both linked and sent normally
<b0o> oh btw those http://maddymach URLs are from a weechat plugin, disregard those
Everything has joined #ocaml
<d_bot> <Sliver> of course, I'm connect to the internet
<d_bot> <NULL> Note the *within Cygwin* part
<d_bot> <Sliver> How i know this ?
<d_bot> <NULL> `ping 8.8.8.8` should tell
<d_bot> <Sliver> I think it's fine
<d_bot> <Sliver> (it's in french)
<d_bot> <NULL> What's the beginning of the error when you `opam install` something ?
<d_bot> <Sliver> oh i'll take a screen. Wait.
<d_bot> <NULL> When you do `curl https://www.google.com/` do you get something that looks like a html file or an error ?
<d_bot> <Sliver> it begins by <!doctype html>
<qwr> html, piped into lynx and looked like google search in lynx ;)
<d_bot> <NULL> `curl http://download.camlcity.org/download/findlib-1.9.1.tar.gz --write-out %{http_code}\\n` should print out warnings about binary output and 200 at the end. Does it ?
pieguy128 has quit [Ping timeout: 240 seconds]
pieguy128 has joined #ocaml
<d_bot> <Sliver> I saw 3 Warning and 200 when i execute this command
rgrinberg has joined #ocaml
<b0o> is there a conventional way to assert that a pattern match branch should never be reached? currently I'
<b0o> I'm using failwith
<companion_cube> assert false
<d_bot> <Et7f3> In some case refutation case work: `| _ -> .`
<d_bot> <Et7f3> @Sliver install dash
<d_bot> <Et7f3> `dash -c 'curl http://download.camlcity.org/download/findlib-1.9.1.tar.gz --write-out %{http_code}\\n'` should print out warnings about binary output and 200 at the end. Does it ?
<d_bot> <Et7f3> (Copied msg from NUL and added dash -c '') in error it seem to create_process with dash.exe in main program
<d_bot> <Sliver> dash command not found ?
<d_bot> <Et7f3> Then install it
<d_bot> <NULL> How did you install opam ? I just tried it and had no issue
waleee has quit [Ping timeout: 250 seconds]
Haudegen has quit [Ping timeout: 256 seconds]
<d_bot> <Sliver> I downloaded Ocaml64.exe in administrator and i create an environement variable OCAMLLIB and create a way to bin folder in PATH. Everything is working.
<d_bot> <Sliver> But this error 😣
<d_bot> <NULL> You downloaded and installed OCaml64; now you can't run `opam install ocaml-lsp-server` ?
<d_bot> <Sliver> i have this
<d_bot> <NULL> All good for now
<d_bot> <NULL> What were you trying to install at first ?
Techcable has joined #ocaml
<d_bot> <Sliver> when i write for pkg in merlin ocp-indent utop ; do opam show -f installed-version $pkg ; done. i must see 3 numbers of version like 4.4-411, 1.8.1, and 2.9.0 for example but i don't have it
<d_bot> <Sliver> (You can see that on my first msg at the bottom of the screen)
haesbaert has quit [Ping timeout: 260 seconds]
<d_bot> <NULL> That's just a way to check that you have installed the packages, that shouldn't cause issues
<d_bot> <NULL> Did the installation conclude ?
<d_bot> <Sliver> I think this is bad 😭
<d_bot> <Sliver> (maybe not i hope)
<d_bot> <NULL> What did you do besides installing OCaml64 ?
<d_bot> <Sliver> I installed a text editor but i think it's not important
<d_bot> <NULL> This may be the easiest as I don't understand: Remove `C:\OCaml64` (the folder where this is installed), reinstall, `opam install ...`
haesbaert has joined #ocaml
<d_bot> <Sliver> where i write opam install ...
<d_bot> <Sliver> ?
<d_bot> <NULL> In the Cygwin terminal
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
zebrag has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mbuf has joined #ocaml
azimut_ has quit [Remote host closed the connection]
azimut has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
gravicappa has joined #ocaml
dalek-caan has joined #ocaml
shawnw has joined #ocaml
jlrnick has quit [Ping timeout: 268 seconds]
kaph has quit [Read error: Connection reset by peer]
haesbaert has quit [Ping timeout: 250 seconds]
haesbaert has joined #ocaml
np has left #ocaml [WeeChat 3.3]
Tuplanolla has joined #ocaml
<d_bot> <let Butanium = raise Not_found;;> @Sliver if you want z windows install that run in CMD/PowerShell and that install everything in one shot, check https://diskuv.gitlab.io/diskuv-ocaml/
<d_bot> <let Butanium = raise Not_found;;> It takes a while to install but you don't have to do anything. Also it's ~40Go I think
Serpent7776 has joined #ocaml
bartholin has joined #ocaml
olle has joined #ocaml
Everything has quit [Quit: leaving]
ouestbillie has quit [Ping timeout: 240 seconds]
spip has quit [Ping timeout: 240 seconds]
spip has joined #ocaml
jlrnick has joined #ocaml
kaph has joined #ocaml
bgs has quit [Ping timeout: 256 seconds]
bartholin has quit [Ping timeout: 256 seconds]
bgs has joined #ocaml
np has joined #ocaml
bartholin has joined #ocaml
<dmbaturin> Anyone has this problem with utop in 4.13? `Reason: dlllwt_unix_stubs.so: cannot open shared object file: No such file or directory`
bgs has quit [Read error: Connection reset by peer]
bgs has joined #ocaml
nimaje has quit [Quit: WeeChat 3.3]
<d_bot> <crab λ> How do I install bwrap??
<dmbaturin> From your OS package repositories, typically.
<d_bot> <crab λ> There weren’t any instructions in the bwrap repo
chrisz has quit [Ping timeout: 268 seconds]
<dmbaturin> What OS are you using?
chrisz has joined #ocaml
<d_bot> <crab λ> Windows, but I have a Ubuntu subsystem
<dmbaturin> If you are using opam inside the Linux container, then you can install it from the repos. `apt-get install bwrap`
Haudegen has joined #ocaml
<d_bot> <crab λ> thanks
<d_bot> <crab λ> do you have a more specific installation
<d_bot> <crab λ> because it cant find bwrap
<dmbaturin> Sorry, they call it bubblewrap. `apt-get install bubblewrap`
<dmbaturin> Note that you could get the same information from STFW: https://duckduckgo.com/?q=ubuntu+bubblewrap ;)
<d_bot> <crab λ> ah
<d_bot> <crab λ> opam ins6taled, but ocaml didnt
<dmbaturin> Post the errors on https://bpaste.net or similar.
<d_bot> <crab λ> https://bpa.st/3GRQ
<dmbaturin> Is it the only output it produced?
<d_bot> <crab λ> no
<d_bot> <crab λ> https://bpa.st/7FKA
<d_bot> <crab λ> jere
<dmbaturin> Have you tried what it tells you to try?
np has left #ocaml [WeeChat 3.3]
<d_bot> <crab λ> yeah
<d_bot> <crab λ> https://bpa.st/KEWA
<d_bot> <crab λ> here is the output, i forgot you cant see images
<dmbaturin> I'm not bling, I can see images. There's no reason to post images of text nonetheless.
<dmbaturin> * blind
<d_bot> <crab λ> i meant through the irc
<dmbaturin> Anyway, what makes you think you should be entering the command you are trying to enter?
<d_bot> <crab λ> if you are talking about `eval $(opam env --switch=4.11.1)`, i tried that already and nothing changed when i ran `opam init` again
<dmbaturin> It tells you to add a `-j 1` argument to your `opam switch create` command.
<d_bot> <crab λ> it does?
<d_bot> <crab λ> ah
<d_bot> <crab λ> https://bpa.st/EGSQ
<dmbaturin> Remove the half-built switch before retrying.
<d_bot> <crab λ> how do i remove it?
<dmbaturin> Look, if you don't make even a slightest effort to read the docs, people will quickly lose patience with you. ;)
<dmbaturin> `opam switch --help` will tell you in no time.
<d_bot> <crab λ> cool thanks
<d_bot> <crab λ> its the same error
<d_bot> <crab λ> with `-j 1`
bartholin has quit [Ping timeout: 250 seconds]
haesbaert has quit [Ping timeout: 256 seconds]
<d_bot> <crab λ> any ideas?
bartholin has joined #ocaml
haesbaert has joined #ocaml
jlrnick has quit [Ping timeout: 268 seconds]
<d_bot> <crab λ> what am i doing wrong, or is something wrong with the system
emad has joined #ocaml
shawnw has quit [Ping timeout: 250 seconds]
<dmbaturin> Interesting. I guess actual compilation error is needed then. Try adding `--verbose` to the command, that may display the error it hides by default (though I wish it didn't hide it to begin with).
<d_bot> <crab λ> ok
bartholin has quit [Ping timeout: 256 seconds]
<dmbaturin> That's with --verbose?
<d_bot> <crab λ> yes
<d_bot> <NULL> How did you install opam?
<d_bot> <NULL> You need to manually take care of the dependencies if you do it like this
<d_bot> <NULL> A solution is to install it through APT
<d_bot> <NULL> The installer should have put the executable in a place that takes priority over where apt will install its own, so this shouldn't change much
<d_bot> <crab λ> i got all the dependencies
<d_bot> <crab λ> for opam init
<d_bot> <crab λ> i didnt use an installert
<d_bot> <NULL> A C toolchain is required for ocaml (as explained in the error message) and you don't have any
<d_bot> <NULL> Your command is an installer (install.sh)
<d_bot> <crab λ> i have llvm
<d_bot> <crab λ> and cmake
bartholin has joined #ocaml
<dmbaturin> But the build script needs GCC and GNU make.
<d_bot> <NULL> cc isn't even defined
<d_bot> <NULL> Really, the easiest painless solution is `sudo apt install opam`
<dmbaturin> One problem with installing from the repos is that Debian people have ocaml in opam's dependencies, for reasons that escape me.
<dmbaturin> So you end up with a non-removable installation of compiler older than you'd want to use. Maybe Ubuntu maintainers fixed that at least.
<d_bot> <NULL> Is that a problem?
<dmbaturin> Well, it's an annoyance for sure.
<d_bot> <NULL> Not having a system compiler would be weird I think
<dmbaturin> For newbies who don't know how to install dependencies by hand, it's an acceptable compromise I suppose.
<dmbaturin> Well, in Ubuntu, _maybe_. In Debian the system compiler is always a fossil by the time they release a new distro version.
<d_bot> <monk> yeah i would argue always go with an installer/setup that is, by the first degree, independent of a system's package manager when possible
<d_bot> <monk> even with arch i try to do that
<d_bot> <crab λ> ok
<d_bot> <monk> but for newer people that does mean getting lost in not knowing what common dependencies a PL might need to install, like gcc or lib ssl or whatever, you know
<d_bot> <monk> admittedly this is what good install README/web page will have enumerated for most systems when possible to maintain
<OCamlPro[m]> <léo> You can just `sudo apt install --no-recommends opam` and it won't install ocaml with opam...
<OCamlPro[m]> <léo> `--no-install-recommends` *
<d_bot> <crab λ> i want opam tho
<d_bot> <crab λ> wait, i already have it
<d_bot> <crab λ> ok
<d_bot> <crab λ> let me try
<mclovin> It's `--no-install-recommends` not `no-recommends` sorry
bartholin has quit [Ping timeout: 250 seconds]
<mclovin> But I have no idea about what your issue is. I was just replying to dmbaturin about having a "non-removable installation of compiler".
<dmbaturin> mclovin: At some point it was in Depends: rather than in Recommends: AFAIR, though my memory can be wrong. If it's now in Recommends:, that's good though.
<d_bot> <NULL> Have you ever "sudo apt update"
<d_bot> <crab λ> i can try
kaph has quit [Read error: Connection reset by peer]
<mclovin> But I wouldn't be surprised if it was in Depends in Ubuntu or whatever
<d_bot> <crab λ> its working
<d_bot> <NULL> ocaml is also recommended for Ubuntu's opam
<d_bot> <crab λ> i mean its installing
<d_bot> <crab λ> it finished, but the ocaml command deosnt work
<mclovin> You have to create a switch with opam now.
<d_bot> <NULL> `opam switch create 4.13.1`
<mclovin> something like: `opam update && opam switch create 4.13.1 && eval $(opam env)`
<d_bot> <NULL> Make sure you are using the latest version of opam, not the one you just installed (`which opam` should return `/usr/local/bin` I think)
<mclovin> rather `/usr/bin/opam`, no ?
bartholin has joined #ocaml
<d_bot> <NULL> I meant `/usr/local/bin/opam`, `/usr/bin/opam` would be where Ubuntu installed its own (which is older than the one the installer got)
mbuf has quit [Quit: Leaving]
JosEduardo[m] has joined #ocaml
<d_bot> <crab λ> coool
<d_bot> <crab λ> it all works!!
np has joined #ocaml
<d_bot> <Sliver> Hi, I have a problem when i execute Ocaml code. The terminal could not be open.
olle has quit [Ping timeout: 268 seconds]
rgrinberg has joined #ocaml
Serpent7776 has quit [Read error: Connection reset by peer]
Serpent7776 has joined #ocaml
kaph has joined #ocaml
bartholin has quit [Ping timeout: 260 seconds]
bartholin has joined #ocaml
ouestbillie has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
dalek-caan has quit [Quit: dalek-caan]
mmalter has joined #ocaml
<mmalter> Hello. I am looking for an ML for statistical modelling (time series, lapack bindings). I haven't looked at OCaml so far. Had a not too promising look at Haskell.
<mmalter> Anyone has tried doing this?
Techcable has quit [Ping timeout: 240 seconds]
<hannes> mmalter: I'm not sure whether this is what you're looking for: https://ocaml.xyz/book/
<mmalter> hannes: thanks. That's helpful.
waleee has joined #ocaml
mro has joined #ocaml
vicfred has joined #ocaml
mro has quit [Remote host closed the connection]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mro has joined #ocaml
bartholin has quit [Ping timeout: 256 seconds]
mro has quit [Remote host closed the connection]
mro has joined #ocaml
bartholin has joined #ocaml
gravicappa has quit [Ping timeout: 256 seconds]
mro has quit [Remote host closed the connection]
mro has joined #ocaml
rgrinberg has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vicfred has quit [Quit: Leaving]
olle has joined #ocaml
bartholin has quit [Ping timeout: 245 seconds]
emad has quit [Quit: Leaving]
ouestbillie has quit [Ping timeout: 256 seconds]
Serpent7776 has quit [Quit: leaving]
bartholin has joined #ocaml
Techcable has joined #ocaml
perrierjouet has joined #ocaml
mro has quit [Quit: Leaving...]
perrierjouet has quit [Quit: WeeChat 3.4]
rgrinberg has joined #ocaml
bobo_ has joined #ocaml
spip has quit [Ping timeout: 256 seconds]
bartholin has quit [Quit: Leaving]
bobo_ has quit [Ping timeout: 240 seconds]
bobo_ has joined #ocaml
<d_bot> <Butanium (@me on answer)> > Butanium (@me on answer) — 27/01/2022
<d_bot> <Butanium (@me on answer)> > note to myself : never forget close_out oc or you'll spend 1 hours debugging why your program write file output 1 time on 10
<d_bot> <Butanium (@me on answer)> note to myself : never forget `close_in ic` or you'll spend 1 hours debugging a linux machine you don't know because your program which works on windows crash on linux (too much file opened)
<dh`> wouldn't it be nice if there were something that goes around and picks up unreferenced resources for you?
<dh`> too bad garbage collection doesn't work for file handles.
olle has quit [Ping timeout: 240 seconds]
<d_bot> <Butanium (@me on answer)> yup
pgiarrusso has joined #ocaml
<pgiarrusso> has anybody else here seen https://github.com/ocaml/opam/issues/5035? (opam confuses "A depends on B" with "B depends on A")