seppo0010
Joined 16 years ago
Joined 16 years ago
This blog post (2010) explains what the status is http://0pointer.de/blog/projects/locking.html
If something has changed since then (or that article is incorrect), please let me know.
https://github.com/rust-lang/rust/blob/master/src/libstd/col...
You can also look at `mio`, the asynchronous IO library that's popular in Rust:
https://github.com/carllerche/mio/blob/master/src/notify.rs#...
I also have no intention of making this project live as long or have as many users as Redis does.
First, I wanted to make it as pure Rust as possible. I tried to avoid UNIX specific code, and since there is no library with Windows support for asynchronous IO in Rust, I was pushed into spawning thread and blocking waiting for client data. I quickly noticed that the benchmark was way below Redis (around 60% of ops/sec with 50 clients). But then someone point out to me[1] that I was running tests in a machine with two cores, and this actually may be better for machines with multiple cores[2]. I have yet to try it out and benchmark the results.
So far Rust API was disappointing for network operations. For example, `TcpStream.read()`[3] and `TcpListener.incoming()`[4] do not have a timeout. Maybe because its development is driven for Servo and not for servers.
I have thought about doubling down on multithreading and instead of a global database lock as rsedis is using now, having one per key (or some other arbitrary partition), and having concurrent operations, which is hard to do safely in C. But I have not gotten there yet.
[1] https://github.com/jonhoo/rucache/issues/2
[2] https://github.com/jonhoo/volley/
[3] http://doc.rust-lang.org/1.0.0-beta/std/net/struct.TcpStream...
[4] http://doc.rust-lang.org/1.0.0-beta/std/net/struct.TcpListen...
I think more useful indicators are tests, documentations and pull requests.
* Tests. These are things you can actually run to see if the library actually works. In most cases, you can read them and understand how it is supposed to be used. On some platforms even if the tests passed in the past, they may not pass now, for example using different version of the language or platform. The coverage of the tests would be nice, but it is hard to measure at first sight, therefore using the ratio of tests LOC to library LOC might be an indicator.
* Documentation. The documentation itself does not change how the library behaves but it is a clear indicator whether the author expected someone else to be able to use it or not, and shows a sort of responsibility. Most of weekend hacks would not have one.
* Pull Requests. If there are old and open pull requests, that seem useful, it is a bad sign for the maintainer of the project.
[1] http://hawkins.io/2015/03/on-ruby/
[2] http://www.drmaciver.com/2015/04/its-ok-for-your-open-source...
You proof is irrelevant, and incorrect. I lived the past two years in California. Were does stats also correct two years ago? Or your "never" actually means "recently"?
> These attacks where the most common ones we had during the campaign.
Attacks? Really? I see that Partido de la Red is following Frente para la Victoria speech where you are either 100% with them, or you are the enemy. Am I getting paid be the Clarin Group now as well? I made questions.
> if you actually cared and waled the streets of the city
Ugh, that is an attach, and I don't really like your tone. You are implying that you only care if you are physically there, which is incorrect on every possible level.
You are systematically ignoring the questions I have asked, posting cherry-picked facts that are at most mildly related to the conversation I was trying to have with you.
My original question was: "How do you justify that most of the votes came from wealthy neighborhoods of the city?"
Your answer was repeating that people, even poor people, use internet. Well, cool, that's awesome. Now what do you think about my question for a change?
lol; yes, I'm hiding when I'm saying (a) you are using threading wrong (b) my personal experience is statically insignificant (c) I'm trying to have a debate while you have not presented a single argument.
> Stats? 72% of the Homes of Buenos Aires have Internet access. Of those, 88% with broadband access.
> Oh, I forgot: 93% of < 30 year olds access social media at least once a week in Buenos Aires.
Is that Buenos Aires City, or Buenos Aires City and Surrounds, or Buenos Aires Province, or Buenos Aires City and Province?
72% is the average, how is it distribute? we are talking about income inequality here, not about internet access.
Even in the most optimistic case where it is evenly distributed, what are you trying to prove? My criticism was that Partido de la Red got a lot better results on wealthier areas, and I was wondering how do you justify.
Saying that poor people also have internet actually makes your case worse, it means they actively decided that your project does not represent them.
A better argument would have been that access is getting there but they don't have it yet.
Sí he estado, no desde que se popularizaron los smartphones, y mientras hablas de experiencias personales no deja de ser estadísticamente insignificante.
Y no, me calenté con tu comentario, antes estaba argumentando, a diferencia de vos que no tuviste un solo arugmento.
I think I've exhibit thoughts, tried to look for mathematical proof, quoted people who are smarter than me, wonder about known problems when making decisions, and you consider that a rant?
You have no addressed a single concern I have shared. You don't have to, but your replies are infuriating because you are missing the point every time.
You are just repeating marketing phrases like "every single kid with a huge smartphone". Well, what does that prove? Does it prove that internet has as much penetration in lower income population than it does in high income one? I think not. And if you keep repeating that you are just insulting the young people who live in a slum and do not have smartphone, because you are blaming them for not having one.
> the gap is more generational than Socio-economical
That gap is not related to democracyOS but to technology. You will have a stronger impact on a young generation not because "you are thinking in long term" but because they'll understand it faster.
This comment was mostly a rant. And from now on I'll refuse to answer any comment you write until you want to provide something useful to talk about, or even back your statements.