I would say "this could be technically better" vs. "this is already economically better than anything else"
1,478 karma · joined August 14, 2022
I would say "this could be technically better" vs. "this is already economically better than anything else"
In such a simple loop where you access one field in each iteration, yes. If you happen to access more fields, or the same field in different arrays, then you have more pointers to increment.
I see a value in defaulting to immutable unless explicitly stated, like in Rust. But having to choose between two different 3-letter words, like let and var, what stops one from always using var?
Coming to Jaithon in particular, I also wonder what the scope of immutability is, when it allows the following:
let names:list[str]=[]
names.push("whatever")
If a function takes a list[str] as input, how do I signal that it does or does not modify the list? And if it does, will it only shuffle the elements (e.g. sort) or will it also change the strings themselves (e.g. uppercase all elements)?Const-ness is a complex topic, with more cases than can be captured by two keywords at variable definition.
Since when does <p> requires a closing tag? Note that TFA lists this among "spec violations" and not merely "best practices".
You can say the same about detecting grammatical mistakes: it's nice to warn the author, but please send them a private message, don't pollute the comments section.
> I can't see why the calling convention could matter.
The "could matter" was understood as "would influence TCO" and so the rest of the thread was devoted to explain how the two are connected, while you meant "should be fixed and not be changed at the compiler's whims".
And you are right, of course: if a function is static and its address is never taken, the compiler can choose whatever calling strategy it wants, possibly one that facilitates TCO.
Comment about the content, not the form.
The whole thread is about how the traditional calling convention makes it difficult to implement TCO in C. Functions with different arity having different stack layout is indeed one of the roadblocks, so I think we agree here, no?
Clue: it's never warranted.
Nobody wants to hear it. Even when it's true. Even when it's evident (actually less so when it's evident).
I had never heard this word. It's the second time in a row that I encounter something unknown to me that is characterized as being universal. Curiously enough, both cases were related to Japan. So either I belong in a minority who ignores well-known elements of that culture, or someone overestimates how widespread such elements actually are.
It's like someone recommending a restaurant saying "tastes good", with no details to back up such assertion.
Yes, they got small-caps spacing right: hardly amazing. And what about the "feeling" the article talks about? Where is it and where does it come from?
Practically, to make a substantial profit, what you sell must be more worthy than something you can also download for free. So you must sell an enhanced version of the original software. And that is what the GPL wants you to give back and not keep for yourself.
Now, please reread your post replacing "people" with "corporations" and check if it still sounds reasonable.
There is a trait in human nature that pushes us to share our knowledge. But we would like this sharing to be mutual.
When I publish a piece of software for free, I would like others to read it, comment it, give me suggestions on how to make it better, and the whole community can benefit from the process.
Unfortunately, someone might instead take it, start making profit out of it, and never giving anything back to me or the community.
As a device to get the former effect and avoid the latter, a sort of "contract" was created that mimicks a copyright licence. It is called copyleft and says that you can do whatever you want with my work except profit.
Now, someone might say that stopping a third party from profiting out of something they have not made is correct, someone might say it nevertheless means removing a freedom from them.
Whose side are you on?
The Motorola 68000 was a 32-bit processor. What Commodore Amiga was 16 bits?
But, seriously, of course "web" requires internet and a computer and an operating system. But since when "web" also means Node.js?
If a web component is advertized as dependency free, I expect something that I can include in a <script> tag and it works. Am I wrong?
I just wouldn't start off with bold sentences as
> SIMD can be simple to understand
and
> writing SIMD is just about as easy as a for loop
and then the first example requires 12 lines to replace one line of scalar code.
Be honest and say SIMD is hard but the results are worth it!
(Another nitpick: if this article is for newbies, don't use SIMD-only words and concpts before explaining them. Step 5 is good: scalar tails are mentioned and described. Step 1 is bad: nobody is supposed to know what broadcast mean.)
I'm not convinced. This rule holds only if the two "things" are related. But one can have a passion for serving the best quality coffee, and be a total wreck in graphic arts.
Additionally the use of "--" is not what everybody expects: here it is used to introduce one argument, the command, while it's usually meant to introduce multiple arguments without worrying if they have a leading "-".
A possible revised syntax with command as the first argument followed by a list of globs optionally introduced by "--" would allow to enumerate all files with a leading "-", which the current syntax cannot:
enumerate 'whatever {}' -- '-*'
I'm assuming "-f" for simplicity, but the same reasoning holds for "-L" too.You mean, except for the spurious :w here and there...