Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ramchip
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
37 ms
·
421.
▲
by
ramchip
9y ago
On Erlang 20 long GCs run on the thread pool for “dirty” (blocking) tasks, they don’t block a scheduler, so the real-time properties are nice. There have been implementations of Erlang with shared heap in the past, before BEAM became heavil
422.
▲
by
ramchip
9y ago
I don’t think you can realistically use Phoenix without doing at least some Elixir, because it uses macros quite heavily, and you can’t call those from Erlang.
423.
▲
by
ramchip
9y ago
What's missing from your thought experiment is concurrency. Imagine there's 100k people connected to the server. If you make the system in Erlang, you can handle each connection in a separate process, which individually monitors i
424.
▲
by
ramchip
9y ago
Scheduler threads use async IO internally, they context switch to another process while the first one is blocked waiting for the IO to complete. When async is not possible, they dispatch operations to a thread pool.
425.
▲
by
ramchip
9y ago
> Any system in production is soft real-time by that definition. Most systems don't fit in that definition because they don't have deadlines in the first place. A site like Hacker News is not soft real-time; the faster it loads
426.
▲
by
ramchip
9y ago
There’s various types of real-time systems: https://en.m.wikipedia.org/wiki/Real-time_computing#Criteria... You’re talking about hard real-time. Erlang, as it says on the official site, targets soft real-time.
427.
▲
by
ramchip
9y ago
> If you force everything to always be passed by value and returned by value (never by reference) it's clear that the costs of constantly cloning all these objects would quickly add up. That’s not what happens. See: http:/
428.
▲
by
ramchip
9y ago
You might be thinking of the optimization for constant pool references: https://medium.com/@jlouis666/an-erlang-otp-20-0-optimizatio...
429.
▲
by
ramchip
9y ago
+1 for "Making reliable distributed systems in the presence of software errors". It's a long read, but it has completely changed the way I approach programming.
430.
▲
by
ramchip
9y ago
Seconding this. Both Elixir and Erlang ( https://erlang-slack.herokuapp.com/ ) use one for their slack channel, and it works great.
431.
▲
by
ramchip
9y ago
I think the question of fire is a lot less clear cut than you give it credit. See e.g. the discussion in https://physics.stackexchange.com/a/75106
432.
▲
by
ramchip
9y ago
> There are no four classical states of matter. Gas, liquid, solid, plasma. I don't think this is very controversial?.. https://en.wikipedia.org/wiki/List_of_states_of_matter#Class... The parallel is that each
433.
▲
by
ramchip
9y ago
There are more than four states of matter, but it’s true only the classical four would have been observable to a medieval person, so that is an interesting parallel.
434.
▲
by
ramchip
9y ago
Aren't these hentaigana? http://www.book-seishindo.jp/kana/onjun_2.html#ni
435.
▲
by
ramchip
9y ago
Both. The reporter is an equal, and the contributor is a subordinate (in a sense).
436.
▲
by
ramchip
9y ago
He’s essentially saying “this userland code is beyond stupid, but we don’t break userland so here’s how we can keep it working.” The comment is neither aimed at the contributor (who works on kernel code) nor the reporter (who did not write
437.
▲
by
ramchip
9y ago
It was more like 50~100% extra last time I checked. Perhaps because I always fly international, and the economy plus seats are more popular on those?
438.
▲
by
ramchip
9y ago
Idiomatic Erlang involves handling only errors that are expected (read: part of the program’s specification), and crashing on any other kind of error. This keeps the error handling out of the business logic and makes the app code simpler an
439.
▲
by
ramchip
9y ago
It works with functions rather than methods. So you can do something like this, calling functions from various modules / services: order = %{amount: 123, customer_id: 45} result = order |> Orders.validate() |&g
440.
▲
StreamData: Property-based testing and data generation for Elixir
(elixir-lang.org)
5 points
by
ramchip
9y ago
|
0 comments
441.
▲
by
ramchip
9y ago
There’s a huge difference between weekdays and weekends.
442.
▲
by
ramchip
9y ago
The VM has a set of threads called schedulers, all running in parallel. Each scheduler has in turn a set of Erlang processes (possibly thousands) to run. Every process has a pointer to its own separate chunk of heap where it allocates its s
443.
▲
by
ramchip
9y ago
If you're using a GUI toolkit like Qt or WxWidgets, then you have to use whatever event system the toolkit provides, since it controls the main thread's event loop. For WxWidgets for instance the doc is here: http://doc
444.
▲
by
ramchip
9y ago
Almost all these commits are from Ericsson employees. The community did start contributing bigger things in later years (the improved unicode support is a good example), but the core team is still very central to the development, and their
445.
▲
by
ramchip
9y ago
The article makes it sound like that team would not be affected: "However, the 14,000 employee-strong Swedish work force is to stay intact – at least all R&D engineers."
446.
▲
by
ramchip
9y ago
There's more detail in various news articles following the accident, but also no mention of Russia. http://www.telegraph.co.uk/news/obituaries/1556847/Professor...
447.
▲
by
ramchip
9y ago
My bank (SMBC) requires exactly 4 digits for the online banking password...
448.
▲
by
ramchip
9y ago
Erlang's graphical debugger works with Elixir since OTP-19 (last year). See this page after the section on Pry: http://blog.plataformatec.com.br/2016/04/debugging-technique... It supports stepping, etc.
449.
▲
by
ramchip
9y ago
I don’t think “choosing” is the right word, it’s more like providing the opportunity to meet someone with drinking events, goukon etc. At least if his company is like the ones I’ve seen.
450.
▲
by
ramchip
9y ago
My comment is about code organization, not process usage. You can have 6 separate apps and still do everything in a single process. By splitting into lots of sub-apps, you end up with a deep folder structure like `my_service/apps/
More ›