it must be generated by the script. which directory did you run the script? the script might be (wrongly) depending on path
4 replies
Bubblie01
@Bubblie01
Do any of you know how much RustPython is in size?
1 reply
Noa
@coolreader18
@Bubblie01 binary's about 20MB iirc
Dominic Elm
@d3lm
Hey ya all!
Quick question, how would I go about implementing missing modules such as os when RustPython is compiled to WASM? @coolreader18
Noa
@coolreader18
There are a couple different options - one would be to implement a custom posix/nt module in Rust, which would be a bit of effort given the large API surface area
Another option is implement a custom os.py
Oh, but if you're asking about contributing those modules - that's not really in scope of RustPython I don't think. There's a lot of different ways to go about polyfilling os apis, and I think it's more productive to focus on one standardized API like wasi (which we do support)
Dominic Elm
@d3lm
Oh I see
And where would I locate those? Can you give a super minimal example?
I mean so you can just say import os
Can I also provide this via Rust? Cause I have already existing JS functions for some of the OS stuff
BTW, really great work on all of this! This stuff is so freakin exciting
I am a huge fan of WASM and work with it on a daily basis / production apps and I love seeing more people adopting it
Being able to run other languages such as Python via WASM is a huge deal
Yep, I totally get that, that those modules are out of scope
Hm yes, but I think using wasm-bindgen it still doesn't support WASI AFAIK
Why does your message look like ghost. Without user marker and name
Jason Qin
@hyperswine
EOI is basically eof right?
Supreet
@supreetsingh10
Hello everyone, do you guys use rust-gdb to debug code for this project. I have cloned the project and I have gone through the development guide and the Readme. I would like to see the flow of the code function wise, are you guys using RUST-GDB for that?
Jeong YunWon
@youknowone
I use lldb. If you use vscode, the repository is including debugger setup for vscode
Supreet
@supreetsingh10
Thank you, I use Vim
Zero Cool
@ZeroCoolHacker
Hello, I am a python developer and trying to learn rust. Love this project <3
Steve Shi
@qingshi163
There is nothing special for rustpython than other rust project for vim. You can use adapter to use same lldb debugger as vscde.
Jeong YunWon
@youknowone
@ZeroCoolHacker welcome, thats a good motivation to start this project
Haris Raharjo P
@harisraharjo
Hey all, thanks for making this project! Anyway what is the current way to load python 3rd party package?
I saw an issue that says currently there's a problem with get-pip.py
I just wanted to use the vm to call a python file from rust. And that file has deps to other 3rd party package
@harisraharjo currently, pip is broken, but RustPython/RustPython#3755 will help fix it (i'm not sure if that PR will fix pip completely, and the PR just flat-out doesn't work on windows)