Better HN
topnewbestaskshowjobs
Log inSign up

papsosouid

2,420 karma · joined Apr 9, 2012 (14y ago) · 1,199 submissions

Submissions

comment 14y ago · link · parent

"I was thinking about switching to fad software X" is generally not a good line of thought. Why do you want to switch? Node.js doesn't offer parallelism, so it is obviously not a good choice for your app.

And "threads" is two things. There's programming in a threaded style, and there's using native operating system threads. They don't have to go together. For example, if you use a green thread library, you end up with the exact same benefits and limitations as an event loop, but with simpler, easier to understand code. A really good thread library could then handle multiplexing green threads over OS threads to get you parallelism too (see haskell).

comment 14y ago · link · parent

That has nothing to do with threads vs events at all. It is Zed going "I am going to make up some imaginary fallacies about poll and epoll and then prove them wrong, by proving epoll does exactly what it says it does". These are both ways of checking file descriptors for activity, which says nothing about threads vs event loops vs cps.

comment 14y ago · link · parent

I took dexen's original post to be suggesting it as a practical alternative. Reading it over again, it still looks like he is suggesting it as a practical alternative. Perhaps he was being sarcastic and I missed the point.

comment 14y ago · link · parent

Except I asked the question in response to someone offering up plan 9 as though it were an alternative to modern unix-like systems. Taking the question out of context will inevitably make your response pointless. If someone said "windows crashes too much when I am playing games" and someone else said "linux never crashes" in response, then it would be perfectly reasonable to expect the linux guy to explain how to play games on linux.

Since plan 9 largely replaces your unixy needs, could you share with me what those needs are, so I can try to get a better idea of what I might be able to use it for. I am not looking for an alternative to unix, I am looking for any practical way I can put plan 9 to use, rather than just tinkering with it on an old spare machine for fun.

comment 14y ago · link · parent

Even openbsd can do more than that! (are you even still involved with openbsd?). Seriously though, people keep acting like plan 9 is a practical alternative to a unix-like system, and I would love for that to be true. So, I am asking for someone to show me how I can use it that way. If those people are full of it, that's an ok answer. But it isn't my fault people are offering up the slinky as an alternative when someone complains their xbox 360 rrod'ed.

comment 14y ago · link · parent

I mainly think you did because of you saying you did: "You're missing the point if your criticism of it is that it doesn't run your favorite database."

comment 14y ago · link · parent

Have you tried reading my post? I said that as far as I am aware, you can't use it for any of those things, but that I could be mistaken. Ignoring what I said, to tell me what I said is stupid isn't productive or helpful.

comment 14y ago · link · parent

I gave a list of things I want to do. The typical server stuff 99% of unix-like systems are used for. I am not ruling out plan 9, I am asking what it can be used for. Why do people keep insisting on deliberately misrepresenting a question as a criticism?

I know plan 9 has factotum, but "google it" sure doesn't help me find a way to use it to authenticate windows clients. Or authenticate anything other than plan 9 for that matter. Aquarela doesn't even claim to work, and it is actually much worse in practice than it claims to be. And it can't be part of a domain can it?

I'm not trying to be critical here, but when I ask "what can I actually do with plan 9?" I am genuinely interested in a serious answer. Stuff like "well there's an unsupported kinda buggy thing that doesn't actually do what you need anyways" is just a less honest way of saying "you can't use it for anything".

comment 14y ago · link · parent

I am not making a criticism, I am asking a question. I already know about plan 9, I don't need to "check it out". I would like to know how I can actually use it for something, rather than just play with it for a couple hours and go "yeah ok, that was cool".

comment 14y ago · link · parent

Yeah, blizzard are big kids, they would never be so astoundingly incompetent as to do something like say, trust the client to decide whether or not a character is realm. Oh wait, yeah they did that didn't they? But surely they would never be so incompetent as to trust the client to tell the server the clients co-ords right? Oh no, they did they too (and still do!). Seriously, blizzard's demonstrated repeatedly that they either do not understand security, or do not care about security. Either way, "trust them because they have lots of users" is ridiculous.

comment 14y ago · link · parent

I didn't say I expected GNU to follow the unix philosophy. I pointed out that it doesn't, and that saying "unix doesn't follow unix philosophy" while pointing at GNU tools for proof is absurd.

comment 14y ago · link · parent

I really like plan 9 conceptually, but what am I supposed to actually do with it? Here's a list of services I need to provide, can I do any of these with plan 9?

Email (smtp+ssl, pop3+ssl, imap+ssl, greylisting + spam and virus scanning, virtual accounts authenticating against some central source like ldap) central authentication (windows domain, kerberos domain, something along those lines that can authenticate windows clients) file servers (again, windows clients, using central authentication) web servers (just simple static file serving and proxying dynamic content to app servers) database server (no postgresql for plan 9 still) app servers (pretty much no languages support plan 9, so our custom web apps are a no go right?)

As far as I know, I can't do any of those things with plan 9. Am I mistaken? Is there something I am not thinking of that I could use it for? Do people only use it in their own private little plan 9 only networks? It doesn't make much sense to offer plan 9 as an alternative to unix-like systems if it can't do 99.9% of the things unix-like systems are used for.

comment 14y ago · link · parent

Unix followed the unix philosophy just fine. Looking at current "unix-like" software and the huge amount of bloat and cruft isn't a reasonable way to criticize unix. Unix has been obsolete for decades, and the systems that took over (BSDs, linux, GNU) didn't follow the unix philosophy very much (or at all in the case of GNU).

comment 14y ago · link · parent

I don't get how this is an issue with the firewall. If the firewall wasn't there tossing away packets with invalid sequence numbers, then the actual host would toss them away anyhow right? So what's the difference having the firewall there or not? Either way you can figure out the sequence number by trying until you guess right.

comment 14y ago · link · parent

It wasn't really C vs perl, the languages have pretty different use-cases. Rather it was that he used awk, and said he considered perl "an unreadable write-only language". That was only half the issue though, he was also widely respected as an old school unix hacker. Like virtually all of the old school guys he preferred using BSDs, and slashdot was a linux noob circle jerk at the time (it may be still, I haven't been there in years). The combination of those two things led to a lot of really bad comments that demonstrated just how terrible the slashdot community really was.

comment 14y ago · link · parent

SomethingAwful is a great example of how poorly the "require payment to deter trolls" method works. It completely warped the user base into a pseudo-facist circle jerk.

comment 14y ago · link · parent

This is done very poorly here on HN. I got hellbanned on my first account. I have no idea why, and there was no warning of any kind. I have not changed my behaviour in any way as a result, I simply made a new account. I don't see how that helps the quality of discourse. Hell banning needs to be restricted to people who are obviously just being offensive for the sake of offensiveness. People who may be just trying to contribute but break some un-spoken rule should be warned that what they are doing isn't acceptable, otherwise they have no way to adjust their behaviour.

comment 14y ago · link · parent

Them saying that?

http://www.quora.com/Quora-Infrastructure/Why-did-Quora-choo...

comment 14y ago · link · parent

You aren't supporting your case at all. I said "just because you can accomplish something with bad software, doesn't mean you accomplished it because of that software". And you responded with "it is possible to build big things with bad software". Yeah, I know. That doesn't make the bad software good though, which was my point.

comment 14y ago · link · parent

It is a widespread myth that postgresql lets the OS do all the memory management and caching. I don't understand why it is so prevalent though considering it is so trivial to look and see that it is nonsense. Postgresql reads all data into a shared buffer cache. The data is stored in files, so of course the filesystem buffer cache is also used, but the idea that postgresql leaves it entirely up to the OS is totally false. It has its own cache as well on top of the filesystem cache.

comment 14y ago · link · parent

Why do mysql and PHP apologists think "people have managed to succeed despite deliberately making things more difficult for themselves" is a compelling argument? Mysql and PHP didn't make them succeed, or even help them succeed.

comment 14y ago · link · parent

You are making assumptions about one scenario based on limitations encountered in a very different scenario. The problems that occur around 24 cores occur on benchmarks consisting entirely of select statements against a single table. As I said, postgresql has scaled to 32 cores for real workloads for a few years. Real workloads have more than one table.

