Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sasa555
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
Parsing from First Principles [video]
(youtube.com)
1 points
by
sasa555
7y ago
|
0 comments
2.
▲
by
sasa555
10y ago
Are you asking about BEAM or Go? Preemption already works in BEAM and doesn't lead to race conditions because of nothing shared concurrency.
3.
▲
by
sasa555
10y ago
Dirty schedulers can help with long running NIFs, but they can't help with e.g. a segfault in a NIF taking down the entire system.
4.
▲
by
sasa555
10y ago
Precisely, which is why I always advise to consider ports first :-) However, in some situations the overhead of communicating with a port might be too large, so then you have two options: 1. Move more code to another language which you
5.
▲
by
sasa555
10y ago
Thanks, nice to hear that! Basically a NIF blocks the scheduler, so if you run a tight loop for a long time, there will be no preemption. Therefore, invoking foo(), where a foo is a NIF which runs for say 10 seconds, means a single process
6.
▲
by
sasa555
10y ago
It is possible to start external processes from BEAM and interact with them. I've blogged a bit about it at http://theerlangelist.com/article/outside_elixir You can also write NIFs (native implemented functions) w
7.
▲
by
sasa555
10y ago
The atom always means the same thing - a symbolic (named) constant. The dot operator can be used on an atom type to invoke a function from the corresponding module. A capital Foo.Bar is called an alias in Elixir, and it's the same as a
8.
▲
by
sasa555
11y ago
I like to say that in NIFs (and port drivers) all the bets are off anyway, most notably process isolation and fault-tolerance. The guarantees such as "preemption" and fault-tolerance happen in the layer above (i.e. pure Erlang), a
9.
▲
by
sasa555
11y ago
I like to think of it as preemptive because (putting NIFs aside) it's not possible for a single process to completely block the entire scheduler, even if it ends up in an infinite CPU bound loop. So in other words, a task (i.e. process
10.
▲
by
sasa555
11y ago
I've been doing full-time Erlang for five years, and I personally prefer Elixir. Elixir is semantically close to Erlang the language, and allows you to take advantage of all the great benefits of Erlang/OTP. It's benefit is d
11.
▲
by
sasa555
11y ago
Everything is possible in a Turing complete language (assuming enough of base utility functions are provided by stdlib), so the question is not possible vs impossible, but how much of a help the tool is. Erlang provides great abstractions f
12.
▲
Why Elixir?
(theerlangelist.com)
1 points
by
sasa555
13y ago
|
0 comments
13.
▲
Announcing Elixir in Action
(theerlangelist.com)
2 points
by
sasa555
13y ago
|
0 comments
14.
▲
Immutable programming, FP style (Elixir)
1 points
by
sasa555
13y ago
|
0 comments
15.
▲
Immutable programming, OO style (in Elixir)
(theerlangelist.com)
2 points
by
sasa555
13y ago
|
0 comments
16.
▲
Working with immutable data
(theerlangelist.com)
2 points
by
sasa555
13y ago
|
0 comments
17.
▲
Concurrency in a long polling (Erlang) comet server
(theerlangelist.com)
2 points
by
sasa555
13y ago
|
0 comments
18.
▲
Parallelizing independent tasks with Erlang/Elixir
(theerlangelist.com)
1 points
by
sasa555
13y ago
|
0 comments
19.
▲
by
sasa555
13y ago
I guess JVM or .NET preference is often caused by inertia, ignorance or fear of change. In the company I used to work for, they had religious devotion to Microsoft. Everything that didn't come from MS was frowned upon, not only open source
20.
▲
by
sasa555
13y ago
I have more than 10 years of professional experience using C++, C# and Ruby to develop "classical" business web and desktop apps. I started using Erlang two years ago to implement a push server, and fell in love with it immediately. The lan
21.
▲
Manually queueing Erlang messages (in Elixir)
(theerlangelist.com)
1 points
by
sasa555
14y ago
|
1 comments
22.
▲
Pipelining in elixir / erlang
(theerlangelist.com)
1 points
by
sasa555
14y ago
|
0 comments
23.
▲
Explaining Erlang actors in Elixir
(theerlangelist.com)
1 points
by
sasa555
14y ago
|
0 comments
24.
▲
Erlang based server side systems
(theerlangelist.com)
1 points
by
sasa555
14y ago
|
0 comments
25.
▲
Yet another introduction to Erlang
(theerlangelist.com)
1 points
by
sasa555
14y ago
|
0 comments