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/
adanwan has quit [Remote host closed the connection]
adanwan has joined #ocaml
nd__ has quit [Read error: Connection reset by peer]
nd__ has joined #ocaml
John_Ivan_ has quit [Ping timeout: 260 seconds]
williewillus has joined #ocaml
azimut has quit [Remote host closed the connection]
adanwan has quit [Remote host closed the connection]
adanwan has joined #ocaml
azimut has joined #ocaml
Haudegen has quit [Ping timeout: 268 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
adanwan has quit [Remote host closed the connection]
adanwan_ has joined #ocaml
chrisz has quit [Ping timeout: 248 seconds]
chrisz has joined #ocaml
spip has joined #ocaml
bobo_ has quit [Ping timeout: 260 seconds]
genpaku has quit [Remote host closed the connection]
genpaku has joined #ocaml
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
waleee has quit [Ping timeout: 252 seconds]
williewillus has quit [Remote host closed the connection]
zebrag has quit [Quit: Konversation terminated!]
williewillus has joined #ocaml
mbuf has joined #ocaml
trev has joined #ocaml
olle has joined #ocaml
gopiandc1 has quit [Ping timeout: 260 seconds]
gopiandc1 has joined #ocaml
gahr_ is now known as gahr
nd__ has quit [Ping timeout: 260 seconds]
Serpent7776 has joined #ocaml
nd__ has joined #ocaml
williewillus has quit [Ping timeout: 255 seconds]
<olle> Oh!
<olle> It's still true that printf only takes a string literal?
<olle> # Printf.printf ("%s" ^ "%d");;
<olle> Not happy camel :(
John_Ivan_ has joined #ocaml
gopiandc1 has quit [Ping timeout: 268 seconds]
gopiandc1 has joined #ocaml
<Serpent7776> # Printf.printf ("%s" ^^ "%d");; should work
<olle> Double ^?
<olle> ^^
<Serpent7776> yes
<olle> Why?
bartholin has joined #ocaml
<olle> let s = "%s";; Printf.printf s ?
<olle> Oh no, must be a format type
<Serpent7776> You might need format_of_string to convert
<olle> Serpent7776: Got it
<olle> Hm
<octachron_> let s : _ format6 = "%s" works too.
<olle> Neat
<olle> Is that still a comiler hard-coded thing?
<octachron_> Partially
<octachron_> The type is an ordinary types that you can define yourself (same with the printf function)
<olle> k :)
<octachron_> However, having strings and format strings share the same literals requires a bit of compiler magic.
<olle> mm
<olle> Maybe I'll just enforce string literals in my own project for now
<olle> When calling printf
azimut has quit [Ping timeout: 268 seconds]
bobo_ has joined #ocaml
spip has quit [Ping timeout: 268 seconds]
bobo_ has quit [Quit: Konversation terminated!]
spip has joined #ocaml
Haudegen has joined #ocaml
bronsen has joined #ocaml
waleee has joined #ocaml
rgrinberg has joined #ocaml
kakadu has joined #ocaml
kakadu_ has quit [Ping timeout: 252 seconds]
tristanC_ is now known as tristanC
perrierjouet has quit [Quit: WeeChat 3.6]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
waleee has quit [Ping timeout: 268 seconds]
John_Ivan_ has quit [Ping timeout: 260 seconds]
Haudegen has quit [Ping timeout: 260 seconds]
zebrag has joined #ocaml
justDeez is now known as justache
nd__ has quit [Ping timeout: 260 seconds]
kakadu has quit [Remote host closed the connection]
Serpent7776 has quit [Quit: WeeChat 1.9.1]
trev has quit [Remote host closed the connection]
adanwan_ has quit [Remote host closed the connection]
jpds has quit [Remote host closed the connection]
adanwan has joined #ocaml
jpds has joined #ocaml
nd__ has joined #ocaml
wonko has joined #ocaml
perrierjouet has joined #ocaml
adanwan has quit [Remote host closed the connection]
williewillus has joined #ocaml
adanwan has joined #ocaml
wonko has quit [Ping timeout: 268 seconds]
bartholin has quit [Quit: Leaving]
John_Ivan_ has joined #ocaml
adanwan has quit [Remote host closed the connection]
adanwan has joined #ocaml
Serpent7776 has joined #ocaml
mbuf has quit [Quit: Leaving]
Fardale is now known as dr_fardale
ns12 has quit [Quit: bye]
ns12 has joined #ocaml
williewillus has quit [Ping timeout: 255 seconds]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
wonko has joined #ocaml
Tuplanolla has joined #ocaml
<olle> Urgh
<olle> Diff of string in test_eq would be nice...
<olle> Like, what exactly is different?
adanwan has quit [Ping timeout: 268 seconds]
adanwan has joined #ocaml
<olle> Hmmm, maybe I can call UNIX diff tool from the test
reynir has quit [Quit: WeeChat 3.0]
azimut has joined #ocaml
random-jellyfish has joined #ocaml
<random-jellyfish> is there a tool similar to jq but for lisp code?
adanwan has quit [Ping timeout: 268 seconds]
<olle> Ye, used diff, but manually copy-paste. Pah!
adanwan has joined #ocaml
reynir has joined #ocaml
random-jellyfish has quit [Quit: Client closed]
random-jellyfish has joined #ocaml
waleee has joined #ocaml
wonko has quit [Ping timeout: 255 seconds]
<olle> String.replace...?
<olle> Oh Str...
<olle> Hmmm
<olle> I thought |> inserted the first function arg?
random-jellyfish has quit [Quit: Client closed]
<sim642> If you think of it that way. then it's the last
<sim642> "x |> f" is just "f x"
<sim642> But f can be a partial application of some function as well
<olle> Hm
reynir has quit [Ping timeout: 252 seconds]
<olle> Regexp help? Str.regexp "%\w", not good?
<olle> Wanna match %s, %d etc
<companion_cube> don't use Str :p
<olle> Bah
<olle> Re?
<companion_cube> yeah
<companion_cube> Str is full of global mutable state
<olle> No manual page T_T
<companion_cube> re is a library, it's not standard
<companion_cube> (nor is Str these days, but well)
<olle> I mean, no docs at all
<olle> Can I parse format6 to something?
<olle> Or only internal?
<companion_cube> no, it's internal magic by the compiler
<companion_cube> you can use the values but they're tricky
<olle> companion_cube: Got it
<olle> I only want to get the matches, haha
<olle> "matched_string s returns the substring of s that was matched by the last call to one of the following matching or searching functions:"
<olle> Oh yeah XD
azimut_ has joined #ocaml
azimut has quit [Ping timeout: 268 seconds]
slbtty has joined #ocaml
jpds has quit [Ping timeout: 268 seconds]
jpds has joined #ocaml
zebrag has quit [Ping timeout: 268 seconds]
zebrag has joined #ocaml
<olle> Invalid_argument Str.matched_group
<olle> Pure nightmare material
adanwan has quit [Remote host closed the connection]
adanwan has joined #ocaml
<olle> Solved. Heh
<qwr> isn't Str now a thread-local mutable state?
<companion_cube> sure, it'll be in 5.0. still bad.
<companion_cube> there's just no point using that instead of Re
<olle> Except lack of docs...? :|
<companion_cube> right, the mli
<companion_cube> just like Str
<companion_cube> they should have online docs, idk what's up with that
<olle> OK, they just didn't generate it?
<olle> To html
<companion_cube> I guess not, weirdly
azimut_ has quit [Ping timeout: 268 seconds]
azimut has joined #ocaml
bobo_ has joined #ocaml
spip has quit [Ping timeout: 268 seconds]
azimut_ has joined #ocaml
azimut has quit [Ping timeout: 268 seconds]
Tuplanolla has quit [Quit: Leaving.]
<olle> This is def the last AST I make with tuples. Blurgh.
slbtty has quit [Quit: Konversation terminated!]
rgrinberg has joined #ocaml
olle has quit [Ping timeout: 268 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
motherfs1 is now known as motherfsck
rgrinberg has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
John_Ivan_ has quit [Read error: Connection reset by peer]
John_Ivan has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sagax has joined #ocaml