rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 248 seconds]
dawids_ has joined #ocaml
euphores has quit [Quit: Leaving.]
olle has quit [Ping timeout: 268 seconds]
euphores has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
<discocaml>
<sirius06615> I am a skilled full-stack developer with expertise in building scalable web and blockchain applications. On the frontend, I specialize in modern frameworks like React.js and Next.js to deliver seamless user experiences, while on the backend, I excel in Node.js, Express.js, and Python-based frameworks to create robust APIs and server-side logic. My database experience spans PostgreSQL, MongoDB, and cloud-based solutions like Firebase.
<discocaml>
<sirius06615>
<discocaml>
<sirius06615> In blockchain development, I have extensive experience with Ethereum, Solana, and SUI, using tools like Web3.js, ethers.js, and Hardhat to develop and deploy decentralized applications. I’ve worked on DeFi protocols, secure wallets, and NFT marketplaces, handling everything from smart contract creation to metadata integration. With strong cryptographic knowledge and hands-on experience in DevOps, I ensure secure and efficient application
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 265 seconds]
Serpent7776 has quit [Ping timeout: 244 seconds]
dawids_ has quit [Remote host closed the connection]
<companion_cube>
This is not the right place to advertise your blockchain experience, sorry
alfiee has quit [Ping timeout: 252 seconds]
Haudegen has joined #ocaml
dawids_ has joined #ocaml
dawids_ has quit [Remote host closed the connection]
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<za3k>
I want to call some unix syscalls apparently not available in Unix. How do I do that?
<discocaml>
<contificate> I'd just write such a stub
<discocaml>
<contificate> e.g. a dune library with foreign_stubs stanza that refers to a C impl that just marshals `value`s then releases domain lock around the C syscall wrapper function
<discocaml>
<contificate> yeah, you can just pass the object to ocamlopt
<za3k>
thanks contificate
<discocaml>
<yawaramin> za3k: why without dune?
<za3k>
because I have a working makefile without dune (and then I needed static linking which looked like a nightmare in dune, so i'll probably keep it that way)
<discocaml>
<contificate> a slight annoyance is that `foreign_stubs` is only valid within `library` stanzas in dune, but the usual design of dune projects mitigates this: so maybe not worth doing for a small thing
<za3k>
i couldn't figure out how to set up dune halfway, but perhaps next project
<za3k>
this is my first ocaml program
<discocaml>
<contificate> well be sure to post here if you need help with it later
<za3k>
i'm trying to noticed terminal resizes with signalfd(2)
<discocaml>
<contificate> notty (a TUI library) has provisions for handling SIGWINCH
<discocaml>
<contificate> but writing a stub will be fun, so do that
<discocaml>
<contificate> that said, signals are probably fairly tedious
<discocaml>
<contificate> compared to the usual stub that just does slim wrapping of some C function
<za3k>
it's okay, i just need to return a file descriptor
<discocaml>
<contificate> oh, I see, signalfd mitigates some of the pain
<discocaml>
<contificate> I think `file_descr` remains opaque in OCaml's UNIX library
<discocaml>
<contificate> but impl wise is just an integer (?)
<za3k>
i noticed that Sys is also missing most of the signals, but luckily it's exposed as an int (for masking the signal)
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 260 seconds]
<discocaml>
<gooby_diatonic> We shouldn't doubt the OCaml stdlib designers, if something isn't in the stdlib surely it's harmful and should not be used
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 265 seconds]
<dh`>
yes, file handles in unix are just integers
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 245 seconds]
Haudegen has quit [Quit: Bin weg.]
Haudegen has joined #ocaml
<discocaml>
<yawaramin> in Unix, sure. on Windows, no
<za3k>
actually is that going to be a problem trying to return a Unix.file_descr from C, that it's opaque? (trying to get everything non-C-related working before tackling that so haven't looked yet)
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
<za3k>
ok i realized i can use the self-pipe trick (make a pair of handlers with Unix.pipe, have the signal handler for SIGWINCH write to one, select on the other) to sidestep needing to write C code
<dh`>
yawaramin: is the Unix stdlib module for Windows?