Code Monkey home page Code Monkey logo

rurtle's People

Contributors

kingdread avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

gnunicorn

rurtle's Issues

`#version 120` fails on Mac

Hi,

and thank you very much for this great work. Unfortunately I can't get it to run :( .

Trying to run Rurtle on a Mac OSX 10.11.3 here, but the shaders fails with a (for me not really clear) unsupported version message, when trying to compile it – on both Stable (1.7.0) and Nightly.

The full message reads:

     Running `target/debug/rurtle`
thread '<main>' panicked at 'Program creation failed: Compilation error in one of the shaders: ERROR: 0:1: '' :  version '120' is not supported
ERROR: 0:2: '' :  #version required and missing.
ERROR: 0:2: 'attribute' : syntax error: syntax error
', src/graphic.rs:152
Process didn't exit successfully: `target/debug/rurtle` (exit code: 101)

And the Traceback states:

Rurtle @(master ✔) $ RUST_BACKTRACE=1 multirust run stable cargo run
     Running `target/debug/rurtle`
thread '<main>' panicked at 'Program creation failed: Compilation error in one of the shaders: ERROR: 0:1: '' :  version '120' is not supported
ERROR: 0:2: '' :  #version required and missing.
ERROR: 0:2: 'attribute' : syntax error: syntax error
', src/graphic.rs:152
stack backtrace:
   1:        0x10f5c3b18 - sys::backtrace::tracing::imp::write::h891a4a9fcda67dccF4t
   2:        0x10f5c54bf - panicking::default_handler::_<closure>::closure.41940
   3:        0x10f5c4f3f - panicking::default_handler::hde0cb232bc545756U3x
   4:        0x10f5bb974 - sys_common::unwind::begin_unwind_inner::haeb4c6adcf4eff3cF7s
   5:        0x10f5bbe1e - sys_common::unwind::begin_unwind_fmt::hab9b7efabf14110aL6s
   6:        0x10f172af8 - graphic::TurtleScreen::new::h446ed3d92ea6f883Jja
   7:        0x10f17116b - main::h71699da97968b45bzXe
   8:        0x10f5c4b72 - sys_common::unwind::try::try_fn::h5317933650159713495
   9:        0x10f5c30b8 - __rust_try
  10:        0x10f5c4a15 - rt::lang_start::hcf1bb0740bf735368Vx
  11:        0x10f1aff29 - main
Process didn't exit successfully: `target/debug/rurtle` (exit code: 101)
 Rurtle @(master ✔) $

Appreciate any hints on how to solve this.

Lex with VecDeque

The Rurtle lexer currently stores the input stream of chars in a Vec, and then calls chars.remove(0), all the time, which is an O(n) operation. If you switch it out for a VecDeque, it should be significantly faster for large inputs.

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.