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

It isn't a war when they are all open source. And the differentiation between linux distros isn't new, and doesn't matter. All decent unix software works on a bunch of linux distros of various ages, plus half a dozen BSDs, solaris and OSX. Ubuntu not using systemd doesn't matter at all.

comment 14y ago · link · parent

I don't think it is misleading. I think it is misleading to pretend java is a reasonable example of static typing. Java does tons of dynamic typing (hello null pointer exceptions), and would best be described as half way between static and dynamic typing.

comment 14y ago · link · parent

Yeah, lots of broscience nonsense like that stems from the "bob did it and he is ripped so you must need to do it" line of thinking. Sedentary people need 0.69 g of protein per kg of lean body mass. Strength athletes need 1.41 g/kg (which is only 0.64 g/lb, way below the crazy numbers broscience likes to repeat). People who lift weights casually 3 times a week are going to be somewhere in the middle obviously.

http://www.ncbi.nlm.nih.gov/pubmed/1474076?ordinalpos=3&...

comment 14y ago · link · parent

http://www.enterprisedb.com/cloud-database

comment 14y ago · link · parent

So use enterpriseDB's postgresql service. It is the same deal as RDS, hosted on amazone, only using postgresql and operated by postgresql experts.

comment 14y ago · link · parent

He is just sharing what worked for him. Any diet where you consume fewer calories will allow you to lose weight, it is just a question of choosing one you will stick with.

You absolutely don't need to do the paleo/keto nonsense at all. I eat meat twice a week and barely eat any dairy (just a little cheese once in a while). I eat pasta, white rice and potatoes all the time. I've lost 68 pounds so far as of this morning. No matter how much people want to pretend there is magic involved, or point to hilariously bad books like Taubes' junk, it really does come down to "burn more calories than you consume".

I can't tolerate low carb diets, I feel hungry and tired all the time and end up going nuts after a couple weeks and breaking down and eating a ton of pasta. So I didn't go low-fat or low-carb, I just eat reasonable portions, make sure the food I eat is always satisfying, and exercise. I find it much easier for me to increase the calories I am burning than to decrease the calories I am consuming too far.

And contrary to what spking says, it is not hard at all to get enough protein as a vegetarian. You only need ~55g a day, which I get easily on days where I don't eat meat. On meat days I end up around 90g. If you are doing heavy lifting you'll need maybe 20g a day more than average, and if you do endurance sports you could need up to double the average. But if you aren't doing either of those things, you should easily get enough protein without making any special effort or using supplements.

comment 14y ago · link · parent

Did you actually mention any of these disadvantages? Most often I see the attitude you describe when someone says "I tried haskell/lisp/ocaml/scala/clojure but it isn't practical". And that's it. No explanation of what their problems were, just "nope, it obviously can't be used for anything practical and you must be crazy if you think you can use such a language". After seeing that kind of nonsense enough, it can be easy for somebody to fall into the trap of assuming you didn't really try it either if you don't bring up some specific problems.

comment 14y ago · link · parent

Most of the mysql holdouts I've encountered have a deeply ingrained notion that postgresql is hard (no idea where this idea comes from though) and because it tries to be reasonably correct, it must be "some academic nonsense" with no practical value for "just getting stuff done". Usually if you can force them to use postgres for a couple weeks they get over it and realize how bad mysql really is.

comment 14y ago · link · parent

Yes, he posted that after Greg posted "no, hamlet is the best thing ever nobody can want to use anything else". Greg is the other yesod developer/maintainer. Notice other people have replied with similar sentiments. I think your love of yesod is blinding you.

comment 14y ago · link · parent

Are you saying JSP and meaning something else? I can't figure out any way you could think that other than confusion over what JSP is. JSP is where markup and code are mixed together, using a special delimiter to start and end code parts. Just like ASP and PHP and hamlet and virtually all template engines. Lift/heist/zpt are the exceptions to the rule.

comment 14y ago · link · parent

I didn't mean to imply happstack copied snap, but rather that my perception of happstack as "weird" was wrong and it is actually pretty much the same. The sales pitch request wasn't hypothetical, we've only been using snap for a little while and I actually am interested in any advantages happstack may offer.

