companion_cube changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.11 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.11/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
mfp has quit [Ping timeout: 252 seconds]
zebrag has quit [Remote host closed the connection]
dckc has quit [Read error: Connection reset by peer]
zebrag has joined #ocaml
dckc has joined #ocaml
White_Flame has quit [Ping timeout: 268 seconds]
White_Flame has joined #ocaml
zebrag has quit [Remote host closed the connection]
lopex has quit [Quit: Connection closed for inactivity]
narimiran has joined #ocaml
vicfred has quit [Quit: Leaving]
vicfred has joined #ocaml
vicfred has quit [Remote host closed the connection]
<d_bot> <MisterGraf> line??
waleee-cl has quit [Quit: Connection closed for inactivity]
<d_bot> <Christophe> The line where this happens. Which expression doesn't have the right type ?
<d_bot> <MisterGraf> & they want this
<d_bot> <MisterGraf> fusion (<) [1; 4; 7; 8] [2; 7];;
<d_bot> <MisterGraf> - : int list = [1; 2; 4; 7; 7; 8]
c4rc4s has quit [Ping timeout: 252 seconds]
c4rc4s has joined #ocaml
wonko7 has joined #ocaml
Haudegen has joined #ocaml
olle has joined #ocaml
<schlaftier> MisterGraf: The parentheses are important here because `<` is an infix operator.
Serpent7776 has joined #ocaml
wonko7 has quit [Quit: See You Space Cowboy..]
olle has quit [Ping timeout: 246 seconds]
tane has joined #ocaml
bartholin has joined #ocaml
mfp has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
ArthurStrong has joined #ocaml
olle has joined #ocaml
ArthurStrong has quit [Quit: leaving]
zebrag has joined #ocaml
lopex has joined #ocaml
Haudegen has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
TheLemonMan has joined #ocaml
Sanduni has joined #ocaml
Sanduni has quit [Client Quit]
st8less has joined #ocaml
<d_bot> <antron> has there been some relatively recent change that makes the compiler report many errors on line 1, no matter what line they actually occur on?
<d_bot> <antron> in addition, many errors are just "Syntax error." i have the impression that errors were better in the past
ArthurStrong has joined #ocaml
<d_bot> <octachron> Syntax errors have been constant.
<d_bot> <octachron> Do you have any example of errors erroneously reported on line 1?
<companion_cube> depends on the errr
mxns has joined #ocaml
<d_bot> <antron> yes, i will start opening issues then
<d_bot> <antron> i do see them very frequently
ArthurStrong has quit [Quit: leaving]
<d_bot> <Drup> @antron let me guess: you have ppxs ?
<d_bot> <antron> ah, that could be why. im using lwt_ppx pervasively to keep backtraces as much as possible
<d_bot> <antron> but i still don't immediately see why this would cause syntax errors on "line 1." isn't parsing done before any ppx anyway? perhaps im forgetting something
<d_bot> <Drup> The original iteration of lwt_ppx was very careful about locations, but it was kinda rewritten several times, so it might have changed
<d_bot> <Drup> depends on the error. "line 1" is the compiler's way of saying "It's in this file, but the location doesn't say more"
<d_bot> <antron> yes i understand that its the give-up location. i'll try to reproduce the various errors without ppx, as i get them
waleee-cl has joined #ocaml
neiluj has joined #ocaml
neiluj has joined #ocaml
neiluj has quit [Changing host]
Haudegen has quit [Quit: Bin weg.]
vicfred has joined #ocaml
olle has quit [Ping timeout: 240 seconds]
cantstanya has quit [Ping timeout: 240 seconds]
cantstanya has joined #ocaml
<d_bot> <MisterGraf> corrected
<d_bot> <MisterGraf> let rec fusion_bis comp a l=
<d_bot> <MisterGraf> match l with
<d_bot> <MisterGraf> [] -> [a]
<d_bot> <MisterGraf> |x::reste ->
<d_bot> <MisterGraf> if comp a x then a:❌:reste
<d_bot> <MisterGraf> else x::fusion_bis comp a reste;;
<d_bot> <MisterGraf>
<d_bot> <MisterGraf> let rec fusion comp l1 l2 =
<d_bot> <MisterGraf> match l1 with
<d_bot> <MisterGraf> []->l2
<d_bot> <MisterGraf> |a::reste1 -> fusion comp reste1 ( fusion_bis comp a l2 );;
<d_bot> <MisterGraf> after 4h
st8less has quit [Ping timeout: 250 seconds]
st8less has joined #ocaml
bartholin has quit [Quit: Leaving]
<d_bot> <octachron> Please use the beginner channel if you want to post code blocks. Large block of text is noisy on the irc-side of the bridge.
<d_bot> <octachron> Also, your `fusion_bis` function is an insertion sort function, making `fusion` quadratic defeating the purpose of the merge-sort algorithm.
Tuplanolla has joined #ocaml
Haudegen has joined #ocaml
landonf has quit [Excess Flood]
landonf has joined #ocaml
shmibs has quit [Quit: leaving =o]
shmibs has joined #ocaml
wonko7 has joined #ocaml
shmibs has quit [Quit: leaving =o]
shmibs has joined #ocaml
infinigon has quit [Quit: infinigone.]
infinigon has joined #ocaml
infinigon has quit [Quit: infinigone.]
infinigon has joined #ocaml
<d_bot> <dinosaure> @antron I got your error in my PR 😦
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
<d_bot> <antron> on line 1, with all the other "cool" errors?
<d_bot> <dinosaure> hmmhmm, just a syntax error at line 1 of `src/middleware/upload.ml`
<d_bot> <dinosaure> and nothing else
<d_bot> <dinosaure> from `dune --verbose`, it wants to run the PPX
<d_bot> <dinosaure> but, I don't have any clue how to fix that -- I don't use ppx at all
<d_bot> <antron> i've been doing a lot of binary search on these errors...
<d_bot> <antron> i better look into this because it would kill the beginner experience
<d_bot> <dinosaure> should I delete my usage of `let%lwt`/`match%lwt`?
<d_bot> <antron> i don't think (could be wrong) they alone are causing it
<d_bot> <antron> it might be applying lwt_ppx at all.. or maybe not
olle has joined #ocaml
<d_bot> <Recruiter6061> ```caml
<d_bot> <Recruiter6061> let moyenne = function a →function b → (a +. b) /. 2. ;; ``` what's the last dot meaning
<companion_cube> 2. is a float
<companion_cube> 2 is an int
<d_bot> <Recruiter6061> why put 2 as a float to calculate the average could this be done with 2 as int?
<companion_cube> no, `/.` takes floats, not integers
bjorkintosh has joined #ocaml
<d_bot> <Recruiter6061> ugh nice bot tho or is it a bot... how you do this?
<steenuil> it's an irc bridge
<companion_cube> hmm you must be on discord
<d_bot> <Recruiter6061> that's right
<companion_cube> I'm on IRC, is all
<d_bot> <Recruiter6061> ohh okay thanks for answering very instructive
vicfred has quit [*.net *.split]
neiluj has quit [*.net *.split]
JSharp has quit [*.net *.split]
adi__________ has quit [*.net *.split]
rpcope has quit [*.net *.split]
yomimono has quit [*.net *.split]
ansiwen has quit [*.net *.split]
vicfred has joined #ocaml
neiluj has joined #ocaml
JSharp has joined #ocaml
adi__________ has joined #ocaml
ansiwen has joined #ocaml
yomimono has joined #ocaml
rpcope has joined #ocaml
vicfred has quit [Max SendQ exceeded]
vicfred has joined #ocaml
narimiran has quit [Quit: leaving]
wonko7 has quit [Ping timeout: 240 seconds]
neiluj has quit [Quit: leaving]
vicfred_ has joined #ocaml
vicfred has quit [Ping timeout: 240 seconds]
tane has quit [Quit: Leaving]
tryte has quit [Remote host closed the connection]
tryte has joined #ocaml
olle has quit [Ping timeout: 246 seconds]
Tuplanolla has quit [Quit: Leaving.]
Haudegen has quit [Ping timeout: 252 seconds]
sagax has joined #ocaml
_ks has quit [Quit: WeeChat 3.0.1]