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

Why is anyone surprised by this? Apple has a decades-long history of taking outdated technology and making it obsolete by forcefully removing it (which they haven't actually done yet with OpenGL):

Parallel Ports

Floppy Drives

CD/DVD Drives

Older USB, Firewire ports

Network ports

They were the first to remove all this stuff, and everyone was shocked. Now they are doing this with an API. Both Apple and Microsoft have long ago created much more modern, highly performant graphics technologies over what OpenGL offers, and serious vendors support platform-specific APIs most of the time. If it takes Apple to do this and say to the world "wake up, OpenGL sucks," I view that as progress.

Despite, I don't think your OpenGL app will fail to run on Mac any time soon. I suspect it's years away before they actually remove it entirely.

comment 8y ago · link · parent

I cant remember which was actually linked here on HN a couple weeks ago, but there are these similar reports:

https://www.recode.net/2018/1/31/16957122/facebook-daily-act...

https://www.recode.net/2018/2/12/16998750/facebooks-teen-use...

https://www.socialmediatoday.com/news/new-report-shows-faceb...

comment 8y ago · link · parent

What about this:

https://www.recode.net/2018/1/31/16957122/facebook-daily-act...

https://www.recode.net/2018/2/12/16998750/facebooks-teen-use...

https://www.socialmediatoday.com/news/new-report-shows-faceb...

comment 8y ago · link · parent

Wasn't there a report recently that FB's user base has dropped by several percentage points in the wake of their privacy scandal? If so, that would imply that many average users are taking it seriously -- that would be millions of people who stopped using FB.

comment 8y ago · link · parent

> Apple doesn't do it for the good of mankind

Apple is generally showing a superior attitude towards user privacy, even in situations that don't seem directly tied to their own ad channels, as you say. Maintaining a privacy-focused image is good for business in general, hence their reluctance to cooperate with law enforcement to violate individual user privacy.

comment 8y ago · link · parent

Apple is putting itself in an entertaining position in the industry. Most big tech firms have a business model that depends on user data. By explicitly taking the other side of that model, a fascinating new conflict is emerging between tech giants. And Apple is at least positioning itself on the sympathetic side of billions of users in this arena. This conflict will not die down -- the entire FB and Google business models cannot suddenly change to move away from user data collection, so this tech war will only get more pronounced and dramatic as time passes.

comment 8y ago · link · parent

Of course, but that’s not what we are discussing. The context for my comment was regarding offline rendering and render farms.

comment 8y ago · link · parent

OpenGL is a real-time graphics API, not an offline render system used by renderfarms. I have never heard of movies or special effects rendered in OpenGL. The first major renderer was Renderman, the only game in town for years, and it has nothing to do with OpenGL.

comment 8y ago · link · parent

Exactly. Not sure why everyone thinks their favorite Mac apps are using OpenGL anyway. They probably moved to Metal a long time ago — it is much better.

comment 8y ago · link · parent

Personally I think Elm is dying. It relies on a single language designer who works very very slowly. Since Elm came on the scene, vibrant languages with static typing for the front end have sprouted up and are better alternatives, like ReasonML if you want a language with static guarantees and workflow.

Elm could have been something, but I don’t expect it gain any mindshare, and the boat has sailed.

Clojurescript is a dynamic language, with easy JS interop and nearly zero boilerplate, so I still think it is the fastest route to a production app.

comment 8y ago · link · parent

I think it is much easier to get real-world nontrivial work done in Clojurescript compared to Elm.

comment 8y ago · link · parent

It's too late for me to edit my comment, but here is the proper link:

http://dx.doi.org/10.1145/3126905

comment 8y ago · link · parent

It's quite an interesting study to read, and not long. I recommend giving it a few minutes to answer that question.

comment 8y ago · link · parent

I'm quite surprised they fired Soghoian in 2016 rather than assign him elsewhere within Apple when they decided Automator wasn't worth it anymore (despite that they still have a page for it here: https://support.apple.com/guide/automator/welcome/mac).

He was obviously a brilliant guy, so I find it strange he couldn't have had a good fit anywhere in the company.

comment 8y ago · link · parent

The Clojurians Slack channel can be very helpful if you hit any snags.

comment 8y ago · link · parent

I think most Clojure developers will tell you that it is wise at first to just use Java libraries directly, if you can. Look at wrapper libraries to see how the author approached the Java interop, then do it yourself. You are more likely to attain something that is maintainable, flexible and appropriate for your individual style and needs than using what someone else built for the purpose of interop for their needs.

comment 8y ago · link · parent

Don't forget that with Clojure, anything you would do in Java or on the JVM using any language, you can do in Clojure. So for example, Scala has Akka, a powerful actor model. And of course, you can use that in Clojure if you want:

https://github.com/gaverhae/okku

(This is just one way to use Akka).

comment 8y ago · link · parent

Yes you can easily REPL into a live remote server and work with it while it is running. But more typically, the REPL-driven development happens on your own machine while you build, and then you just deploy the whole app. But it can be useful for remote debugging when necessary.

For distributed computing across multiple machines, you are right that the actor model has an edge there. Most applications don't require that, however. There is however Onyx and other tools for this in Clojure:

http://www.onyxplatform.org/index.html

I think the choice between Clojure and Elixir really comes down to how much your particular idea or requirement genuinely depends on the actor model. The vast majority of applications don't specifically require that, in which case you have more flexibility.

comment 8y ago · link · parent

This comment is highly presumptuous about the actual development experience of more modern languages and tools.

> True speed comes when you don't have to deal with other people's bugs and poorly designed mistakes.

PHP is often, in practice, a language where bugs are more likely compared to these "stylish" other languages you mention. [0]

[0] http://delivery.acm.org/10.1145/3130000/3126905/p91-ray.pdf?...

" For [languages] with positive coefficients we can expect that the language is associated with a greater number of defect fixes. These languages include C, C++, Objective-C, Php, and Python. The languages Clojure, Haskell, Ruby, and Scala, all have negative coefficients implying that these languages are less likely than average to result in defect fixing commits."

comment 8y ago · link · parent

I think you will find that as far as composability and hot code reloading, the combination of proper functional programming with a true REPL make this a powerful combination in Clojure that will at least match what you would get in a language built around actors.

comment 8y ago · link · parent

Clojure has its own very effective strategy for multi-threading, and it is not the actor model. The language is built for concurrency and much careful language design was tailor-made for the challenges on modern threaded applications. Rich Hickey investigated the actor model considerably, and decided on a different model. In the core language, you have the choice of using its normal futures/threads with highly efficient and lock-free data structures, or using core.async, which is a model like Go channels. The latter is particularly popular in the community and generally the recommended approach.

Clojurescript offered the first and still (in my opinion) best option for hot reloading via "figwheel" which nearly all Clojurescript developers use. It automatically updates the UI as you code it.

Clojure, on the server, being a proper lisp with a real REPL, lets you poke and inspect and reload parts of the running program with no recompile cycle. A typical workflow there is to reload individual expressions or functions in the context of the running program to alter behavior as you develop.

comment 8y ago · link · parent

Absolutely. We went from free tier to about 100/month in nearly no time with Heroku. It’s worth it though. Heroku takes care of all sorts of stuff, and that fee is still cheaper than hiring a sys admin for a small business.

comment 8y ago · link · parent

What do you mean host it on github in the context of using Heroku, which would be your host? How is github involved?

comment 8y ago · link · parent

Full-stack Clojure with Clojurescript front-end is about the fastest workflow I’ve ever used. The front-end part in particular with Reagent (a Clojurescript React library) is a very quick workflow compared to all front-end alternatives. There are perhaps more valid options for server, but even still, having the same language in both browser and server is very convenient both for reduction in cognitive dissonance and automatic transfer of language-specific data structures back and forth.

Highly recommend.

I should add that on both server and in browser your code base will usually be a lot smaller than most other languages, which greatly speeds workflow as well. As an example I once ported an Elm project to Clojurescript and it was a 4x reduction in lines.

Using Heroku to just git push the project works well too. Deploys in seconds.

If your project becomes more, it all scales well. Clojure is quite fast compared to Ruby or Python, and Heroku scales with the click of a button. You won’t have to port to a more performant language or host if you suddenly get popular.

comment 8y ago · link · parent

Would anyone recommend using Julia for things like web servers? Python is used for web servers, and is slow. But Julia doesn’t really seem marketed to that application domain, despite that I would expect it to do a better job with the demands on a server due to its performance.

I know web frameworks exist for Julia, but I’m wondering how practical it is to actually use this language for that purpose?

comment 8y ago · link · parent

Emacs provides comprehensive building blocks for any kind of undo/redo system you could want, while providing it's very basic example implementation of undo/redo. Many other packages exist that focus on different ways to do this.

comment 8y ago · link · parent

I thought Python offers an entry into the performance space via Cython, which seems to nearly map directly to C. Is Cython not a viable alternative to Julia?

comment 8y ago · link · parent

I've seen that post as well, and often wondered if it was fair characterization of overall Julia community (maybe it is), or is the result of a single bad apple at the top that overshadowed an otherwise pleasant community.

Unfortunately, it doesn't take much negative energy to spoil a community, even if it comes from just one person. That it was a language co-creator is troubling but not necessarily a reason to avoid the language if the rest of the community is nice (which maybe it is, maybe it isn't).

However one thing I have noticed is that most language communities do tend to follow an attitude set by the language creator(s). This seems to have played out quite a bit for Clojure, Python, Elm, Elixir, and other languages where, at least to me, the overall shared perspective of the community is closely aligned to the personal attitudes and opinions of the language author(s).

comment 8y ago · link · parent

That's a fair rebuttal. But if the original author struggled to get fast Julia working, maybe it's a similar experience to the very many users of Stackoverflow who ask how to get their code to run at marketed speed. It appears to not be obvious or idiomatic in Julia to really get the speed it advertises.

comment 8y ago · link · parent

> From an engineering perspective, it would make little sense to differentiate EU from elsewhere.

But from a business perspective, it would make a tremendous amount of sense.

1
313233
110