HNHacker News
TopNewBestAskShowJobs

blatyo

24 karma · joined November 28, 2009

submissionscomments
blatyo··on Lumen: An alternative BEAM implementation, designed for WebAssembly
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.
blatyo··on TextMate 2.0 (rc 10)
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.
blatyo··on Message Passing and the Actor Model
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

blatyo··on From zero to Production Elixir in 1 month
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.
blatyo··on From zero to Production Elixir in 1 month
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.
blatyo··on Elixir 1.5 released
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

blatyo··on Elixir 1.5 released
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.

blatyo··on Elixir 1.5 released
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.

blatyo··on Elixir 1.5 released
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?
blatyo··on Commander Keen Level Maps
https://www.youtube.com/watch?v=XMjrI3pFsOA
blatyo··on Heroku's Ugly Secret: The story of how the cloud-king turned its back on Rails
I assumed people were running multiple rails processes on their dynos.

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