companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.12 released: https://ocaml.org/releases/4.12.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
vicfred has joined #ocaml
<d_bot> <Def> @theangryepicbanana Thanks. I don't really see which rules are conflicting but I trust you :)
<d_bot> <theangryepicbanana> yeah it's one of the ugliest hacks I've ever had to come up with for parsing lol
Tuplanolla has quit [Quit: Leaving.]
favonia has quit [Ping timeout: 240 seconds]
Guest8905 has quit [Quit: Konversation terminated!]
spip has joined #ocaml
spip is now known as Guest8616
sleepydog has quit [Quit: ZNC 1.8.2 - https://znc.in]
favonia has joined #ocaml
waleee has quit [Ping timeout: 255 seconds]
Serpent7776 has quit [Read error: Connection reset by peer]
Serpent7776 has joined #ocaml
mbuf has joined #ocaml
cedric has joined #ocaml
shawn has quit [Ping timeout: 256 seconds]
berberman_ has joined #ocaml
berberman has quit [Ping timeout: 255 seconds]
favonia has quit [Ping timeout: 255 seconds]
gravicappa has joined #ocaml
favonia has joined #ocaml
mro has joined #ocaml
Haudegen has joined #ocaml
favonia has quit [Ping timeout: 256 seconds]
theglass has quit [Quit: There's a vast network, right? An ocean of possibilities. I like dogs. I used to raise rabbits.]
theglass has joined #ocaml
theglass has joined #ocaml
favonia has joined #ocaml
vicfred has quit [Quit: Leaving]
favonia has quit [Ping timeout: 255 seconds]
favonia has joined #ocaml
favonia has quit [Ping timeout: 255 seconds]
favonia has joined #ocaml
Tuplanolla has joined #ocaml
favonia has quit [Ping timeout: 272 seconds]
favonia has joined #ocaml
favonia has quit [Ping timeout: 256 seconds]
mro has quit [Read error: Connection reset by peer]
mro has joined #ocaml
bartholin has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
Serpent7776 has quit [Read error: Connection reset by peer]
Serpent7776 has joined #ocaml
<d_bot> <Jo.Blade> hello, I am trying to use camlimages but I have a problem:
<d_bot> <Jo.Blade> ```ocaml
<d_bot> <Jo.Blade> # let test=
<d_bot> <Jo.Blade> let width = 20
<d_bot> <Jo.Blade> and length = 20
<d_bot> <Jo.Blade> and name = Sys.argv.(3)
<d_bot> <Jo.Blade> and black = {Color.Rgb.r = 0; g=0; b=0; }
<d_bot> <Jo.Blade> and white = {Color.Rgb.r = 255; g=255; b=255; } in
<d_bot> <Jo.Blade> let image = Rgb24.make width length black in
<d_bot> <Jo.Blade> for i = 0 to width-1 do
<d_bot> <Jo.Blade> for j = 0 to (length/2) - 1 do
<d_bot> <Jo.Blade> Rgb24.set image i j white;
<d_bot> <Jo.Blade> done;
<d_bot> <Jo.Blade> done;
<d_bot> <Jo.Blade> Png.save name [] (Images.Rgb24 image)
<d_bot> <Jo.Blade> ;;
<d_bot> <Jo.Blade> Error: Unbound record field Color.Rgb.r
<d_bot> <Jo.Blade> ```
<d_bot> <Jo.Blade> I have loaded the camlimages library first using ```#require "camlimages.all_formats"
<d_bot> <Jo.Blade> ```
<d_bot> <Jo.Blade> according to merlin:
mro has quit [Remote host closed the connection]
waleee has joined #ocaml
mro has joined #ocaml
mro has quit [Ping timeout: 256 seconds]
pieguy128 has quit [Quit: ZNC 1.8.2 - https://znc.in]
pieguy128 has joined #ocaml
mro has joined #ocaml
mro has quit [Ping timeout: 255 seconds]
favonia has joined #ocaml
mal`` has quit [Quit: Leaving]
mbuf has quit [Quit: Leaving]
mal`` has joined #ocaml
mal`` has quit [Excess Flood]
mro has joined #ocaml
mal`` has joined #ocaml
mro has quit [Ping timeout: 272 seconds]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
zebrag has joined #ocaml
mro has joined #ocaml
mro has quit [Ping timeout: 272 seconds]
bartholin has quit [Ping timeout: 272 seconds]
mbuf has joined #ocaml
bartholin has joined #ocaml
favonia has quit [Remote host closed the connection]
favonia has joined #ocaml
mro has joined #ocaml
mro has quit [Ping timeout: 256 seconds]
mouseghost has joined #ocaml
<mouseghost> hmm
<mouseghost> hewo
<mouseghost> is there something obvious about that syntax here https://ocaml.janestreet.com/ocaml-core/latest/doc/base/Base/Hash_set/index.html#val-create telling where to get the ...Key from?
mro has joined #ocaml
<mouseghost> hm maybe i dont want to use it afterall, nvm
<d_bot> <octachron> @Jo.Blade : the type `Color.RGb.t` doesn't re-export the fields of the type `Color.rgb`. Thus you need to write `{Color.r = 0; g =0; ... }`.
troydm has quit [*.net *.split]
thvnx has quit [*.net *.split]
vb has quit [*.net *.split]
welterde has quit [*.net *.split]
zozozo has quit [*.net *.split]
thvnx_ has joined #ocaml
vb_ has joined #ocaml
troydm has joined #ocaml
zozozo has joined #ocaml
welterde has joined #ocaml
welterde has quit [Client Quit]
welterde has joined #ocaml
zozozo has quit [Client Quit]
zozozo has joined #ocaml
mro has quit [Ping timeout: 272 seconds]
<mouseghost> oooooooooooooooooooooooooooooooooooooooh
<mouseghost> now i understand
<mouseghost> tho i still dont get why :D
mouseghost has quit [Quit: mew wew]
mro has joined #ocaml
mro has quit [Ping timeout: 245 seconds]
mro has joined #ocaml
mro has quit [Ping timeout: 256 seconds]
<d_bot> <argent_smith> hippl. did anyone come across a problem when the VScode OCaml Platform using an esy sandbox (or, perhaps, esy itself) fails to navigate/resolve the names after utop was added to the sandbox?
mro has joined #ocaml
mro has quit [Ping timeout: 245 seconds]
mro has joined #ocaml
mro_ has joined #ocaml
mro has quit [Ping timeout: 276 seconds]
cedric has quit [Quit: Konversation terminated!]
romildo has joined #ocaml
mro_ has quit [Remote host closed the connection]
romildo has left #ocaml [Leaving]
eight has joined #ocaml
mbuf has quit [Quit: Leaving]
bartholin has quit [Quit: Leaving]
mro has joined #ocaml
eight has quit [Quit: leaving]
mouseghost has joined #ocaml
<d_bot> <mimoo> one of my dune action relies on a file that is inside a dot folder (.cargo/config) but dune won't copy it into the _build folder
Stumpfenstiel has joined #ocaml
<companion_cube> I have vague memories of that
<companion_cube> so basically, a workaround
<d_bot> <mimoo> this is exactly what I'm looking at : D
<d_bot> <mimoo> but I was hopping to find something less ugly
mro has quit [Remote host closed the connection]
<companion_cube> if oyu find, let me know :D
<d_bot> <mimoo> any idea why ocaml-lsp-server still doesn't implement "go to implementation" 😄 ?
<d_bot> <mimoo> #ocaml-lsp-server
<d_bot> <mimoo> where should I complain about this
<companion_cube> try not to complain but rather, raise awereness of the issue ;)
<companion_cube> it's free work after all
<companion_cube> you can try on the ocamllsp issue tracker?
<d_bot> <mimoo> figure of speech :p
<d_bot> <mimoo> everything that comes out of my mouth is a complaint
mro has joined #ocaml
<companion_cube> are you typing with your mouth? :o
<d_bot> <mimoo> you don't do that?
<companion_cube> nah, I use these weird appendages called fingers
<companion_cube> and I use them badly :(
eight has joined #ocaml
eight has quit [Client Quit]
<d_bot> <Ulugbek> Why do you think it doesn't? I think you can go to implementation of a symbol with ocaml-lsp. It sometimes jumps to a declaration of the symbol in the interface file (mli) instead of ml, but that's rather a bug that needs to be viewed on the merlin side.
krnkktz has quit [Remote host closed the connection]
labor[m] has quit [Remote host closed the connection]
inkbottle[m] has quit [Read error: Connection reset by peer]
smondet[m] has quit [Read error: Connection reset by peer]
marinelli[m] has quit [Write error: Connection reset by peer]
brettgilio has quit [Write error: Connection reset by peer]
schube[m] has quit [Remote host closed the connection]
fluxm has quit [Write error: Connection reset by peer]
mro has quit [Remote host closed the connection]
mro has joined #ocaml
<companion_cube> @Uludbek: I think LSP now makes the distinction between goto-def and goto-impl
gravicappa has quit [Ping timeout: 256 seconds]
<d_bot> <Cyclomatic Complexity> are scope escaping errors computed during typing/unification, or is it a separate pass after typing that checks that all vars are bound?
<companion_cube> it's part of the type inference
<d_bot> <Cyclomatic Complexity> more generally, where can i find more about how scope escapes are actually computed?
<companion_cube> amazing explanation there
<d_bot> <Cyclomatic Complexity> epic
<d_bot> <Cyclomatic Complexity> thx
<companion_cube> it's not surprising it's been used in many newer type mechanisms in OCaml (e.g. first class modules)
oriba has joined #ocaml
mro has quit [Quit: Leaving...]
wingsorc has joined #ocaml
<mouseghost> any projects for beginners in ocaml?
<mouseghost> or ideas, idk
<mouseghost> something thats fun to do in ocaml yay
<mouseghost> because downloading webpages looks scary :D
<companion_cube> may I suggest an IRC bot? :p
<companion_cube> might be my thing but well
<mouseghost> o;
<companion_cube> the IRC library recently got basic support for SASL, for… understandable reasons I guess
<mouseghost> can also roll your own heh
<mouseghost> i wonder how ocaml is on winbows
<mouseghost> is that weird that this fact is kinda offputing?
<companion_cube> what fact?
<mouseghost> companion_cube, that windows incompatibility, kinda
<mouseghost> i dunnooo
<d_bot> <colin> yes, Windows support for anything is deeply unsettling
<mouseghost> as far as ive looked into it ocaml requires cygwin for building, hm
<mouseghost> @colin, i was more like, lack of it :D
<companion_cube> ah well, yes
<d_bot> <colin> you will naturally have a better programming experience on *nix
<d_bot> <colin> not here to cause some debate, it's just objective reality
<d_bot> <Deadrat> wsl2 works fine
<companion_cube> that's what happens when you have a compiled language that doesn't *start* on windows :s
<mouseghost> hm, i actually got crosscompilation to work, but probably the libs wont work? and especially the sockets hm...
<mouseghost> @deadrat, i mean, it does... but... eh, i dunno...
<mouseghost> it still doesnt mean that windows is supported
<mouseghost> its just a vm ;v
<d_bot> <Deadrat> well, who cares about windows
<d_bot> <Deadrat> all my software runs on linux anyways
<mouseghost> hm
<mouseghost> good point
krnkktz has joined #ocaml
<d_bot> <Deadrat> so i have windows as my daily driver
<d_bot> <colin> condolences
<d_bot> <Deadrat> but i do dev work inside wsl2
fluxm has joined #ocaml
labor[m] has joined #ocaml
<d_bot> <Deadrat> well, i'm too tired of my DE dying for no reason
smondet[m] has joined #ocaml
brettgilio has joined #ocaml
inkbottle[m] has joined #ocaml
<d_bot> <colin> the solution is simple, never have a DE to being with :wesmart:
<d_bot> <colin> begin*
<d_bot> <Deadrat> so now my DE is dying with enterprise support ™️
<mouseghost> i was about to say that lol
marinelli[m] has joined #ocaml
schube[m] has joined #ocaml
<mouseghost> i like the fact that they say you cant have hyperv on home, but you really can (and you indeed have it if you use wsl2 afaik)
<d_bot> <Deadrat> also my laptop doesnt die after 3 nanoseconds when unplugged
<companion_cube> lexifi is one company that works mostly on/for windows
<d_bot> <Deadrat> i can actually shitpost for a few hours
<companion_cube> (they authored flexdll and stuff)
<d_bot> <colin> regarding your original question, mouseghost, I always recommend small language projects for beginners
<d_bot> <colin> gets you familiar with: available tooling (ocamllex + menhir, their dune stanzas), book-keeping data structures (will almost always require Map and Set at some point), structural recursion, etc.
<mouseghost> i guess something different that ol borin lisp is a good point..
<d_bot> <Deadrat> cornell course has simPL project
<d_bot> <Deadrat> where you basically write an interpreter for small language
<mouseghost> simp
<d_bot> <Deadrat> lamo
<mouseghost> :3
<d_bot> <colin> quickly move from evaluators to compilers w/ LLVM bindings libraries support
<mouseghost> oh there are binding to llvm in ocaml?
<d_bot> <colin> yes
<d_bot> <Deadrat> yep
<mouseghost> o;
<d_bot> <colin> llvm.moe for anime girls
<d_bot> <colin> https://llvm.moe/
<mouseghost> bought me
<mouseghost> nice
thvnx_ is now known as thvnx
thvnx has quit [Changing host]
thvnx has joined #ocaml
Stumpfenstiel has quit [Ping timeout: 245 seconds]
<mouseghost> OH WOW
<mouseghost> OOOH WOW
<mouseghost> cross compilation to windblows is really cool
<mouseghost> it even support networking
<mouseghost> !!!!!!
<mouseghost> NOW im hyped
<mouseghost> why didnt you tell me earlier
mouseghost has quit [Quit: mew wew]
rgrinberg has joined #ocaml
Haudegen has quit [Ping timeout: 255 seconds]
gwizon has joined #ocaml
shawn has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]
zebrag has quit [Ping timeout: 256 seconds]
zebrag has joined #ocaml
oriba has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]