Live data from Hacker News

Baidu File System – A distributed file system for real-time applications

github.com

21–30 of 169 posts

Re: Baidu File System – A distributed file system for real-time applications

#21
post #19
post #18

https://github.com/baidu/bfs/blob/master/src/client/bfs_clie... std::string pad; if (path[path.size() - 1] != '/') { pad = "/"; } Else?

The value constructor for strings is the empty string.

I imagined that. I am more like "let me tell you exactly what I want" rather than relying on behavior defined elsewhere. It would not pass review where I work.

Re: Baidu File System – A distributed file system for real-time applications

#22

What wonders me the most, is when they change titles. 1 chinese character sometimes matches 1 english word Eg. lylei changed the title from "cs启动太慢" to "cs start is too slow " ( on https://github.com/baidu/bfs/issues/376 ) lylei changed the title from "其他SDK写策略" to "SDK writing strategies(fan-out write for example)" (on https://github.com/baidu/bfs/issues/243 )

"cs启动太慢" means "cs start-up too slow," where 启动 is start-moving and likely a verb-result construction, a pattern in Chinese that to my knowledge doesn't exist in Germanic languages. The second one is more accurately translated to "Other SDK writing strategies."

Re: Baidu File System – A distributed file system for real-time applications

#24
post #18

https://github.com/baidu/bfs/blob/master/src/client/bfs_clie... std::string pad; if (path[path.size() - 1] != '/') { pad = "/"; } Else?

I have not used C++ much, but isn't pad default-constructed to be an empty string here?

Re: Baidu File System – A distributed file system for real-time applications

#25
post #21
post #19

Earlier quoted context omitted.

The value constructor for strings is the empty string.

I imagined that. I am more like "let me tell you exactly what I want" rather than relying on behavior defined elsewhere. It would not pass review where I work.

Not to be rude, but I'm glad I don't work where you work.

How would that be consistent with your own classes? "Oh no, you can't just use a 'Tree' object, you need to explicitly set that there are no leaves yet, no branches yet, no squirrels yet, etc… etc…"

Do you .clear() your vectors before you use them?

This sounds like newbies that do: #define TRUE (1 == 1)

Re: Baidu File System – A distributed file system for real-time applications

#26
post #21
post #19

Earlier quoted context omitted.

The value constructor for strings is the empty string.

I imagined that. I am more like "let me tell you exactly what I want" rather than relying on behavior defined elsewhere. It would not pass review where I work.

It's a distributed real-time filesystem. I'm guessing optimizations are key?

Re: Baidu File System – A distributed file system for real-time applications

#29
post #7

awesome

Care to explain the awesomeness you found?

I see many positive comments that are not downvoted, so when you downvote someone saying "awesome", I suspect it is because you disagree, not because it was a low value post, which would be the reason why you would downvote. Also, your response was "explain why"; again, I don't see people usually questioning each acclaimation.

Re: Baidu File System – A distributed file system for real-time applications

#30
post #16

More like a C++ clone of HDFS than most people are likely hoping. While you seem to be able to mount it with FUSE I imagine it's primarily meant to be programmed against directly. Using Raft over a dependency on an external consensus system is nice. Definitely makes the namenode architecture much better.

Is there any benchmark available?
Post reply on HN