Live data from Hacker News

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

github.com

31–40 of 169 posts

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

#32
post #18

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

It's an interface that's no longer in use. Would you like to write an issue to us or make a pr to fix it? :)

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

#33
post #25
post #21

Earlier quoted context omitted.

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)

It's not about initialization, it's more about specifying clearly what happens in all cases.

Anyway the reason for which it would no pass review is that today you use one compiler, tomorrow you have to use another and then you have to review all these little details again. It's about saving money more than anything and you do that by not relying on compiler behavior.

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

#34
post #26
post #21

Earlier quoted context omitted.

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?

Probably.

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

#35
post #27

Anybody know how this differs from AFS?

I think AFS is still only replicated for read-only, not for read-write.

No, it's replicated read-write, but according to wikipedia, file locks are only machine-wide, so write collisions are easy to create.

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

#36
post #32
post #18

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

It's an interface that's no longer in use. Would you like to write an issue to us or make a pr to fix it? :)

:) send me your billing details.

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

#40
post #28
post #12

Too bad that the documentation is so poor... Having PRs in Chinese is not ideal either.

Do you even know how it is when not-your-own-language is the dominant one for everything in computers?

Sssshhh don't point out the hypocrisy.
Post reply on HN