Hacker Newsnew | past | comments | ask | show | jobs | submit | Ygg2's commentslogin

Can't import repositories starting with uppercase :?

Did you check if I name my project 朽木?


According to legends Pythagoreans tried to surpress existence of irrational numbers because they couldn't be expressed as ratio of natural numbers

Supposedly even drowned their member that divulged their existence.


https://xkcd.com/605/

No one can predict the future least of all humble extrapolation line.


Everything we do is about anticipation, from cooking to walking to driving. You maybe thinking 100% or nothing

Yeah, but those (cooking, walking) rely on prior experiences.

We don't have prior experiences that can tell us with certainty that LLMs will or will not replace humans entirely.

Projecting that LLMs will become a singularity is the same as saying processor's clock speed will double every year. They do double, they don't.

Sun will always rise in the east until it engulfs us.


I don't get how you dont't get. It links about memory safety (with a link towards an extremely biased article in Rust's favor) and a link to design to correctness (that leads to Zig project).

There is a lot to dislike about this paragraph:

      It doesn’t matter that the language you use is memory-safe, if you didn’t design for correctness or have no process that will eventually lead you to fixing all bugs.
 
Hang on. If I want to prevent all bugs, shouldn't memory safe make your correctness much easier to achieve? And what is this about fixing all bugs? You mean proofs? The stuff that Zig doesn't aim to do?

And no, asserts don't fix all bugs, they just guarantee some of your invariants are held at best, used in test at worst.


Not if choosing statically checked memory safety sacrifices for correctness where it is a local optimum

If you sacrifice memory safety for correctness, that just means it's not correct. If safety is crucial, it must be safe under all inputs, and if there are data races.

It's a bit like saying, "Yeah, our system is safe, but if there are two threads racing or use after free somewhere, then all bets are off."


you do not sacrifice memory safety. you sacrifice a compiler ensuring that code is memory safe by it enforcing one quite opinionated approach to it: RAII and lifetime analysis.

you seem to think there is one path to memory safety. there is not. unsurprisingly, some programmers may need different tools when working with a different set of requirements.


If you're using Zig to write correct by design code you do.

Or at least you have to add memory safety as another extra step on your road to correct by design.

I'm aware of paths to memory safety, but they boil down to: pervasive GC, annoying compiler, and praying you got it right.

If you write your proof in GC language than translate it to C, that's just a mix of pervasive GC and praying.


If I wire my autocomplete to launch nukes, there are definitely reasons to worry.

It's not just an ethical problem.


I'd trust Claude more with nuclear codes than the current US commander in chief

Everybody knows Trump is just a figurehead. The only possible explanation for the current external policy is that America is being run by Grok.

Well. Not that shocked.

Still no 1.0 version though. So technically it's year 0.

"technically" usually means something like "strictly", not "by a completely different metric". work takes time. zig has had a decade of work put into it.

Technically means according to a strict, often legal definition.

The strict definition being we don't count developments that happened before version 1.

Like when we talk about Rust, we don't mention the virtual threads or GC or the @ symbol for GC references. Even though those all happened during its development.


and when people talk about zig, they don't usually mention that zig used to have goto, casting syntax like `T(val)`, a rule that said you couldn't pass containers by value, language-level async, some truly awful syntax for what is now `try` and other operators, etc. both languages took time and work to realize that these features were not for them. very strange to deny that.

also, nitpick: they said zig has been around for ten years. this is, strictly, correct. the zig project has existed for ten years, just like how rust has existed for about 20, now. a project still exists if it is pre-1.0. nobody was talking about versions before you.


> Who is the customer when the customer is the thing you’ve eliminated?

Seeing how US economy is K-shaped, the answer is the rich. Assuming of course the service is right.


how do we call it when there is only top bar of K-shape?

Y shape of course.

Go also has one glaring disadvantage. GC. Assuming you're in the cloud.

It's easy to write code that trivially eats memory. Plus any resources spent on it, are resources not spent on other cloud provider things.


Usually the same guy doesn't get paid for developing code, bug bounty and fixing the code.

It leads to corruption. To paraphrase Dilbert "I'm going to code myself a car."


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: