<David[m]123>
Is there a way to pipe `|>` into functions with labels?
<David[m]123>
Looks like you can do something like:
<David[m]123>
|> fun x -> target ~x ~y:10
<David[m]123>
Not my favorite but it's not terrible.
chrisz has quit [Ping timeout: 252 seconds]
chrisz has joined #ocaml
QDX45 has quit [Ping timeout: 260 seconds]
waleee has quit [Ping timeout: 268 seconds]
mbuf has joined #ocaml
edrx has left #ocaml [ERC 5.4.1 (IRC client for GNU Emacs 29.0.50)]
bgs has joined #ocaml
Haudegen has joined #ocaml
jao has quit [Ping timeout: 252 seconds]
Serpent7776 has joined #ocaml
mro has joined #ocaml
bartholin has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
m5zs7k has quit [Ping timeout: 265 seconds]
m5zs7k has joined #ocaml
neiluj has joined #ocaml
<neiluj>
Hello! Little question about the interactions between various libraries: say we got package A that has some functions operating on regular arrays and package B defining a special type of arrays that are different from regular arrays
<neiluj>
how to use functions from package A with the special arrays that are equivalent but not equal to regular OCaml arrays?
mro has quit [Remote host closed the connection]
Anarchos has joined #ocaml
mro has joined #ocaml
<octachron>
You can't without converting back and forth between the array data types. Except if package A was written as a functor over an array module type.
olle has joined #ocaml
<neiluj>
thanks, yeah, you can't avoid the functor root this way
<vsiles>
or deal with the array conversion yourself (explicitely, you probably don't want to do that)
<neiluj>
*functor route
<neiluj>
also yes
<Anarchos>
just a silly question : why so many platforms got their native compilers disabled in the last few months ?
<octachron>
because the runtime was completely rewritten to remove the global runtime lock
<octachron>
and supporting effects requires low-level assembler code that need to be written for each architecture.
<octachron>
You should use the 4.14 branch on non mainstream platform. The branch will be maintained until support is restored.
<Anarchos>
octachron architecture i can understand, but in my case haiku platform is almost the same as linux, but it was disabled.
<Anarchos>
octachron makes sense to stick to 4.14.
<octachron>
As before, patch to fix/re-enable haiku support are welcome; but haiku is not officially supported (due to the lack of man-power and CI infrastructure).
<dh`>
is there a list somewhere of which targets are broken?
<Anarchos>
octachron i know. Indeed it just broke on some unix tests for me, though i am not versed enough in socket obscure semantics , in the dark corners
<Anarchos>
dh` i think there is rather a list of supported platforms.
bobo_ has joined #ocaml
spip has quit [Ping timeout: 265 seconds]
azimut has quit [Ping timeout: 258 seconds]
<octachron>
dh`, the readme has a list of supported platforms.
<octachron>
The list of actually working platforms is a bit larger (the native compiler works and is tested on openBSD, freeBSD, and omniOS for instance)
<dh`>
that was not the question; the question was whether there was a list of platforms that were broken by this change
<octachron>
Do you mean if the difference between previously supported platforms and 5.0 supported platforms was written down explicitly?
<dh`>
I mean that if the native compiler was disabled for some set of targets that there ought to be a list of what those targets are
<dh`>
not sure why this is a difficult question
<octachron>
Like I said, there is a list of supported platforms for the 5.0.0 release of native compiler, but indeed the diff with 4.14 was not written down explicitly.
<olle>
It's not a guessing game?
<olle>
Some targets could have worked incidentally
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Client Quit]
dnh has joined #ocaml
<neiluj>
you can't specify the pin-depends in a dune file, right?
<neiluj>
for now I rely on .opam.template to specify the pin
wingsorc has quit [Quit: Leaving]
bobo_ has quit [Quit: Konversation terminated!]
spip has joined #ocaml
Haudegen has quit [Read error: Connection reset by peer]
Haudegen has joined #ocaml
azimut has joined #ocaml
megeve has quit [Write error: Connection reset by peer]
megeve has joined #ocaml
azimut has quit [Remote host closed the connection]
lisq has quit [Remote host closed the connection]
azimut has joined #ocaml
lisq has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
adanwan has quit [Remote host closed the connection]
adanwan has joined #ocaml
omegatron has joined #ocaml
azimut has quit [Ping timeout: 258 seconds]
waleee has joined #ocaml
Haudegen has joined #ocaml
jao has joined #ocaml
xd1le has quit [Quit: xd1le]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
adanwan has quit [Ping timeout: 258 seconds]
adanwan has joined #ocaml
adanwan has quit [Remote host closed the connection]
adanwan has joined #ocaml
adanwan has quit [Ping timeout: 258 seconds]
adanwan has joined #ocaml
Serpent7776 has quit [Quit: WeeChat 1.9.1]
waleee has quit [Ping timeout: 268 seconds]
Haudegen has quit [Quit: Bin weg.]
adanwan has quit [Remote host closed the connection]
olle has quit [Ping timeout: 265 seconds]
adanwan has joined #ocaml
<neiluj>
hey! got error "Type MyLib.A.t is not compatible with type MyLib__A.Internal.t", does that ring any bell?
<neiluj>
type MyLib.A.t being defined as Internal.t
adanwan has quit [Remote host closed the connection]
adanwan has joined #ocaml
zebrag has joined #ocaml
chrisz has quit [Ping timeout: 246 seconds]
chrisz has joined #ocaml
Tuplanolla has joined #ocaml
Haudegen has joined #ocaml
eduardo-bellani has joined #ocaml
John_Ivan has joined #ocaml
John_Ivan_ has quit [Ping timeout: 260 seconds]
kakadu_ has quit [Quit: Konversation terminated!]
mbuf has quit [Quit: Leaving]
adanwan has quit [Remote host closed the connection]
adanwan has joined #ocaml
wonko has quit [Read error: Connection reset by peer]
olle has joined #ocaml
waleee has joined #ocaml
azimut has joined #ocaml
adanwan has quit [Ping timeout: 258 seconds]
adanwan has joined #ocaml
olle has quit [Ping timeout: 260 seconds]
adanwan has quit [Remote host closed the connection]
adanwan has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnh has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
Haudegen has joined #ocaml
<sim642>
Maybe your signatures don't expose that equality
<sim642>
if it's left abstract in the signature, then outside uses don't know about it being the same type
justHaunted is now known as _justHaunted
_justHaunted is now known as justHaunted
<neiluj>
thanks! tried `module Internal = include A_sig with type t = A.t = ...` but somehow t is still abstract
bobo_ has joined #ocaml
spip has quit [Ping timeout: 265 seconds]
SquidDev has quit [Quit: Ping timeout (120 seconds)]
SquidDev has joined #ocaml
wingsorc has joined #ocaml
<hannes>
~.
bartholin has quit [Quit: Leaving]
QDX45 has joined #ocaml
wingsorc has quit [Quit: Leaving]
wingsorc has joined #ocaml
QDX45 has quit [Ping timeout: 264 seconds]
Tuplanolla has quit [Quit: Leaving.]
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnh has joined #ocaml
Haudegen has quit [Ping timeout: 260 seconds]
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]