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/
Tuplanolla has quit [Quit: Leaving.]
masterbuilder has quit [Ping timeout: 255 seconds]
masterbuilder has joined #ocaml
TrillionEuroNote has quit [Ping timeout: 248 seconds]
TrillionEuroNote has joined #ocaml
david2 has joined #ocaml
azimut has joined #ocaml
sand_dull has joined #ocaml
sand_dull has quit [Remote host closed the connection]
chrisz has quit [Ping timeout: 240 seconds]
chrisz has joined #ocaml
david2 has quit [Quit: WeeChat 4.0.5]
david2 has joined #ocaml
david2 has quit [Quit: WeeChat 4.0.5]
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
ansiwen has quit [Quit: ZNC 1.7.1 - https://znc.in]
ansiwen has joined #ocaml
sand_dull has joined #ocaml
sand_dull has quit [Remote host closed the connection]
bartholin has joined #ocaml
GreaseMonkey has quit [Remote host closed the connection]
Serpent7776 has joined #ocaml
bartholin has quit [Quit: Leaving]
mro has joined #ocaml
troydm1 has quit [Ping timeout: 240 seconds]
average has joined #ocaml
<average> tl;dr allegedly Haskell, Erlang, Forth, J are puzzle languages whereas Python, Ruby, Lua, C are not puzzle languages
<octachron_> That reads like another instance of confusing familiarity with ease of use when subconsiously restraining oneself to a well-treaded set of problems.
<reynir> I get DNS timeouts when I try to install an opam package. Is anyone else observing the same?
<reynir> hm no must be a local issue - I don't observe it on another machine
azimut has quit [Ping timeout: 252 seconds]
octachron_ is now known as octachron
jlrnick has joined #ocaml
jlrnick has quit [Ping timeout: 240 seconds]
dnh has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnh has joined #ocaml
quernd80 has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnh has joined #ocaml
jlrnick has joined #ocaml
masterbuilder has quit [Remote host closed the connection]
masterbuilder has joined #ocaml
bencef has joined #ocaml
<bencef> Hi, quick question I can't seem to find the answer to: How do I refer to an earlier result in utop?
<octachron> utop -implicit-bindings
<bencef> ahhh I should have consulted `utop --help'
<bencef> `_0' doesn't seem to work still
xd1le has quit [Read error: Connection reset by peer]
xd1le has joined #ocaml
<bencef> maybe it is not compatible with `-emacs'?
<bencef> for the LambdaTerm interface it works as expected
<bencef> for the emacs interface I still see "- : <expr>" results and can't refer to them
greaser|q has joined #ocaml
<discocaml> <mbacarella> How do I prevent OCaml from OOMing on an admittedly low memory VM? The true working set of this app is only about 70MB but it seems to collect trash past the 3-400MB of space on the box and then Linux kills it
jlrnick has quit [Ping timeout: 255 seconds]
<discocaml> <mbacarella> Do I just run Gc.compact every minute or is there a heap size setting
remexre has quit [Ping timeout: 255 seconds]
remexre has joined #ocaml
<discocaml> <undu> you probably want to change the max_overhead https://v2.ocaml.org/api/Gc.html
<discocaml> <undu> > Heap compaction is triggered when the estimated amount of "wasted" memory is more than max_overhead percent of the amount of live data. If max_overhead is set to 0, heap compaction is triggered at the end of each major GC cycle (this setting is intended for testing purposes only). If max_overhead >= 1000000, compaction is never triggered. If compaction is permanently disabled, it is strongly suggested to set allocation_policy to 2. Default: 500
<discocaml> <undu> you probably want to change the max_overhead https://v2.ocaml.org/api/Gc.html
<discocaml> <undu> > Heap compaction is triggered when the estimated amount of "wasted" memory is more than max_overhead percent of the amount of live data. If max_overhead is set to 0, heap compaction is triggered at the end of each major GC cycle (this setting is intended for testing purposes only). If max_overhead >= 1000000, compaction is never triggered. If compaction is permanently disabled, it is strongly suggested to set allocation_policy to 2. **Default: 5
Absalom has joined #ocaml
mro has quit [Remote host closed the connection]
<discocaml> <__jco__> Hi everyone, happy to release bindings (and wrapper) to an algebra library https://discuss.ocaml.org/t/ann-bindings-to-the-pari-algebra-library/13157
jlrnick has joined #ocaml
jlrnick has quit [Ping timeout: 272 seconds]
bencef has quit [Remote host closed the connection]
<discocaml> <mbacarella> I think no. I think I want GC to run more often *and* to do compaction each time.
<discocaml> <mbacarella> I think not quite. I think I want GC to run more often *and* to do compaction each time.
<discocaml> <undu> setting the parameter to zero forces compaction on each cycle 🙂
<discocaml> <undu> I have to say that compaction doesn't work in ocaml 5.x
<discocaml> <undu> so for long-running processing allocating the new versions are not viable yet
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<discocaml> <mbacarella> the problem, IMO, is GC isn't running before the box OOMs
<discocaml> <mbacarella> though compaction might matter too
<hannes> mbacarella: do you use OCaml 4 or OCaml 5? AFAIU OCaml 5 still does not compact / free memory -- see https://github.com/ocaml/ocaml/pull/12193
azimut has joined #ocaml
dnh has joined #ocaml
waleee has joined #ocaml
bartholin has joined #ocaml
Tuplanolla has joined #ocaml
waleee has quit [Ping timeout: 264 seconds]
waleee has joined #ocaml
<h0rror> hello, I can't get Big_int to work on utop, it can auto-complete its values, but then it complains about "reference to undefined global"
<companion_cube> You probably need to `#require "bignum" ` or something like that.
<companion_cube> Note that it's deprecated for zarith though
waleee has quit [Ping timeout: 240 seconds]
<h0rror> oh, are there no arbitrary-precision integers in the standard lib?
waleee has joined #ocaml
troydm has joined #ocaml
<companion_cube> Nope
wingsorc has joined #ocaml
<h0rror> ok, zarith's interface is nicer, thanks companion_cube :)
<companion_cube> Nope
<companion_cube> It's also a lot faster
bartholin has quit [Quit: Leaving]
jlrnick has joined #ocaml
jlrnick has quit [Ping timeout: 264 seconds]
sand_dull has joined #ocaml
sand_dull has quit [Remote host closed the connection]
Serpent7776 has quit [Ping timeout: 240 seconds]
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wingsorc has quit [Quit: Leaving]
Tuplanolla has quit [Quit: Leaving.]
CalimeroTeknik has quit [Ping timeout: 240 seconds]
midgard has quit [Ping timeout: 240 seconds]
omegatron has quit [Remote host closed the connection]
midgard has joined #ocaml
CalimeroTeknik has joined #ocaml
david2 has joined #ocaml