Giter Club home page Giter Club logo

rq3vm's People

Contributors

sirjson avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

rq3vm's Issues

Cannot run example

Now this is the first time for me to work with Rust and cargo. So this issue is either a README problem (to give the beginner some clear commands to type in) or there is actually a problem.

So I tried to run cargo run in the example/helloq3 folder:

error[E0580]: main function has wrong type
  --> src/main.rs:19:1
   |
19 | fn main() -> Result<(), io::Error> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected (), found enum `std::result::Result`
   |
   = note: expected type `fn()`
              found type `fn() -> std::result::Result<(), std::io::Error>`

error: aborting due to 2 previous errors

error: Could not compile `helloq3`.

Before that I tried to run cargo build in the root directory.

Functions StringNew and StringFree in helloq3 example project

I am not sure if those functions would work. Now at the moment they are not implemented, but I assume that there will be some dynamic memory allocation involved. As the VM can only work with the data section (memory sandbox), an outside host address would not work. So the malloc function needs to be implemented in the VM itself (there is a implementation for Quake 3 that does that: https://icculus.org/homepages/phaethon/q3/malloc/malloc.html). Or the host manages part of the memory sandbox from the outside. And supplies the VM with valid virtual addresses for the malloc calls.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.