<discocaml>
<deepspacejohn> I'm playing with Vg for the first time, and I feel like I'm going crazy in that my transforms aren't working. I looked at the SVG output, and it's printing an attribute `transform="transform(...` but I'm pretty certain that `transform` isn't an SVG transform function, and this should be `matrix` instead. Manually changing the SVG to use `matrix` does work as expected. Am I missing something, or is this a bug in Vg? https://erratique.ch/r
rgrinberg has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
Tuplanolla has quit [Quit: Leaving.]
dnovem has quit [Quit: ZNC 1.10.x-git-27-bfd731cf - https://znc.in]
agentcasey has joined #ocaml
adrien has quit [Ping timeout: 265 seconds]
adrien has joined #ocaml
bartholin has joined #ocaml
accordvenom has joined #ocaml
pi3ce has quit [Read error: Connection reset by peer]
agentcasey has quit [Quit: ZNC 1.10.x-git-27-bfd731cf - https://znc.in]
agentcasey has joined #ocaml
<sleepydog>
how would you capture this expression in Ctypes? `#define SIZE sysconf(_SC_PAGESIZE)`
<sleepydog>
it's not a constant; sysconf() is a function. It's not an lvalue, so `foreign_value` doesn't work. it's not callable, so `foreign` doesn't work
malte has quit [Remote host closed the connection]
malte has joined #ocaml
<discocaml>
<reynir1396> So I can write `let[@warning "-8"] [] = Option.to_list None in 1` to mute a partial match in a let-binding. Can I do that in binding operators (e.g. `let+`)??
<discocaml>
<reynir1396> `let[@warning "-8"]+ [] = Lwt.return (Option.to_list None) in 1` and `let+[@warning "-8"] [] = Lwt.return (Option.to_list None) in 1` are both syntax errors /o\
<discocaml>
<darrenldl> sleepydog: i vaguely recall using c stubs when dealing with C preprocessor magic/nonsense
<discocaml>
<darrenldl> setting up c stubs pipeline was a bit painful from recollection, might be easier these days
thirteenyearoldb has left #ocaml [#ocaml]
<sleepydog>
darrenldl: i'm using cstubs. it's actually not too bad with dune
<discocaml>
<darrenldl> when you say capture, do you mean getting SIZE to ocaml's side?
<sleepydog>
yea
<discocaml>
<darrenldl> I think I just did `int size = SIZE;` or something like that in the c stubs file
<sleepydog>
oh, you mean you wrote an actuall C stub? ah
<sleepydog>
sorry, i misunderstood. i'm using the c stub generation that Ctypes provides
<discocaml>
<darrenldl> yeah, kind of a must for allowing static linking and working with somewhat complex lib (lxc)
<sleepydog>
ctypes stub generation can be statically linked, too. it also generates some helpful checks like making sure a constant is a constant.
<sleepydog>
yea, i could write my own stub. i was hoping to avoid writing C by hand but it might be more trouble than its worth
<discocaml>
<darrenldl> > ctypes stub generation can be statically linked, too.
<discocaml>
<darrenldl> oh
<discocaml>
<darrenldl> elp
<sleepydog>
i guess i could also call sysconf from ocaml myself. reimplement the macro
<discocaml>
<darrenldl> yeah no i get headache reading my repo from 5 years ago, giving up
<discocaml>
<darrenldl>
<discocaml>
<darrenldl> apparently i wrote a generator to generate a C stubs generator C code that generates the C stubs, cause the generation itself relied on some C values
<sleepydog>
yea, i'm going to power through this project and stick with ctypes, but i think in the future my bar will be higher to reach for it
<sleepydog>
i actually *like* writing C, so avoiding it is less of an appeal for me
olle has quit [Quit: leaving]
<discocaml>
<darrenldl> i think i kinda see the logic, and can work out what i was trying to do if it isn't 2am. anyway, in case it's of use: <https://github.com/darrenldl/ocaml-lxc>
<sleepydog>
thanks!
Anarchos has joined #ocaml
f[x] has joined #ocaml
gzar has joined #ocaml
bibi__ has quit [Quit: Konversation terminated!]
bibi_ has joined #ocaml
casastorta has quit [Remote host closed the connection]
casastorta has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
Anarchos has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
myrkraverk_ has joined #ocaml
myrkraverk has quit [Read error: Connection reset by peer]
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
mbuf has quit [Quit: Leaving]
Serpent7776 has quit [Ping timeout: 244 seconds]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
Anarchos has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
Anarchos has joined #ocaml
rgrinberg has joined #ocaml
Tuplanolla has joined #ocaml
rgrinberg has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
Serpent7776 has joined #ocaml
rgrinberg has joined #ocaml
bartholin has quit [Quit: Leaving]
Serpent7776 has quit [Ping timeout: 252 seconds]
rynite has joined #ocaml
rynite has quit [Quit: WeeChat 4.4.1]
f[x] has quit [Remote host closed the connection]
rgrinberg has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
Mister_Magister_ has joined #ocaml
Mister_Magister has quit [Ping timeout: 244 seconds]