guilloche's comments

guilloche | 12 years ago | on: Cello: Higher level programming in C

It seems interesting but I did not get it. Does it try to add some c++ syntax sugar? Does it have performance advantage over c++ for similar functionality?

I am not a fan for C++ syntax, can I still get something from cello?

guilloche | 12 years ago | on: You Should Write Ugly Code

I agree with the article because the code many people consider beautiful does not mean easy maintainance.

We want clean and simple code, not anything with convoluted patterns.

guilloche | 13 years ago | on: Why I am building a product with a tiny market

As a small market pursuer, I had to say that a tiny market is different from tiny effort.

I developed torapp guilloche designer (http://www.torapp.info) for security printing industry, which is definitely a tiny market. But it did not mean less competition, and it is in fact much more complicated than a regular graphic editor like adobe illustrator and coreldraw.

Besides regular editing facilities in AI or coreldraw, I spent tremendous effort to handle all possible math formulas/curves as comupter algebraic system (CAS).

I would recommend people to pursue as big market as possible.

guilloche | 13 years ago | on: PostgreSQL as Schemaless Database [pdf]

Thanks for your reply.

But I have one more question, if I need to manage bank account, then the database must be consistent. Lets say that I just need to keep balance and social security number for the account, and only need to query the balance. Can No-SQL like redis have better performance than relational database? (assume same on logs and transactions).

guilloche | 13 years ago | on: PostgreSQL as Schemaless Database [pdf]

I am always wondering why no-sql has better performance than SQL if we have same simple use case (no join etc.).

If the data is well structured and no join is needed, can I assume that relational database should have better performance than no-SQL?

guilloche | 13 years ago | on: Why Asm.js Bothers Me

Yeah, I have the same bad feeling on asm.js.

If we need c/c++=>llvm=>javascript/asm.js for performance reasons, then why not just embed llvm inside web brosers? Isn't it much easier, and much cleaner?

guilloche | 13 years ago | on: Exceptions for control flow considered perfectly acceptable

Yeah, sometimes, using exception as control flow is the only simple and clear way. I do use it occasionally.

ex. Lets assume that a problem can be attacked as algorithm1 (A1), and algorithm2 (A2). A1 is fast but cannot handle some corner cases while A2 is slow and can handle all cases. we also assume that there is no easy way to tell whether A1 is good or not without invoking A1.

So the function can be implemented as:

void A()

{

  try {
    A1();
  }
  catch (e) {
    A2();
  }
}

void A1()

{

  .....
  if(corner case) raise();
  .....
}

Is there a simple way to avoid using eceptions here?

guilloche | 13 years ago | on: C++ containers that save memory and time

Without considering cache-miss, Red-black tree is much faster than B-tree. So this b-tree implementation must be tailored to cache-line size, and it may performs badly on some CPUs.

The performance gain on the B-tree container is also largely depends on the size of value. So choose this one carefully.

page 2