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 11y ago · link · parent

Impressive, but at first I read this as the scheme programming language, which would have been extra impressive!

comment 11y ago · link · parent

I was referring to a report by the Brady Campaign that in 2012 there were over 90K gun deaths in that particular year. I saw this recently on the news, and the stats stuck in my head for obvious reasons.

comment 11y ago · link · parent

It was on the T.V. news, I think a CNN report that I saw that, in October. 250 gun deaths per day they reported.

Edit: I was referring to a report by the Brady Campaign that in 2012 there were over 90K gun deaths in that particular year. I saw this recently on the news, and the stats stuck in my head for obvious reasons.

comment 11y ago · link · parent

I learned a little while back that there are 250 gun deaths every day in the U.S. That's the equivalent of 2 of the Paris attacks, every single day. A staggering figure of close to 100K gun deaths every year, or 30x the 9/11 deaths. So while they aren't necessarily "terrorist"-related in the common sense of the term, they certainly bring terror to many families and neighborhoods.

comment 11y ago · link · parent

Official HN guidelines classify as "on topic":

>anything that gratifies one's intellectual curiosity

So while this article isn't literally "hacker" related, it is not considered off-topic necessarily, and a high percentage of articles on HN are not directly related to technology, software, etc.

comment 11y ago · link · parent

I'm guessing the reason that I only get between 3fps and 7fps on a 3rd-gen iPad from 3 years ago is that the webgl support is not much on tablets, or at least on older tablets? I get the same canvas 3d experience in these demos as I get in my own demos that don't use React at all. Maybe on newer tablets it would be far different.

comment 11y ago · link · parent

Ah, thanks for pointing that out.

comment 11y ago · link · parent

I don't get it... even if the pasted content has stuff I don't expect, I still see it in my shell prompt before I press Enter, no?

comment 11y ago · link · parent

Well, I've been in most parts of Asia quite regularly except for China and Japan, and WhatsApp has been absolutely everywhere. It's in the U.S. where it has not really caught on, at least most of my friends there have never heard of it.

comment 11y ago · link · parent

This is absolutely no surprise. In Asia, WhatsApp was assumed to be on every phone and it was used instead of contracts, phone calls, and SMS for a wide range or business tasks like finding apartments, agreements with vendors, even public service announcements, during my time in Singapore. It's really not a bad idea if the security of the data can be guaranteed.

comment 11y ago · link · parent

Unless we are looking at different pages, that Readme for smartparens is quite small.

comment 11y ago · link · parent

Still easy to see on Github itself.

comment 11y ago · link · parent

>But ultimately all these efforts is just putting bandaid on a shitty language.

Well, that's a highly subjective opinion. It sounds like C++ doesn't work for you but I still find it a fascinating and enjoyable language to work in. There are drawbacks with any language, and I guess the drawbacks you find for yourself in C++ are your business.

comment 11y ago · link · parent

I certainly agree with you for using platform-specific languages for platform-specific features. But I much prefer to write the main logic of an app in C++ and use Swift as the glue to the UI rather than use Swift for everything. I'm not yet sold on Swift, and being unable to take the code to other platforms is also a strike against it, for now.

comment 11y ago · link · parent

I should have read that thread first; it appears the answer to my question is "yes".

comment 11y ago · link · parent

Are they planning to leverage the Google Closure compiler the way Clojurescript does? Un-optimized Clojurescript is also huge until it runs through Closure compilation.

comment 11y ago · link · parent

I'm so fascinated by Elm. What a great addition to the world of JS tooling. I wish had more time to spend on it, but the Haskell syntax, the strict typing, the Haskell compiler, and reactive JS model, the emphasis on graphic UI building as a native language feature, all just really great and relevant ideas.

comment 11y ago · link · parent

A lot of it is due to library support; C++ has libraries in physics and graphics haven't yet been written in other languages.

Another is the lightweight possibilities for C++ makes it possible to install and run good apps on tiny machines like Pis, where installing Java can be much more challenging.

C++ is also a great language for iOS and OSX development for those who are not satisfied with Objective-C or Swift.

comment 11y ago · link · parent

