companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.0 released(!!1!): https://ocaml.org/releases/5.0.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
quernd8 has quit [Server closed connection]
quernd8 has joined #ocaml
waleee has quit [Ping timeout: 246 seconds]
chrisz has quit [Ping timeout: 245 seconds]
chrisz has joined #ocaml
spip has quit [Quit: Konversation terminated!]
Serpent7776 has joined #ocaml
bartholin has joined #ocaml
motherfsck has quit [Ping timeout: 245 seconds]
bartholin has quit [Quit: Leaving]
ohperitel has quit [Quit: ZNC 1.8.2 - https://znc.in]
ohperitel has joined #ocaml
Tuplanolla has joined #ocaml
azimut has quit [Ping timeout: 240 seconds]
gareppa has joined #ocaml
spip has joined #ocaml
delyan_ has quit [Server closed connection]
delyan_ has joined #ocaml
motherfsck has joined #ocaml
motherfsck has quit [Ping timeout: 250 seconds]
motherfsck has joined #ocaml
<discocaml> <froyo> was looking at the learning section wireframe, it's the other way around with experience levels lol
<discocaml> <froyo> best practices section is very useful and should be pushed all the way up imo
<discocaml> <froyo> you wanna find out what the magic incantation is to start a dune project more often than you'd be interested in calling c functions
John_Ivan has quit [Ping timeout: 250 seconds]
ohperitel has quit [Quit: ZNC 1.8.2 - https://znc.in]
ohperitel has joined #ocaml
waleee has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
waleee has quit [Ping timeout: 245 seconds]
<discocaml> <dexmax> How do I use an opam package in my dune project?
<dmbaturin> Reference it in the (libraries ...) ?
<discocaml> <dexmax> I did that and put open in the top of my main.ml, but I am getting a syntax error
<discocaml> <dexmax> And I ensured I installed the package with opam
<dmbaturin> It's difficult to tell without seeing the error at least.
<discocaml> <dexmax> I just have in my main.ml
<discocaml> <dexmax> open "xml-light"
<discocaml> <dexmax> let _ = print_endlune "Test"
<discocaml> <dexmax> And in my dune
<discocaml> <dexmax> (executable
<discocaml> <dexmax> (public_name project)
<discocaml> <dexmax> (name main)
<discocaml> <dexmax> (libraries xml-light project))
<discocaml> <dexmax> Not sure if I'm doing something right because I can't find any docs online about importing packages from opam
<discocaml> <znaniye> someone using nix here?
<dmbaturin> Well, first, module names are not the same as opam package names. The module that xml-light provides is named Xml, and the statement to open it is `open Xml` (although opening modules globally isn't a necessary). Second, there's a typo in `print_endline`.
<discocaml> <dexmax> Thanks, where did you find the module name? Also where can I find the docs for using opam packages?
<discocaml> <dexmax> None of the docs that I have seen have mentioned anything about open
<dmbaturin> In the docs, although you can also browse the tab completion in utop. `#require "xml-light"`, type some names and see completions.
<dmbaturin> There's https://docs.ocaml.pro if you want a large documentation hub. It's not as large or widely adopted as docs.rs (yet) so it will not free you from having to look up individual libs docs or browse them, but it's better than nothing.
<dmbaturin> Also, you may want to look at https://opam.ocaml.org/packages/ezxmlm/ if you want an XML parser. It's more actively maintained, although there are things I do like about xml-light.
<discocaml> <dexmax> Thanks for the help
azimut has joined #ocaml
waleee has joined #ocaml
<discocaml> <._null._> dmbaturin: https://ocaml.org/packages for docs nowadays
<dmbaturin> Oh, wow, I missed that development!
John_Ivan has joined #ocaml
Geekingfrog has quit [Quit: ZNC 1.8.2 - https://znc.in]
szkl has joined #ocaml
gareppa has quit [Quit: WeeChat 3.8]
olle has joined #ocaml
<olle> yo yo camels, I'm still looking for a proper sexp diff output to show exactly the difference
<olle> Any tips?
<olle> No Base please...
<discocaml> <sim642> Most sexp stuff is Jane Street related though, in OCaml that is
<olle> discocaml: :(
<olle> Oh wait
<olle> Wrong
<olle> sim642: :(
<dmbaturin> I wish people used them less...
<olle> There
<olle> Used sexp less?
<dmbaturin> Yes.
<olle> Why? Or what instead?
<olle> How to compare types?
<dmbaturin> ...a sexp differ wouldn't be too hard to make, I think.
<olle> Well I want pretty output
<olle> But yeah, I guess
<discocaml> <deepspacejohn> for diffing output, Dune's expect tests or cram tests are both seem pretty good IMO.
<dmbaturin> Well, my biggest question for a spec for such a tool would be the output format. For a simple diff(1)-like output, a sexp _normalizer_/pretty-printer and a regular diff(1) would do.
<olle> Hm
<olle> deepspace, can Dune do diff natively?
Techcable has quit [Remote host closed the connection]
Techcable has joined #ocaml
<discocaml> <deepspacejohn> I’m not sure
<olle> kk
Serpent7776 has quit [Ping timeout: 240 seconds]
olle has quit [Ping timeout: 260 seconds]
szkl has quit [Quit: Connection closed for inactivity]
noob1 has joined #ocaml
<noob1> hi ,I am  new to programming ,I have done lots of research and find out that ocaml is used as a first language to teach programming
<noob1> can i do the same by my own
<noob1> because i cant afford attending a college or university
<noob1> I am patient and I want to do the right thing not the easiest thing available to do
noob1 has quit [Quit: Client closed]
Guest92 has joined #ocaml
Guest92 has quit [Client Quit]
<discocaml> <anurag_soni> olle: not sure why you want to avoid Janestreet libraries. They have a library that fits this need https://github.com/janestreet/sexp_diff
waleee has quit [Ping timeout: 258 seconds]
waleee has joined #ocaml
waleee has quit [Ping timeout: 240 seconds]
waleee has joined #ocaml
SquidDev has quit [Server closed connection]
SquidDev has joined #ocaml
azimut_ has joined #ocaml
azimut has quit [Ping timeout: 240 seconds]
Tuplanolla has quit [Quit: Leaving.]
lobo[m] has joined #ocaml