comment 14y ago · link · parent

It isn't a co-incidence, I registered specifically to post in this thread as it is relevant to my interests. I posted the posting guidelines as I just registered, so had just read them myself (they are conveniently linked under the little box you type words in). I am not sure whether I should be flattered or creeped out by your obsession with me, but I'll assume both.

comment 14y ago · link · parent

>Snap is like Servlets+JSP (especially wrt templating, besides that it is quite similar to Yesod)

Snap offers heist as a default template engine. It is nothing like JSP at all, it is a pure html template engine like lift or zope's templates. There is no embedding any sort of logic or code in the template at all.

>How is that a problem? I say: "Template Haskell and Quasi-Quoting FTW!"

Using is fine, it is intended to reduce boilerplate and works well for that purpose. Yesod over-uses it where it is entirely unnecessary. You lose composability and have to learn another language.

comment 14y ago · link · parent

The hostility is on display right here, just asking how hard it is to use another template engine gets you a "hamlet is the best" response from one of the devs.

Your list of benefits is a list of things you like. Telling me what you like doesn't make it so that I also like what you like. Yesod offers no advantages to me, as I would be using it without hamlet and without persistent, making it just an uglier happstack or snap. As I said elsewhere, I am one of the significant number of people who feel yesod's over-use of template haskell and qq is unnecessary and detrimental. It seems to appeal primarily to non-haskellers.

comment 14y ago · link · parent

http://ycombinator.com/newswelcome.html

This isn't reddit, please spare us the memes and +1s. I think the odds of such a contribution being well received are quite low given the hostility to that notion the developers of yesod still display. Given that I can't see any benefit to using yesod, it seems like a waste of time for me to contribute an unwanted template engine to it.

comment 14y ago · link · parent

>You say you can use type-safe urls, but you aren't actually doing it

I'm not because I don't want them. If I did I would be using blaze-html and web-routes.

>But Again, this is just one example.

I politely and genuinely asked that you provide those other examples, as the one you did provide is obviously bogus.

>But you chose to give us zero feedback until we make a 1.0 release announcement

Actually, I did ask in IRC about a year ago. And two days after I asked you offered up the same response you have been giving here: "hamlet is perfect and you are wrong for not liking it". I also got similarly slow and unhelpful responses with other issues, like how yesod used to only work on ipv6.

>and then come out of the wood-work and pic at every nit you can find in the comments of the release announcement and state some other framework is better

If you were a little less defensive and a little more reasonable, you might see that I never said anything of the sort.

comment 14y ago · link · parent

Getting offtopic here, but what would you say is the difference between snap and happstack? I ignored happstack for the longest time because of the association with what is now acid-state. When snap came along I checked it out, and then more recently I looked at happstack and got a "so, it's pretty much the same as snap?" feel. Is snap just a better marketed happstack? What would your sales pitch for happstack be to a snap user?

comment 14y ago · link · parent

Hmm, I'm sorry to have (mis)spoken for you. I assumed you would tell him that since you appear to have been pretty open about it on the mailing list and in IRC. So you think happstack-server is better than snap-server? Or just that I am over-stating the difference?

I know there was talk of switching happstack over to warp, and then more recently of writing another server instead. What is it you are planning to do better than warp, performance, correctness, features or something I'm not thinking of? Is there anything in particular that made you decide not to use warp?

comment 14y ago · link · parent

>Its not absurd, that has been our experience the majority of the time.

It is absurd, and saying "I only look at people who like hamlet, and all I see is people who like hamlet" doesn't make it any less absurd.

>Your comment about Yesod having nothing unique shows you never really used Yesod or are very intentionally trolling

Again, stop with the accusations and consider the very real possibility that not everyone shares your preferences.

>For example, Snap does not have type-safe urls and Happstack has a very different approach to its related routing

Except that I can use web-routes with either, and end up with the same thing. How exactly does "yesod does a trivial thing like routing slightly differently from the default way snap/happstack do it" become some compelling unique feature? How easy is it to not use yesod's routes?

