Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
randomstudent
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
randomstudent
9y ago
> At least for my operation it looked very much like I would really need to become a BEAM vm expert to make sure things ran smoothly From someone with zero experience in building concurrent systems: isn't this true for every suffici
32.
▲
by
randomstudent
9y ago
> "for" needs to be implemented as a special form as it emits some optimizations that are only available at the Core Erlang level. That's interesting. I wonder if a future Elixir version could have a way of defining macros
33.
▲
by
randomstudent
9y ago
Yes. Superficially, `do ... end` blocks look like English, because they are English words. On the other hand, they don't really correspond to any real grammar construct of the English language. They live in the the uncanny valley where
34.
▲
by
randomstudent
9y ago
It's just Nginx + Phoenix on a rented Linode server. It's in beta, so I don't care much about security beyond the basics... EDIT: I could drop Nginx and use "raw" cowboy (the webserver behind phoenix), but Nginx mak
35.
▲
by
randomstudent
9y ago
What do Promises/Futures/Async/etc. have to do with monads? Are monads a good abstraction to model those things?
36.
▲
by
randomstudent
9y ago
It's not very hard to deploy. Just use the proper tools to compile and build a release (on a VM emulating the same architecture as your server), rsync the resulting files into the server and strat the app. Getting hot code reload to wo
37.
▲
by
randomstudent
9y ago
I'm not qualified to answer that, as I haven't used Drab, but you can ask on the proper topic at the elixir forum: https://elixirforum.com/t/drab-phoenix-library-for-server-si...
38.
▲
by
randomstudent
9y ago
The author doesn't talk a lot about preemptive scheduling, which is probably the best thing about the Erlang virtual machine. This video explains what preemptive scheduling is and why it is extremely useful: https://www.yout
39.
▲
by
randomstudent
9y ago
Erlang has its own HTTP(s) servers, like cowboy ( https://github.com/ninenines/cowboy ) so it doesn't need Nginx and the like. Those servers simply take the place of Nginx. There is nothing special about Nginx that
40.
▲
by
randomstudent
9y ago
Elixir and Phoenix exceeded all my expectations. I thought about what I wanted to build, read the docs and built it. Done. When I was still using python, I spent days (weeks?) reading about the problems, looking for design patterns that mig
41.
▲
by
randomstudent
9y ago
You can look into drab, an elixir server-side DOM manipulation library: https://github.com/grych/drab . I've never used it, but many people in the Elixir community think it holds a lot of potential.
42.
▲
by
randomstudent
9y ago
The syntax is bad (just like ruby), and there are some annoying limitations with macros, but the semantics are very good, and the ability to keep thousands (or hundreds of thousands, or even millions if you know what you're doing) of s
43.
▲
by
randomstudent
9y ago
> the same crowd that argues that building additional highway capacity won't accomplish anything because it'll just get filled with more cars It will allow more people to commute into the city, which is the goal, right? > se
44.
▲
by
randomstudent
9y ago
The Spanish and Portuguese empires have much to be ashamed of too... Whether you should personally be ashamed for that is up to you.
45.
▲
by
randomstudent
9y ago
> from driving all the way to the Western shores of Spain. I don't think it was luck. It was probably the lack of cars ;)
46.
▲
by
randomstudent
9y ago
This article is very weak... They cherry pick a single metric (overdose-related deaths) and use that to prove Portugal's policy is the best thing ever. Other metrics that are relevant: Has drug use increased or decreased? What about th