
/Erlang
dcaoyuan
这个作者很懒,什么都没留下…
展开
-
Updated "From Rails to Erlyweb" Part I and Part II
I've updated "From Rails to Erlyweb" Part I and Part II. What's new?The database configuration is now stroed in opaque part of yaws.confA new params.erl which uses dict to store params and converts...2007-07-30 00:13:43 · 82 阅读 · 0 评论 -
The Erlang Way (Was Tim Bray's Erlang Exercise - Round IV)
Playing with Tim's Erlang Exercise is so much fun. I've been coding in Erlang about 6 months as a newbie, in most cases, I do parsing on string (or list what ever) with no need of regular expressions...2007-10-17 07:45:57 · 118 阅读 · 0 评论 -
Reading File in Parallel in Erlang (Was Tim Bray's Erlang Exercise - Round III)
My first solution for Tim's exercise tried to read file in parallel, but I just realized by reading file module's source code, that file:open(FileName, Options) will return a process instead of IO de...2007-10-15 19:56:03 · 116 阅读 · 0 评论 -
Tim Bray's Erlang Exercise on Large Dataset Processing - Round II
Updated Oct 09: Added more benchmark results under linux on other machines.Updated Oct 07: More concise code.Updated Oct 06: Fixed bugs: 1. Match "GET /ongoing/When/" instead of "/ongoing/When/"; 2...2007-10-15 15:37:06 · 151 阅读 · 0 评论 -
Tim Bray's Erlang Exercise on Large Dataset Processing
Updated Oct 10: pread_file/5 should open a new FIle process each cycleUpdated Oct 05: Wrote a new version, which is more parallelized-likeness.Updated Sep 27: Per Gustafsson gave a better solution,...2007-10-10 20:12:08 · 124 阅读 · 0 评论 -
Parse JSON to xmerl Compitable XML Tree via A Simple XML State Machine
Updated Aug 16: Fix bugs when json is an array. Add a 'json:root' element always since valid xml should have a root. Remove 'obj' tag that is not necessary.Updated Aug 15: A more complete json_parser...2007-09-02 20:00:31 · 112 阅读 · 0 评论 -
From Rails to Erlyweb - Part II Manage Project - Reloaded
The migrating from Rails to Erlyweb of our project is going to be finished. I got more experience on how to deal with Erlyweb. First, the project management can be more straightforward. Here is it: 2...2007-08-24 19:20:39 · 115 阅读 · 0 评论 -
From Rails to Erlyweb - Part II
Updated Aug 23: Please see From Rails to Erlyweb - Part II Manage Project - ReloadedUpdated July 15: store the database configuration in <opaque> session of yaws.confUpdated May 2: erlweb:com...2007-08-23 21:16:44 · 103 阅读 · 0 评论 -
recbird - An Erlang Dynamic Record Inferring Parse Transform
You should have read Yariv's recless blog, a nice blog talking about how to make record accessing simple.Recless is a static type inferring record parse transform, that means, as described in Yariv's...2007-08-23 08:31:21 · 97 阅读 · 0 评论 -
A Simple XML State Machine Accepting SAX Events to Build xmerl Compitable XML Tree: icalendar demo
xmerl is a full XML functionality in Erlang, with a lot of features like XPATH, XSLT, event_function, acc_function etc. Well, now I just want to get icalendar to be parsed to form of xmerl tree, which...2007-08-20 07:23:24 · 79 阅读 · 0 评论 -
A Simple POET State Machine Accepting SAX Events to Build Plain Old Erlang Term
Per previous blogs:A Simple XML State Machine Accepting SAX Events to Build xmerl Compitable XML Tree: icalendar demoParse JSON to xmerl Compitable XML Tree via A Simple XML State MachineI wrote...2007-08-20 07:19:48 · 89 阅读 · 0 评论 -
ErlyBird 0.12.0 released - Erlang IDE based on NetBeans
I'm pleased to announce ErlyBird 0.12.0, an Erlang IDE based on NetBeans. This is a bug-fix, performance improvement release. This release will only provide all-in-one IDE package, which is in siz...2007-08-08 18:40:30 · 89 阅读 · 0 评论 -
From Rails to Erlyweb - Part I
Updated July 20 2007: new params.erl which uses dict to store params and converts to proper type(integer/float/string) It's time to migrate our project from Rails to Erlyweb (It cost me one month to ...2007-08-05 06:34:41 · 94 阅读 · 0 评论 -
From Rails to Erlyweb - Part III
3. The Magic Behind ErlywebWith dynamic typing, hot code swapping, built-in parsing and compilation tools, Erlang is also suitable for dynamic meta-programming. Erlyweb uses a small convenient tool s...2007-07-30 00:14:58 · 116 阅读 · 0 评论 -
HTML Entity Refs and xmerl
According to [erlang-bugs] xmerl and standard HTML entity refs, currently xmerl_scan only recognizes the very limited set of entity references. In brief, if you try to xmerl:scan xml text that includ...2007-07-30 00:14:38 · 96 阅读 · 0 评论 -
From Rails to Erlyweb - Part IV
IV. Support Mysql Spatial Extensions via erlydb_mysqlErlyDB supports most database operations, and it can also be extended to support more complex operations. Here is an example, where I need to supp...2007-07-30 00:14:11 · 81 阅读 · 0 评论 -
Learning Coding Parallelization (Was Tim's Erlang Exercise - Round V)
Updated Oct 16: After testing my code on different machines, I found that disk/io performed varyingly, for some very large files, reading file in parallel may cause longer elapsed time (typically on ...2007-10-17 21:58:50 · 123 阅读 · 0 评论