I would actually appreciate if you could list some other examples. We use postgresql, so nothing persistent related was of interest to us. If we don't like the templates, that leaves form handling and some trivial stuff like sessions, routing, etc. Sessions are effectively the same across all three, routing is more flexible in snap/happstack than yesod, and yesod's form handling appears to be "like digestive-functors but dependant on persistent". If you think yesod is a good choice for someone who won't be using persistent or hamlet, then I am genuinely interested in hearing the reasoning.

comment 14y ago · link · parent

How did you measure the number of yesod, snap and happstack users? "Objective measurement" means something. Keep in mind, "there's more traffic on mailing list X" doesn't mean there's more users of software X, it means there's more users asking questions about it. Given that yesod is much larger, it doesn't seem terribly unreasonable for there to be more questions about using it.

I think you've been displaying the inflexibility I refer to right here. "Everyone loves hamlet because I said so, if you don't love it you don't exist because I said everyone loves it". I understand you like the tools and methods you use, but your reaction to other people preferring other things appears hostile and/or dismissive. Accepting that people can like a different template engine without being objectively wrong might lead to yesod users having a plurality of template engines to choose from.

comment 14y ago · link · parent

>There was a heavy implication that they market at the expense of engineer.

I am impressed at your ability to read that which I did not write. There was no such implication, it is a criticism of happstack and snap. More talking = more users = more feedback = better framework. It is especially unfortunate that snap originally seemed to be making serious efforts at marketing, and then just sort of stopped.

>Fair enough. We try to stick to the "dumb storage system" model because it gives us a lot of flexibility and makes scaling easier

We avoid the dumb storage model because it eliminates flexibility, and forces us to re-implement database functionality in our app code. We're talking about starting from scratch, I just don't want to start by throwing away all the power of our database for nothing. Our biggest apps are only in the 10s of millions of rows range, so scaling isn't a problem. If it were, I'd be looking into actual dumb storage systems though (mongo, cassandra, etc) instead of using an RDBMS as a slower version of one.

>But remember, Persistent != Yesod. You'll notice yesod-core doesn't depend on persistent at all.

Yes, but as I said that is the big feature that yesod appears to provide vs happstack and snap. But upon closer inspection we had to go down to hdbc regardless of the framework.

>[[citation needed]] I think the principle difference is that Yesod plays to Haskell's strengths in being "radically typesafe"

Citation for what? That if you don't use persistent then yesod and happstack and snap are similar in functionality? I am not sure how to prove that, how about the other way? What other functionality does yesod offer that I am forgetting?

Yesod avoids haskell in attempting to be "radically typesafe". You get the exact same amount of type safety by using blaze-html and web-routes in happstack or snap as you do using yesod. As I mentioned before, yesod's template haskell, quasi-quotation fetish is rather controversial in haskell land. You can get the benefits yesod offers while retaining composability and the familiarity of using haskell instead learning a DSL. The amount of errors we see in compiled haskell code is minimal, it should not be shocking that this extends to yesod.

comment 14y ago · link · parent

I'm not sure what code examples would do, you could use the examples on the yesod site. It isn't a case of "yesod can't do X", it was just out of the 5 people who tried it, 4 voted no. You can't "fix" yesod when it isn't broken, and I think trying to cater to my subjective preferences would simply alienate the people who like yesod.

Your characterization of my posts as trolling is both inaccurate and unnecessary. Having a different opinion is not trolling.

comment 14y ago · link · parent

I am not re-enforcing your statement at all. I think it is absurd to suggest that people will just suddenly start liking hamlet if they put up with it long enough. I used PHP for over a decade, I still think it is an awful template engine. Hamlet has the same problems as PHP, and added a new one. And the main part of your post I was objecting to was "everyone loves it and nobody has ever wanted to use anything else". We wanted to use something else, but once we stop using hamlet, there's nothing left making yesod unique vs happstack and snap, so we just switched instead of complaining.

comment 14y ago · link · parent

>you really believe that the yesod guys are marketers?

