3,309 karma · joined Mar 26, 2015 (11y ago) · 825 submissions
comment 6y ago · link · parent
It also has a lightweight threading system that makes it work well as a web server. Not quite as elegant as something like Elixir, with its isolated processes, but still nice. It also supports macros, which can make the code a lot more elegant and performant compared to similar languages.
comment 6y ago · link · parent
Imagine your parents stole a fortune from your neighbor and passed it on to you when they died. Does that money belong to you, or your neighbor/their children? I think the answer is common sense. The fact that you weren’t the one who originally stole the money is irrelevant.
comment 6y ago · link · parent
comment 6y ago · link · parent
In my experience, software engineering is endless, complicated decision making about how something should work and how to make changes without breaking something else rather than the nuts and bolts of programming. It’s all about figuring out what users want and how to give it to them in a way that is feasible.
The idea that we will have some abstraction that will someday (in the foreseeable future) save us from all of this difficult work sounds very far fetched to me, and I can’t imagine how that would work.
Even the example of hosting complexity being replaced by cloud companies seems kind of silly to me. Maybe that’s saving very small companies a sizable fraction of their engineering resources, but I really doubt it for medium or larger companies.
The cloud saves us from some complexity, but it doesn’t just magically design and run a backend for your application. You still need people who understand things like docker, kubernetes, endless different database options, sharding, indexing, failover, backup, message queues, etc. Even if the pieces are now more integrated and easier to put together, the task of figuring out how the pieces will interact and what pieces you even need is still outrageously complicated.
comment 6y ago · link · parent
This type of post complaining about Apple losing its soul and dying has been coming out regularly for at least the decade since I’ve been following Apple, and probably back way farther than that.
Something about Apple makes it an irresistible target for this kind of criticism for some reason. Check out the MacRumors forums for examples.. it’s a group of people who track every move Apple makes, yet overwhelmingly complain about every potential flaw.
That’s not saying that there aren’t flaws to criticize about Apple’s products, which there certainly are. But the level of vitriol is extreme compared to what I see directed towards most other companies (except video game companies.. gamers are a tough crowd).
comment 6y ago · link · parent
It would be up to the developer to account for different versions of the data when writing out type definitions, and the worst case is that you try to access a property that doesn’t exist or is the wrong type, and it crashes and causes the process to get restarted like what already happens in Erlang.
So it wouldn’t be a guarantee of correctness just like Typescript isn’t, but it could still offer a lot of safety assuming you get the type definition a right.
comment 6y ago · link · parent
To be clear, the Elm model of putting everything into a big tree and and transforming that at every user input is very unusual among even FP languages, and is not the model typically used in Haskell. This might be what you are thinking of.
Edit: I also want to point out that Elixir processes can be registered globally to act as singletons, but by default you can spawn any number of agents or other processes at runtime, meaning they are not singletons.
comment 6y ago · link · parent
Having many servers gives you redundancy and horizontal scalability, but also comes at a high complexity and maintenance cost. Also, with many machines communicating over the network, latency and reliability can become much harder to manage.
Most smaller companies can probably get away with having a single powerful server with one extra server for failover, and probably two more for the database with failover as well. I think this would also result in better performance and reliability as well. I’m curious to know whether the author tried vertical scaling first or went straight to horizontal scaling.
comment 7y ago · link · parent
Functional programming makes a different set of tradeoffs than imperative programming. You have to work harder to get peak performance, but in many cases it is actually quite performant. Just look at how fast Elm is for web applications, and how that approach allows for a time-traveling debugger and virtually no crashes.
comment 7y ago · link · parent
comment 7y ago · link · parent
I don’t think it’s fair or constructive to disagree with his findings unless you also have experience using the language, and it doesn’t sound like that is the case.
comment 7y ago · link · parent
The browser does use your browsing history to decide which articles to show you, but they claim that information does not leave your device. The browser downloads the full list of articles onto your device and filters them there.
comment 7y ago · link · parent
I think there would have to be an apocalyptic event to cause knowledge about significant events, people, and ideas to be lost.
Paper and archeological history is absolutely riddled with holes, which doesn’t speak well of its durability.
comment 8y ago · link · parent
comment 8y ago · link · parent
Maybe someday Elm will adopt a more community-oriented approach, but I don’t think that is necessary right now.
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
From what I’ve seen for Jester/Nim, it’s not really benchmarked a lot, and it doesn’t seem particularly fast where it is benchmarked. This could perhaps be fixed by better implementations for the benchmarks or some optimization in Jester itself.
I think a strong story for performance would go a long way towards improving awareness of Nim. Crystal does very well in such tests, and I think that is one of the most appealing parts of the language. In fact, I evaluated both Nim and Crystal for server side development a while back, and quickly dismissed Nim because it didn’t seem to be all that fast. I eventually dismissed Crystal too because of the compile times and syntax, but I put a lot more time into it.
comment 8y ago · link · parent
That’s not to say that other languages are perfect, but there are much safer options that are still very fast, such as Rust, or even C# or Java.
comment 8y ago · link · parent
If they are going to improve integration with third party services, I would love to have better integration with Google’s services, not IBM’s..
comment 8y ago · link · parent
Does Apple really think that it would be better to outsource cloud services to IBM than develop their own? To me, it looks like Apple lacks confidence in their own internal abilities, and that’s not a good look.
comment 9y ago · link · parent
It's not like most people are going to pay Disney ahead of time for the next Pirates of the Caribbean movie, even though a lot of people will (inexplicably) pay to see it in theaters.
comment 9y ago · link · parent