Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
iamaleksey
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
31.
▲
by
iamaleksey
17y ago
Well, the NAT issue is almost solved with STUN [ http://en.wikipedia.org/wiki/STUN ] and TURN [ http://en.wikipedia.org/wiki/Traversal_Using_Relay_NAT ] (in those cases where STUN is not enough). Together they make ICE [ http://en.wikipedia
32.
▲
by
iamaleksey
17y ago
This is much better handled in languages with pattern matching. And you can match on arbitrary fields. Erlang: surf(Channels) -> lists:foreach(fun process/1, Channels). process(#channel{genre = "football"} = Channel) ->
33.
▲
by
iamaleksey
17y ago
This doesn't make much practical sense. However, implementing Erlang on top of the JVM seems like an awesome way to learn Erlang and JVM internals at the same time.
34.
▲
by
iamaleksey
17y ago
Ah. Didn't get it. Probably because writing erlang.org in PHP actually makes more sense to me than writing it in Erlang (:
35.
▲
by
iamaleksey
17y ago
Huh? Erlang Web is pure Erlang, it doesn't have a single line of PHP. [ http://www.erlang-web.org/ ]
36.
▲
by
iamaleksey
17y ago
I'm not saying this never happens. It does, but you'll rarely see this pattern in any real Erlang code base. And when you see it, it will not be "littered". It's an exception, not an idiom. And those samples from Joe's book and thesis a
37.
▲
by
iamaleksey
17y ago
If your code ends up littered with Var2 = Var1 + 1 type "idioms", then you are probably doing it wrong. I hardly ever write code like that (or see other's Erlang code like that). It's by no means an idiom.
38.
▲
by
iamaleksey
17y ago
http://news.ycombinator.com/item?id=537246
39.
▲
by
iamaleksey
17y ago
A tutorial: http://www.davispj.com/2009/11/23/erlang-nif-test.html
40.
▲
Erlang/OTP R13B03: native implemented functions API
(erlang.org)
4 points
by
iamaleksey
17y ago
|
1 comments
41.
▲
by
iamaleksey
17y ago
You can use sphinx xmlpipe or xmlpipe2 datasource [ http://www.sphinxsearch.com/docs/current.html#xmlpipe2 ] and get rid of the middle-man (MySQL).
42.
▲
by
iamaleksey
17y ago
Not exactly. Cappuchino tries to do it on the client side, while classical ASP.NET does it on the server side. The former has its uses, the latter is a terrible idea.
43.
▲
by
iamaleksey
17y ago
1. Good is not perfect. Good code can still be improved, though, it doesn't have to be crap for that.
44.
▲
by
iamaleksey
17y ago
Sure, and that reason is that it was used in the canonical screencast. Nowadays vim (or MacVim) seems to be the preferred editor, at least among the top rails blogging crowd. It's hard to beat tpope's rails.vim ( http://rails.vim.tpope.net/
45.
▲
by
iamaleksey
17y ago
Just upgraded and everything is smooth so far. The only exception being VMware Workstation 6.5 - you need to upgrade to VMware Workstation 7.0 or it won't work.
46.
▲
by
iamaleksey
17y ago
There is also autojump http://wiki.github.com/joelthelion/autojump
47.
▲
by
iamaleksey
17y ago
It is good, especially with rails.vim and NERDtree installed. fuzzy_file_finder is super useful as well, can't recommend it enough.
48.
▲
by
iamaleksey
17y ago
Having worked on several Rails projects and now working on a large erlang application, I'm not sure that bringing Rails idioms to erlang is a good or desirable thing. I also find it somewhat funny that it includes an ActiveRecord port - an
49.
▲
by
iamaleksey
17y ago
Nope, as of now each process has a separate copy, even when they are both on the same node. "The exception is large binary objects, which are handled specially by placing them outside the normal data areas and using reference counting to ke
50.
▲
by
iamaleksey
17y ago
The translation is a bit off - the original text is correct. But these are not Medvedev's actual words anyway.