Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rujuladanh
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
rujuladanh
8y ago
Do you know of any single person that has written a C++ transpiler into another language from scratch?
32.
▲
by
rujuladanh
8y ago
That does not make sense. Either you support both because you can translate most C++, or you don't support any (modulo bugs). Maybe you are hardcoding detection of a set of known types by hand?
33.
▲
by
rujuladanh
8y ago
Any non-trivial C++ program typically uses the STL or a similar library, which requires the full expressiveness of C++ to be implemented. So, no, I don't think you have done even a tiny fraction of what C++ entails.
34.
▲
by
rujuladanh
8y ago
You claim your language will support it before having it ready. So C++ appears to be easy enough for you, in order to be able to predict such a feature.
35.
▲
by
rujuladanh
8y ago
A car accelerates way faster. Do you see cars with huge counterweights? And no, it is not free to deploy by any means. Any moving, huge, swinging parts will cause expensive problems. Remember your hard disks.
36.
▲
by
rujuladanh
8y ago
The last 10% is usually the actual 90%. Claims like C++ translation is definitely one of those 90% things that may look easy to some people until you actually try to do it.
37.
▲
by
rujuladanh
8y ago
The GitHub issue about the playground says C++ translation is "not coming soon". So the claimed C/C++ translation looks misleading.
38.
▲
by
rujuladanh
8y ago
That is simply impossible. You are measuring the wrong thing or a case where rg can skip most files.
39.
▲
by
rujuladanh
8y ago
All SSDs are that fast (and way faster). Nothing special on Macbook ones.
40.
▲
by
rujuladanh
8y ago
No. If a system MUST work, then there have to be no bugs at all. Removing a class is useless. You have to remove all bugs. You are talking about systems that SHOULD work, but aren’t required to always work. Typically, safety-critical softwa
41.
▲
by
rujuladanh
8y ago
If you can’t discern the joke, the joke isn’t for you to begin with; so it doesn’t matter.
42.
▲
by
rujuladanh
8y ago
MCAS wasn’t introduced to simplify pilots’ life. It was to make the plane way cheaper overall by avoiding the plane being a different one according to regulations. Regulations that were there to make planes safer to begin with by making sur
43.
▲
by
rujuladanh
8y ago
> people should test out Why should they, though? The fault here is on its management team. Users and clients lost their trust, for good reasons. I never used MongoDB, but I know people that got in real trouble due to it.
44.
▲
by
rujuladanh
8y ago
No, Rust isn't . Maybe you should read a bit more on its docs [1]. I quote: However Rust does not prevent general race conditions. [1] https://doc.rust-lang.org/nomicon/races.html
45.
▲
by
rujuladanh
8y ago
If you have almost no guarantees to provide, almost any solution would have worked. In other words, you claim it worked for years, but anything would if you can lose all data, reboot it, have no real-time requirements, etc. In summary, it i
46.
▲
by
rujuladanh
8y ago
Rust isn't safe from race conditions. It is not a guarantee. It is free from memory errors, that is true, though.
47.
▲
by
rujuladanh
8y ago
Those are a only a subset of the possible negative tests, and the ones you shouldn't be writing (if you do, simply switch to another language).
48.
▲
by
rujuladanh
8y ago
There is little point to introduce a GC in Rust. If you don't mind a GC, you have nicer languages out there.
49.
▲
by
rujuladanh
8y ago
Neither Rust nor C++ eliminate logic bugs (and no language can do that). If you are writing code that must work, you should be either formally prove the system (if feasible) or have a huge test suite covering everything.
50.
▲
by
rujuladanh
8y ago
LOC is a very bad estimator of complexity. There isn't a need write 100K LOC to figure out "the problem space" either.
51.
▲
by
rujuladanh
8y ago
The fact that languages have a way to run a command on the shell does not mean you should. Actually, you never should, unless you have a very, very good reason. Even without taking into account encoding issues, you still shouldn't.
52.
▲
by
rujuladanh
8y ago
They aren’t competitive in the sense of being an e-sport with ranking/ELO, competitions, prizes, leagues, paid salaries, etc. Yes, they have some prizes in some events with popular players, but they aren’t really competitive in the sam
53.
▲
by
rujuladanh
8y ago
What? Of course there is somethig wrong with unstable airframes. This is not a figther jet where it may make sense to maximize maneuverability, it is a bloody airliner, where stability and reliability should have been the design goals.
54.
▲
by
rujuladanh
8y ago
Learning any of C, C++, Rust or other systems languages takes way, way more than a week or a month. For C, the simplest of the three, it is usually rated at 3 months. What happens is that if you are already proficient in one of them, one of
55.
▲
by
rujuladanh
8y ago
(Continued...) It is not realistic either to ask everyone and every company to rewrite all their C/C++ code in Rust. Even if it were financially doable and a rewrite were to happen, in many cases it would simply be best to move to a la
56.
▲
by
rujuladanh
8y ago
The article is arguing that Rust somehow has better capabilities than C++ to fight memory-related bugs, but the example vulnerability given is not something Rust can solve nor is more powerful than C++ in its “bug catching” capabilities reg