Code Monkey home page Code Monkey logo

Comments (6)

Alt-iOS avatar Alt-iOS commented on June 3, 2024

Just curious, wouldnt it be better to have both? Personally I always use nightly because I like not having the .get() or .set() syntax (and I can use stuff like the parallel frontend in the compiler) but I understand why its a good idea to show that it works fine in stable, so why not keep both?

But yeah, I think I can take care of the hackernews examples and maybe some of the counter ones

from leptos.

gbj avatar gbj commented on June 3, 2024

Personally I always use nightly because I like not having the .get() or .set() syntax (and I can use stuff like the parallel frontend in the compiler)

Me too, which is why it's been the default until now.

but I understand why its a good idea to show that it works fine in stable, so why not keep both?

My main concern is actually CI-related. We have not had many problems until fairly recently, but the instability of nightly APIs means that occasionally, things break and need to be fixed in CI in ways that can be confusing for people trying to use the examples.

One small case study that prompted me to open this: A few months ago, we found that rkyv was throwing clippy warnings on new nightly versions, which was breaking our CI during cargo check on leptos_reactive featurs that pulled in rkyv. I probably should've investigated more deeply at the time (it turns out just disabling the copy feature on rkyv would've fixed it) but we just pinned to a nightly version that worked, instead.

Then some time in the last few weeks, an Axum patch update was released that was only compatible with more recent nightly compilers — but rkyv still wasn't. This meant we were in an uncanny valley where there was no nightly version of the compiler that could actually cause our CI to pass. I ended up spending a few hours of my day yesterday just dealing with the consequences of that combination and updating to a new nightly.

Ultimately this stuff is just a pain, and it will continue to be a pain as long as we have nightly examples that we're running CI against — hence why I'd rather replace them than just add more stable examples.

But yeah, I think I can take care of the hackernews examples and maybe some of the counter ones

Thanks!

from leptos.

agilarity avatar agilarity commented on June 3, 2024

Okay, I'll work on error_boundary.

from leptos.

Alt-iOS avatar Alt-iOS commented on June 3, 2024

My main concern is actually CI-related. We have not had many problems until fairly recently, but the instability of nightly APIs means that occasionally, things break and need to be fixed in CI in ways that can be confusing for people trying to use the examples.

One small case study that prompted me to open this: A few months ago, we found that rkyv was throwing clippy warnings on new nightly versions, which was breaking our CI during cargo check on leptos_reactive featurs that pulled in rkyv. I probably should've investigated more deeply at the time (it turns out just disabling the copy feature on rkyv would've fixed it) but we just pinned to a nightly version that worked, instead.

Then some time in the last few weeks, an Axum patch update was released that was only compatible with more recent nightly compilers — but rkyv still wasn't. This meant we were in an uncanny valley where there was no nightly version of the compiler that could actually cause our CI to pass. I ended up spending a few hours of my day yesterday just dealing with the consequences of that combination and updating to a new nightly.

Ultimately this stuff is just a pain, and it will continue to be a pain as long as we have nightly examples that we're running CI against — hence why I'd rather replace them than just add more stable examples.

Yeah, CI breaking because small issues at random due to breaks in nightly can become a huge pain when piled on, I get why you would want to move it and after converting a few examples, aside from having to move errors into closures tbh it wasnt that different

from leptos.

solweo avatar solweo commented on June 3, 2024

I'll work on counter_url_query

from leptos.

gbj avatar gbj commented on June 3, 2024

Thanks to everyone for contributing! I think this is all of them. Much appreciated ❤️

from leptos.

Related Issues (20)

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.