|about 16 hours ago||6 days ago|
|GNU General Public License v3.0 or later||GNU General Public License v3.0 or later|
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Designing a SIMD Algorithm from Scratch
2 projects | news.ycombinator.com | 28 Nov 2023
Not OP, but one thing that surprised me was if you are doing rust Simd in a library, and part of the code is marked #[inline] but others are not you might see catastrophic performance regressions. We saw an issue where the SIMD version was over 10x slower because we missed marking one function as inline. Essentially rustc converted it from an intrinsic to a regular function call.
Enums in Rust – and why they feel better
2 projects | news.ycombinator.com | 23 Nov 2023
I believe it's not stable because it gives std::boxed::Box special treatment in the language. They'd rather find a solution that could work equally well for smart pointers defined outside of std.
Box patterns are likely to be superseded by one of these:
Setenv Is Not Thread Safe and C Doesn't Want to Fix It
6 projects | news.ycombinator.com | 19 Nov 2023
Rust's stdlib's API is completely safe here. On Windows, it uses the GetEnvironmentVariable/SetEnvironmentVariable API, which as you noted doesn't have this problem. On Unix, it maintains its own RwLock to provide synchronisation. Additionally, Rust's API only gives out copies of the data, it never gives you a pointer to the original.
The problem comes when you do FFI on *nix systems, because those foreign functions may start making unsynchronised calls to getenv/setenv.
Rust: JSON Web Token -- some investigative studies on crate jwt-simple.
2 projects | dev.to | 17 Nov 2023
[self-promo] Svelte + Rust for a desktop photo explorer
2 projects | /r/sveltejs | 14 Nov 2023
If you want to learn Svelte or Rust (Tauri) while building this project with us, send me an inbox!
Why Rust in Production?
2 projects | news.ycombinator.com | 9 Nov 2023
IMO it would be good to familiarize yourself with the rust quirks/features (check out the rust book) and then poke at some of the embedded specific groups. Once you get a handle on the common types and patterns it's probably easier to find the information you're looking for, e.g.:
In general Rust chases a "zero cost abstraction" ethos, so a lot of the type system niceties have no code or memory cost because the heavy lifting is done at compile time, not run time. For instance using specific traits for each GPIO pin ensures you won't accidentally apply some meaning meant for another pin, but the compiler will compile it right down to integers anyhow.
Things like options (how Rust deals with "null" values) are enums and usually incur a one byte penalty, but in some cases they can be compiled down to no overhead at all.
Officially Qualified – Ferrocene
2 projects | news.ycombinator.com | 8 Nov 2023
Why Golang instead of Rust to develop the Krater desktop app
5 projects | news.ycombinator.com | 7 Nov 2023
> I still sometimes get lifetime errors that I don’t understand.
I'd like to remind people that errors you don't understand are bugs and I'd encourage you all to file a ticket when encountering any: https://github.com/rust-lang/rust/issues/new?assignees=&labe...
A four year plan for async Rust
3 projects | news.ycombinator.com | 7 Nov 2023
As far as I know, the proposal to add one was determined to need an RFC: https://github.com/rust-lang/rust/pull/65875
Consuming an SQS Event with Lambda and Rust
7 projects | dev.to | 3 Nov 2023
I've been trying to learn Rust for the better part of this year. My curiosity peaked a few years back when I learned the AWS-led Firecracker was developed with the language. And I've continued to want to learn it ever since. Fast-forward and I'm jumping both feet in. That's usually how I work. I must admit that right now, I'm the most noob of noobs, but that's not going to keep me from sharing what I'm up to and what I'm learning. For me, this blog is as much about sharing as it is about learning and communicating to those reading that it's OK to be where you are in your journey. There are no straight lines. Only periods of growth and plateaus. In this article, I'll walk you through consuming an SQS Event with Lambda and Rust.
Toward a TypeScript for C++"
8 projects | news.ycombinator.com | 4 Nov 2023
next year 0.1 will be usable, 1.0 is about 3 years away, sigh, back to my rust fight8 projects | news.ycombinator.com | 4 Nov 2023
The "Dart plan" vs "TypeScript plan" comparison is shown at 1:33:50 in the talk:
> "Dart plan" - Competitive/successor 10x improvement
> New creation
> Limited interop, relies on wrapping/marshaling/thunking...
> Competes with standard (e.g., different modules, different generic constraints)
> Evolves independently of standards committee - far fewer design constraints
> Needs to bootstrap a new ecosystem
> "Typescript plan" - Cooperative/compatible 10x improvement
> Every .js file is a valid .ts file, add 1 class and see benefit
> Lowers to standard .js, 100% seamless compat with all JS libraries
> Cooperates with the standards committee (ECMAScript)
> Brings evolution proposals to standards committee
> Leverages entire existing ecosystem - works with all JS implementations & tools
Carbon is an example of the "Dart plan". Some quotes from Carbon's "Interoperability philosophy and goals" page (my emphasis):
> The C++ interoperability layer of Carbon allows a subset of C++ APIs to be accessed from Carbon code, and similarly a subset of Carbon APIs to be accessed from C++ code.
> The result is that it will often be reasonable to directly expose a C++ data structure to Carbon without converting it to a "native" or "idiomatic" Carbon data structure. Although interfaces may differ, a trivial adapter wrapper should be sufficient.
> There should be support for most idiomatic usage of advanced C++ features. A few examples are templates, overload sets, attributes and ADL.
> Never require bridge code
> Support for C++ exceptions without bridge code
Programming Languages Every Developer Should Watch Out For
3 projects | dev.to | 2 Oct 2023
My (Herb Sutter's) C++ Now 2023 talk is online: “A TypeScript for C++”
4 projects | news.ycombinator.com | 14 Aug 2023
Another interesting C++ successor language:4 projects | news.ycombinator.com | 14 Aug 2023
Rust fact vs. fiction: 5 Insights from Google's Rust journey in 2022
5 projects | news.ycombinator.com | 27 Jun 2023
To put it even more plainly than the others: https://github.com/carbon-language/carbon-lang#project-statu...
> Carbon Language is currently an experimental project. There is no working compiler or toolchain. You can see the demo interpreter for Carbon on compiler-explorer.com.
I cannot answer to any comments because I was blocked for NO REASON in #2071 Thank you jonmeow 👏👏👏, very good job, I hope they pay you good money for your good work 👏
3 projects | /r/programmingcirclejerk | 14 Jun 2023
You don't want to find yourself in the Ministry of Truth's Community Transparency Report. If Carbon shipped an implementation, people might commit some of their attention to that, but when discussion is all there is, you'd better believe that discussion will be audited to the letter.3 projects | /r/programmingcirclejerk | 14 Jun 2023
Is there any ongoing work to introduce Rust-like safety guarantees into C++?
2 projects | /r/cpp | 28 May 2023
How does Elixir stack up to Julia in the future of writing machine-learning software?
3 projects | /r/Julia | 27 May 2023
Carbon at least open sourced (https://github.com/carbon-language/carbon-lang) and can be tested on their experimental compiler w/o sign up. Their ethos and whole approach feels a lot less 'scammy' than Mojo does to me at the moment.
What are some alternatives?
zig - General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
Nim - Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
Odin - Odin Programming Language
Elixir - Elixir is a dynamic, functional language for building scalable and maintainable applications
cppfront - A personal experimental C++ Syntax 2 -> Syntax 1 compiler
Rustup - The Rust toolchain installer
rust-analyzer - A Rust compiler front-end for IDEs [Moved to: https://github.com/rust-lang/rust-analyzer]
go - The Go programming language
mimalloc - mimalloc is a compact general purpose allocator with excellent performance.
scala - Scala 2 compiler and standard library. Bugs at https://github.com/scala/bug; Scala 3 at https://github.com/lampepfl/dotty