Better HN
topnewbestaskshowjobs
Log inSign up

c2u

2 karma · joined Jul 2, 2013 (13y ago) · 16 submissions

Submissions

comment 12y ago · link · parent

I love this. Wish one day I can use javascript to build an ios app.

2.

Show HN: Add thumbnail Image to OurJS blog engine(code.ourjs.com ↗)

3 points · by c2u · 12y ago · discuss

comment 12y ago · link · parent

Thank you

comment 12y ago · link · parent

Sorry the response may be very slow.

Yes. I plan to do this, cache everything.

I have carefully calculate the demand of memory and the cost.

1) As traffic grows, memory consumption does not growing, because of node.js?

I was running another site ourjs.com, sometime I saw 100~200 active users on site at the same time (from Google Analytic), but the memory used of ourjs thread is still less than 100Mb, almost the same when there is no traffic.

2) JSON Data doesn't consumption much memory, I post one article per day on my ourjs, now there are more than 450 articles, I think I can use this framework for 10 years.

3) There maybe memory limitation in V8 but I don't think the blog/website will exceed this limit, maybe I will split into several threads in future if I really run into this issue.

comment 12y ago · link · parent

Yes, at first I use mongodb but I found the performance was not affected after I removed mongo, since I caching all the data in memory.

However the article ID is still created by mongodb-native module.

comment 12y ago · link · parent

It's a beta version. I will be very appreciated if you can help me testing the usability, performance, security, etc.

PS: English is a foreign language for me, if you can point out any grammatical errors, I will be very happy too.

7.

Free Blog, Forum, Website Platform and CMS based on Node.js (Stored in JSON)(ourjs.org ↗)

9 points · by c2u · 12y ago · 7 comments

comment 12y ago · link · parent

Swift is a little complex.

Does it compile to Object-C?

comment 12y ago · link · parent

have fun

10.

A simple light weight jquery plugin library to make working with Bootstrap css.(bootstrap.ourjs.com ↗)

1 points · by c2u · 12y ago · 1 comment

comment 12y ago · link · parent

Where to find the teather?

comment 12y ago · link · parent

"1 2 3".replace(/d/g, parseInt), I guess it should be "1 2 3".replace(/+d/g, parseInt)

comment 12y ago · link · parent

Me too.

comment 12y ago · link · parent

PHP is great, but for beginner nodejs is better. If you are very good at PHP, you don't need to.

comment 12y ago · link · parent

Really? I don't think so.

comment 13y ago · link · parent

js & nodejs