290 karma · joined December 20, 2010
From the page you link > This advice on use of face masks in the community will be updated if new evidence or guidance from the World Health Organization emerges, or we see a change in COVID-19 disease patterns in New Zealand (for example, increasing community transmission).
So they are simply not advocating masks due to low community transmission.
It allows the runtime to schedule coroutines effectively - they can't block for more than a function call (recursion is how you do "infinite" loops).
I think a future competitor to BEAM languages would need this feature.
I do think better languages do it better, for example in Elixir I can extract multiple elements out of an object at the same time.
object = %{nested: ["my value"], other: "some element"}
%{nested: [first | _], other: other} = object
first now equals "my value" and other now equals "some element".PHP sucks because of the legacy it pulls with it that keeps it from being simple and elegant. It also fails pretty hard when you use it outside of it's niche, and a multi-purpose language > single purpose language.
I wondered about this myself before I started using Elixir. In practice, it turns out when it's cheap to make things concurrent more services take advantage of this feature.
Tests and the elixir compiler are extremely fast because of this, and it makes the whole development experience better.
Because the primitives are so simple, people experiment more which makes better software. Nobody would come up with phoenix live view for Play framework in their spare time because play framework is so overly complicated.
I'd also like to add that a lot of the time in open source, it's as simple as having the examples be full examples with the error handling needed to use it in a production system. Quite often the examples shown are the "simple" ones, but they leave a lot out. I wish it weren't the case but those are often also pasted into production code.
I was also thinking about getting a news+ subscription when I buy a new ipad - waiting for a new model to come out - now I'm wondering if I should bother with either.
I don't even mind occasional ads, to show me what i'm missing, but they should be clearly marked as such.
In my day to day I spend a bit of time writing functional code, and a lot of time reviewing it, and when you generalise in this manner it hides a lot of the details of the algorithmic complexity. Is this operation happening in a future? or is on a list? You could argue that the type signature will let you know, but quite often it's inferred.
Suddenly I find myself needing an IDE just to do code reviews. People make arguments about naming variables and suddenly we're back to using hungarian notation.
I also find it's easy to make mistakes - you do a flatmap instead of a map and the Nones just vanish. Or you're composing so many generic functions that the intent of the code just disappears.
I guess i just wanted to see if it's just me.
From my linked report; A more energy efficient supply chain.
In 2015, we started engaging directly with suppliers to help them reduce their energy use. We aim to educate them about energy efficiency, identify energy efficiency project opportunities, and manage those projects to completion. We prioritize facilities with the highest energy use and potential for improvement. Then we conduct energy audits and train suppliers to uncover opportunities for energy efficiency—like replacing outdated or inefficient heating, cooling, and lighting systems; repairing compressed air leaks; and recovering waste heat. The assessments provide suppliers with a cost-benefit analysis for implementing energy efficiency improvements. Since the inception of this program in 2015, we have engaged 59 suppliers at 85 facilities. In 2018, our program implemented energy efficiency measures that prevented 466,000 metric tons of CO₂e from entering the atmosphere.
So they are working with suppliers and have been for the past 5 years. They also have been cleaning up the chemicals their suppliers use.
You can't compare what they are doing to murder; it's legal for starters. But if you're relying on all the companies you do business with to make up your definition of 100% renewable, it's likely you'll never get there. They don't say anything about the energy used by the banks they do business with either.
I see posts like this https://blog.discordapp.com/scaling-elixir-f9b8e1e7c29b where they are talking millions of events per second.
I also work in the distributed messaging space and so far my experiments have shown elixir to be able to keep up with our scala stack with the advantages of no thread tuning and much easier debugging. So I'm curious why this keeps popping up.
It lets you query multiple databases but also join between them. Or say, translate your mysql table to a local csv file. And if you need it to be faster you can deploy to hadoop.
worth checking out anyway, I used to use it a lot before i started on Apache Spark.
Sure, there are a few more costs, the point being that SpaceX has a supreme cost advantage.
With an ORM you can construct the prepared statements programmatically.
Rails is an opinionated framework in that it has strong opinions for what the default configuration should be. They realise it can't be general purpose and stay as effective. But if you're doing CRUD apps, on the web, those defaults save you a bunch of time.
That's not hostile to differing ideas, it's just saying that some ideas don't belong in rails or rails itself becomes less good.
There are also costs in setting and checking those locks etc. Sure, you can build solutions to optimise a broken model, which we've done over decades (with quite a bit of success!), but it doesn't make the model less broken.
In practice, most of your threads are in one form of wait loop or another and you've just got polling both inside the threads and with the scheduler.
Have a look at Erlang if you want a better model :) the erlang "processes" (different to os processes) can intelligently only wake up when there is work for them to do.
For a language to efficiently use cores, it really needs to include it's own scheduling.
For me, I would probably be happy with a 2 core macbook but I use a 4 core macbook pro. If I'm doing something that needs a lot of compute, it's in the cloud.
I'm interested.. What kind of problems?
> But Windows and MacOS both give me more problems then a FreeBSD or Linux box ever has.
I switched from linux on the desktop to MacOs precisely because of the problems linux had - driver support, even LTS updates breaking functionality, and overall clunkiness. I run linux on all my servers.
What framework do you use on node.js?
My experience with nodejs has been pretty poor. I'll give some examples;
* The language and runtime is constantly updating - there is no such thing as stability
* Even npm couldn't produce deterministic installs until this year
* npm dependency hell
* there are lots of ways to do any task, so there is much fragmentation with advice / community
* the repls in node suck compared to pry
* I can't find a good opinionated framework - so everyone lays out each application differently, with different standards etc. That means you end up spending a ridiculous amount of time configuring everything.
* most apps i've needed to make don't actually benefit from being a SPA. It's a cargo cult thing.
* javascript as a language sucks!
I do scala/akka in my dayjob and the amount of time we spend tweaking threadpools (execution contexts) and retesting just to get okay performance is insane. You wear a pretty big cost when you layer on abstractions like that.
How is that limit set?
You're at your peak in terms of learning new subjects, so if you get a chance, learn a few random ones! It's said that apple's focus on design and typography wouldn't have happened if Steve Jobs hadn't dropped in on some calligraphy classes during college.
I would say the primary purpose of macos isn't to cater for everyone, it's to make using a computer a pleasurable experience for the non technical. It's about bringing computing to the masses.
If you're in a mahochist niche, good for you but you're better off on linux.
For me, macOs is pleasurable for the most part, and i'm technical enough to work around any problems I face. On windows/linux I have to do that for features that aren't even nearly advanced.