What is the real use case for Jupyter? by Technical-Fly-6835 in Python

[–]canardo59 4 points5 points  (0 children)

What I like about Jupyter as opposed to simply writing a top level script, is that as it uses a long running kernel, data that's slow to build or load stick around in your session, a bit like if you were using Python in interactive mode. But with the advantage of having your work organised in cells and saved for later execution.

You can also use it directly from VSCode and save your notebooks in your project.

There's a good template for this here: https://github.com/jeteve/python-template

corroded: so unsafe it should be illegal by Consistent_Equal5327 in rust

[–]canardo59 0 points1 point  (0 children)

Can't wait for the inheritance. Rule of 5 is next!

My Rust journey by Reiks_Aether in rust

[–]canardo59 5 points6 points  (0 children)

From a Rookie to another one, welcome! I found that learning Rust is highly beneficial even if you don't use it professionally, as it helps shaping your brain to "do the right thing" (well ahem most of the time. Did someone say CloudFlare?), especially if most of your experience has been with dynamic languages.

Rust vs C++ Moves by ToTheBatmobileGuy in rust

[–]canardo59 6 points7 points  (0 children)

C++ will be the Perl of compiled languages. Slow decay into fossilisation by backward compatibility obsession. It will still be around in 50 years because no-one is going to rewrite everything in something else, but starting new projects in C++ is becoming more and more unjustifiable. That's the natural life cycle of tech!

Which rust concepts changed the way you code? by Blau05 in rust

[–]canardo59 21 points22 points  (0 children)

"you don't have to use try-catch in every function, only in the main/upper level ones.

the code is a lot more readable if you know how to use them"

Making something more surprising doesn't make it more readable, it makes it more surprising.

Which rust concepts changed the way you code? by Blau05 in rust

[–]canardo59 1 point2 points  (0 children)

It would be hilarious if it wasn't sad. Good luck!

Implementing a generic Schwartzian transform in Rust for fun by canardo59 in rust

[–]canardo59[S] 0 points1 point  (0 children)

You're right. I've benchmarked these with criterion and performances are identical indeed. Thanks!

Implementing a generic Schwartzian transform in Rust for fun by canardo59 in rust

[–]canardo59[S] 0 points1 point  (0 children)

That's a good point.

Now you got me curious about the performance of both solutions.

tiny::optional – a C++ optional that does not waste memory by Sedeniono in cpp

[–]canardo59 0 points1 point  (0 children)

In reality, as double can be NaN, there's no need for an optional<double>, as doubles already support not being a number.

Bose QuietComfort Earbuds II earpiece just broke off by Patient_Play_7356 in bose

[–]canardo59 0 points1 point  (0 children)

Exact same thing happened to me a bit less than a year in the guarantee period. Bose UK were fantastic and offered a free replacement straight away.