Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kccqzy
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
40 ms
·
961.
▲
by
kccqzy
1y ago
This is only the case when the language does not distinguish between methods that can be overridden versus those that cannot. C++ gives you the keyword "virtual" to put in front of each member function that you want to opt into th
962.
▲
by
kccqzy
1y ago
Every language that permits diamond inheritance causes the devs who dare to use this feature at least some nightmare. It's not a C++ issue.
963.
▲
by
kccqzy
1y ago
Yeah the fact that the congestion control algorithm isn’t part of the wire protocol is very ahead of its time and gave the protocol flexibility that’s much needed in retrospective. OTOH a lot of college courses about TCP don’t really emphas
964.
▲
by
kccqzy
1y ago
Rust is very advanced, with things like higher-ranked trait bounds ( https://doc.rust-lang.org/nomicon/hrtb.html ) and generic associated types ( https://www.ncameron.org/rfcs/1598 ) that are difficul
965.
▲
by
kccqzy
1y ago
Agree with a lot of what you said. Definitely to a lot of corporations C++17 was the peak of the language. Apple prioritized Swift afterwards and Google started doing Carbon and begrudgingly accepted Rust. First time hearing about the embed
966.
▲
by
kccqzy
1y ago
Yes they are type synonym families. And yes they are quite similar to functional dependencies because it is conceived as an alternative to functional dependencies but it expresses the programmer’s intent more clearly.
967.
▲
by
kccqzy
1y ago
> what I hear is a group of scared developers who have been able to coast on their knowledge base for years or even decades That’s certainly not the case for C++. The C++ language has evolved quickly, with a release every three years or
968.
▲
by
kccqzy
1y ago
Any Rust code longer than ~20 lines uses Rust iterators which use type families. The Iterator trait in Rust has an associated type called Item. This is the innovation here. Classic type classes can only contain functions not types. It was i
969.
▲
by
kccqzy
1y ago
I’m merely describing the infrastructure that at least partially led to the success of distributed data processing. Also 400Gbps NIC isn’t a Google exclusive. Other clouds and on-premise DCs could buy them from Broadcom or other vendors.
970.
▲
by
kccqzy
1y ago
10Gbps only? At Google where this type of processing would automatically be distributed, machines had 400Gbps NICs, not to mention other innovations like better TCP congestion control algorithms. No wonder people are tired of distributed co
971.
▲
by
kccqzy
1y ago
One of Rust’s biggest and best features is its trait system inspired by Haskell’s type classes. It is the right abstraction for most use cases that in 1990 were implemented by OOP and inheritance. Now the basics of type classes were invente
972.
▲
by
kccqzy
1y ago
An earlier Google blog post from the same series (link in the first sentence) pointed out why: new code tend to have more vulnerabilities than established code. So it makes more sense to write new code in Rust than to rewrite old code in Ru
973.
▲
by
kccqzy
1y ago
That sounds like an excellent idea. However I think rail transport depends more heavily on quality infrastructure. If a state doesn’t maintain its roads well and allow potholes to develop, it is probably rare for that to cause a fatal accid
974.
▲
by
kccqzy
1y ago
Consider whether your natural right argument might not stand in several other countries’ legal systems. The era of United States companies using common sense United States principles for the whole world is coming to an end.
975.
▲
by
kccqzy
1y ago
I simply don’t like coins because they are heavy. I will continue to prefer $1 bills over $1 coins. Agree with the rest of your points though.
976.
▲
by
kccqzy
1y ago
I totally agree. And much of the JS complexity on smaller niche video sites aren’t even implemented properly. On some sites I just open developer console, find the m3u8 file URL and cookies in the request, and download it to view locally. B
977.
▲
by
kccqzy
1y ago
One issue GP may be referring to is the bifurcation of video viewing tools and video editing tools. There are excellent video editing tools: on the desktop from paid ones like Premiere to free (as in beer) ones like DaVinci Resolve, not to
978.
▲
by
kccqzy
1y ago
Often when I am bored I pick a random day in the past and look at where I was on that day and which pictures I took. Refreshing memories is a great idea but the low tech way is enough for me.
979.
▲
by
kccqzy
1y ago
I was recently tasked by my manager to investigate whether we should replace LLVM-based JIT with something else in an internal work project. And I came across this nice opinionated document on GitHub about how one might implement SSA in a c
980.
▲
I Implement SSA Form
(gist.github.com)
2 points
by
kccqzy
1y ago
|
1 comments
981.
▲
by
kccqzy
1y ago
How so? Having written Objective-C and C++ separately but never written Objective-C++ before, I don't understand what's the hate it. Some of my favorite Mac apps from a decade ago were written in Objective-C++. I think Chrome stil
982.
▲
by
kccqzy
1y ago
When you run 18 miles a week you should measure the lifetime of your shoes by mileage rather than time. I think 600 miles is about right for a pair of running shoes. It's just that some people run 600 miles in a year, others run that i
983.
▲
by
kccqzy
1y ago
Definitely. The instant fixup feature is just three keystrokes away (s c F). The only thing this helps is when you don't want to spend the extra brain cycles to figure out which commit to fixup on.
984.
▲
by
kccqzy
1y ago
I think this terminology was originally invented by Stepanov. And he used C++ to explain the concept. That's why you can only find references to this concept in C++ land. https://stepanovpapers.com/DeSt98.pdf is probab
985.
▲
by
kccqzy
1y ago
I think the language allowing use-after-move is honestly a smaller footgun than allowing using uninitialized memory or use-after-free. C++ already has the latter.
986.
▲
by
kccqzy
1y ago
Oh I certainly do not feel like there's consistency in the language. The C++ language is such that everyone picks a subset that makes sense to them and is relatively consistent. Regular and non-regular types are however a basic idea th
987.
▲
by
kccqzy
1y ago
That's my point. I don't start the App Store by tapping on its icon. I go to a specific page within the App Store.
988.
▲
by
kccqzy
1y ago
In C++ regular types have the property that const is deep. If you have a const std::vector<int> the you can't modify any of the integers contained in this container. Naturally for flexibility reasons not all types are regular, po
989.
▲
by
kccqzy
1y ago
That's why I don't open the App Store's first screen or the Today tab. I usually open the App Store to look at the release notes for my updatable apps. To find new apps, I use Google to find an app's page. A web-based se
990.
▲
by
kccqzy
1y ago
Deep copy is pedagogically and semantically the right choice for any mutable containers. You either make containers immutable or copies deep. Otherwise it's just an invitation for subtle bugs.
More ›