alternate joke:
what they say: no dependencies
what they mean: over half of the project's line count by volume was written by Sean Barrett
alternate joke:
what they say: no dependencies
what they mean: over half of the project's line count by volume was written by Sean Barrett
@lritter zig does not have any optimization passes currently. It's also designed with human maintenance in mind with no regards to being the target of machine generation.
what's the problem statement vs the C backend? or vs llvm bitcode?
@lritter interesting perspective. I would rather deal with the lack of C ABI support in LLVM bitcode than deal with C language limitations.
anyway, given this, maybe targeting zig isn't such an awful idea after all since it does solve the C ABI problem and has well-defined semantics for various things that are compiler extensions in C, such as arbitrary-width integers, all float sizes on all targets, SIMD, and various other things.
Inside of you are two wolves:
One of them wants to be grammatically correct and put the punctuation inside "the quoted text."
The other one has been programming for 25 years and is howling at the top of its lungs, "I demand proper nesting!".
isn't this exactly what you wanted all along? people to get something out of your ramblings on mastodon about SSAT and SPIR-V backend? 😇
when a C/C++ programmer says "no dependencies" it means they have copied unknown versions of various dependencies into a particular subdirectory of their project.
you can learn a lot about the author's personality by what directory name they choose.
"vendor" -> web developer adjacent
"deps" -> uncomfortably self-aware
"thirdparty" -> unskilled grifter
"common" -> sneaky
@segfault https://ziglang.org/documentation/0.13.0/#Non-exhaustive-enum
@b0rk one trick as an application programmer to avoid this is to always make sure the hide/show are provided in the same buffer and sent in the same syscall. This way, the process being killed for whatever reason will not leave the terminal in a bad state
I think it's an actual conspiracy that American media outlets coverage of politics focuses on pointless, spicy exchanges between political figures, rather than focusing on actual policy issues such as basic income, Gaza, or the climate.
Most of the popular media is owned by politically motivated individuals. They ensure coverage is distracting from the ultimate issue of wealth distribution.
"orange man bad" is a little circus performance to divert energy from actual change we desperately need.
Lately my Zig code has started to look like this in all my projects
@joethephish I understand the appeal to such a thing, however, the flexibility of having it also be a namespace is extremely useful, as you can see from the two examples at the end
Common intermediate programmer mistake: trying to use the same abstraction for inputting a given thing, vs outputting it.
Advanced programmers know these are fundamentally different tasks deserving independent abstractions.
Example: JSON
For outputting, there's no value in constructing a bunch of pointless hash maps in memory. Just stream the data out with some basic API to ensure correct syntax and nesting.
making a mental note to stop apologizing for not having an instagram account and start saying, "huh? why do you have a instagram account? you know that's owned by facebook right?"
this is what I get for writing this script in bash instead of a real programming language
https://github.com/ziglang/www.ziglang.org/commit/faab7e1bc77665cdbdfa83805315eced7aa750c3 🤦
restoring from a backup now
@docteurklein rest assured, the next modification to this file will be to delete it
I love this take:
"Don't you find it infuriating when lawyers and accountants fail to clarify how their respective domains work, making them unavoidable intermediaries of systems that in theory you should be able to navigate by yourself?
Whenever we fail to make simple things easy in software engineering, and webdev especially, we are failing society in the exact same way."
@cxbyte do you have any idea how good it feels to drop the libc++.so dependency? it's better than sex
@cxbyte less because of lack of interop and more because c++ is crap and I don't want a libc++ dependency, and I want to be able to use a simpler linker implementation.
if I thought it was valuable to interop with c++ code then I would have made it work.
the worst zig take ever is "zig is a c replacement while XYZ is a c++ replacement". I see this so much it makes my brain numb.
I literally started zig out of frustration with C++
Lead developer & president of Zig Software Foundation. Jack of all trades, master of one.
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.