Giter Club home page Giter Club logo

Comments (7)

lights0123 avatar lights0123 commented on June 8, 2024

I was wondering what version of Rust this does compile on?

Latest I've tested is nightly-2020-05-31 (I keep https://lights0123.com/ndless-rust/Installing/index.html up to date with that)

asm!() is not stabalized

That'll need to be converted to llvm_asm! or the new asm! syntax in the short term to get it compiling, and for stable support, wait for asm! stabilization (close-ish?) or compile it separately (but that adds a dependency on an external assembler, and I'd like to not require one because my end goal is to allow building Ndless apps with pre-built binaries). Last time I checked the times I use it are inline functions in Ndless, so I can't just invoke an existing function.

there is another feature still requiring nightly

that's for fn main support. I did actually previously not use that and used a #[entry] macro that did the same thing, but decided to switch to fn main support to make it easier to get started. We could add an optional feature to disable that, though.

Lastly, what is up with the indentation? It all appears to be tabs, but a much of macros use 4 spaces for indents. Should everything be indented with tabs?

Yeah, that's an IntelliJ thing. I preferred all tabs, but I should probably switch to all spaces to keep with the ecosystem.

from ndless-rs.

macmv avatar macmv commented on June 8, 2024

Thanks for your reply! I have a TI-Nspire, and I really want to write Tetris for it, and this project will be super helpful. I just like to use the latest version of rust all the time, so I'm going to get this to compile soon.

Latest I've tested is nightly-2020-05-31 (I keep https://lights0123.com/ndless-rust/Installing/index.html up to date with that)

Good to here. I will test on that version to just make sure things are working.

That'll need to be converted to llvm_asm! or the new asm! syntax in the short term to get it compiling, and for stable support, wait for asm! stabilization (close-ish?) or compile it separately (but that adds a dependency on an external assembler, and I'd like to not require one because my end goal is to allow building Ndless apps with pre-built binaries). Last time I checked the times I use it are inline functions in Ndless, so I can't just invoke an existing function.

Alright. I will still rely on nightly for this, but I would like to move that to stable at some point. I think its possible (some googling found this: https://docs.rust-embedded.org/embedonomicon/asm.html), but I'm not sure if its possible without an external assembler.

that's for fn main support.

I wasn't aware if this. Stable is a nice thing to have, but fn main is also nice. I think changing it will be a pain, and this doesn't seem like something that a new nightly build will break.

Yeah, that's an IntelliJ thing.

Personally, I prefer 2 spaces, but I think 4 spaces is the norm. I don't think changing all the indents should be part of the PR to make it compile, but I'll make another PR to change to 4 spaces everywhere.

I'll close this once I finish the PR for making it compile.

from ndless-rs.

Ti64CLi avatar Ti64CLi commented on June 8, 2024

I bump this topic because it doesn't work with the latest nightly.
Would it be possible to update it ? Sorry to ask that, I don't have the knowledge to do that myself

I'd like to mention that installing the 1.45-nightly build doesn't seem to work for me, as the cargo install cargo-ndless returns an error error reading from the zlib stream; class=Zlib (5)

from ndless-rs.

pranshuthegamer avatar pranshuthegamer commented on June 8, 2024

guys yall wanna start our own fork?

from ndless-rs.

lights0123 avatar lights0123 commented on June 8, 2024

from ndless-rs.

lolpro11 avatar lolpro11 commented on June 8, 2024

I don’t have time to maintain this, but I’d be happy to give maintainer status to someone. On Jul 24, 2023, at 18:36, Pranshu Tanwar @.> wrote: guys yall wanna start our own fork? —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.>

Is it possible for me to get that status? I have time now and am willing to update this crate.

from ndless-rs.

lights0123 avatar lights0123 commented on June 8, 2024

from ndless-rs.

Related Issues (3)

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.