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/
Haudegen has quit [Ping timeout: 250 seconds]
Tuplanolla has quit [Quit: Leaving.]
spip has quit [Ping timeout: 250 seconds]
bobo_ has joined #ocaml
primosoma has joined #ocaml
average has quit [Quit: Connection closed for inactivity]
Colt has joined #ocaml
rgrinberg has joined #ocaml
primosoma has quit [Quit: https://quassel-irc.org - La chat diventa comoda. Ovunque.]
sleeping_papaya has joined #ocaml
sleeping_papaya has quit [Ping timeout: 265 seconds]
<hornhack> how do I init an array with 2 elements fast?
<hornhack> I know I can Array.create ~len:1 x if it has 1 element
<companion_cube> ~len:2 ought to work?
<hornhack> companion_cube, ehh, but 2 different elements
<hornhack> maybe I need to create a list then Array.of_list?
<hornhack> sounds troublesome
<companion_cube> [| a; b |]
<hornhack> wah is that possible
<hornhack> let me try that, thanks
<d_bot> <NULL> Array.create is deprecated (it is in the Stdlib, it should also be in Base)
<d_bot> <NULL> Use Array.make instead (it should have the same signature)
<companion_cube> it's Array.make anyway
<hornhack> I found Array.create okay in Base, there is no Array.make in Base
<hornhack> or am I reading the old version
<hornhack> its 0.13
<hornhack> wow 0.14 exists
<hornhack> still no Array.make tho
aquijoule__ has joined #ocaml
aquijoule_ has quit [Ping timeout: 265 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
waleee has quit [Quit: WeeChat 3.3]
Colt has quit [Quit: Leaving]
Colt has joined #ocaml
<companion_cube> no, that's the stdlib
ralu has quit [Ping timeout: 250 seconds]
ralu has joined #ocaml
mbuf has joined #ocaml
ansiwen has quit [Quit: ZNC 1.7.1 - https://znc.in]
ansiwen has joined #ocaml
xd1le has joined #ocaml
<d_bot> <Curzon> I wonder when OCaml will have built-in cross compilation
<d_bot> <Curzon> A lot of other languages like Rust, Go, etc have some sort of cross compilation or their interpreter is cross-platform
<d_bot> <Curzon> I know the `opam-cross-windows` but that only worked for one ocaml version lol, other versions would error. It wouldn't work in WSL either, it just wouldn't work, some assembly error or something I don't remember.
<d_bot> <Curzon> I don't get why OCaml has no cross-compilation, though?
<d_bot> <Curzon> Oh wait yeah, because it only generates assembly for linux and mac?
<d_bot> <Curzon> And that unix is also required (for now)
<d_bot> <Curzon> I really like OCaml, but I just don't want to be relying on js_of_ocaml for cross-platform stuff yk
<d_bot> <Curzon> Excuse my complaining, I just hoped that one day ocaml has built-in cross compilation, all im asking for 🙂
sagax has quit [Read error: Connection reset by peer]
<d_bot> <Curzon> >
<d_bot> <Curzon> > According to The great computer language shootout, (see also the newer Computer language shootout benchmarks) Ocaml is the second fastest language - slower than C, but faster than C++.
<d_bot> <Curzon> lol this is so funny
<d_bot> <Curzon> Ocaml is faster than C++ 😂
<d_bot> <mk-fg> Did you try it with modern WSL (WSL2)?
<d_bot> <Curzon> yeah
<d_bot> <mk-fg> Huh, weird, iirc it should be just a linux vm, strange why linux stuff won't just work there
<d_bot> <mk-fg> Older one iirc was an incomplete api emulation layer on top of windows kernel, so there it'd be understandable
cedric has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
sagax has joined #ocaml
mro has joined #ocaml
Serpent7776 has joined #ocaml
average has joined #ocaml
olle has joined #ocaml
olle has quit [Ping timeout: 268 seconds]
Haudegen has joined #ocaml
bartholin has joined #ocaml
mro has quit [Remote host closed the connection]
Colt has quit [Quit: Leaving]
Colt has joined #ocaml
waleee has joined #ocaml
olle has joined #ocaml
<d_bot> <Bluddy> cross-compilation requires several things. you need to track the host and target separately, and generate different assembly for them. then you also need to build the C runtime files with the appropriate target compiler. It's not a ton of work, but the compiler wasn't built with it in mind.
mro has joined #ocaml
spip has joined #ocaml
bobo_ has quit [Ping timeout: 250 seconds]
rond_ has joined #ocaml
rond_ has quit [Client Quit]
rond_ has joined #ocaml
Haudegen has quit [Read error: Connection reset by peer]
Haudegen has joined #ocaml
cedric has quit [Quit: Konversation terminated!]
mro has quit [Remote host closed the connection]
tengu1 has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
xiongxin has joined #ocaml
mro has quit [Read error: Connection reset by peer]
mro_ has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
rond_ has quit [Quit: Client closed]
klu has quit [Quit: .]
klu has joined #ocaml
klu has joined #ocaml
klu has quit [Changing host]
infinity0 has quit [Ping timeout: 256 seconds]
dwt_ has quit [Quit: ZNC 1.8.2 - https://znc.in]
motherfsck has quit [Ping timeout: 265 seconds]
dwt_ has joined #ocaml
infinity0 has joined #ocaml
motherfsck has joined #ocaml
mro_ has quit [Remote host closed the connection]
<companion_cube> @Curzon that's pretty bad benchmarking :s
mro has joined #ocaml
rgrinberg has joined #ocaml
rond_ has joined #ocaml
Haudegen has joined #ocaml
rond_ has quit [Quit: Client closed]
xd1le has quit [Quit: xd1le]
mro has quit [Remote host closed the connection]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mro has joined #ocaml
<d_bot> <mbacarella> is there a way to swap updated TLS certificates into a running cohttp server?
mro has quit [Remote host closed the connection]
mro has joined #ocaml
<d_bot> <undu> I doubt it
<d_bot> <undu> I think I looked into that last year and coldn't find it
<d_bot> <mbacarella> i guess i could have the server re-exec itself once a week. might only cause downtime alerts a few times a year
<d_bot> <lotia> Greetings all. Utter noob here. If this is the correct place to ask OPAM packaging questions, I was wondering if someone could please point me at docs on how to test a package file change locally before I open a pull request on Github
average has quit [Quit: Connection closed for inactivity]
mro has quit [Remote host closed the connection]
<d_bot> <undu> there's the #opam channel, this one can help as well
tengu1 has quit [Quit: Client closed]
<d_bot> <lotia> thank you @undu
bobo_ has joined #ocaml
bartholin has quit [Quit: Leaving]
bartholin has joined #ocaml
spip has quit [Ping timeout: 265 seconds]
mro has joined #ocaml
spip has joined #ocaml
bobo_ has quit [Ping timeout: 250 seconds]
xiongxin has quit [Quit: xiongxin]
mro has quit [Ping timeout: 250 seconds]
<d_bot> <mbacarella> separate question. is there a pure ocaml time sync client? i notice zero ocaml code on github that calls the `adjtime` syscall so i'm guessing no
mro has joined #ocaml
zebrag has joined #ocaml
mro has quit [Ping timeout: 268 seconds]
ns12 has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
olle has quit [Ping timeout: 265 seconds]
bartholin has quit [Quit: Leaving]
mbuf has quit [Quit: Leaving]
mro has quit [Remote host closed the connection]
glassofethanol has joined #ocaml
mro has joined #ocaml
Haudegen has joined #ocaml
mro has quit [Ping timeout: 250 seconds]
glassofethanol has quit [Quit: Lost terminal]
mouseghost has joined #ocaml
<mouseghost> is machine learning feasible in ocaml? what do you think?
<mouseghost> its rather fast and sparse, so...?
mro has joined #ocaml
<mouseghost> wonder how janest. uses it, kinda lol, but i guess this is propertiary info.
mro has quit [Ping timeout: 265 seconds]
olle has joined #ocaml
mro has joined #ocaml
<companion_cube> there are bindings to tensorflow, is all I know
<companion_cube> you probably want to talk to the GPU anyway
<mouseghost> hm
<mouseghost> i thought about doing it all by myself...
<companion_cube> look at bigarray then, for float arrays
<companion_cube> (or Owl but it's not "doing it all by yourself")
<mouseghost> thanks
olle has quit [Ping timeout: 256 seconds]
gareppa has joined #ocaml
gareppa has quit [Quit: Leaving]
olle has joined #ocaml
Anarchos has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Ping timeout: 265 seconds]
average has joined #ocaml
Serpent7776 has quit [Quit: leaving]
mro has joined #ocaml
mro has quit [Ping timeout: 256 seconds]
quernd has quit [Quit: Ping timeout (120 seconds)]
quernd has joined #ocaml
mouseghost has quit [Quit: mew wew]
andreypopp has quit [Ping timeout: 268 seconds]
andreypopp has joined #ocaml
dh` has quit [Ping timeout: 245 seconds]
spip has quit [Remote host closed the connection]
spip has joined #ocaml
rgrinberg has joined #ocaml
xd1le has joined #ocaml
olle has quit [Ping timeout: 265 seconds]
vicfred has joined #ocaml
Haudegen has quit [Ping timeout: 265 seconds]