633 karma · joined Dec 11, 2021 (4y ago) · 210 submissions
1.
Ask HN: How to study for system design that doesn't include front end/back end?
38 points · by 3a2d29 · 1y ago · 24 comments
2.
Ask HN: System Design Resources espcially for unusual system design?
2 points · by 3a2d29 · 1y ago · 2 comments
comment 1y ago · link · parent
If this is true, why not write everything in C++?
Javscript includes so many footguns that people know are bad (see the billion of examples of different types being added and getting random answers). Every langauge has some difficult parts, pretending that means any amount is fine is crazy. Javascript has earned its reputation.
comment 1y ago · link · parent
We know the crimes against humanity are bad and subordinates are guilty if they do them. We don;t just let everyone off free except the head of state.
Not to see that united healtcare (as bad as they are) are anywhere near that, but I am saying that its clear that we, as a society, already hold all people complicit in evil as guilty. Not just the person at the top.
comment 1y ago · link · parent
Those same people say it will hit 200k inevitably. I think all their reasoning is wrong, but yet they have been right. Curious what HN's opinons are.
7.
Ask HN: Favorite scripting language? (non-Python)
5 points · by 3a2d29 · 1y ago · 4 comments
comment 2y ago · link · parent
I say this as someone who loves rust and zig, but these types of statements make me feel like HN is way out of touch with the industry. New products are constantly made in C++. That doesn't make it good (and i don't think companies building in C++ are making the best choices), but to say that no big tech company is writing any new code in C++ is just not correct. I see this happen every day at my job.
I also would definitely say more C++ code is written every day over C, although I'll say, I am not as familiar with the embedded world, but I know one HFT/Gaming/Robotics firm will have millions of new C++ lines every day.
comment 3y ago · link · parent
I assume the more unsafe rust used, the more the CVE numbers will appear like C and C++. People like to say unsafe means "I checked this and this is fine, compiler" and isn't a bad thing but I feel that's inaccurate since the whole point of rust is that people struggle to write safe code even when they are really checking. I feel unsafe rust is way more "I really hope this is right, but I have minimized it to just this area out of necessity, since it likely isn't."
I would like to see how much CVEs go down over time. The fact sudo is being rewritten suggests that even after long periods of use, security issues popping up is still a common-ish problem?
comment 3y ago · link · parent
I agree with this, but I also think this is such a “peace time” opinion.
If, for example, the nazis were at risk of invading the American homeland, would you want to wait until they are here and volunteers start coming in?
Again, I agree the draft is immoral, but so is war.
EDIT: for an even better example you should look up what the Japanese did to most civilians in WWII and really ask yourself if a draft to avoid that at home is bad.
comment 3y ago · link · parent
White college kid is caught with intent-to-distribute amount of weed, jury allows them to walk away even though they are guilty.
Black kid is caught with intent-to-distribute amount of weed, jury decides to enforce jail time this time.
I mean what harm would it do?
comment 3y ago · link · parent
The reason people try to discourage “jury nullification” is because if a law is unjust, it should be removed, not be in place for certain juries to give _some_ people passes.
The law should be the law. If you allow juries to decide to give “innocent” verdicts even if someone broke it, then congrats you have made a system where the jury gets to decide randomly if they want to enforce something.
comment 3y ago · link · parent
Granted though it means what you meant by "it". I read that as "a systems programming language", but if you specifically meant Nim then I think it can enable a GC.
comment 4y ago · link · parent
There are more systems programming jobs (where GC is not usable) today than there was years ago. The percentage of all programming jobs that they make up is smaller, but the absolute number is bigger: https://www.toptal.com/c/after-all-these-years-the-world-is-...
Not saying the original poster is this type of person, but I actually work with a lot of recent bootcamp grads and you be surprised how many think C is totally not used anymore. To many of them, the whole world is written in python and JavaScript.
24.
Ask HN: Signs that app you are starting will not be successful?
6 points · by 3a2d29 · 4y ago · 3 comments
25.
Ask HN: What are some signs that an early startup is gonna fail?
1 points · by 3a2d29 · 4y ago · 2 comments
comment 4y ago · link · parent
And FFI? As in the Unix extensions? That’s the operating systems calls, not the language. By that logic, python is as dangerous as C++.
It’s crazy how so many people on this thread say rust is the only choice because of memory safety, and are now bending over backwards trying to claim memory safety is no big deal. So much so FFI is now being brought up smh.
comment 4y ago · link · parent
So bam, you just introduced memory safety issues into your web API. This is like a C++ dev using C++ and causing memory issues unnecessarily just because they don’t want to use a safe language.
And Elixir has concurrency and memory safety and it’s guaranteed, so no package you import can violate it. Unlike rust, where you can use safe rust and think there’s no violation, but then use a crate and suddenly have memory unsafety and concurrency violations.
These crates worries are wayyy better than normal C++, but they are terrible compared to any actually safe language.
comment 4y ago · link · parent
Many memory safety violations have been discovered in rust crates: https://www.infoq.com/news/2021/11/rudra-rust-safety/
Maybe I wrong on that, but if it can’t guarantee crate safety, then it doesn’t really do anything.
comment 4y ago · link · parent
There were over 200 memory safety violations discovered in rust crates: https://www.infoq.com/news/2021/11/rudra-rust-safety/
Elixir for example, is very safe and guarantees more safety than rust.