adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.09 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.09/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
Hrundi_V_Bakshi has quit [Ping timeout: 260 seconds]
Haudegen has quit [Ping timeout: 264 seconds]
Guest86335 has quit [Ping timeout: 244 seconds]
jbrown has quit [Ping timeout: 272 seconds]
jbrown has joined #ocaml
Guest86335 has joined #ocaml
rockethead has joined #ocaml
rockethead has quit [Quit: rockethead]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
waleee-cl has quit [Quit: Connection closed for inactivity]
tvn948 has joined #ocaml
sagax has joined #ocaml
snowpanda has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
malc_ has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 260 seconds]
decentpenguin has quit [Quit: ZNC crashed or something]
bartholin has quit [Quit: Leaving]
decentpenguin has joined #ocaml
osa1 has joined #ocaml
Guest86335 has quit [Ping timeout: 272 seconds]
FreeBirdLjj has joined #ocaml
Guest86335 has joined #ocaml
brettgilio has joined #ocaml
brown121407 has joined #ocaml
snowpanda has quit [Quit: Leaving...]
octachron_ has joined #ocaml
octachron has quit [Read error: Connection reset by peer]
malc_ has quit [Ping timeout: 272 seconds]
Haudegen has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
drewr has quit [Ping timeout: 244 seconds]
drewr has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 260 seconds]
FreeBirdLjj has joined #ocaml
heredoc has quit [Ping timeout: 244 seconds]
heredoc has joined #ocaml
waleee-cl has joined #ocaml
bartholin has joined #ocaml
ggole has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
oni-on-ion has joined #ocaml
malc_ has joined #ocaml
nullcone has quit [Quit: Connection closed for inactivity]
FreeBirdLjj has joined #ocaml
osa1 has quit [Ping timeout: 256 seconds]
FreeBirdLjj has quit [Ping timeout: 272 seconds]
vicfred has quit [Quit: Leaving]
osa1 has joined #ocaml
osa1 has quit [Remote host closed the connection]
_whitelogger has joined #ocaml
vicfred has joined #ocaml
malc_ has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
malc_ has joined #ocaml
_whitelogger has joined #ocaml
oni-on-ion has quit [Remote host closed the connection]
benschza has joined #ocaml
waleee-cl has quit [Quit: Connection closed for inactivity]
tane has joined #ocaml
osa1 has joined #ocaml
Hrundi_V_Bakshi has joined #ocaml
jco has joined #ocaml
<jco> Hello!
<jco> Is there an elegant way to map a type to a virtually equivalent other?
<jco> basically the constructors have the same names, i wonder if we could do this shorter
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
samlamamma has joined #ocaml
vicfred has quit [Quit: Leaving]
vicfred has joined #ocaml
<flux1> jco: well, you could write a ppx rewriter to do the job, but it's probably overkill
<flux1> you would probably still need to enumerate the constructors, ie. in the type definition.
<jco> true
decentpenguin has quit [Quit: ZNC crashed or something]
FreeBirdLjj has quit [Remote host closed the connection]
nullcone has joined #ocaml
jco has quit [Quit: WeeChat 2.7]
waleee-cl has joined #ocaml
malc_ has quit [Ping timeout: 272 seconds]
Guest86335 has quit [Ping timeout: 240 seconds]
<samlamamma> When I try to build OCaml 4.10.0 through OPAM the compilation fails with 'Error while linking stdlib.cma Reference to undefined global 'Stack_overflow''. Any idea what might cause this?
<samlamamma> Well, got the same error for 4.09.1
<waleee-cl> have you succesfully installed an older switch on your system earlier?
andreas303 has quit [Ping timeout: 240 seconds]
webshinra has joined #ocaml
andreas303 has joined #ocaml
<samlamamma> Nope! First time OCaml user :)
<waleee-cl> have you followed the guide on https://opam.ocaml.org/doc/Usage.html ?
<samlamamma> I followed the one from ocaml.org/docs/install.html Let me try that one out instead
<samlamamma> Oh wait, yes, I have followed that one too :)
<waleee-cl> yeah there's no practical difference between them
<waleee-cl> samlamamma: what is your system? (if linux: which distro)
<samlamamma> Kubuntu 19.04 . I installed the system OCaml through apt (4.05.0) and that succeeded (though I assume that's just a binary)
<samlamamma> 19.10*, this has reached EOL so I might just keep on chugging with 4.05.0
<waleee-cl> samlamamma: does 'opam switch list' contain anything?
<waleee-cl> * print anything
<samlamamma> It shows ocaml-system.4.05.0 (presumably installed from Ubuntu?)
<waleee-cl> Yes, that looks ok. I did find this https://github.com/ocaml/opam/issues/3827 but it's for 19.04 and not the same error as you got
remexre has quit [Quit: WeeChat 2.8]
<samlamamma> I think I'll just upgrade my distro and see if something changes, it's time to do that regardless. Thank you for helping out :)
<waleee-cl> samlamamma: hm, did you use the opam from the apt-repos?
nkly_ has joined #ocaml
<waleee-cl> ok. Anything intresting in output of 'opam config report'? such as solver acpud instead of mccs
<samlamamma> Looks fine to me, solver is builtin-mccs+glpk
zebrag has quit [Read error: Connection reset by peer]
zebrag has joined #ocaml
<waleee-cl> samlamamma: is your shell fish?
<waleee-cl> I guess you could try the export LC_ALL=C trick before creating the switch https://github.com/ocaml/ocaml/blob/trunk/INSTALL.adoc#common-problems
<samlamamma> I just use the default shell which comes with KUbuntu (not fish). I'll try the LC_ALL=C trick out!
<samlamamma> Haha yup, that worked :). It just finished
<samlamamma> There's no way I would have figured that out myself, cheers!
<waleee-cl> weird stuff. I didn't think that would work
<samlamamma> I agree, definitely on the weirder side of fixes
tane has quit [Quit: Leaving]
nkly_ has quit [Ping timeout: 246 seconds]
osa1 has quit [Ping timeout: 256 seconds]
NSA_Spy has joined #ocaml
<NSA_Spy> hello world!, can anyone tell me what the best way to translate ocaml code into AST without camlp4 and related modules?
ggole has quit [Quit: Leaving]
<companion_cube> compiler-libs.common, Parsing module, iirc
samlamamma has quit [Remote host closed the connection]
<NSA_Spy> thumbs up
malc_ has joined #ocaml
delysin has quit [Read error: Connection reset by peer]
delysin has joined #ocaml
snowpanda has joined #ocaml
Serpent7776 has quit [Quit: leaving]
NSA_Spy has quit [Remote host closed the connection]
NSA_Spy has joined #ocaml
snowpand_ has joined #ocaml
snowpanda has quit [Ping timeout: 260 seconds]
robi has quit [Ping timeout: 272 seconds]
Hrundi_V_Bakshi has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Haudegen has quit [Quit: Bin weg.]
malc_ has quit [Ping timeout: 272 seconds]