companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.2.0 released: https://ocaml.org/releases/5.2.0 | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
<twobitsprite> If I want a reference to a list of ints... is it "ref int list" or "int list ref"?
<twobitsprite> or something else entirely, like "ref (int list)"
<discocaml> <Kali> type constructors are applied postfix, so the 2nd option
<twobitsprite> "int list ref"?
<discocaml> <Kali> indeed
<twobitsprite> cool
<discocaml> <Kali> `type 'a ref = { mutable contents : 'a }`
<twobitsprite> I mean, more like << type t = { layers: Layer.t list ref; } >> so that the entire list of Layer.t's can be replaced in case I need to insert a new list item
<discocaml> <Kali> yeah, i was just quoting the definition of 'a ref
<twobitsprite> ah, ok
<discocaml> <Kali> it is just a normal type
<discocaml> <Kali> nothing special about it
Tuplanolla has quit [Quit: Leaving.]
bibi_ has joined #ocaml
<twobitsprite> If you all wanted a 2D, tile-based game engine that used a scripting language for game logic, what scripting language would you prefer? I'm looking at embedding Guile, but Lua is also popular...
<discocaml> <Kali> lua is much more popular for game scripting than scheme, so it is very likely to be familiar to the kind of people who script games
<discocaml> <Kali> i can name immediately name 4 games that use lua scripting (the computercraft mod, roblox, world of warcraft, the powder toy) but i don't think i've ever seen a scheme one
<companion_cube> Just use Godot, it already has a scripting language :p
mbuf has joined #ocaml
<twobitsprite> that's not fun
<discocaml> <Kali> does godot have ocaml bindings? i know it has rust ones
<twobitsprite> I just searched and didn't find any
<discocaml> <Kali> oh, it seems like godotcaml now exists as of very recent
<discocaml> <Kali> (like, 1 month ago)
<discocaml> <Kali> definitely not official
pi3ce has joined #ocaml
mbuf has quit [Quit: Leaving]
tomku has quit [Ping timeout: 248 seconds]
tomku has joined #ocaml
tomku has quit [Ping timeout: 260 seconds]
tomku has joined #ocaml
tomku has quit [Ping timeout: 248 seconds]
tomku has joined #ocaml
mbuf has joined #ocaml
myrkraverk__ has quit [Ping timeout: 272 seconds]
myrkraverk has joined #ocaml
hannes has joined #ocaml
myrkraverk has quit [Ping timeout: 252 seconds]
myrkraverk has joined #ocaml
delyan_ has quit [Ping timeout: 260 seconds]
buoy49__ has quit [Ping timeout: 260 seconds]
jyc has quit [Ping timeout: 260 seconds]
landonf has quit [Ping timeout: 260 seconds]
drakonis has quit [Ping timeout: 260 seconds]
welterde has quit [Ping timeout: 260 seconds]
buoy49__ has joined #ocaml
delyan_ has joined #ocaml
jyc has joined #ocaml
drakonis has joined #ocaml
landonf has joined #ocaml
alexherbo2 has joined #ocaml
welterde has joined #ocaml
Serpent7776 has joined #ocaml
bibi_ has quit [Quit: Konversation terminated!]
Guest11 has joined #ocaml
Guest11 is now known as lixing
toastal has joined #ocaml
olle has joined #ocaml
Serpent7776 has quit [Ping timeout: 260 seconds]
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
waleee has joined #ocaml
bhoot has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
bartholin has joined #ocaml
alexherbo2 has joined #ocaml
toastal has left #ocaml [Disconnected: Hibernating too long]
mbuf_ has joined #ocaml
mbuf has quit [Remote host closed the connection]
waleee has quit [Ping timeout: 260 seconds]
mbuf has joined #ocaml
mbuf_ has quit [Ping timeout: 248 seconds]
bhoot has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bhoot has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
toastal has joined #ocaml
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
m5zs7k has quit [Ping timeout: 244 seconds]
m5zs7k has joined #ocaml
Serpent7776 has joined #ocaml
lixing has quit [Quit: Client closed]
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
tomku has quit [Ping timeout: 252 seconds]
tomku has joined #ocaml
waleee has joined #ocaml
waleee has quit [Ping timeout: 248 seconds]
mbuf has quit [Ping timeout: 260 seconds]
mbuf has joined #ocaml
waleee has joined #ocaml
waleee has quit [Ping timeout: 260 seconds]
bhoot has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<discocaml> <ada2k> can anyone point to super simple examples of foreign_stubs in dune? (not using ctypes)
<hannes> ada2k: https://github.com/mirage/mirage-crypto in src/dune
olle has quit [Ping timeout: 260 seconds]
mbuf has quit [Quit: Leaving]
ygrek has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
Tuplanolla has joined #ocaml
tremon has joined #ocaml
<discocaml> <anmonteiro> Btw dune’s test suite is pretty comprehensive and usually has very minimal examples about its features. Maybe that helps next time you’re looking for a feature
<discocaml> <anmonteiro> Ideally the docs would be a bit better and provide more examples — I believe that’s being worked on
<companion_cube> 🙏
waleee has joined #ocaml
bibi_ has joined #ocaml
YuGiOhJCJ has joined #ocaml
alexherbo2 has joined #ocaml
Serpent7776 has quit [Ping timeout: 248 seconds]
chiselfuse has quit [Remote host closed the connection]
YuGiOhJCJ has quit [Remote host closed the connection]
YuGiOhJCJ has joined #ocaml
chiselfuse has joined #ocaml
ygrek has quit [Remote host closed the connection]
tremon has quit [Quit: getting boxed in]
bartholin has quit [Quit: Leaving]
alexherbo2 has quit [Remote host closed the connection]