I didn't say yesod had the best website, I said they put the most effort into marketing. Michael and Greg do a lot of talking about yesod, and are the only haskell framework attempting to draw in people from outside of haskell. You seem to have interpreted this as an insult, it was not. Usage increases with awareness.

>How so?

Unless you are using your RDBMS like a dumb storage system, then persistent doesn't provide the tools to access it. We're not talking advanced stuff here, the most basic fundamentals were done incorrectly: it requires int primary keys on all tables for crying out loud. Obviously multi-column foreign keys just went out the window then too. Of all our apps here, not even the most trivial could be ported to yesod using persistent.

>Any persistence layer you use with Snap or Happstack is just as easy to use in Yesod too.

Certainly. But the major difference between yesod and snap initially appears to be "yesod provides high level DB access and snap doesn't". This may be true of mongo DB (I have no use for it), but for an RDBMS it actually ends up being that neither provides high level DB access, and you have to use something from hackage.

>Again, how so?

Happstack's webserver has several issues, space usage being a major one. This isn't a controversial statement, Jeremy will tell you the same thing, it is why he's focusing on replacing happstack-server.

comment 14y ago · link · parent

Personally, I can't stand the "lets mix code and markup" style of template systems in general, which includes most templates. I also hated the indentation system, it just doesn't work well in markup heavy templating. I'm fine with indentation in programming (obviously given that we're talking about haskell), but it drove me nuts in templates as I had to indent far too much, it isn't simple blocks of code being indented, it is "indent everything that is inside something else", which is of course everything.

I found it was just as ugly and awkward as JSP/ASP/PHP, but with the added detriment of forcing me to use indentation where I didn't want it to make it look even less clear, and no closing tags so existing tools look at it and puke. I actually like syntax highlighting. I am atypical I think in that I like zope/lift/heist templates where the template is just pure HTML, and it calls out to "snippets" of code to do anything dynamic. But given the indentation issue, I'd sooner use JSP than hamlet.

comment 14y ago · link · parent

You might also be a little biased being a yesod developer and all. For what it is worth, I found both the happstack and snap communities far more helpful. Yesod makes a ton of assumptions, and questioning those assumptions was met with "just start liking what I like".

comment 14y ago · link · parent

As someone who gave up on yesod because it is so railsish and moved to snap, I'd say it is pretty accurate.

comment 14y ago · link · parent

There's no "clear winner", there are pretty wildly differing opinions on the right approach to things. Yesod puts the most effort into marketing, and seems to pull in the most non-haskellers. The haskell community is kind of split on it, the rampant and unnecessary use of template haskell and quasi-quotation is frowned upon by many, and portions of yesod aren't composable as a result of their DSL obsession.

Yesod gives you templating and persistence out of the box, but the template engine is a love it or hate it deal, and persistent isn't mature enough to use with an RDBMS backend.

Snap gives you templating, but no persistence out of the box. The template engine doesn't give you compile time type safety, but it also contains no logic, it is an html template system like lift. If you want to talk to a database, you use whatever haskell module you want, there's nothing snap-specific about it.

Happstack is basically the same deal as snap, but early on was pretty heavily focused on their own acid-state storage system. It has since become much more storage agnostic, and the acid-state storage system is used outside of happstack now.

Between happstack and snap, happstack has better docs, including tutorials on how to integrate with a ton of different web related modules (different template systems, digestive-functors, etc). Snap has a better web server underlying it, and subjectively appears to have more developers actively working on it. Because both allow you to use whatever modules you like quite easily, migrating an app from one framework to the other is pretty easy. Migrating from snap or happstack to yesod or the other way is quite a lot more effort.

comment 14y ago · link · parent

>hamlet is by far Yesod's best feature

In your opinion.

>but once they actually start using Hamlet, they love it ... not a single user has wanted to switch to an alternative.

Hamlet is one of the major reasons we're using snap instead of yesod. Of the 5 devs here who worked on a test app in yesod, the most favourable reaction to hamlet was "well, I guess I could live with it if I had to". Just because we didn't come ask "how hard is it to use a decent template system with yesod" doesn't mean we love hamlet. We just tried out snap and happstack instead, where using whatever template engine you want is obvious and trivial.

1
3637383940