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/
Soni has quit [Ping timeout: 240 seconds]
yewscion has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Soni has joined #ocaml
raskol has quit [Ping timeout: 255 seconds]
raskol has joined #ocaml
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #ocaml
Sankalp has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
Sankalp has joined #ocaml
Sankalp has quit [Client Quit]
Sankalp has joined #ocaml
Sankalp has quit [Client Quit]
Sankalp has joined #ocaml
Sankalp has quit [Client Quit]
Sankalp has joined #ocaml
Sankalp has quit [Client Quit]
Sankalp has joined #ocaml
Sankalp has quit [Client Quit]
Sankalp has joined #ocaml
rgrinberg has joined #ocaml
raskol has quit [Ping timeout: 276 seconds]
infinity0 has quit [Ping timeout: 256 seconds]
spip has joined #ocaml
bobo_ has quit [Ping timeout: 240 seconds]
infinity0 has joined #ocaml
yewscion has quit [Ping timeout: 276 seconds]
raskol has joined #ocaml
mbuf has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gravicappa has joined #ocaml
azimut has quit [Ping timeout: 240 seconds]
raskol has quit [Ping timeout: 258 seconds]
andreypopp has joined #ocaml
aspe has joined #ocaml
DNH has joined #ocaml
kakadu has joined #ocaml
cedric has joined #ocaml
Sankalp has quit [Ping timeout: 240 seconds]
sagax has quit [Read error: Connection reset by peer]
Sankalp has joined #ocaml
bartholin has joined #ocaml
mro has joined #ocaml
szkl has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Client Quit]
<d_bot> <mseri> That is what rpclib and ppx_deriving_rpc allow you to do, indeed
<d_bot> <mseri> (Almost)
Haudegen has joined #ocaml
cedric has quit [Quit: Konversation terminated!]
sagax has joined #ocaml
spip has quit [Ping timeout: 244 seconds]
spip has joined #ocaml
szkl has quit [Quit: Connection closed for inactivity]
gopiandcode has quit [Ping timeout: 240 seconds]
spip has quit [Ping timeout: 246 seconds]
spip has joined #ocaml
raskol has joined #ocaml
gopiandcode has joined #ocaml
aspe has quit [Quit: aspe]
rgrinberg has joined #ocaml
vicfred has joined #ocaml
raskol has quit [Ping timeout: 255 seconds]
motherfsck has joined #ocaml
azimut has joined #ocaml
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
waleee has quit [Ping timeout: 240 seconds]
mbuf has quit [Quit: Leaving]
bartholin has quit [Quit: Leaving]
omegatron has joined #ocaml
olle has joined #ocaml
<olle> Does anyone know exactly how rescript was forked off ocaml? Because it seems they are not merging upstream, at all, but stuck in 4.06 for some reason.
omegatron has quit [Quit: Power is a curious thing.It can be contained, hidden, locked away,and yet it always breaks free.]
<d_bot> <anmonteiro> it was forked from the 4.02 tree and updated to 4.06 a few years ago
<d_bot> <anmonteiro> for the "exactly how" part, you'll have to be a bit more specific wrt what you wanna know
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]
troydm has joined #ocaml
bobo_ has joined #ocaml
spip has quit [Ping timeout: 276 seconds]
<olle> Ah ok ok
<olle> So there is a process to pull upstream, or that is tiresome manual work, maybe?
<d_bot> <anmonteiro> You'll have to ask the ReScript team, but I was under the impression they weren't gonna upgrade anymore
<olle> k
<olle> hm
<d_bot> <anmonteiro> olle: a little outdated, but that was one of the motivations for having created melange
wonko has joined #ocaml
<olle> Nice
<olle> broken link tho :(
<d_bot> <anmonteiro> olle: `git clone git@github.com:rescript-lang/rescript-compiler.wiki.git`
<olle> Ah, you're the melange creator?
<d_bot> <anmonteiro> wikis are github repos
<d_bot> <anmonteiro> you can search through history
<d_bot> <anmonteiro> yes, I suppose on IRC it appears "discord bot"
<olle> Doing it
<companion_cube> you're just type parameters to d_bot
<olle> :)
<companion_cube> d_bot<anmonteiro>
<d_bot> <anmonteiro> aha
<companion_cube> maybe it's just a phantom type though
<companion_cube> since you're not really here 🙃
<d_bot> <anmonteiro> how dare you
<olle> For context, I was looking through support of let* in rescript
<companion_cube> 👻
<olle> Seems like there's some drama going on tho
<d_bot> <anmonteiro> it's supported in melange
<d_bot> <anmonteiro> we're on 4.14
<olle> "the toxic fork melange", hehe
<d_bot> <anmonteiro> ¯\_(ツ)_/¯
<d_bot> <anmonteiro> I don't engage
<olle> does melange have react bindings?
<d_bot> <anmonteiro> melange has a rescript compatibility layer, most rescript packages work
<olle> hm
<d_bot> <anmonteiro> melange is sort of an "alternative compiler to rescript"
<d_bot> <anmonteiro> with lots more features
<olle> I'm not sure such state of affairs is sellable to web dev upper management :|
<d_bot> <anmonteiro> makes sense -- ReScript has actual releases 🙂
<olle> Sigh
<olle> I hate the fact that TS has such dominance ><
<d_bot> <geoff> I don't really do frontend stuff so much, so I haven't done any ocaml -> js yet. What would be the tradeoffs between jsoo and melange if you don't mind me asking (anmonteiro and room I guess if there are people on the jsoo side with an opinion)
<olle> geoff, first things that's super important in diverse teams: documentation
<olle> If you wanna argue about adoption, you need to be able to point to a thriving communitye, forums, and docs.
<d_bot> <anmonteiro> a few years old but this should have most of the differences
<d_bot> <geoff> ah ok, so still relevant to today then? Basically from what I've read over the last couple years in passing buckle/rescript is said to generate more readable and smaller js than jsoo.
<olle> afaik, jsoo does not integrate out of the box with any major js framework like react, vue, angular
<d_bot> <geoff> but rescript in particular does so in a more and more dramatic departure from ocaml, with even a different syntax
geekosaur has joined #ocaml
geekosaur has left #ocaml [Leaving]
gio123 has joined #ocaml
<gio123> hi all
<gio123> is there someone experienced with concurency in Ocaml?
<olle> most people, I assume gio123
<olle> just ask
<gio123> I have a peace of code, and having hard time to trace it...
<d_bot> <anmonteiro> right. I'd recomment you read the Melange README. we tweaked it for clarity yesterday and I'd love to hear if you have questions after reading it
<d_bot> <anmonteiro> I'm not saying RTFM -- genuinely looking for feedback on whether the message is clear
<gio123> channels  is a list of new_channel () having length m
<gio123> counters is a list of (spawn_counter n)new_channel () with same length
<gio123> I have difficulties to trace run chans
<gio123> can someone help?
<olle> Yes, but be patient, it's evening in EU
<gio123> in usa :)?
<olle> amnoteiro, me? is it on the main site?
waleee has joined #ocaml
<olle> gio123: There's also a forum, and a Discord channel for ReasonML that also knows OCaml, if you don't get help here
<d_bot> <anmonteiro> olle: was talking to geoff here on discord
<olle> oh sorry
<gio123> olle, if you can give me hint about my problem
<gio123> I need only just hint
<d_bot> <geoff> I actually did read that yesterday, including the blog post about motivation. It does give some idea about what melange is wrt buckle/rescript, but since it doesn't mention jsoo, I didn't get an idea of why I'd turn to melange rather than jsoo when the time comes. So that brought me to ask here. Maybe it would be worth adding a section about that?
<d_bot> <anmonteiro> great point
<olle> It also doesn't mention React, sooooo
<olle> Why would anyone use rescript and not react?
<olle> gio123: sorry, going out jogging :) Other will help, but be patient, please.
<gio123> no hope :(
<d_bot> <anmonteiro> why would anyone use rescript and not react? Because one is JS and another is a library?
<d_bot> <anmonteiro> "one compiles to JS"
<olle> Ya, but who doesn't use a framework this day and age?
<olle> Except legacy code.
<olle> gio123: Describe your precise error message, what you expected to see, and what you saw instead.
<gio123> I do not get any error message, I just want to trace code...
aspe has joined #ocaml
<olle> compile with the stacktrace env setting on
gravicappa has quit [Ping timeout: 244 seconds]
<gio123> I think, it will not help
<gio123> could you please have a look the code?
<d_bot> <anmonteiro> olle: say you're doing server side development with node.js, you might not use react
<d_bot> <anmonteiro> you can still compile to that JS
<gio123> is anyone here?
_73 has joined #ocaml
_73 has left #ocaml [ERC 5.4 (IRC client for GNU Emacs 28.1)]
<d_bot> <darrenldl> so printf didnt work? im confused by what you want
Anarchos has joined #ocaml
<olle> amno, true, yes
<olle> but then the big benefit of using ocaml is gone - compiling to native
<olle> so for me, a moot use-case
<olle> gio123: use printf to write to stdout or stderr
<d_bot> <darrenldl> olle: i dont know if compiling to native is **the** biggest selling point though : v
<d_bot> <geoff> how is not having to write js not a selling point?
<olle> Would any sane person use node.js in the first place, lol
<olle> idk
greenbagels has quit [Remote host closed the connection]
greenbagels has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<d_bot> <anmonteiro> that's a bit of a boring point to make though
<d_bot> <anmonteiro> the truth is Node.js is used whether you find it sane or otherwise and compiling to it from OCaml when necessary is very pleasing
rgrinberg has joined #ocaml
<olle> amnoteiro, I'd agree with that, if you're already stuck with node due to company policy etc
<Anarchos> olle at work we use node, but the downloads are blocked by our proxy policy....
<olle> Huh? Which downloads?
<Anarchos> so everybody ends up downloading Gb on usb keys on their own laptop, and plug the key inside the work LAN :)
<Anarchos> olle the npm dependencies
<olle> For security reasons?
Anarchos has quit [Ping timeout: 246 seconds]
Anarchos has joined #ocaml
zebrag has joined #ocaml
<gio123> olle, still here?
chrisz has quit [Ping timeout: 240 seconds]
chrisz has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
xgqt has quit [Ping timeout: 246 seconds]
xgqt has joined #ocaml
<olle> gio123: Not for long :)
<olle> gio123: Did you manage to print anything?
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gio123 has quit [Quit: Client closed]
olle has quit [Ping timeout: 240 seconds]
jtm has joined #ocaml
jtm has quit [Changing host]
<Soni> can ocaml output wasm?
<Soni> (and is the ocaml compiler wasmable?)
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
Haudegen has joined #ocaml
wonko has quit [Ping timeout: 250 seconds]
wingsorc has joined #ocaml
Haudegen has quit [Ping timeout: 255 seconds]
<d_bot> <Et7f3 (@me on reply)> Anarchos: And when your release the product it come from USB key ? what a nightmare with versionning/npm audit/...
<d_bot> <Et7f3 (@me on reply)> (I don't know if the message will be received since it it IRC on other side)