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/
mange has joined #ocaml
pi3ce has joined #ocaml
polykernel has quit [Remote host closed the connection]
polykernel has joined #ocaml
Frostillicus has joined #ocaml
Frostillicus has quit [Ping timeout: 245 seconds]
pi3ce has quit [Ping timeout: 252 seconds]
wickedshell has joined #ocaml
Frostillicus has joined #ocaml
Frostillicus has quit [Ping timeout: 265 seconds]
Frostillicus has joined #ocaml
Frostillicus has quit [Ping timeout: 245 seconds]
myrkraverk has joined #ocaml
myrkraverk_ has quit [Ping timeout: 268 seconds]
myrkraverk_ has joined #ocaml
myrkraverk has quit [Ping timeout: 268 seconds]
myrkraverk__ has joined #ocaml
Frostillicus has joined #ocaml
myrkraverk_ has quit [Ping timeout: 252 seconds]
Frostillicus has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ocaml
myrkraverk has joined #ocaml
myrkraverk__ has quit [Ping timeout: 260 seconds]
Frostillicus has quit [Read error: Connection reset by peer]
Frostillicus has joined #ocaml
j0lol has quit [Remote host closed the connection]
j0lol has joined #ocaml
Serpent7776 has joined #ocaml
Frostillicus has quit [Ping timeout: 260 seconds]
Haudegen has joined #ocaml
Frostillicus has joined #ocaml
bartholin has joined #ocaml
<discocaml> <diligentclerk> I asked the other day "is OCaml good for scripting tasks?"
<discocaml> <diligentclerk> but i'd also be interested in like, any statically typed language which can be used conveniently for scripting
<discocaml> <diligentclerk> like scala?
<discocaml> <diligentclerk> It doesn't even need to be functional, i'm just wondering if there is anything that is reasonably convenient for scripting which has good static typing
bartholin has quit [Remote host closed the connection]
<discocaml> <cod1r> python with mypy
funkatronixxx has joined #ocaml
<discocaml> <diligentclerk> I tried this and until the broader Python ecosystem begins to take this seriously, it's not worth the effort. A typical Python script that I write is mostly a bunch of calls to external Python libraries, so if those are all untyped, then i'm just calling a series functions that take Any and return Any
Frostillicus has quit [Ping timeout: 244 seconds]
<discocaml> <diligentclerk> One time I tried using mypy's stub generation tool to automatically generate a typing "framework" for a network/graph analysis library, but their architecture was incompatible with a basic assumption that Mypy makes, namely that if B inherits from A, B's functions have the same type signature as A's functions. I opened an issue on their Github and they just got annoyed at me for "telling them how I would have done it" and saying that the
<discocaml> <cod1r> what about https://github.com/astral-sh/ty
<discocaml> <cod1r> tbh, it's probably the same but aye
<discocaml> <cod1r> it's written in RustTM
Frostillicus has joined #ocaml
Frostillicus has quit [Ping timeout: 244 seconds]
mange has quit [Quit: Zzz...]
funkatronixxx has quit [Ping timeout: 248 seconds]
funkatronixxx has joined #ocaml
funkatronixxx has quit [Ping timeout: 272 seconds]
Haudegen has quit [Quit: Bin weg.]
funkatronixxx has joined #ocaml
wbooze has joined #ocaml
sailorCa- has quit [Quit: ZNC 1.8.2 - https://znc.in]
sailorTheCat has joined #ocaml
Frostillicus has joined #ocaml
Frostillicus has quit [Ping timeout: 245 seconds]
Frostillicus has joined #ocaml
funkatronixxx has quit [Ping timeout: 244 seconds]
funkatronixxx has joined #ocaml
Frostillicus has quit [Ping timeout: 252 seconds]
<discocaml> <shawnfrostx> I don’t think you are going to get anything better than Python for now. You’ll encounter issues when some library doesn’t have type stubs or something is hard to express — in those cases you can write your own stubs or some wrapper around Any->Any. But in exchange you get an ecosystem of stuff that mostly works and is easy to write.
<discocaml> <shawnfrostx> Which imho is fine for scripts and stuff less than 1k lines.
Frostillicus has joined #ocaml
<discocaml> <yawaramin> check out https://scala-cli.virtuslab.org/
myrkraverk_ has joined #ocaml
Haudegen has joined #ocaml
myrkraverk has quit [Ping timeout: 276 seconds]
Frostillicus has quit [Ping timeout: 276 seconds]
cross has joined #ocaml
sailorTheCat has quit [Quit: ZNC 1.8.2 - https://znc.in]
sailorTheCat has joined #ocaml
gwizon has joined #ocaml
gwizon is now known as starchild
<discocaml> <aiono.00> The start time of JVM makes it a non-starter for scripting IMO
<discocaml> <aiono.00> The runtime introspection capabilities are great for scripting though
<discocaml> <yawaramin> you'd be surprised. start time depends on how many classes you load. can definitely be optimized. check out the Mill build tool
funkatronixxx has quit [Ping timeout: 276 seconds]
funkatronixxx has joined #ocaml
bartholin has joined #ocaml
humasect has joined #ocaml
funkatronixxx has quit [Ping timeout: 276 seconds]
funkatronixxx has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
funkatronixxx has quit [Ping timeout: 260 seconds]
humasect has quit [Remote host closed the connection]
spynxic has quit [Ping timeout: 272 seconds]
spynxic has joined #ocaml
humasect has joined #ocaml
humasect has quit [Remote host closed the connection]
humasect has joined #ocaml
Inline has joined #ocaml
Inline has quit [Client Quit]
humasect has quit [Ping timeout: 272 seconds]
Inline has joined #ocaml
wbooze_ has joined #ocaml
Inline has quit [Remote host closed the connection]
Haudegen has joined #ocaml
wbooze_ has quit [Quit: Leaving]
wbooze has quit [Read error: Connection reset by peer]
<discocaml> <shon_18152> Nice that the demo gif has a realistic representation of the startup times XD
noddy has quit [Quit: WeeChat 4.6.2]
noddy has joined #ocaml
humasect has joined #ocaml
Exa has quit [Quit: see ya!]
Exa has joined #ocaml
starchild has quit [Quit: leaving]
gwizon has joined #ocaml
gwizon is now known as redroom
Inline has joined #ocaml
wbooze has joined #ocaml
humasect has quit [Remote host closed the connection]
funkatronixxx has joined #ocaml
funkatronixxx has quit [Ping timeout: 244 seconds]
toastal has joined #ocaml
Inline has quit [Quit: Leaving]
Inline has joined #ocaml
<discocaml> <sim642> Ugh, all CI jobs are failing because camlcity.org (where findlib is hosted) is broken
humasect has joined #ocaml
toastal has left #ocaml [#ocaml]
<discocaml> <yawaramin> by 'all CI jobs' you mean...?
<discocaml> <yawaramin> in your work CI?
humasect has quit [Ping timeout: 276 seconds]
Serpent7776 has quit [Ping timeout: 276 seconds]
<discocaml> <sim642> GitHub CI for public projects, etc. ocamlfind has a lot of revdeps. Its host being broken makes it basically impossible to create opam switches a meaningful selection of packages
<discocaml> <yawaramin> oh...that seems bad
Frostillicus has joined #ocaml
humasect has joined #ocaml
Frostillicus has quit [Ping timeout: 252 seconds]
humasect has quit [Ping timeout: 252 seconds]
bartholin has quit [Remote host closed the connection]
Tuplanolla has joined #ocaml
<discocaml> <bjonah> I flipped to the backup http://download2.camlcity.org in the DkML repository https://github.com/diskuv/diskuv-opam-repository/commit/cba95f9d9ca02df2a3fbba21c0c416d573883b48 . Maybe you can pin the package you need?
pi3ce has joined #ocaml
Frostillicus has joined #ocaml
humasect has joined #ocaml