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/
Everything has quit [Quit: leaving]
waleee has quit [Ping timeout: 240 seconds]
zebrag has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<d_bot> <darrenldl> python doc has always been (much) worse to navigate even if im left with just .mli
Haudegen has quit [Ping timeout: 268 seconds]
rgrinberg has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]
zebrag has quit [Quit: Konversation terminated!]
spip has joined #ocaml
spip is now known as Guest6716
Guest8932 has quit [Ping timeout: 256 seconds]
<d_bot> <mk-fg> Fwiw, never had a problem with ocaml docs, but there's got to be a bias wrt commenting on it here, as presumably all people who had an issue parsing those will give up on trying to learn ocaml and likely won't be in any related channels :)
<Corbin> I would put up Ruby as an example which blubifies OCaml here; that is, OCaml sits between Python and Ruby in terms of reference documentation quality.
<Corbin> There's two features in particular. First, most Ruby packages are documented using centralized tools, so that if you can ask your package manager to quickly install the gem from a central repo, then you can also ask the central repo to show you the gem's docs.
<Corbin> Second, many short methods are directly inlined into the docs; you can just click a method if you want to see how it's implemented.
<Corbin> https://www.rubydoc.info/gems/thor is an example popular package, for those who haven't clicked around Ruby docs before.
<d_bot> <mk-fg> Yeah, quick check source indeed looks like a cool feature
<d_bot> <mk-fg> Didn't actually get to use much docs on third-party ocaml stuff myself, as mostly use it to implement small system/helper tools for which stdlib works perfectly fine, and integrating with various libs is trivial via a bit of C glue
hackinghorn has quit [Ping timeout: 268 seconds]
<d_bot> <mk-fg> One feature that I probably like the most in ocaml and python docs, is that they're easy to download and then use by putting/replacing module name in the URL directly via custom search in the browser to open the ref page for that module instantly
<d_bot> <mk-fg> E.g. "ml Hashtbl" will just open `file:///home/.../Desktop/docs/ocaml-X.Y/libref/Hashtbl.html`
<companion_cube> Corbin: I'd say OCaml is on par with your second point
<companion_cube> one keypress tells me a function's signature and doc
<companion_cube> `gd` jumps to its definition
<Corbin> companion_cube: We're comparing Web docs to Web docs. That's a cool editor feature though.
hackinghorn has joined #ocaml
<d_bot> <Anurag> central doc site should come in a future update to the ocaml.org website. The work-in-progress website is up and running now, an example: <https://v3.ocaml.org/p/containers/3.6.1> and docs at <https://v3.ocaml.org/p/containers/3.6.1/doc/CCParse/>
<d_bot> <Anurag> Thanks for the fixed url. I missed the `index.html` at the end
<d_bot> <mk-fg> I like how condensed the old docs are tbh, and lacking in visual noise
<d_bot> <mk-fg> But not like it's a big deal, of course
<d_bot> <mk-fg> Also I think the brightness and comparatively low contrast is what makes the new page immediately harder to look at for me
xiongxin has joined #ocaml
gravicappa has joined #ocaml
<d_bot> <Jektrix> Maybe a little floating table of contents on the side would be nice so you could jump to definition without scrolling
<d_bot> <NULL> https://ocaml.org/api/Str.html is new-style but more condensed
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shawnw has joined #ocaml
rgrinberg has joined #ocaml
xd1le has joined #ocaml
gdd1 has quit [Ping timeout: 268 seconds]
bartholin has joined #ocaml
Colt has quit [Quit: Leaving]
Colt has joined #ocaml
Serpent7776 has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Tuplanolla has joined #ocaml
waleee has joined #ocaml
olle_ has joined #ocaml
hackinghorn has quit [Ping timeout: 256 seconds]
Haudegen has joined #ocaml
bartholin has quit [Ping timeout: 240 seconds]
bartholin has joined #ocaml
waleee has quit [Quit: WeeChat 3.3]
hackinghorn has joined #ocaml
olle_ has quit [Ping timeout: 240 seconds]
<d_bot> <VPhantom> I like the new style a lot, for what it's worth, but I think the biggest improvement for legibility for me is the use of sans serif fonts.
<d_bot> <VPhantom> (Well, I'm not so sure anymore, because even that Str.html example looks great. 🤔)
<d_bot> <AZAH> Yep I also prefere the new style
lagash has quit [Ping timeout: 250 seconds]
bartholin has quit [Ping timeout: 256 seconds]
bartholin has joined #ocaml
xiongxin has quit [Quit: xiongxin]
perrierjouet has quit [Quit: WeeChat 3.3]
perrierjouet has joined #ocaml
mro has joined #ocaml
gravicappa has quit [Ping timeout: 240 seconds]
<d_bot> <crab> is this discord server active?
<Fardale> Yes
<d_bot> <crab> a lot?
zebrag has joined #ocaml
<Fardale> What is the definition of "a lot"?
<d_bot> <crab> im assuming yes
<d_bot> <crab> also, why did you decide to join the server as an IRC instead of a discord user
bartholin has quit [Read error: Connection reset by peer]
<d_bot> <arctumn> That's a user choice, they have their reasons
<d_bot> <arctumn> Only this channel is under IRC (if i'm not wrong)
<Fardale> I was on IRC before this channel was bridge to the discord server
mro has quit [Remote host closed the connection]
bartholin has joined #ocaml
spip has joined #ocaml
mro has joined #ocaml
spip is now known as Guest5586
Guest6716 has quit [Ping timeout: 256 seconds]
shawnw has quit [Ping timeout: 240 seconds]
<reynir> (re: new vs old doc) I personally prefer the higher contrast text of the old docs. After all, reading the text is what the docs is all about, no?
<d_bot> <mbacarella> Are you looking for confirmation that it's true? Or are you looking to add a citation to Wikipedia? I can anecdotally confirm it's something he said and that traders at the company did read OCaml code.
mro has quit [Remote host closed the connection]
<d_bot> <Kakadu> Citation would be better because I can use it against everybody who says that FP is too complicated
<d_bot> <zakkor> The new v3 site/docs look GREAT!
<d_bot> <zakkor> Tailwind/Tailwind typography ftw
<d_bot> <mbacarella> Perhaps his "camel trading" talk has the quote
shawnw has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
shawnw has quit [Ping timeout: 256 seconds]
gravicappa has joined #ocaml
Haudegen has joined #ocaml
mro has joined #ocaml
SdeSousa has joined #ocaml
SdeSousa has quit [Client Quit]
mro has quit [Remote host closed the connection]
lagash has joined #ocaml
<d_bot> <VPhantom> Oy, FP _can_ be complicated (category theory), but for day to day work, I find that lots of my functions tend to melt away to half to a quarter of their initial size when I work in OCaml vs any of my previous, imperative languages. The expressiveness quickly becomes very apparent even just as a rookie fooling around with the Stdlib.
<d_bot> <Kakadu> Thanks, it looks like it is a right reference indeed
<Corbin> VPhantom: Funny you say that; my category-theory-based language's expressions are much smaller than OCaml's; lots of lambdas and name-plumbing just melts away~
<d_bot> <let Butanium = raise Not_found;;> what is this language ?
<d_bot> <mbacarella> The specific success case if you want more color is that they tried to rewrite a hodgepodge of Excel spreadsheets (aka their core prop trading infrastructure) into real trading systems with proper software engineering and the traders found the C# code that was supposed to replace it very difficult to follow because of mutability and inheritance.
mro has joined #ocaml
Anarchos has joined #ocaml
mro has quit [Remote host closed the connection]
<d_bot> <mbacarella> So. Nobody wanted to risk gigantic sums of their own money (that's what prop trading means) on automated trading code they couldn't understand.
<d_bot> <mbacarella> I think a big contributor to their culture of thinking about risk this way was that one of the partners worked on a nuclear submarine. Which is obviously an environment where reality doesn't care about how confident you feel about your system.
bartholin has quit [Ping timeout: 252 seconds]
bartholin has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
<d_bot> <let Butanium = raise Not_found;;> if you want a great challenge
<d_bot> <let Butanium = raise Not_found;;> https://adventofcode.com/2021/day/18
<d_bot> <let Butanium = raise Not_found;;> I have 4 mutually recursive functions for now
mro has quit [Remote host closed the connection]
hackinghorn has quit [Ping timeout: 240 seconds]
hackinghorn has joined #ocaml
xd1le has quit [Quit: xd1le]
shawnw has joined #ocaml
mro has joined #ocaml
<d_bot> <Frisk> I remember someone (Scott Wlaschin maybe?) mentioning PMs somewhere being able to read f# interfaces and inferring how they'd be wired together, not realizing they were actual code
<d_bot> <Frisk> Anecdotally I have a MUCH easier time showing people who don't code reason code over say JavaScript much less c# or Java.
<d_bot> <Frisk> It's specifically people who have gotten used to OOP that have a harder time with FP concepts than people in general, I've found.
mro has quit [Ping timeout: 256 seconds]
bartholin has quit [Ping timeout: 256 seconds]
bartholin has joined #ocaml
mro has joined #ocaml
waleee has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
Haudegen has joined #ocaml
rgrinberg has joined #ocaml
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
mro has quit [Remote host closed the connection]
troydm has joined #ocaml
rgrinberg has quit [Ping timeout: 240 seconds]
mro has joined #ocaml
rgrinberg has joined #ocaml
bartholin has quit [Ping timeout: 256 seconds]
bartholin has joined #ocaml
gravicappa has quit [Ping timeout: 240 seconds]
rgrinberg has quit [Ping timeout: 256 seconds]
rgrinberg has joined #ocaml
mro_ has joined #ocaml
mro_ has quit [Remote host closed the connection]
mro has quit [Ping timeout: 256 seconds]
mro has joined #ocaml
rgrinberg has quit [Ping timeout: 260 seconds]
mal`` has quit [Quit: Leaving]
mro has quit [Remote host closed the connection]
rgrinberg has joined #ocaml
mro has joined #ocaml
mal`` has joined #ocaml
rgrinberg has quit [Ping timeout: 256 seconds]
olle_ has joined #ocaml
Serpent7776 has quit [Quit: leaving]
bartholin has quit [Ping timeout: 240 seconds]
bartholin has joined #ocaml
bartholin has quit [Quit: Leaving]
rgrinberg has joined #ocaml
mro has quit [Quit: Leaving...]