https://www.unix.com/man-page/v7/1/units/
$ units You have: 1 foot candle You want: lumens meter * 0.310896 / 3.2165097
160 karma · joined November 14, 2022
https://www.unix.com/man-page/v7/1/units/
$ units You have: 1 foot candle You want: lumens meter * 0.310896 / 3.2165097
I decided to see if I could replicated it in zig. I could, with caveats.
Plain ascii text output is a relic of previous century; the domain of the neckbeard!
(spoiler) I use zig SIMD features to make it faster than GNU cmp.
Keeping the other phone for banking only.
Either no online access thru a website or requiring an app on your phone as part of the login process (which amounts to the same thing, no phone app, no banking).
I briefly describe how wrapping C libraries works in zig and provide a complete (single file) zig wrapper for pcre2.
I could. Here it is...
No other profession works for free. On the rare occasions they do, they expect and receive massive social status boosts.
What can be done with comptime and how does it compare to Lisp and Nim?
It has a killer feature: meta-programming.
Here I describe how I implemented a html templating system using Nim meta-programming.
> Any open source language could do the same without massive investment (many have). What I meant by this was wrapping other open source libraries like libsodium etc. rather than implementing crypto libraries from scratch. I, wrongly, assumed golang might also be doing that.
It is true I have no experience implementing cryptographic libraries.
Terribly sorry about that. I've moved you into the list. It's been a long time now but I really did like D and its meta-programming features.
We could have C# 30 years before we did if it weren't for microsoft.
If you think this is insane or don't understand the viewpoint, I refer you to the fable of the wolf and the dog. https://fablesofaesop.com/the-dog-and-the-wolf.html
I've added Vale to my blog post. It looks very interesting.
Congratulations on taking a stand for what you believe in.
Most of the corporations were built on free languages and ecosystems which existed before they did.
The problem is not only that the tool connects to the networks, but who is behind the tool. Google is a company whose business is collecting all the information on people it can. I don't think those in control of python/pip have the same incentives.
Maybe we overestimate how much corporate backing is required to make a language a success. After all we had successful languages and ecosystems long before any corporations became interested in funding such things.
You mention golang's crypto. Is it true that all that code is native to the go project or are they mostly just wrapping other open source libraries which have been created by 3rd parties? Any open source language could do the same without massive investment (many have).
When your compiler/editor didn't call back to some corporation every time you compiled code?
When our package managers weren't linked to data aggregators watching our every move?
When we used free tools to build free software.
My end game is to get people to write
int const delta = (cp[IPOPT_OLEN] - 1);
instead of repeating expressions like this: (cp[IPOPT_OLEN] - 1) and adding variants elsewhere like this: cp[IPOPT_OLEN]. It's confusing and causes bugs. Naming things helps and costs nothing.However, my point still stands that extracting the complex expression as delta would have helped and possibly avoided the original bug.
int const delta = (cp[IPOPT_OLEN] - 1);
Further proof is that the original author first commited a broken fix. Again this was caused by the confusion between delta and delta-1, which would have been clear had delta been explicitly named.This sort of code is just begging to be misunderstood.
- if (cp[IPOPT_OLEN] > 0 && cp[IPOPT_OLEN] < hlen) {
+ if (cp[IPOPT_OLEN] > 0 && (cp[IPOPT_OLEN] - 1) <= hlen) {
I've explained it here: https://blog.deckc.hair/2022-12-11-incorrect-bug-fix-for-24y...
In brief (cp[IPOPT_OLEN] - 1) is the delta, not (cp[IPOPT_OLEN]); according to the original code. (I don't pretend to know where the original -1 comes from).
This means that the IF-statement check is incorrect.
Honk is a Mastodon alternative. It is much simpler to install on your own server.
In this post I outline the reasons why the people who nitpick about the avatar image system are wrong.
I also show how a misguided user might switch to normal image avatars with a simple code patch. I only do this so that you might avoid being tempted to perform such a corrupting change yourself.