News for hackers. Stuff that matters.
Re:Erlang.org's new website look by beej71 on Saturday March 26, 2011 @03:41PM (#2372973)

    -module(opine).
    -export([opine/0]).

    -import(io).
    -import(random).

    opine() ->
        io:fwrite("I "),

        X = random:uniform(),
        if
            X > 0.2 ->
                io:fwrite("love");
            true ->
                io:fwrite("hate")
        end,

        io:fwrite(" the new website.\n").
Re:Erlang.org's new website look by nivertech on Saturday March 26, 2011 @05:20PM (#2373235)

    -module(opine).
    -export([opine/0]).

    opine() ->
        S = case random:uniform() > 0.2 of
               true  -> "love";
               false -> "hate"
            end,
        io:format("I ~s the new website.~n", [S]).
Re:Erlang.org's new website look by metabrew on Saturday March 26, 2011 @06:53PM (#2373459)

    -module(opine).
    -export([opine/0]).

    opine() -> io:format(gen_opine(random:uniform())).

    gen_opine(R) when R > 0.2 -> "I love the new website.~n";
    gen_opine(_)              -> "I hate the new website.~n".
Re:Erlang.org's new website look by nivertech on Saturday March 26, 2011 @07:42PM (#2373558)

    -module(opine).
    -export([opine/0]).

    opine() -> 
       io:format("I ~s the new website.~n",[gen_opine(random:uniform())]).

    gen_opine(R) when R > 0.2 -> love;
    gen_opine(_)              -> hate.
Re:Erlang.org's new website look by metabrew on Sunday March 27, 2011 @06:24AM (#2374667)
Heh, won't quite work since you used ~s for atoms, and also, mine is better because it's more flexible if you want to change the format of an opinion for a specific score range ;P
Re:Erlang.org's new website look by nivertech on Sunday March 27, 2011 @09:40AM (#2374949)
Are you sure?

  [~]$ erl
  Erlang R14B02 (erts-5.8.3) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]

  Eshell V5.8.3  (abort with ^G)
  1> io:format("~s ~s!~n",[hello, world]).
  hello world!
  ok
  2>
Re:Erlang.org's new website look by metabrew on Sunday March 27, 2011 @06:04PM (#2376209)
I stand corrected!
Re:Erlang.org's new website look by beej71 on Saturday March 26, 2011 @10:51PM (#2373995)
These are awesome. I'm such a Erlang novice.
Re:Erlang.org's new website look by qwertymaniac on Saturday March 26, 2011 @02:39PM (#2372796)
Love the new design. Now I await for some form of erldocs.com-like documentation browser from them as well!

Citing a simple mailing list demonstration here: http://www.erlang.org/%3C/div%3E%3Cdiv%3E%3Ch1%20style=%22fo...

Re:Erlang.org's new website look by daleharvey on Saturday March 26, 2011 @02:52PM (#2372839)
they have it on the right side of the documentation page which leads to

http://www.erlang.org/erldoc?q=mensia&x=0&y=0

I still prefer erldocs, as the author I am bias though :)

Re:Erlang.org's new website look by gaiusparx on Saturday March 26, 2011 @02:34PM (#2372785)
Congratulation! Better look. Under Links->Erlang applications and projects, please consider to include Erlang apps such as Riak, RabbitMQ, CouchDB, ejabberd, Mochiweb, Webmachine and Zotonic.
Re:Erlang.org's new website look by rdtsc on Saturday March 26, 2011 @05:12PM (#2373205)
Good idea. They have ejabberd, yaws, and Wings3D under http://www.erlang.org/link . But no CouchDB, RabbitMQ or Riak...
Re:Erlang.org's new website look by marcc on Saturday March 26, 2011 @02:30PM (#2372771)
Noticed this yesterday when I was going to download R14B02. Took me a minute to make sure I was on the right site...

Now I can't wait for them to update the online man pages. Something like redis.io documentation would be ideal. A console right there, shows the complexity of functions. I'd be so excited...

Re:Erlang.org's new website look by metabrew on Saturday March 26, 2011 @06:55PM (#2373463)
I'd be happy if they based the docs on erldocs.com - having a decent, live search is crucial.
Re:Erlang.org's new website look by kingsidharth on Saturday March 26, 2011 @04:39PM (#2373110)
Err if this is the new site. Shouldn't their "Getting Started" be on left? And then regular links for regular users on Right and top?

Wonder what logic they followed to design the new site.

Re:Erlang.org's new website look by caioariede on Saturday March 26, 2011 @06:21PM (#2373385)
Would be nice to see tryerlang.org integrated with the Quickstart section.
Re:Erlang.org's new website look by indrax on Saturday March 26, 2011 @11:28PM (#2374060)
That big "e" in that color is giving me a bad association.