News for hackers. Stuff that matters.

blatyo

This isn't a complete answer to you're question, but one note. They aren't building an interpreter in wasm. They are compiling elixir to native wasm. Elixir code wouldn't be shipped to the client.
Re:TextMate 2.0 (rc 10) on Tuesday June 19, 2018 @11:18AM (#17347451)
One thing that is nice about the way sublime does it is that you can search the search results. Since it shows the found search items contextualized, it can be useful to search the contextualized parts.
Re:Message Passing and the Actor Model on Monday March 05, 2018 @08:17PM (#16526134)
The solution for this in Elixir is to use GenStage actors, which provides backpressure by allowing downstream processes to ask for data to process.

Check out this video which describes it pretty well: https://youtu.be/srtMWzyqdp8?t=1027

Re:From zero to Production Elixir in 1 month on Sunday July 30, 2017 @06:34PM (#14888224)
I'm not sure if it's a recent feature, but I was unaware of it until recently. However, you'd still need an app to sign the upload URL. Otherwise, you'd have to expose the AWS secret key to the client.
Re:From zero to Production Elixir in 1 month on Sunday July 30, 2017 @06:29PM (#14888203)
s3 requires a signature as well. Without requiring a signature, anyone could upload anything to your s3 account. With a signature, you choose when and where people can put their files.
Re:Elixir 1.5 released on Tuesday July 25, 2017 @08:49PM (#14853014)
I believe what Overmind meant was that a single request in another language can probably beat Elixir in performance, but Elixirs ability to handle a large amount of requests concurrently means that it'll have better throughput.

For example, if a web request in framework A takes 100ms and framework B takes 200ms, but framework B can handle 4,000 requests concurrently and framework A can handle 1,000 requests concurrently, then framework B will beat framework A in handling 20,000 requests.

framework A - (20,000r / 1,000r) * 100ms = 2,000ms

framework B - (20,000r / 4,000r) * 200ms = 1,000ms

Re:Elixir 1.5 released on Tuesday July 25, 2017 @12:48PM (#14849332)
One note on database time. If you're loading multiple related records, Ecto is able to do some of those requests concurrently. For example, if you get a user and their posts and comments, the fetch of user happens, and then posts and comments can be fetched concurrently.

Also, when I used rails, quite a bit of time was spent wrapping the data into active record objects, whereas Ecto returns simple data structures, which seems to be much faster.

Re:Elixir 1.5 released on Tuesday July 25, 2017 @12:00PM (#14848785)
Here's a screenshot of mean times for one of my company's app.

http://take.ms/qGVOA

The one at the top is proxying the request to a java app which happens to be a little slow.

Re:Elixir 1.5 released on Tuesday July 25, 2017 @08:12AM (#14847100)
You mentioned the phoenix team is working on monitoring. Can you point me to where you heard that or any work being done on it?
I assumed people were running multiple rails processes on their dynos.

http://michaelvanrooijen.com/articles/2011/06/01-more-concur...