Leonidas changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.1.1 released: https://ocaml.org/releases/5.1.1 | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
<companion_cube> No, thank you
Tuplanolla has quit [Quit: Leaving.]
<discocaml> <Kali> no thanks
<companion_cube> (by the way, you might have missed the news: cryptocurrencies are, finally, out of fashion and recognized as being 99% scam 😊)
jabuxas has quit [Ping timeout: 264 seconds]
<discocaml> <._null._> When did that become widespread knowledge ?
<discocaml> <darrenldl> when they lost 99% of their money perhaps
masterbuilder has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<companion_cube> After the video "line goes up"
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<discocaml> <Ada> i already feel a bit gross sharing a language with a hedge fund
rgrinberg has joined #ocaml
<companion_cube> That's most languages though
Putonlalla has quit [Ping timeout: 260 seconds]
sadiq has quit [Ping timeout: 256 seconds]
bacam has quit [Ping timeout: 260 seconds]
masterbuilder has joined #ocaml
Putonlalla has joined #ocaml
bacam has joined #ocaml
sadiq has joined #ocaml
<discocaml> <mirazzzzzz> Hello, we are looking for employees for a cryptocurrency project:
<discocaml> <mirazzzzzz>
<discocaml> <mirazzzzzz> * Beta tester ($45/hour)
<discocaml> <mirazzzzzz> * Moderator ($500/week)
<discocaml> <mirazzzzzz> * Community Manager ($1000/week)
<discocaml> <mirazzzzzz> * NFT-artist (negotiable)
<discocaml> <mirazzzzzz> * Advertisers (negotiable)
<discocaml> <mirazzzzzz> * Web Developer (negotiable)
<discocaml> <mirazzzzzz> * Investors
<discocaml> <mirazzzzzz>
<discocaml> <mirazzzzzz> If you are interested in collaborating, please send me a DM
<discocaml> <._null._> I was surprised there was no spamming, I guess they are just more patient than usual
mange has left #ocaml [#ocaml]
mange has joined #ocaml
average has joined #ocaml
raskol has joined #ocaml
waleee has quit [Ping timeout: 268 seconds]
ski has quit [Remote host closed the connection]
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
torretto has quit [Remote host closed the connection]
torretto has joined #ocaml
torretto has quit [Remote host closed the connection]
torretto has joined #ocaml
mange has quit [Remote host closed the connection]
rgrinberg has joined #ocaml
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bartholin has joined #ocaml
rgrinberg has joined #ocaml
raskol has quit [Ping timeout: 264 seconds]
Serpent7776 has joined #ocaml
average has quit [Quit: Connection closed for inactivity]
trillion_exabyte has quit [Ping timeout: 276 seconds]
trillion_exabyte has joined #ocaml
bartholin has quit [Quit: Leaving]
myrkraverk__ has quit [Read error: Connection reset by peer]
myrkraverk_ has joined #ocaml
<discocaml> <JM> Me checking the price of Bitcoins...
<discocaml> <JM> I'm afraid the news has not spread wide enough yet 😒
myrkraverk__ has joined #ocaml
myrkraverk_ has quit [Read error: Connection reset by peer]
myrkraverk_ has joined #ocaml
myrkraverk__ has quit [Read error: Connection reset by peer]
olle has joined #ocaml
average has joined #ocaml
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
emp has quit [Ping timeout: 255 seconds]
rgrinberg has joined #ocaml
emp has joined #ocaml
rgrinberg has quit [Read error: Connection reset by peer]
rgrinberg has joined #ocaml
neiluj_ has quit [Ping timeout: 260 seconds]
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jabuxas has joined #ocaml
azimut has quit [Ping timeout: 255 seconds]
bibi__ has joined #ocaml
bibi_ has quit [Ping timeout: 255 seconds]
neiluj has joined #ocaml
azimut has joined #ocaml
raskol has joined #ocaml
average has quit [Quit: Connection closed for inactivity]
<discocaml> <Ada> does containers have an equivalent of core's strip? remove trailing characters from start and end of a string
<discocaml> <bluddy5> It's almost always used for some kind of whitespace, so the equivalent function is trim.
<discocaml> <bluddy5> There's also ltrim and rtrim
dnh has joined #ocaml
<discocaml> <Ada> i specifically need to do '/'
<discocaml> <bluddy5> you could use 'drop_while' and 'rdrop_while'
<discocaml> <Ada> thank u!
alexherbo2 has joined #ocaml
Square3 has joined #ocaml
emp has quit [Ping timeout: 264 seconds]
bibi_ has joined #ocaml
bibi__ has quit [Ping timeout: 256 seconds]
emp has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnh has joined #ocaml
szkl has joined #ocaml
waleee has joined #ocaml
waleee has quit [*.net *.split]
energizer has quit [*.net *.split]
Riviera has quit [*.net *.split]
leonardus has quit [*.net *.split]
chrisz has quit [*.net *.split]
ohperitel has quit [*.net *.split]
Duns_Scrotus___ has quit [*.net *.split]
remexre has quit [*.net *.split]
Ekho has quit [*.net *.split]
grobe0ba has quit [*.net *.split]
caasih has quit [*.net *.split]
keyle has quit [*.net *.split]
thizanne has quit [*.net *.split]
copy_ has quit [*.net *.split]
chrisz has joined #ocaml
caasih has joined #ocaml
thizanne has joined #ocaml
grobe0ba has joined #ocaml
Duns_Scrotus___ has joined #ocaml
waleee has joined #ocaml
keyle has joined #ocaml
ohperitel has joined #ocaml
copy has joined #ocaml
leonardus has joined #ocaml
ggb has quit [Ping timeout: 246 seconds]
ggb has joined #ocaml
Phandal has joined #ocaml
energizer has joined #ocaml
remexre has joined #ocaml
Ekho has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
alexherbo2 has quit [Ping timeout: 250 seconds]
<hannes> on this snappy website ocaml.org, is there a version of the reference manual for older OCaml releases (i.e. 4.14.1)? I can find https://caml.inria.fr/pub/distrib/ocaml-4.14/ocaml-4.14-refman.html .. but is this live on ocaml.org?
<discocaml> <._null._> "Select another version" right under the logo
<hannes> null: thank you. I was at https://v2.ocaml.org/manual/intfc.html -- where when I click on "Version 5.1" I end up on the releases page, and from there I found no way to the reference manual
<hannes> oh ups, there are actually links on the right to the reference manual..
<discocaml> <._null._> "Lanuage manual", third link in the "Actions" column
<discocaml> <._null._> "Language manual", third link in the "Actions" column
<hannes> well, for me hard to navigate, but maybe that's just me
<hannes> I fully trust in the ocaml.org UX people
<discocaml> <._null._> No, I can understand your issues, this page is not very clear on what it links to
<discocaml> <._null._> Especially coming from the manual, you would expect links back to it to be more visible
<hannes> my personal optimal thing would be a drop-down box on every chapter where you can select the version [certainly only those supported are relevant - i.e. 5.2 and 4.14]
alexherbo2 has joined #ocaml
bibi_ has quit [Quit: Konversation terminated!]
azimut has quit [Ping timeout: 255 seconds]
bibi_ has joined #ocaml
Phandal has quit [Quit: leaving]
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
Anarchos has joined #ocaml
waleee has quit [Quit: WeeChat 4.1.2]
alexherbo2 has quit [Remote host closed the connection]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #ocaml
olle has quit [Ping timeout: 264 seconds]
szkl has quit [Quit: Connection closed for inactivity]
<discocaml> <mirazzzzzz> Hello, we are looking for employees for a cryptocurrency project:
<discocaml> <mirazzzzzz>
<discocaml> <mirazzzzzz> * Beta tester ($45/hour)
<discocaml> <mirazzzzzz> * Moderator ($500/week)
<discocaml> <mirazzzzzz> * Community Manager ($1000/week)
<discocaml> <mirazzzzzz> * NFT-artist (negotiable)
<discocaml> <mirazzzzzz> * Advertisers (negotiable)
<discocaml> <mirazzzzzz> * Web Developer (negotiable)
<discocaml> <mirazzzzzz> * Investors
<discocaml> <mirazzzzzz>
<discocaml> <mirazzzzzz> If you are interested in collaborating, please send me a DM
Anarchos has joined #ocaml
<Anarchos> Is there a standard lib function (or one-liner) to find the first index of an item in a list not verifying some predicate ?
<discocaml> <._null._> `List.find (fun x -> not @@ P x) l` ?
<discocaml> <._null._> `List.find (fun x -> not @@ p x) l` ?
<discocaml> <._null._> Woops, index
<Anarchos> yes for find, i had no trouble.
<discocaml> <._null._> So `find_index` instead (and it's an option)
<discocaml> <._null._> (Although `Since 5.1`)
<Anarchos> find_index is not in 4.14
<discocaml> <._null._> You can make it a one-liner, but it would be rather uglier than implementing it properly
<Anarchos> ._null_. i will look at its implementation in 5.1
<discocaml> <._null._> `let exception Found of int in try List.filteri (fun x -> if not @@ p x then raise Found i else false); raise Not_found with Found i -> i` for the ugly version
<discocaml> <._null._> With actually correct syntax: `let find_index p l = let exception Found of int in try ignore @@ List.filteri (fun i x -> if not @@ p x then raise (Found i) else false) l; raise Not_found with Found i -> i`
Tuplanolla has joined #ocaml
<Anarchos> ._null_. thanks
<companion_cube> fairly sure it's in containers too
bartholin has joined #ocaml
jabuxas has quit [Ping timeout: 264 seconds]
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnh has joined #ocaml
neiluj has quit [Quit: neiluj]
rgrinberg has joined #ocaml
emp has quit [Ping timeout: 272 seconds]
emp has joined #ocaml
Square3 has quit [Ping timeout: 246 seconds]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jabuxas has joined #ocaml
jabuxas has quit [Ping timeout: 255 seconds]
<discocaml> <Ada> what does `CCString.lines_iter` do
<companion_cube> iterates on the lines in a string :)
<discocaml> <Ada> explain like im stupid
<companion_cube> err, it finds all the '\n' in the string, and calls the given function on substrings in between?
<companion_cube> if s = "hello\nworld" it'll give you "hello" then "world"
<discocaml> <Ada> oh my ide just gave me confusing type hints
<discocaml> <._null._> `List.iter f (String.split_on_char '\n' s)` using Stdlib functions
<discocaml> <Ada> im about to go to bed haha i feel actually dumb now
waleee has joined #ocaml
Riviera has joined #ocaml
<discocaml> <._null._> So, not exactly since it constructs an iter instead of explictly iterating
rgrinberg has joined #ocaml
Anarchos has joined #ocaml
* Anarchos is trying to compile trunk (5.0.3)version with native backend for Haiku 64bits
olle has joined #ocaml
Square3 has joined #ocaml
<Anarchos> is it possible to tell merlin to erase all the red lines in vim when the whole struct is in error ?
<olle> Sounds like a vim setting no?
<Anarchos> olle i guess it is more a merlin command to achieve that, cause red only came after merlinerrorcheck
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<olle> Anarchos: yeah, but vim contains the code on how to parse the error from merlin, no?
<olle> Assuming merlin spits out json or text or whatever
<olle> Try to run merlin from cli and see :)
<Anarchos> olle i am not versed on merlin enough... i thought there would be a :MerlinErrorUncheck command to do that
<olle> Hm dunno, actually never used it
<olle> Anarchos: There's often toggle commands for vim plugins
<Anarchos> olle i want to keep syntax coloring with no red brushed over error lines.
<olle> Anarchos: Syntax color is independ of plugin that shows merlin errors. Or should be.
<olle> independent
<olle> *
<Anarchos> i will look
* Anarchos tested the freshly compiled native on haiku : not so bad : https://bpa.st/6RWA !!
Serpent7776 has quit [Ping timeout: 264 seconds]
raskol has quit [Ping timeout: 256 seconds]
<olle> Heh
<olle> Schame
<olle> Gonna go to bed tho, good luck! \o
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
olle has quit [Ping timeout: 264 seconds]
jabuxas has joined #ocaml
jabuxas has quit [Client Quit]
bartholin has quit [Quit: Leaving]
szkl has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
jabuxas has joined #ocaml
rgrinberg has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]
habnabit_ has quit [Ping timeout: 264 seconds]
jabuxas_ has joined #ocaml
jabuxas_ has quit [Ping timeout: 260 seconds]
raskol has joined #ocaml
jabuxas_ has joined #ocaml