It would help if true AI actually existed!

comment 11y ago · link · parent

That title is not even used on the site itself.

comment 11y ago · link · parent

And lots of pieces for 2 pianos and 4 hands, so 40 fingers.

comment 11y ago · link · parent

>There are too many corner cases and oddball stuff to deal with.

It seems like all the langauges I've used, from objective-c to swift and Clojure require you to keep certain aspects of the language in mind for certain situations that don't on the surface seem obvious. Purity in any language is quite rare.

In the case of C++, it is possible to ignore much of that old baggage most or maybe even all of the time if you write new code using new features. I agree that those maintaining much older codebases are going to have a rough time, but is not an uncommon problem in many languages.

Also, even in a so-called "better" language you can run into massive refactoring projects with older code once you choose to adopt new libraries and tools. As Bjarne says, C++11 is much better, C++14 will be even better, and C++17 is further going to be better... frankly, this is a good path for any language to be on.

comment 11y ago · link · parent

That makes sense, with so many images, it would indeed take a long time to build otherwise. I just wish my eyes could make sense of them!

comment 11y ago · link · parent

> Given C++'s age, I'll assume in the following that the question also puts C++ alongside with C as a target for replacement.

Yes, C++ is old, but it has really stayed with the times in an impressive way. The so-called "Modern C++" that started with C++11 is a significantly different way of writing C++. All the things that made C++ infamously challenging and allowed inexperienced developers to leak memory and cause crashes, are, for the most part, no longer in the normal C++ workflow.

And all the rage about functional programming, passing around functions as values, writing closures that capture and encapsulate their surrounding values, using map, filter, reduce algorithms, relying on type inference, forgetting about pointer deletion and manual memory management and avoiding the access out of bounds memory on iterations -- that is all normal C++ now.

If anything has or will successfully replace C++, it is going to be C++ itself. The standards committee and community are doing an extraordinary job of keeping the language current while maintaining its great reputation for speed.

comment 11y ago · link · parent

For the life of me, I cannot figure out how to actually view the images on this page. They are all extraordinarily small thumbnails with no way to click or enlarge them?

comment 11y ago · link · parent

Here's a table of specific OpenGL support for various versions of OSX:

https://developer.apple.com/opengl/capabilities/

To say that there is a recipe for slow OpenGL on Mac is a bit misleading: Mac is capable of fantastic OpenGL projects.

comment 11y ago · link · parent

This makes no sense since OSX is certainly capable of the same level of graphic performance as any other OS (some would say it has even more powerful low-level tools now that Metal is available), so there must be something else going on in his setup that is causing a problem. As others have noted, possibly the drivers, but more likely he's not using the Mac's API to guarantee GPU rendering vs software rendering, or other fairly small settings that can lead to a big difference.

comment 11y ago · link · parent

But protocols and mulitmethods are different from OO in the sense that the functions are decoupled from the state. You don't store state in a protocol, you just define an interface. That's pretty different from the way most people think about OO in c++, java, swift, objective-c, etc. In Clojure, you have Records and maps, which hold your "state" or your values, and you have protocols which define your functions, and the two are isolated from each other and not attached in any way. That's quite different from OO in general, don't you think?

comment 11y ago · link · parent

A dense functional language like Clojure or Haskell has about a 10x reduction in lines of code once you get rid of all the OO boilerplate and replace it with composable, higher-order functions. I used to write c++ for a living and when I switched to Clojure, my days are still full of the same level of development work, but the amount of code that I actually write is dramatically less. In a functional language, a lot more goes into the thought process of how to construct algorithms rather than in meeting the demands of the OO environment you work in. In some languages you have no choice but to make classes for even the tiniest of tasks, which is a limiting requirement to put in the hands of someone trying to creatively solve a problem from any angle without preconceived design patterns influencing the approach. FP instead lets you concentrate on other matters and usually use your brain for the fun stuff more often.

comment 11y ago · link · parent

OO is such an overloaded term, it's not possible to really draw the line in any concrete way. Much in the way that "functional programming" tends to mean different things to different people... but OO is even more varied in its actual meaning, in general.
1
100101102
110