Better HN
topnewbestaskshowjobs
Log inSign up

hellofunk

9,428 karma · joined Jul 10, 2015 (11y ago) · 3,276 submissions

John Bellick, Mexico City
Submissions

comment 7y ago · link · parent

I would consider your counter examples rather compelling, thanks for the details. I never particularly enjoyed move semantics, so you have a point there.

comment 7y ago · link · parent

This is one of the most trivial points I've ever heard for liking or disliking a programming language.

comment 7y ago · link · parent

> the added features can not remove complexity, they can just add to it

There are countless examples of the so-called modern C++ features reducing complexity in code.

For example, it is now considered a code smell to ever write "new" or "delete" in your code. Imagine that, never using these words to manually allocate and delete memory in C++! But it's true, unique_ptr in particular makes so much simpler and safer.

Type inference with auto doesn't just save typing, it improves performance in many cases and reduces a lot of complexity, while also avoiding uninitialized variables.

These are just a few of at least a dozen examples that come to mind about reducing code complexity with more modern C++ features.

comment 7y ago · link · parent

> they've introduced poor rip-offs that fail to work

This sounds like hyperbole to me. I've worked in other functional languages professionally for many years, but when I write C++ with consistent use of std::function and lambdas, I get many of the same benefits and a very enjoyable workflow. Is it the same as Haskell or Clojure? No, because they are totally different languages. But within the C++ world, they offer a great productivity benefit that I don't think satisifies the definition of "rip off".

comment 7y ago · link · parent

As an example, yes. Other versions offered similar benefits (C++14 in particular was a "bug fix" version for C++11, which I think most would be happy came quickly).

comment 7y ago · link · parent

This suggests you aren't aware of the many huge benefits that have come from introducing modern features that other languages have. C++ since 2011 is quite a different language to what it was before, and this is hardly a bad thing. So many of the challenges of writing C++ were significantly simplified with the introduction of lambdas, smart pointers, and threading primitives.

comment 7y ago · link · parent

Let's also pass laws prohibiting doctors from giving them out like candy because someone has the sniffles.

578.

Better C++ Pseudo Random Number Generator(arvid.io ↗)

2 points · by hellofunk · 7y ago · discuss

comment 7y ago · link · parent

Whenever I see things like this "law," or the ridiculous "DRY" principle, I'm glad I don't program deep in the OO paradigm. There have been so many code sins committed in the name of DRY that I think it is a good interview question to ask why it is useful to not follow some of these guidelines.

comment 7y ago · link · parent

I am in agreement with you that my current MBP will be my last if my only options in the future are with that damn, silly, expensive gimmick so eloquently called the touch bar.

comment 7y ago · link · parent

Doesn't Apple itself use it as a terrible little mini-display in some multimedia apps, like Logic, to show a ridiculous multi-track "view" on the damn touchbar itself? Like several individual tracks all squished together? And they talk about "human interface" ?

comment 7y ago · link · parent

> When you have branching code running on a GPU, the threads are split into the branches, and each branch gets executed separately.

I'm not an expert on GPU hardware but in my readings on this, I've seen it said that if there is a branch in your code, all cores take that branch even if it is a no-op for many of them, thus all branches are taken by all cores when the code is not coherent. Hence why making GPU parallelization can be quite a different programming paradigm to really take advantage of how it works, and it is more challenging to do properly than truly independent CPU threads that do not affect each other when they branch.

comment 7y ago · link · parent

It’s not even in the headline, it was just added for the hacker news link!

comment 7y ago · link · parent

I haven't seen a Cloudflare page in ages and I use them often. I honestly cannot recall the last time when browsing the web I saw a Cloudflare page, with any ISP or VPN.

comment 7y ago · link · parent

I get exactly double the bandwidth with them that you do, so I suspect there are other factors.

comment 7y ago · link · parent

I can't tell what your description of LiveView is suggesting, I will need to read about it, sounds interesting. Is it like a codebase that is implicitly split on a back-end and a browser, without the need to write JavaScript?

comment 7y ago · link · parent

I love hearing stories like yours. I wonder how Elixir would compare to Clojure, which I've used and liked for web development for many years. I hear nothing but good things about Elixir but I wonder if it would bring something new to the table for me in the "really liking it" category.

comment 7y ago · link · parent

But isn't that partly due to it being summer in Alaska right now, and it is winter in Australia? You said "late last year" was your previous comparison, which implies it was approaching summer in Australia?

comment 7y ago · link · parent

Only if I haven’t had my coffee yet.

comment 7y ago · link · parent

Your number one reason is also my number one reason, for the exact opposite reason. I don’t want anyone to be able to get their innocent looking code into my phone without some extra effort

comment 7y ago · link · parent

53? There are about 6 more I would add to this list.

592.

How a trivial cell phone hack is ruining lives(engadget.com ↗)

2 points · by hellofunk · 7y ago · discuss

593.

Nokia Slams Huawei After 'Potential Backdoors' Found in 55% of Its Devices(forbes.com ↗)

18 points · by hellofunk · 7y ago · discuss

594.

History Will Not Be Kind to Jony Ive(vice.com ↗)

151 points · by jb1991 · 7y ago · 129 comments

595.

Back-up failures led to Dutch emergency phone line breakdown(dutchnews.nl ↗)

2 points · by hellofunk · 7y ago · 1 comment

596.

EnkiTS: C++ and C multithreading task scheduler(github.com ↗)

3 points · by hellofunk · 7y ago · discuss

comment 7y ago · link · parent

D is the only language I use any more, so it's neat to see others have made similar realizations about it.

comment 7y ago · link · parent

It's also quite an expensive joke that consumers pay for. Hundreds of dollars equivalent extra in price for this "feature."

comment 7y ago · link · parent

My personal take is that, as long as profit remains a guiding priority for a society, there will always be much greater incentive to create a new and successful walled garden than to share and contribute to open standards.

This is made evident by countless technology firms and other industries.

comment 7y ago · link · parent

According to the news, it’s unlikely that any progress on the bill will be made until next year, based on this protest. It is not just suspended, they also canceled further open discussions about it.
1
192021
110