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/
<malc> olle: fields not values
<d_bot_> <DickBarnes> Is it almost certainly a memory leak because of something I did in my program, or is there something deeper here?
<d_bot_> <NULL> quartz: What algorithm would you write ?
oriba has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<quartz> d_bot_: Well, it's basically Kaden's algorithm ( I think I spelt that right), but I'm not sure I need to use that specific algorithm exactly
<quartz> Basically, iterate through the array, check if the List.hd l is positive. If it is, somehow increment a counter
<quartz> But that's the problem, you can't store variables and change their values in this language
<quartz> I mean, without records.
<quartz> So how am I to do this?
<d_bot_> <Et7f3> If you need to execute a snippet at shell startup their is a special file that is executed like ~/.bashrc or ~/.zshrc sometime it is ~/.bash_profile. This is the generic answer that work for all software. opam init seem to offer to modify it.
<companion_cube> {x with y=z}
<quartz> Everything is an expression... well OK... what good does this do me
<companion_cube> That returns a new record
<quartz> companion_cube: I'm sorry I've no idea what that means
<d_bot_> <NULL> Do you really need to mutate variables ? If so, use references
<companion_cube> Look it up, you need to learn a language to use it
<companion_cube> Record update, in the manual I think
<quartz> NULL: Well I'm not sure how else I'd do it.
<quartz> I need to store the longest number of consecutive + or - numbers in a list.... so that counter has to go somewhere right?
<d_bot_> <NULL> You can using recursion, where an additional argument stores that "variable"
<d_bot_> <NULL> I don't think it's bad if you write it the imperative way at first, use references for that
kaph has quit [Ping timeout: 256 seconds]
<quartz> OK yeah recursion works for like everything in OCmal
<d_bot_> <NULL> It can work for pretty much the same in other languages, it's just that OCaml makes it the better option
<d_bot_> <NULL> But again, you can learn the language before learning how to use recursion
Techcable has joined #ocaml
kaph has joined #ocaml
olle has quit [Ping timeout: 252 seconds]
quartz has quit [Quit: WeeChat 3.4]
Haudegen has quit [Ping timeout: 240 seconds]
<d_bot_> <jman> Does anyone know how to code in OCaml on IntelliJ using the ReasonML plugin? @NULL
<d_bot_> <jman> I installed the plug0in. I don't see a way to use it anywhere. I wanat to code in OCaml. How do I use the intelliJ plugin I installed?
<d_bot_> <NULL> Why ping me ? I have no idea, I don't use this IDE
<d_bot_> <darrenldl> @pilothole i dont think i understand the "model didnt have problems before clickjacking" part, could you elaborate?
waleee has quit [Ping timeout: 240 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
adanwan_ has quit [Ping timeout: 240 seconds]
adanwan has joined #ocaml
bobo has quit [Ping timeout: 245 seconds]
spip has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
grobe0ba has quit [Quit: ZNC 1.8.2 - https://znc.in]
grobe0ba has joined #ocaml
gravicappa has joined #ocaml
rgrinberg has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
dalek_caan has joined #ocaml
gravicappa has quit [Ping timeout: 256 seconds]
perrierjouet has quit [Quit: WeeChat 3.4]
grobe0ba has quit [Ping timeout: 240 seconds]
grobe0ba has joined #ocaml
grobe0ba_ has joined #ocaml
gravicappa has joined #ocaml
grobe0ba has quit [Ping timeout: 240 seconds]
grobe0ba_ is now known as grobe0ba
<d_bot_> <Butanium (@me on answer)> Yup !
<d_bot_> <Butanium (@me on answer)> I tried but didn't achieve it, are you on windows ?
Haudegen has joined #ocaml
random-jellyfish has joined #ocaml
mro has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mbuf has joined #ocaml
malc has left #ocaml [ERC (IRC client for Emacs 28.0.50)]
dextaa_ has quit [Read error: Connection reset by peer]
mro has quit [Remote host closed the connection]
dextaa_ has joined #ocaml
mro has joined #ocaml
dalek_caan has quit [Quit: dalek_caan]
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
xgqt has quit [Quit: WeeChat 3.3]
xgqt has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
amazigh has joined #ocaml
mro has quit [Remote host closed the connection]
bartholin has joined #ocaml
waleee has joined #ocaml
olle has joined #ocaml
Techcable has quit [Ping timeout: 256 seconds]
<d_bot_> <darrenldl> does hashtable have a slimmer memory representation than map? mainly looking at the size of the marshalled output
perrierjouet has joined #ocaml
Tuplanolla has joined #ocaml
bartholin has quit [Ping timeout: 272 seconds]
<d_bot_> <Bluddy> you'd probably need to test it to find out. it also varies for different sizes and numbers of elements
bartholin has joined #ocaml
bartholin has quit [Ping timeout: 240 seconds]
mro has joined #ocaml
<d_bot_> <darrenldl> yeah i realised its the least of the overhead, i was being silly
bartholin has joined #ocaml
mro has quit [Remote host closed the connection]
troydm has quit [Ping timeout: 240 seconds]
troydm has joined #ocaml
kaph has quit [Read error: Connection reset by peer]
kaph has joined #ocaml
random-jellyfish has quit [Ping timeout: 256 seconds]
spip has quit [Ping timeout: 256 seconds]
mro has joined #ocaml
kaph_ has joined #ocaml
kaph has quit [Read error: Connection reset by peer]
kaph_ has quit [Remote host closed the connection]
kaph has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
dalek_caan has joined #ocaml
bartholin has quit [Ping timeout: 240 seconds]
bartholin has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
spip has joined #ocaml
mbuf has quit [Quit: Leaving]
hornhack has joined #ocaml
hackinghorn has quit [Killed (NickServ (GHOST command used by hornhack))]
hornhack is now known as hackinghorn
<d_bot_> <hgiraud> @jman did you try to setup a sdk like detailed here https://giraud.github.io/reasonml-idea-plugin/docs/language-support/ocaml ?
mro has quit [Remote host closed the connection]
Serpent7776 has joined #ocaml
zebrag has joined #ocaml
waleee has quit [Ping timeout: 268 seconds]
waleee has joined #ocaml
bartholin has quit [Ping timeout: 240 seconds]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
bartholin has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
bartholin has quit [Ping timeout: 256 seconds]
mro has quit [Remote host closed the connection]
jsoo has quit [Quit: ZNC 1.8.2 - https://znc.in]
jsoo has joined #ocaml
bartholin has joined #ocaml
mro has joined #ocaml
hackinghorn has quit [Read error: Connection reset by peer]
hackinghorn has joined #ocaml
xgqt has quit [Remote host closed the connection]
xgqt has joined #ocaml
mro has quit [Remote host closed the connection]
rgrinberg has joined #ocaml
gravicappa has quit [Ping timeout: 240 seconds]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
Anarchos has joined #ocaml
mro has quit [Remote host closed the connection]
bartholin has quit [Ping timeout: 240 seconds]
olle has quit [Ping timeout: 240 seconds]
bartholin has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dalek_caan has quit [Quit: dalek_caan]
olle has joined #ocaml
Techcable has joined #ocaml
rgrinberg has joined #ocaml
bartholin has quit [Ping timeout: 240 seconds]
<d_bot_> <Continuation Calculus> heyyy, is there any good syntax for Bytes in OCaml? given you can't use String syntax anymore
<d_bot_> <Continuation Calculus> I know I can create a custom access operator `let (.-()) = Bytes.get`, but can I do the same for `Bytes.set`?
<d_bot_> <NULL> `let (.-()<-) = Bytes.set`
<d_bot_> <Continuation Calculus> so that's the syntax, **y e s**, thx
<d_bot_> <Alistair> Does anyone have a good LaTeX `listing` style for OCaml, can't find any good ones online
<d_bot_> <Continuation Calculus> yup, i was on this page, but kept missing it
mro has joined #ocaml
mro has quit [Read error: Connection reset by peer]
mro_ has joined #ocaml
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
Haudegen has joined #ocaml
mro_ has quit [Ping timeout: 256 seconds]
Anarchos has quit [Ping timeout: 240 seconds]
rond_ has joined #ocaml
Anarchos has joined #ocaml
kaph has quit [Read error: Connection reset by peer]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kaph has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
olle has quit [Ping timeout: 272 seconds]
rgrinberg has joined #ocaml
rond_ has quit [Quit: Client closed]
Haudegen has quit [Ping timeout: 252 seconds]
epony has quit [Quit: QUIT]