Pichi's blog's Image
More about this blog
Latest Post
11 Nov 2009
Total Posts
16
Readers
193
Liked
0
Disliked
0
Views-Per-Post
12.06
vote up
0
vote down

Closure vs. Object in Perl

I was curios how closures performs in comparison with objects in Perl. I have tested it on counter as the simplest possible abstraction with state. use Benchmark qw(cmpthese); sub make_counter { my $counter = shift; return sub { $counter++ }; } package
Nov 11 2009 03:52 PM
vote up
0
vote down

How fast or slow is Moose?

Moose is a postmodern object system for Perl 5 that takes the tedium out of writing object-oriented Perl. It borrows all the best features from Perl 6, CLOS (LISP), Smalltalk, Java, BETA, OCaml, Ruby and more, while still keeping true to its Perl 5
Feb 15 2009 09:52 PM
vote up
0
vote down

Absolute path resolver

I was looked for some utility to resolve absolute path of file or directory. I found namei but it result returns in form $ namei /etc/gdc f: /etc/gdc d / d etc l gdc -> /home/hynek/.gdc d / d home d hynek l .gdc -> work/tiger/bear/common/etc/gdc d work d
Jan 28 2009 03:19 PM
vote up
0
vote down

Erlang history summary by J. Armstrong

Joe Armstrong posts nice summary of Erlang history.The transition was easy - they paid to do this. It became a real shipping project when they decided to use Erlang for the AXD301 - at that stage they put in the necessary $$$'s. Now why did they choose
Jan 14 2009 05:52 PM
vote up
0
vote down

History of Erlang

Joe Armstrong wrote nice article about Erlang History. It's worth reading whole article but I found most funny and nice part it's end. 6.4 Finally It is perhaps interesting to note that the two most significant factors that led to the spread of Erlang
Jan 13 2009 07:49 PM
vote up
0
vote down

My interests

Matin Hassman in his blog post wrote about the Wordle. This is nice toy tool to for generating "word clouds" from text. I have generated two from my bookmarkas and shared items in google reader. Bookmarks Shared Items
Dec 17 2008 03:30 PM
vote up
0
vote down

Beust Challenge in Erlang

There was a challenge posted by Cedric Beust. I tried reuse my older solution of permutation generator and aplly this aproach on this issue. Here is result: -module(cbchallenge). -export([test/1]). combine(Sufix, 0, Acc, _L) ->
Sep 03 2008 09:31 PM
vote up
0
vote down

Arc - mostly macros and syntactic sugar

Stefan Tilkov said about Arc: After a quick glance at the tutorial, the most intriguing bit seems to be the support for macros, which work (almost) like function definitions. Interesting, but nothing that gets me overly excited. I have same experinece. I
Feb 01 2008 03:24 PM
vote up
0
vote down

How much cores are using WF solutions

Tim Bray published WF XI: Results and I would like to know how much of all these CPU cores each solution uses. Than I compute this table: Name Language Elapsed User System Parallel CPU
Nov 02 2007 03:12 PM
vote up
0
vote down

Faster than ruby but scalable

Update 2007-11-01: Correction of typo in wf_pichi3.erl.@@ -14,7 +14,7 @@ -compile([native]). -main([File]) -> start(File), halt(). +main([File]) -> start_bmets(File), halt(). start_bmets(FileName) -> {ok, F} = nlt_reader:open(FileName), I worked
Oct 28 2007 11:22 PM
vote up
0
vote down

Scalable splitting is possible

In my previous post I thought that reading and splitting are unscalable processes. It's not true. Reading is scalable, but on current HW it is not useful, because sequential reading is more than twenty times faster than random from disks. But what about
Oct 27 2007 03:10 PM
vote up
0
vote down

Wide Finder Project - fold&reduce

I have made new version of Wide Finder Project. I was inspired by last Caoyuan's last work. I thought about i/o operation too, but I think, parallelisation of file reading is not good idea. Instead of this I tried split file reading and new line finding
Oct 21 2007 11:08 PM
vote up
0
vote down

Is bfile faster than old erlang file?

Steve Vinoski is using klacke's bfile module in his Wide Finder Project work, but I don't know why bfile should be faster than erlang OTP file. Well, then I measured. I tried Steve's read test and my test on my old home desktop (model name : AMD
Oct 08 2007 11:31 AM
vote up
0
vote down

erlang-base-hipe.deb don't contain native compiled modules

When I measured Caoyuan and my Wide Finder Project solution I found my binary solution faster than list, but Caoyuan measured reverse result. Then I looked why. Caoyuan is using MacOS X and I'm using Debian. I don't know if MacOS port of erlang has base
Oct 07 2007 11:40 PM
vote up
0
vote down

Binaries really faster than lists

Caoyuan did his second round of Wide Finder Project using lists, but expected lists traversing is faster than binary traversing. But he made little mistake. He assumed, that timer:tc(tbray, travel_list, [binary_to_list(Bin)]) including
Oct 07 2007 02:10 AM
vote up
0
vote down

Keep your mailbox empty

Matthias wrote Too much mail is bad for you. Yes, it's true. He solved problem by synchronous communication between producer and consumer, but this solution blocks producer and is not "appropriate solution in general" (second comment). I think, one good
tags: erlang
Oct 03 2007 08:04 PM