companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.14.0 released: https://ocaml.org/releases/4.14.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
azimut has quit [Ping timeout: 258 seconds]
John_Ivan has quit [Ping timeout: 250 seconds]
chrisz has quit [Ping timeout: 268 seconds]
chrisz has joined #ocaml
wingsorc__ has quit [Remote host closed the connection]
wingsorc__ has joined #ocaml
mbuf has joined #ocaml
jao has quit [Remote host closed the connection]
jao has joined #ocaml
ansiwen has quit [Quit: ZNC 1.7.1 - https://znc.in]
zebrag has quit [Quit: Konversation terminated!]
ansiwen has joined #ocaml
SquidDev has quit [Quit: Ping timeout (120 seconds)]
SquidDev has joined #ocaml
jao has quit [Remote host closed the connection]
jao has joined #ocaml
jao has quit [Ping timeout: 268 seconds]
bgs has quit [Remote host closed the connection]
bartholin has joined #ocaml
Serpent7776 has joined #ocaml
mbuf has quit [Quit: Leaving]
bobo_ has joined #ocaml
spip has quit [Ping timeout: 265 seconds]
azimut has joined #ocaml
spip has joined #ocaml
bobo_ has quit [Ping timeout: 265 seconds]
olle has joined #ocaml
kakadu has joined #ocaml
<olle> Damn, gasche actually updated the stackoverflow answer :D
<olle> Nice
reynir has quit [Ping timeout: 260 seconds]
<olle> Is he still working on INRIA btw?
<olle> I dunno how often people switch over there
mbuf has joined #ocaml
wingsorc__ has quit [Quit: Leaving]
John_Ivan has joined #ocaml
azimut has quit [Ping timeout: 258 seconds]
azimut has joined #ocaml
xd1le has joined #ocaml
<Armael> yes @ still working at Inria
<olle> Kewl
<olle> He's a professor now? :D
<Armael> yes, since 2017
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
<olle> Brilliant
Putonlalla has quit [Remote host closed the connection]
waleee has joined #ocaml
<olle> Armael: What's his topic?
<olle> Camels? :)
<olle> Professor in biology, lol
<olle> "an implementation extending OCaml with our linear language"
<olle> Neat
Anarchos has joined #ocaml
<olle> Not even drup is here anymore
Haudegen has joined #ocaml
Tuplanolla has joined #ocaml
<Anarchos> olle indeed
<olle> So sad
Anarchos has quit [Ping timeout: 268 seconds]
<olle> Is there any progress with typed effects, btw?
jao has joined #ocaml
gwizon has joined #ocaml
olle has quit [Ping timeout: 265 seconds]
John_Ivan is now known as Stoffel
azimut_ has joined #ocaml
azimut has quit [Ping timeout: 258 seconds]
olle has joined #ocaml
zebrag has joined #ocaml
azimut_ has quit [Ping timeout: 258 seconds]
azimut has joined #ocaml
bobo has joined #ocaml
spip has quit [Read error: Connection reset by peer]
Haudegen has quit [Quit: Bin weg.]
Anarchos has joined #ocaml
kakadu has quit [Quit: Konversation terminated!]
gwizon has quit [Ping timeout: 252 seconds]
Haudegen has joined #ocaml
neiluj has joined #ocaml
<neiluj> Hi! What does Bytes.of_string "@" represents? is that different from a null byte ("&\000")
<neiluj> \000
<neiluj> ah no it's different
Serpent7776 has quit [Quit: WeeChat 1.9.1]
<neiluj> ah it's ascii
wpcarro has joined #ocaml
<wpcarro> ocaml noob here - are there any http server libs that use the new multicore stuff?
<wpcarro> thinking ab recommending our company use ocaml for some services, but I'm not really sure what the concurrency story is
<olle> concurrency != parallelism :)
<wpcarro> also if anyone knows of an actor model library, that would be a big help for marketing
<olle> Lwt?
<olle> Maybe not actors, actually
<wpcarro> hrm
<wpcarro> I worry ab ending up in a JS concurrency situation where there's a bunch of async/await stuff literring the codebase
<olle> There's this Dream lib
<olle> wpcarro: In latest OCaml you'd use let* operator to flatten async code
<olle> Never used tho
<wpcarro> looks nice
<olle> It does!
<octachron> wpcarro, OCaml 5.0.0 is not yet out, there are some http server libs that were patched to do some benchmarking for the multicore design but I would not recommend it for production.
<wpcarro> octachron: ack ty
<wpcarro> how ab the general recommendation ab using ocaml for production? other candidates atm are go, python, typescript
<octachron> but yes with OCaml 5, it should be possible to have concurrency in direct style.
<wpcarro> octachron: do you have any examples of what you mean by direct style? jc
<wpcarro> :)
<olle> wpcarro: I wouldn't compare go with python and ts. go is compiled, the others are script langs. ocaml is also compiled (but "reads" as a script lang often)
<olle> octachron: again you mean parallelism, or...?
<wpcarro> olle: ftr I'm not recommending go, python, or ts. just langs that ppl are comfortable w/ here at $COMPANY
<octachron> Direct-style here is in contrast with monadic (aka async/await style) where there is a clear separation between async code (inside the monad) and not-async code.
<octachron> olle: I mean concurrency.
* Anarchos would kindly advise wpcarro not to speak with so much abbrevation. We are not all english native speakers , so all your abbreviations render your sentences painful to understand. At least for me .
<olle> Twitter speak xD
<wpcarro> s/Twitter/irc/g v0v
<wpcarro> I'll work on it Anarchos
<olle> wpcarro: OCaml has a helpful but small community. You might have some bumps compared to go or others
<olle> Syntax errors being one annoyance
<olle> I mean, not helpful error messages from the compiler
<wpcarro> olle: I've committed quite a few syntax errors in the past 72h of playing around with ocaml
<wpcarro> growing pains
<octachron> For general recommandation, like with many smaller languages: it depends a lot on how deep are your dependency needs and how well they are served by the existing OCaml ecosystem compared to the amount of upfront investment you can afford.
<wpcarro> we need to serialize/decode JSON, protobuf; read/write from/to databases; serve HTTP (and maybe grpc one day)
* wpcarro thonking...
<wpcarro> we're building a few factories to help automate machining, so it's not your standard web company
<octachron> But once those difficulties are accounted for, OCaml has a full working type system, one of the best module system around, reasonable performance, and full support for incremental compilation.
<olle> OCaml performance isn't "reasonable", it's *good* :)
<wpcarro> oh it has incremental compilation?
<olle> Comparable to Java
<wpcarro> also performance is not really an issue here (at least not now)
<wpcarro> I'm mostly interested in OCaml because of its type system
<octachron> Oh, yes. OCaml is somehow one of the few language with still working support for incremental compilation.
<wpcarro> I thought about using Haskell here, but I think Haskell comes with too much baggage in my personal experience
<olle> OCaml def is more pragmatic
<wpcarro> :)
<wpcarro> I like pragmatic these days
<olle> Imagine being able to add a log statement without changing the function type...
* wpcarro gasps
<wpcarro> I worked at a Haskell shop for 2y and then switched to working at one of those big tech companies writing Java, Python, etc., which sobered me up quite a bit
<octachron> For http server, I know that there are libraries supporting those, but it is a bit too far from my domains to have a really informed opinion on the matter.
<wpcarro> octachron: what do you use ocaml for if you don't mind me asking
<octachron> Writing the OCaml compiler those days
<wpcarro> oh... lol
<wpcarro> impressive :)
<wpcarro> was looking at how to implement Algorithm W last night actually
<olle> https://www.youtube.com/watch?v=7zlXZXsY5SA Long time ago I wrote this card-game page in OCaml ^^ But now I'm writing a compiler. Again.
genpaku has quit [Remote host closed the connection]
<olle> Not as fancy as OCaml itself, obviously
<wpcarro> compilers are fun :)
<olle> Sure are :)
genpaku has joined #ocaml
mbuf has quit [Quit: Leaving]
<wpcarro> oh ocaml supports defining ints like 1_000_000 - that's nice :)
hrberg has quit [Ping timeout: 265 seconds]
hrberg has joined #ocaml
neiluj has quit [Quit: WeeChat 3.5]
spip has joined #ocaml
bobo has quit [Ping timeout: 265 seconds]
Serpent7776 has joined #ocaml
<Anarchos> wpcarro i use ocaml to develop a first order math verifier
bartholin has quit [Remote host closed the connection]
<zebrag> No bridge anymore between here and the discord thing?
Anarchos has quit [Quit: Vision[]: i've been blurred!]
<companion_cube> seems not :/
<wpcarro> Anarchos oh that sounds difficult
<companion_cube> years in the making
<sleepydog> oh, has the bridge been down since august? i didn't realize
<olle> Discord is such bloat...
<olle> Matrix is slimmer, no?
<olle> And #french :D
Anarchos has joined #ocaml
Anarchos has quit [Client Quit]
mro has joined #ocaml
<zebrag> I suppose there is no harm in reasking questions I've already asked then, plus the formulation is different: Can you translate that to ocaml code: https://paste.debian.net/1256725/ (hint, generated from ocamlc -dparsetree hello.ml)
olle has quit [Ping timeout: 250 seconds]
mro has quit [Remote host closed the connection]
mro has joined #ocaml
<zebrag> Hum seems I've had an answer discord side
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
mro has quit [Quit: Leaving...]
wingsorc has joined #ocaml
Serpent7776 has quit [Ping timeout: 244 seconds]
waleee has quit [Ping timeout: 260 seconds]
waleee has joined #ocaml
Tuplanolla has quit [Ping timeout: 252 seconds]
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #ocaml