companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.12 released: https://ocaml.org/releases/4.12.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
Tuplanolla has quit [Quit: Leaving.]
drewolson has joined #ocaml
SeedyROM has joined #ocaml
waleee has quit [Ping timeout: 246 seconds]
aquijoule_ has joined #ocaml
richbridger has quit [Ping timeout: 246 seconds]
vicfred has quit [Quit: Leaving]
SeedyROM has quit [Quit: Leaving]
SeedyROM has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
vicfred has joined #ocaml
wingsorc has quit [Quit: Leaving]
SeedyROM has quit [Quit: Leaving]
tomku has quit [Ping timeout: 268 seconds]
tomku has joined #ocaml
mbuf has joined #ocaml
Guest2541 has joined #ocaml
<Guest2541> =$
<Guest2541> how does the IRC and discord bridge work?
<dmbaturin> It reads messages from one protocol and sends them via another... or so I think. :)
<Guest2541> interesting, is the source code for this available on github?
<dmbaturin> I don't know which bot is used here to be fair.
<dmbaturin> Armael likely knows who's the bot operator.
vicfred has quit [Quit: Leaving]
<Guest2541> very cool though
<Guest2541> !help
<ocabot> help: commands are [help; hello; history; reload; save; search; search_all; see; see_all; random; tell; tell_at; seen; last; ignore; unignore; ignore_list; factoids]
<dmbaturin> d_bot is the discord bot, ocabot is a separate entity.
<Guest2541> i see
Guest2541 has quit [Quit: Client closed]
shawn has quit [Ping timeout: 246 seconds]
<d_bot> <Splingush> Guest2541: It uses <https://github.com/42wim/matterbridge>
<d_bot> <Splingush> See linked message:
<d_bot> <Splingush> > Bluddy: ok cool we're upgraded to latest matterbridge version and now connected to irc.libera.chat
cedric has joined #ocaml
mro has joined #ocaml
jinsun has quit [Write error: Connection reset by peer]
wilfred has joined #ocaml
jinsun has joined #ocaml
gravicappa has joined #ocaml
gravicappa has quit [Ping timeout: 240 seconds]
pippijn has quit [Ping timeout: 272 seconds]
Haudegen has joined #ocaml
Tuplanolla has joined #ocaml
vizard has joined #ocaml
wilfred has quit [Quit: Connection closed for inactivity]
bartholin has joined #ocaml
pippijn has joined #ocaml
mbuf has quit [Quit: Leaving]
gwizon has joined #ocaml
glassofethanol has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
Haudegen has quit [Quit: Bin weg.]
jtck has quit [Remote host closed the connection]
jtck has joined #ocaml
mro has joined #ocaml
<d_bot> <thangngoc89> Just putting this here in case anyone need this https://github.com/thangngoc89/ocaml-slug
<d_bot> <thangngoc89> aantron is helping me with publishing this to opam
gwizon has quit [Quit: leaving]
berberman_ has quit [Ping timeout: 240 seconds]
berberman has joined #ocaml
zebrag has joined #ocaml
Haudegen has joined #ocaml
mro has quit [Remote host closed the connection]
waleee has joined #ocaml
vb has quit [Remote host closed the connection]
favonia has quit [Remote host closed the connection]
favonia has joined #ocaml
mro has joined #ocaml
<d_bot> <Drup> @thangngoc89 I think you should explain what slugifying means
vb has joined #ocaml
favonia has quit [Ping timeout: 252 seconds]
favonia has joined #ocaml
waleee has quit [Ping timeout: 252 seconds]
<dmbaturin> thangngoc89: Interesting... I think I may want to add it to the next soupault release, right now there's only a really dumb slugifier built-in...
<dmbaturin> To clarify: it will not need any external data when built and linked, right?
bartholin has quit [Quit: Leaving]
favonia has quit [Ping timeout: 240 seconds]
vizard has quit [Quit: WeeChat 3.0.1]
favonia has joined #ocaml
glassofethanol has quit [Quit: leaving]
Haudegen has quit [Quit: Bin weg.]
<d_bot> <thangngoc89> @Drup it turn string into url-safe string. From
<d_bot> <thangngoc89> “This is a title” to “this-is-a-title” with locales support for cases that unicode normalization doesn’t produce safe string.
<d_bot> <thangngoc89> dmbaturin: yes. All data were committed to the repository. I just leave to script for keeping up with upstream.
<dmbaturin> Cool, thanks!
<d_bot> <thangngoc89> Though is pulled in quite a few libraries for unicode handling (uunf, uuseg and uutf
mro has quit [Remote host closed the connection]
<dmbaturin> thangngoc89: Right now my ToC (https://soupault.app/reference-manual/#toc-widget) offers two options: replace all non-ASCII chars with hyphens or replace just the whitespace with hyphens, and I find that unsatisfactory... One more question: how stable is the output? I.e. how likely is it that a future version will cause link rot?
mro has joined #ocaml
leah2 has quit [Ping timeout: 240 seconds]
<d_bot> <thangngoc89> That’s literally and use case why I built it. There aren’t any libraries on opam that create slug with unicode support
<d_bot> <thangngoc89> There are 2 processes that could make the link rots:
<d_bot> <thangngoc89> - Unicode normalization NFD. I don’t know much about this but It is a standard and stable
<d_bot> <thangngoc89> - Custom characters map (downloaded from upstream) . To prevent link rots from this case, I would say you keep a local copy yourself.
leah2 has joined #ocaml
<d_bot> <Drup> Well, it's not for me, it's that the readme (and package description) should explain it. 🙂
<dmbaturin> Drup has a point!
<d_bot> <thangngoc89> @Drup I agree. I’ve done a bad job on this one
<d_bot> <thangngoc89> Let’s me add some explanation to it tomorrow
<d_bot> <Drup> (amusingly, the node package you cite doesn't explain it either)
<d_bot> <thangngoc89> Dmbaturin: this is the data https://github.com/thangngoc89/ocaml-slug/blob/main/slug_data.ml
<d_bot> <thangngoc89> Drup: probably because of background. Most of my fellow developers know what a slug is
<d_bot> <thangngoc89> That’s a different kind of slug 😆
<d_bot> <thangngoc89> I guess I should infest the ecosystem with more stuff.
<d_bot> <Drup> (even if the term was well known, packages should have a description)
<d_bot> <thangngoc89> Agreed.
<d_bot> <Drup> :p
<d_bot> <thangngoc89> dmbaturin: I’m pretty much done with the package. It’s such a simple package, there isn’t anything to change
<d_bot> <thangngoc89> Unless you can provide an edge case off course 🙂
zebrag has quit [Quit: Konversation terminated!]
mro has quit [Remote host closed the connection]
mro has joined #ocaml
<d_bot> <dinosaure> @octachron it's possible to show which library/module brings a specific library?
<d_bot> <dinosaure> with `codept`
favonia has quit [Ping timeout: 240 seconds]
<d_bot> <octachron> Normally, the `lib` part of the `-deps` option list the (known) source of all compilation units imported from a library with `-L` or `-pkg`.
<d_bot> <dinosaure> hmmhmm
<d_bot> <dinosaure> Unrelated question but if a `META` requires `unix`, with `ocamlbuild`, sub-libraries requires `unix` too (I think not but I'm not sure)
<d_bot> <dinosaure> ah I think I found the problem
<d_bot> <dinosaure> it's hard to track real dependencies :/
wingsorc has joined #ocaml
Haudegen has joined #ocaml
jtck has quit [Quit: Leaving]
jtck has joined #ocaml
EmoSpice has quit [Quit: The Lounge - https://thelounge.chat]
favonia has joined #ocaml
jtck has quit [Remote host closed the connection]
jtck has joined #ocaml
jtck has quit [Remote host closed the connection]
jtck has joined #ocaml
<d_bot> <monk> i wonder why gh reads the project as SML
<d_bot> <monk> not really relevant
<companion_cube> do you use .ML file extension?
<d_bot> <monk> not my project but it looks like that's what thangngoc89 is doing, yeah
<d_bot> <monk> (i also name my ocaml files .ML fwiw)
<companion_cube> ah well
<companion_cube> OCaml is generally .ml
<d_bot> <thangngoc89> no. All files are .ml
<d_bot> <thangngoc89> I will add git attributes to tell github about it.
<d_bot> <monk> lol, i didn't mean to bother you to the extent you make GH change it per se, just found that interesting/weird!
<d_bot> <monk> the way they handle source parsing is interesting, it's probably a direct consequence of that
<d_bot> <monk> iirc they use a specialized haskell parser that basically does everything "not to fail"
<d_bot> <monk> and just does its best to guess/assign a lang to a given file
<d_bot> <monk> so what i'm really wondering is which file flagged as SML to them lol
<d_bot> <monk> this is me thinking aloud, pay no attention
<d_bot> <thangngoc89> Probably the slug_data.ml based on the amount of SML percentage and the fact that it’s missing from this list
<d_bot> <monk> that is also what i was thinking
<d_bot> <thangngoc89> Just fyi, this is what github uses to detect language https://github.com/github/linguist
<d_bot> <monk> huh, i was thinking of something entirely differet
mro_ has joined #ocaml
<d_bot> <thangngoc89> Maybe I should fix the generated code instead. Leading comma would make it look like ocaml 😂
<d_bot> <monk> hahaha
<d_bot> <thangngoc89> Sematic is for code intelligence
mro has quit [Ping timeout: 252 seconds]
mro_ has quit [Remote host closed the connection]
gravicappa has joined #ocaml
berberman has quit [Ping timeout: 246 seconds]
mro has joined #ocaml
mro has quit [Ping timeout: 246 seconds]
mro has joined #ocaml
mro has quit [Client Quit]
terrorjack4 has joined #ocaml
terrorjack has quit [Ping timeout: 240 seconds]
terrorjack4 is now known as terrorjack
waleee has joined #ocaml
gravicappa has quit [Ping timeout: 240 seconds]
zebrag has joined #ocaml
shawnw has joined #ocaml
Stumpfenstiel has joined #ocaml
Stumpfenstiel has quit [Quit: No Ping reply in 180 seconds.]
Stumpfenstiel has joined #ocaml
cedric has quit [Quit: Konversation terminated!]
Stumpfenstiel has quit [Ping timeout: 272 seconds]
berberman has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]
Haudegen has quit [Ping timeout: 240 seconds]
waleee has quit [Ping timeout: 246 seconds]
waleee has joined #ocaml