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/
<Fardale> What do you mean? What do you call an operator?
<technomancy> this is kinda tacky: List.filter (fun y -> x <> y) t
<technomancy> in a lisp I'd do the equivalent of: List.filter (<> x) t
<discocaml_> <NULL> Did you not see my messages an hour ago ?
Guest4 has joined #ocaml
<discocaml_> <NULL> Is the bridge down this way ?
<discocaml_> <NULL> No it's not
Guest4 has quit [Client Quit]
<Fardale> technomancy: List.filter ((<> x) t? As mention earlier by NULL on discord.
<discocaml_> <NULL> You're missing a closing parenthesis
<Fardale> List.filter ((<>) x) t (missing a parenthesis)
<technomancy> oh cool; thanks; that makes sense. so you're kind of function-izing the operator by wrapping it like that?
<companion_cube> Yep
<technomancy> https://p.hagelb.org/mire.ml.html I think there's still a few things to clean up that are awkward, but I got my socket MUD demo program working pretty well
<technomancy> 173 lines vs 100 lines in the reference implementation in Fennel, but that's not bad considering the socket interface is lower level, plus type safety is great
<technomancy> thanks for putting up with my questions
<discocaml_> <NULL> You are still using a few `!=`, `fun {fd = fd} -> ..` can be rewritten as `fun {fd} -> ..`
cjohnson has joined #ocaml
<companion_cube> I wonder how close to a repl experience, ia using dune exec -w
Stumpfenstiel has quit [Ping timeout: 252 seconds]
cjohnson has quit [Ping timeout: 248 seconds]
<technomancy> I understand why it's often not feasible but I do love working with compilers you can just bring in from apt and use directly
<technomancy> especially when you're learning the language; learning a whole new build toolchain along with the language is rough
<technomancy> when I first started with ocaml in 2011 the tooling was completely bewildering; like ... the explanations were all written for people who were experts already
<technomancy> I guess dune is probably a lot better than that but I got burned badly in the past and wanted to avoid that this time around
<discocaml_> <darrenldl> got burned badly in what way?
oriba has joined #ocaml
Haudegen has quit [Ping timeout: 252 seconds]
oriba has quit [Ping timeout: 246 seconds]
random-jellyfish has quit [Quit: Client closed]
oriba has joined #ocaml
waleee has quit [Ping timeout: 246 seconds]
bobo_ has quit [Read error: Connection reset by peer]
bobo_ has joined #ocaml
oriba has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
tizoc has quit [Quit: Coyote finally caught me]
tizoc has joined #ocaml
<discocaml_> <geoff> I've been using similar to `dune exec -w` for time time now by creating my own rules to run the exes and running in watch mode. Pretty nice to not necessarily have to do the extra setup now.
chrisz has quit [Ping timeout: 255 seconds]
chrisz has joined #ocaml
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #ocaml
<rf> I didn't even know -w was a flag, I would just do dune utop in my project dir
<discocaml_> <masterbuilder> rf: it's brand new, I think, just introduced in the latest release
<rf> Ah, cool!
<companion_cube> It's new for dune exec
<companion_cube> It's existed for a while for dune build
rf has quit [Remote host closed the connection]
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
habnabit_ has joined #ocaml
habnabit_ has quit [Quit: ZNC - http://znc.sourceforge.net]
azimut has quit [Ping timeout: 255 seconds]
alexherbo2 has joined #ocaml
bartholin has joined #ocaml
Tuplanolla has joined #ocaml
random-jellyfish has joined #ocaml
dnh has joined #ocaml
trillion_exabyte has quit [Ping timeout: 268 seconds]
trillion_exabyte has joined #ocaml
trev has joined #ocaml
random-jellyfish has quit [Quit: Client closed]
olle has joined #ocaml
Wojciech_K has joined #ocaml
dhil has joined #ocaml
Serpent7776 has joined #ocaml
hannes has joined #ocaml
Haudegen has joined #ocaml
dhil has quit [Ping timeout: 255 seconds]
xd1le has quit [Quit: xd1le]
bgs has joined #ocaml
dhil has joined #ocaml
Serpent7776 has quit [Quit: leaving]
azimut has joined #ocaml
waleee has joined #ocaml
xgqt has quit [Ping timeout: 255 seconds]
xgqt has joined #ocaml
spip has joined #ocaml
bobo_ has quit [Ping timeout: 255 seconds]
waleee has quit [Ping timeout: 246 seconds]
rf has joined #ocaml
dhil has quit [Ping timeout: 248 seconds]
random-jellyfish has joined #ocaml
John_Ivan has joined #ocaml
mro has joined #ocaml
Stumpfenstiel has joined #ocaml
mro has quit [Remote host closed the connection]
random-jellyfish has quit [Quit: Client closed]
waleee has joined #ocaml
troydm has joined #ocaml
mro has joined #ocaml
mro has quit [Ping timeout: 246 seconds]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mro has joined #ocaml
hackinghorn has joined #ocaml
hackinghorn has quit [Read error: Connection reset by peer]
hackinghorn has joined #ocaml
hackinghorn has quit [Remote host closed the connection]
hackinghorn has joined #ocaml
hackinghorn has quit [Remote host closed the connection]
hackinghorn has joined #ocaml
dnh has joined #ocaml
waleee has quit [Ping timeout: 246 seconds]
John_Ivan_ has joined #ocaml
John_Ivan has quit [Ping timeout: 246 seconds]
mro has quit [Quit: Leaving...]
hackhorn has joined #ocaml
hackinghorn has quit [Ping timeout: 248 seconds]
dhil has joined #ocaml
waleee has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
John_Ivan_ has quit [Remote host closed the connection]
John_Ivan_ has joined #ocaml
John_Ivan_ has quit [Remote host closed the connection]
John_Ivan has joined #ocaml
waleee has quit [Ping timeout: 255 seconds]
John_Ivan has quit [Remote host closed the connection]
John_Ivan has joined #ocaml
waleee has joined #ocaml
trev has quit [Remote host closed the connection]
gwizon has joined #ocaml
olle has quit [Ping timeout: 248 seconds]
dhil has quit [Ping timeout: 246 seconds]
John_Ivan has quit [Remote host closed the connection]
John_Ivan has joined #ocaml
anpad has quit [Quit: ZNC 1.8.2 - https://znc.in]
anpad has joined #ocaml
noze` has joined #ocaml
asm has quit [Ping timeout: 246 seconds]
rom1504 has quit [Ping timeout: 246 seconds]
noze has quit [Ping timeout: 248 seconds]
rom1504 has joined #ocaml
asm has joined #ocaml
waleee has quit [Ping timeout: 264 seconds]
random-jellyfish has joined #ocaml
waleee has joined #ocaml
waleee has quit [Ping timeout: 252 seconds]
<greenbagels> hmm
<greenbagels> is there an ocaml compile target/implementation/whatever for ARM
<Fardale> Yes, ocaml can be compiled for ARM 64bits
bartholin has quit [Quit: Leaving]
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bgs has quit [Remote host closed the connection]
<greenbagels> how about 32 bit?
<greenbagels> i guess this is helpful
Stumpfenstiel has quit [Ping timeout: 264 seconds]
<greenbagels> im specifically trying to write for an RP2040, a dual core cortex m0+
<greenbagels> maybe attempting to write a barebones implementation would give me a greater understanding of the ocaml toolchain