companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.0 released(!!1!): https://ocaml.org/releases/5.0.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: 255 seconds]
gdd has quit [Ping timeout: 265 seconds]
gdd has joined #ocaml
<discocaml> <Add to Cart> I am currently taking a class thats teaching ocaml and I would like to find a place to master the language. Where can I go for this?
<discocaml> <NULL> If you have questions, here (or #beginners) is a good place; for general lessons, I don't know (the two links above may be answers)
wingsorc has quit [Remote host closed the connection]
wingsorc has joined #ocaml
wingsorc has quit [Remote host closed the connection]
wingsorc has joined #ocaml
<oriba> yes the Whitington is a good start... the OCaml-Oreilly-Book is also good
spip has quit [Quit: Konversation terminated!]
hackhorn has joined #ocaml
sagax has quit [Remote host closed the connection]
oriba has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
omegatron has joined #ocaml
hrberg has quit [Ping timeout: 250 seconds]
hrberg has joined #ocaml
rf has quit [Remote host closed the connection]
chrisz has quit [Ping timeout: 265 seconds]
chrisz has joined #ocaml
waleee has quit [Ping timeout: 250 seconds]
motherfsck has joined #ocaml
motherfsck has quit [Ping timeout: 265 seconds]
motherfsck has joined #ocaml
mbuf has joined #ocaml
trev has joined #ocaml
azimut has joined #ocaml
Haudegen has joined #ocaml
motherfsck has quit [Ping timeout: 260 seconds]
trev has quit [Ping timeout: 255 seconds]
Serpent7776 has joined #ocaml
trev has joined #ocaml
Serpent7776 has quit [Ping timeout: 255 seconds]
Serpent7776 has joined #ocaml
olle has joined #ocaml
bartholin has joined #ocaml
bartholin has quit [Quit: Leaving]
spip has joined #ocaml
Putonlalla has quit [Ping timeout: 255 seconds]
hackhorn has quit [Ping timeout: 252 seconds]
<discocaml> <შონია> Thank you
Putonlalla has joined #ocaml
mbuf has quit [Quit: Leaving]
patrick has joined #ocaml
wingsorc has quit [Ping timeout: 246 seconds]
szkl has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
motherfsck has joined #ocaml
Haudegen has joined #ocaml
perrierjouet has quit [Quit: WeeChat 3.8]
perrierjouet has joined #ocaml
hackhorn has joined #ocaml
hornhack has joined #ocaml
hornhack has quit [Client Quit]
hackhorn has quit [Ping timeout: 248 seconds]
perrierjouet has quit [Quit: WeeChat 3.8]
rf has joined #ocaml
neiluj has joined #ocaml
<neiluj> hello!
szkl has quit [Ping timeout: 250 seconds]
rf_ has joined #ocaml
rf has quit [Ping timeout: 250 seconds]
<neiluj> after the C stubs are built with ctypes there is an error that alloc is deprecated and ocaml_alloc should be used
<neiluj> also, some structs have flush as a field and this clashes with ocaml_flush
<neiluj> rings a bell?
szkl has joined #ocaml
perrierjouet has joined #ocaml
waleee has joined #ocaml
motherfsck has quit [Ping timeout: 276 seconds]
Haudegen has quit [Quit: Bin weg.]
waleee has quit [Ping timeout: 264 seconds]
waleee has joined #ocaml
Serpent7776 has quit [Quit: WeeChat 1.9.1]
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
neiluj has quit [Ping timeout: 246 seconds]
neiluj has joined #ocaml
Haudegen has joined #ocaml
troydm has joined #ocaml
bartholin has joined #ocaml
rf_ has quit [Quit: Leaving]
motherfsck has joined #ocaml
olle has quit [Ping timeout: 260 seconds]
olle has joined #ocaml
trev has quit [Remote host closed the connection]
Stumpfenstiel has joined #ocaml
<discocaml> <cemerick> sheesh, the 'What are the biggest reasons newcomers give up on OCaml?' mega-thread is now up to almost 300 messages 👀
<neiluj> :sadparrot:
<neiluj> got those C bindings working, parsing C with libclang was actually not too painful
<discocaml> <geoff> generating ctypes bindings?
<neiluj> yep!
<neiluj> in the end I had to edit manually to remove some function which clashed with the ocaml C api
<neiluj> now translating some old code in ocaml to try to find how to make a wrapper with a type-safe interface
<discocaml> <geoff> ah nice. I've just manually pounded them out on the three libraries that I've bound so far (with the help of regex -- on header signatures and existing foreign ctypes foreign expressions). Even having something that generated the first pass automatically would be nice though.
gahr has quit [Read error: Connection reset by peer]
gahr has joined #ocaml
<neiluj> wow regexp you're courageous!
<neiluj> used this: https://github.com/aziem/libclang-ocaml-bindings-generator/tree/master, adapted it a bit too support some C quirks
<neiluj> now I wan't to do C++ again! especially since the latest standards have more and more functional features
<discocaml> <geoff> Are you going to PR the changes? I'll have try that out the next time I'm starting fresh on a bindings lib
<neiluj> yeah I'll try once I clean it up a bit, maybe in a week or two.
<discocaml> <geoff> I've been writing some C++ lately contributing to Manifold, but not in the complicated parts. It's not so bad, but I do miss ocaml while I'm writing it.
<discocaml> <masterbuilder> why not go for Rust, best of both worlds 🤭
<neiluj> CAD stuff, cool stuff
olle has quit [Ping timeout: 265 seconds]
<discocaml> <geoff> Yea, code CAD is great. Though my time spent on libraries for it has taken away from the time that I actually make models and send them to my printer 😅
<neiluj> :)
rf has joined #ocaml
bgs has quit [Remote host closed the connection]
<discocaml> <geoff> Something I've been wondering for a while, but haven't made a post about on discuss yet, is if functions working with GADTs having better inference/errors on partial application is possible or not. (continued in pastebin with code blocks: https://pastebin.com/yUVmjRJQ)
neiluj has quit [Quit: WeeChat 3.7.1]
bartholin has quit [Quit: Leaving]
Tuplanolla has joined #ocaml
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
Haudegen has joined #ocaml
wingsorc has joined #ocaml
Stumpfenstiel has quit [Ping timeout: 246 seconds]
John_Ivan has joined #ocaml
John_Ivan has quit [Remote host closed the connection]
John_Ivan has joined #ocaml
John_Ivan has quit [Client Quit]