HN user

ptato

219 karma
Posts0
Comments98
View on HN
No posts found.

You’re not exploring something. Asking for something. Acting on something. Why? Because it’s a bad idea.

No, it's because it is hard. If it is a bad idea, why would I want to do it?

I've found enough Firefox-only bugs when doing things through spanish government sites that I started using Chrome for them preemptively.

Zig build system 3 years ago

Zig embeds clang to compile C code. This doesn't add a new dependency since Zig already depends on LLVM. If there is a future where the self-hosted Zig backend is good enough to not depend on LLVM anymore, there might be a reason to use a C compiler written in Zig (possibly https://github.com/Vexu/arocc)

Why Janet? 3 years ago

Yeah... he says you can learn the language in an afternoon, but his book is so long-winded... I just want a short intro so that I can start writing programs.

Zig Quirks 3 years ago

Built-in names are essentially reserved words, and there are dozens of them. The @ prefix ensures you don't step on user's variable names, and that you can add new built-ins without making breaking changes.

Zig Quirks 3 years ago

Please don't do "const Self = @This();" if the type isn't generic. It is pointless, redundant, ugly.

What issues could public struct fields have caused?

Zig Quirks 3 years ago

It isn't possible, compiler will complain about "actual" being an undeclared identifier. The function arguments are declared in order.

Langoguessr 4 years ago

A good side effect of this game is that you can find great songs from cultures that aren't as well represented in popular culture.

Elon claimed he would not “ban” the account. And he has not done so. They were suspended.

So the argument is that the word he used is different?

from only a glance and without having ever used nim, it seems to be more abstracted from the machine, whereas zig is closer. nim code should be shorter, nicer, closer to ideal pseudocode. safer too, i imagine. zig code should be more explicit, and if you do it right, more efficient in time and memory.

zig also has a philosophy of, quoted from https://ziglang.org: "No hidden control flow. No hidden memory allocations. No preprocessor, no macros.". this also should make zig code more explicit, but probably more verbose too.

i could also be completely wrong. like i said, i know nothing of nim other than what the homepage says. don't listen to me.

Advertising is not meant to be educational, it's meant to make you aware the product exists. Of course you're don't have to trust what the company is saying, but now you know their product exists and what it does. If it was something you were looking for, you can now research it and ask for opinion.

Modal editing in VS Code is not good enough. I still use it for certain things. Just not the bulk of my programming.

When helix is more ready, I will probably switch to it.