I can still push the file on git and it works everywhere else.
324 karma · joined January 26, 2018
I can still push the file on git and it works everywhere else.
Even when you don't care about being cross-platform, you still need to rely on specific routines instead of having the most low level `ut8fopen(buffer, len, mode);`
My point is that I wish we would have a new "standard OS-related API", not even talking about introducing span type or anything, just creating something way more sane and care about moving forward from this point.
If I was about to create my own OS and decided to eliminate null-terminating string, and keep it as tiny and efficient as possible, I would face so many issues because I cannot reuse 99% of the code (related to file API) that already exists, I would need to think how to properly parse arguments from "main" without overhead etc.
So once you have friends all connected parties requires to install Discords. How does that work?
Are your parents friendless, do they use Discord?
You need to do weird string operations, you have certainly a class somewhere that needs to append a zero to then end of a buffer, and exclusively use the class for thw filename. You can't just toss a contiguous number of bytes you to convert it first.
Every single piece of software that need to interact with the file system needs to deal with this.
I'm not asking about a new string type. I'm asking to be able to be free from null terminating string.
You only need to provide a length.
It's 2026, to this date I cannot use standard library/api, to open a file with utf-8 filename without a null terminating string.
When you want to talk to the OS you constantly face the need to had unnecessary overhead (allocation due to string convertion, strlen).
The OS itself does not prevent anything from having those standard "no overhead" API.
However, it's pretty clear that nobody cares to define some new sane interface and nobody care to deprecate old ones.
That would include both API and ABI.
Worth to point out that most of the C compilers are also C++ compilers.
So the point is kind of distorted.
https://www.homburger.ch/de/insights/swiss-voters-approve-ne...!
List of remarks:
> var ints: int[5] = {1, 2, 3, 4, 5};
> var zeros: [int; 5]; // Zero-initialized
The zero initialized array is not intuitive IMO.
> // Bitfields
If it's deterministically packed.
> Tagged unions
Same, is the memory layout deterministic (and optimized)?
> 2 | 3 => print("Two or Three")
Any reason not to use "2 || 3"?
> Traits
What if I want to remove or override the "trait Drawing for Circle" because the original implementation doesn't fit my constraints? As long as traits are not required to be in a totally different module than the struct I will likely never welcome them in a programming language.
Fossil is used for one of the most deployed embeddable database. Not sure we can call it "irrelevant".
I get what your message is saying, however words have meaning, and being hyperbolic does not help anyone when we try to bring nuances.
> Mercurial was a better DVCS [...]
Totally agree.
I've found a more comprehensive documentation here. [1]
At first glance, I would say it's a bit more complex that it should for a "human readable" format.
Unrelated JSON experience:
I worked on a serializer which save/load json files as well as binary file (using a common interface).
From my own use case I found JSON to be restrictive for no benefit (because I don't use it in a Javascript ecosystem)
So I change the json format into something way more lax (optional comma, optional colon, optional quotes, multi line string, comments).
I wish we would stop pretending JSON to be a good human-readable format outside of where it make sense and we would have a standard alternative for those non-json-centric case.
I know a lot of format already exists but none really took off so far.
If I follow your comment, you mean that he could have use a non-static global variable instead and avoid mentioning "static" keyword afterward?
In a naive way, when rich entities are interested in a limited resource it's basically over.
Somehow I can see a parallel with the housing crisis where the price go higher and higher.
I can't see both of them ending anytime soon unless there is a major paradigm shift in our life.
I'm not sure it would be better than just reporting people with undesired behavior.
I feel like it's important to mention that WebGPU is a unified API on top of whatever is native to the machine (DirectX, Vulkan or Metal).
Vulkan is not entirely cross-platform, but it's still way "more" cross-platform than DirectX by your own point of view.
DirectX: - Windows - Xbox
Vulkan: - Linux - Android - Windows - Nintendo Switch - Nintendo Switch 2
Metal: - MacOS - iOS
People pointing fingers to "outdated" languages for not having some of the most trendy constructs.
The pipe operator is definitely one of the feature that create more ways to do the same thing while providing unclear benefit.
Never in my life I was in a situation like "with the pipe operator this I would have saved me hours of debugging/reading/creating code".
With some luck it would be easy to upgrade ourselves.
Any non-trivial thing to do is a pain to figure out if the documentation is not extensive enough.
I really love C#, but msbuild is one of the weak links to me, almost everything else is a joy to use.
Now I feel like crap seeing how amazing this project is.
From my experience it had the exact same behavior as the "Reading mode" feature from browsers. Which was not great overall.
No clue if there is something better than that though.
No one said that. But you should fool yourself saying that absence of evidence is evidence of absence.
Here is your own quote:
> I have seen zero evidence that any of these games are harmful.
If cigarette was banned from the beginning, we would still see people getting mad without much evidence.
The truth is the evidence is coming half a century after when everyone got cancer.
Precautionary principle should always prevail.
That's why we just don't go full GMO, and you would still not wait for any proof that "it's harmless".
You also don't use a random pesticide, unless you have a full proof that's it's harmless.
Additionally, without cigarette, without GMO and without pesticide humanity would still be fine, and maybe better without (if we stick with the cigarette).
TL;DR: You actually need a proof, but it's a proof that it's harmless and not the other way around.
The website [0] is pretty clear that the content of the game can go into a SD card, but the game save resides only in the internal memory.
You can find some ways to get them with some modding but nothing official.
[0] https://www.nintendo.com/ph/support/switch/data_management/i...