Programming Leftovers
-
My weekly report on email | daniel.haxx.se
Starting this week, you can subscribe to my weekly report and receive it as an email. This is the brief weekly summary of my past week that I have been writing and making available for over a year already. It sums up what I have been doing recently and what I plan to do next.
Topics in the reports typically involve a lot of curl, libcurl, HTTP, protocols, standards, networking and related open source stuff.
-
Exploratory DataXray Analysis (EDXA)
Do you know how long EDA (exploratory data analysis) used to take me? Not hours, not days… A full week! Listen, you don’t know how good you have it. With this new R package I’m about to show you (plus one BONUS hack), you’ll cut your EDA time into 5 minutes. Here’s how.
-
Lottery Prediction-Comparison between Statistics and Luck
Lottery Prediction-Comparison between Statistics and Luck, statistics and luck all go hand in hand.
-
Dirk Eddelbuettel: RcppTOML 0.2.0: TOML 1.0.0 rewrite with toml++
A few years since the last release in late 2020, the RcppTOML package is now back with a new and shiny CRAN release 0.2.0. It is now based on the wonderful toml++ C++17 library by Mark Gillard and gets us (at long last!) full TOML v1.0.0 compliance for use with R.
[...]
This package is a rewrite of the internals interfacing the library, and updates the package to using toml++ and C++17. The R interface is unchanged, and a full run of reverse dependencies passed. This involved finding one sole test failure which turned to have been driven by a non-conforming TOML input file which Jianfeng Li kindly fixed at the source making his (extensive) set of tests in package configr pass too. The actual rewrite was mostly done in a one-off repo RcppTomlPlusPlus which can now be considered frozen.
-
Thinking inside the box
Another quick update to the still new-ish package spdl is now om CRAN, and in Debian. The key focus of spdl is a offering the same interface from both R and C++ for logging by relying on spdlog via my RcppSpdlog package.
This release add support for the stopwatch() facility. One can now instantiate such an object, and referencing it in a log message shows the elapsed time. No more, no less, and it works the same way in R and C++.
-
Dirk Eddelbuettel: RVowpalWabbit 0.0.18: Maintenance
A new maintenance release, now at version 0.0.18, of the RVowpalWabbit package arrived on CRAN. It improves several sprintf() calls by changing them to snprintf() (though there is a remaining one creeping in from a linked-to library).
As noted before, there is a newer package rvw based on the excellent GSoC 2018 and beyond work by Ivan Pavlov (mentored by James and myself) so if you are into VowpalWabbit from R go check it out.
-
Dirk Eddelbuettel: RcppSpdlog 0.0.12 on CRAN: Added Stopwatch
Version 0.0.12 of RcppSpdlog is now on CRAN and in Debian. RcppSpdlog bundles spdlog, a wonderful header-only C++ logging library with all the bells and whistles you would want that was written by Gabi Melman, and also includes fmt by Victor Zverovich.
This release adds support for the stopwatch object, a simple container around a std::chrono object. It makes (simple) time measurements of routines and code segments trivially easy. Instantiate a stopwatch object, and ‘formatting’ it in a logging string displays elapsed time. And given that the whole mojo of RcppSpdlog (and its sibbling package spdl) is to make use easy in both R and C++ we can do this nicely and consistently in both languages. The vignette has an added section with a concrete example.
-
Maker Feather AIoT S3: an ESP32-S3 board programmable with
Cytron Make Feather AIoT S3 is an ESP32-S3 board compatible with the Adafruit Feather form factor and suitable for makers and STEM education with features like LEDs for GPIOs, a buzzer, expansion headers and connectors, and support for CircuitPython & Arduino.