See here for an example of mysql having problems at only 8 cores (and postgresql destroying mysql's performance): http://www.scribd.com/doc/551889/Introducing-Freebsd-70

Postgresql scaling to 28 cores in 2007: https://docs.google.com/viewer?a=v&q=cache:-ytn3fY_Lr8J:...

Postgresql on 32 core t2000 being able to scale up to 1024 concurrent clients in 2008: http://www.pgcon.org/2008/schedule/attachments/50_46_pgcon20...

comment 14y ago · link · parent

You absolutely do not have to be "very smart" to design a correct relational database. There are a very small number of very simple, easy to understand rules. It requires making a small effort to educate yourself on the basics of the relational model, and that's it. No special genius required.

comment 14y ago · link · parent

Why do you say this like it is impressive? Postgresql will scale to 32 cores with a real workload, and has done so for a few years. Mysql performance still tanks at 8 cores. It is very unlikely that mysql will be able to match postgresql for this workload, much less outperform it "handily".

comment 14y ago · link · parent

It is weird that all the comments are about patch theory. I use darcs because it is by far the easiest, simplest to use DVCS. I don't know anything about patch theory, and I don't care about it at all. I just know I can have a DVCS noob using darcs effectively in a couple minutes, and it will merge properly.

comment 14y ago · link · parent

The problem with that analogy is that you are comparing darcs to a myth. Postgresql was not "very slow at first". It has certainly gotten faster, but it was faster than mysql for real workloads ~15 years ago. It isn't closing a gap, it is pulling further and further ahead. Mysql is only fast if you are using myisam tables and doing a single threaded microbenchmark of repeating a single simple query in a loop. On real benchmarks where there's many connections executing many different queries at the same time, postgresql has always been way ahead of mysql.

comment 14y ago · link · parent

All that I am getting is that you seem convinced that the model is purely data. It isn't. Behaviours are part of the model. The behaviour of "getting info from some remote data source" is absolutely part of the model.

comment 14y ago · link · parent

It is part of the application, and thus part of the domain. A class that is responsible for getting status updates from facebook is part of your model. The way you say "updates your user model" makes it seem like you are thinking about the model as modelling the database. You keep saying this "has no business being in the model", but you haven't supported that in any way. Why doesn't it belong in the model?

comment 14y ago · link · parent

I don't understand the distinction of "not domain logic". If your application requirements are "when user does X, update facebook" then that is clearly part of the domain and should absolutely be in the models.

comment 14y ago · link · parent

The issue of model code creeping into controllers is common with rails and rails-style frameworks precisely because they are not MVC frameworks. MVC was a pattern created for making GUI apps in smalltalk in the 70s/80s. It has gradually been warped and twisted since then, especially when people tried to cludge it onto web development. The resulting thing doesn't really resemble MVC at all, and certainly doesn't deliver the benefits MVC was created to deliver.

MVC is a triangle, rails style frameworks are a line. This is called MVA (Model-View-Adapter). The "adapter" being in between the view and the model who can only interact with the adapter and not each other. The second issue is that in adapting MVC to the web, many frameworks continued with the "one controller per view" notion, despite that being done because of the limitations imposed when creating GUI apps. There is no need for multiple controllers in a web app, all input comes in the same way no matter what view the user is seeing. In fact, the user doesn't even need to be seeing a view, there is nothing tying a view to what actions are possible, you can always submit any http request you want. Your "routes" are your controller, there is no need for a second level of controllers on top of that.

The goal of MVC was to expose model functionality to the user directly so they could understand and work with the domain model clearly and easily. Controller meant "controls the input and output" not "controls the users experience". The guy who created MVC considers naked objects style frameworks to be the closest thing to MVC for the web, not rails style MVA frameworks.

And there is something very weird about this statement:

>On top of that, it’s very common to see logic pushed down into the model

Of course that is common, that is what is supposed to happen. Models are not "stupid containers to pretend to kinda represent my DB sorta but not really". Models are the business logic. Models are the actual application. You are modelling the domain, not modelling the database. The model is the domain, it is all the business logic. The view is the way we present information to the user. The controller is the part that handles input and output. Very simple and effective system, but very poorly understood and virtually never used any more.

1
3637383940