Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] FreeBSD ports collection #3288

Open
1 task done
syleishere opened this issue Jul 23, 2024 · 1 comment
Open
1 task done

[Feature Request] FreeBSD ports collection #3288

syleishere opened this issue Jul 23, 2024 · 1 comment
Labels
enhancement New feature or request mojo-repo Tag all issues with this label

Comments

@syleishere
Copy link

Review Mojo's priorities

What is your request?

Add ports package to FreeBSD for users wanting to play with mojo.

What is your motivation for this change?

Many people have switched from Linux/kvm to FreeBSD/bhyve for host OS ever since demise of Centos. Would be nice to have support here.

Any other details?

For TCP sockets FreeBSD uses kqueue instead of epoll, perhaps a 3rd party library using libev or libevent may be able to combine the two, or just separate implementations.

@syleishere syleishere added enhancement New feature or request mojo-repo Tag all issues with this label labels Jul 23, 2024
@martinvuyk
Copy link
Contributor

Hi, sorry to be a bummer but realistically FreeBSD is not on the priority list. Currently very many efforts are going into adding support for Windows and better Python and eventually (nex year) C interop.

For TCP sockets FreeBSD uses kqueue instead of epoll

I'm currently trying to implement sync TCP (others have already done it, I'm just adapting code), but trying to setup an async API to eventually implement kqueue for freeBSD and other BSD family (+ Apple) and maybe io_uring for linux (there is someone implementing it in Mojo), and IOCP for windows.

If you are interested, here is the link to the discussion I opened and where I'm trying to get the thing to work. If you're only interested in building your own FFI you still might be interested in looking at this file where I adapted some old code to work (w/ latest nightly) for calling some libc funcs.

You can also use the online notebooks, though I've never used them. Ask around in the discord server if you need any help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

2 participants