news
Programming Leftovers
-
Soylent News ☛ Forget the politics. Let's get back to our roots.
Let's talk about fooling around with hand-written lexers in C. It's part of my long running hobby language project.
I decided to go for broke and allow nested C style comments, shell style comments and C++ style comments, and for the C style comments to be able to nest and wrap those, kind of like what you'd get with #if 0, so you don't need #if 0.
-
Python
-
John D Cook ☛ The code that didn’t break
The log, log2, and log10 functions have some code inside that handles large integers specially. It doesn’t simply convert the integers to floats before taking the logarithm. If it did, it would overflow. If you replace math with numpy above, the code will fail. NumPy’s implementation of logarithms is more what I would expect.
While playing around with this I also noticed that you can define floats larger than the largest float without warnings.
-
-
Rust
-
Rust Weekly Updates ☛ This Week In Rust: This Week in Rust 663
Hello and welcome to another issue of This Week in Rust!
-
LWN ☛ Rust Coreutils 0.10 released
Version 0.10 of the uutils project's Rust Coreutils has been released. This release focused on compatibility with the GNU Core Utilities suite, with Rust Coreutils now passing 645 of 690 tests, up from 625 with version 0.9.0. Notable changes in this release include addition of the mv --exchange option, an OpenSSL backend for checksum utilities, applying SELinux labels at creation when using mkdir, mkfifo, and mknod, as well as a number of performance and security improvements.
-