fubark / cyber

Fast and concurrent scripting.
https://cyberscript.dev
MIT License
1.21k stars 43 forks source link

When will there be io and socket module? #19

Closed dhensen closed 1 year ago

dhensen commented 1 year ago

Awesome project. See title

fubark commented 1 year ago

There will definitely be a socket module or the ability to do similar ops. Is there an io library you already like so I can look at?

dhensen commented 1 year ago

Hi @fubark, I'm mainly a python dev so ofcourse I'm immediately thinking about io and socket.

dhensen commented 1 year ago

Reason I'm asking is I would like to create a simple web API using cyber.

fubark commented 1 year ago

I think these libraries especially the web servers won't be builtin into Cyber, but you'll be able to import these libs from the web. On a related note, Cyber will have builtin primitives to create buffers so you can create your own fast BufferReader for example.

zachcp commented 1 year ago

@fubark you vision for this language is impressive.

fubark commented 1 year ago

I appreciate that @zachcp ! It's gonna be really exciting, but also a lot of work. 😁

fubark commented 1 year ago

Importing libs should now be possible with the recent work on module imports. See https://github.com/fubark/ray-cyber for an example of this.