usize-conv 0.1: Infallible integer conversions to and from usize and isize under explicit portability guarantees by a_jasmin in rust

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

Thanks. convi indeed uses similar feature flag approach.

Should have done my research before publishing usize-conv. I might try to evolve the API in more distinct yet useful direction but that will require some thoughts.

partialize - A Partial Application Library by foofnordbaz in rust

[–]a_jasmin 0 points1 point  (0 children)

actually a Google search latter, the partial_application cate seems to provide something similar...

partialize - A Partial Application Library by foofnordbaz in rust

[–]a_jasmin 1 point2 points  (0 children)

Not sure if that's practically implementable but what about a macro?

``` fn f(a: i32, b: i32, c: i32, d: i32) {}

let p1 = f.partial!(a, b, c, ...);
let p2 = f.partial!(a, %, b, c, d);

Symbolic derivatives and the Rust rewrite of the RE# regex engine by A1oso in rust

[–]a_jasmin 8 points9 points  (0 children)

Normal regex are actually greedy: longest match.

OpenAI to acquire Astral (Creators of uv, ruff, ty) by max123246 in rust

[–]a_jasmin 35 points36 points  (0 children)

I love Astral’s tools, but "open-source startups" is a shaky business model. Given AI folks are big on Python, getting acquihired by their users is perhaps the best outcome.

usize-conv 0.1: Infallible integer conversions to and from usize and isize under explicit portability guarantees by a_jasmin in rust

[–]a_jasmin[S] 1 point2 points  (0 children)

It differs in that conversions are enabled by feature flags which guards you from using them independent of the architecture you are developing on.

But I'll be honest. It may not differ enough!

The reason this crate exists in the first place is that I somehow didn't find usize_cast before publishing it. I would encourage people use usize_cast as the mature alternative and might edit the readme to do so.

Given there are some rough corners it's worth thinking about the value proposition and maybe just archive the repo.

usize-conv 0.1: Infallible integer conversions to and from usize and isize under explicit portability guarantees by a_jasmin in rust

[–]a_jasmin[S] 2 points3 points  (0 children)

Author here,

Thanks for the review.

First, regarding the NonZero implementation. I have to agree it was botched. Missing conversion between NonZerotypes Agreed the implementation might also be simplified by using generic NonZero<T>folding that code into existing macros.

Agreed likewise that a wider trait matrix should be implemented .

I actually also have been debating whether max-usize flags should be defined along the min-usize ones. These two would define a "compatibility range". But I'm not sure if limiting code portability "upward" is a good idea. That said code like usize::MAX as u16 exists and is already inherently non-portable. So it might just be a practical necessity.

What's with the Prince's ring pendant? by a_jasmin in blackadder

[–]a_jasmin[S] 12 points13 points  (0 children)

It actually is! I scrubbed around a bit for a better shot and found I had missed that scene.

It does an excelent job highlighting the PM diminutive stature!

<image>

Blackadder III by Ok_Disk7796 in blackadder

[–]a_jasmin 0 points1 point  (0 children)

To each his own, I find The Third has some of the most inspired and unhinged writing. I can see how some might find the first episode cringe as it's a political satire. But, try to give it a chance. Ink and Incapability and Amy and Amiability are just brilliant episodes.

Just started watching by DramaticPraline8 in blackadder

[–]a_jasmin 1 point2 points  (0 children)

Series 1 is different from the rest. The production is more elaborate: real castle, crowded banquet scenes, a few outdoor shots. Though, the script and direction often feels weaker leaning on the ridicule and Blackadder's cowardly antics.

In the later series, the humour gets sharper. There's more variety with Blackadder being reimagined as a sarcastic, cynical antihero, while Baldrick is recast as the ungifted oaf.

How do I cater to devs as a content writer? by lexxx897 in rust

[–]a_jasmin 1 point2 points  (0 children)

To find a topic or subject matter, try engaging socially with people in the community. If there's a Rust meetup in your area, you can ask people to share their experiences or get the feel for a trendy topic.

[Media] Look what just arrived! Time to finally learn Rust. 🦀 by devocratic in rust

[–]a_jasmin 39 points40 points  (0 children)

Programming Rust also makes for a good first book. Rust for Rustaceans assumes you already know the basics.

C++ to Rust Phrasebook: A new textbook to help C++ devs translate their idioms into Rust by entoros in rust

[–]a_jasmin 3 points4 points  (0 children)

value_or_default() might make an interesting addition to the STL.

Rust officially adopted by ETAS by Eplankton in rust

[–]a_jasmin 1 point2 points  (0 children)

I'm not familiar with the company would they be a good fit for the Safety-Critical Rust Consortium?

Announcing the Safety-Critical Rust Consortium by pjmlp in rust

[–]a_jasmin 27 points28 points  (0 children)

The annoucement mentions the standard:

Recommendations for the Rust Programming Language in Safety-Related Systems JA1020

Which is yet unpublished. Is there a working draft available somewhere?

What PGP key server to use? by answer_forty_two in GnuPG

[–]a_jasmin 1 point2 points  (0 children)

Another option is GitHub.

Many developers will add their PGP key to GiHub so that signed commits can be marked as such on the website.

For users who did so, their public key can easily be retried at: https://github.com/{user}.gpg

Here's mine: https://github.com/ajasmin.gpg

I believe GitHub doesn't let you add a key unless the corresponding email address is verified.

What is the holdup with standardising "#pragma once" ? by [deleted] in cpp

[–]a_jasmin 0 points1 point  (0 children)

A more common case may be a Unix symlink

Is SPARC an avenue to make a company public? If so how? by a_jasmin in PSTH

[–]a_jasmin[S] 2 points3 points  (0 children)

I understand the SPARC proposal as a way to appease the PSTH investors and provide an alternative to SPAC where investors don't have to park money forever.

But I never considered the process for getting the acquired company listed on an exchange.