Live data from Hacker News

Smjörið er brætt og hveitið smátt og smátt hrært út í það, þangað til það er gengið upp í smjörið.

news.ycombinator.com

81–90 of 165 posts

Re: Smjörið er brætt og hveitið smátt og smátt hrært út í það, þangað til það er gengið upp í smjörið.

#81
post #74
post #73

Earlier quoted context omitted.

there is a very different pattern of karma for comments in "big" threads.

On reflection: your reply is ♫♪♫ to my ears. I ♥ good points... Edit: heh, "thanks grandma" has even more than that. Edit: btw it's funny that i'm still being upmodded

so someone downmodded all of:

- a simple, popular comment

- a comment suggesting maybe the first one shouldn't have been upmodded so much

- a comment backing off

Why would you downmod all of them? If you like dislike the first comment, you should like the second, and vice versa. And if you're unhappy with me in general for the first two, you should like the third one.

Re: Smjörið er brætt og hveitið smátt og smátt hrært út í það, þangað til það er gengið upp í smjörið.

#82
post #77

Earlier quoted context omitted.

By "Classic static typing", do you mean C++/Java-style static typing, or does it include Haskell/ML-style type inference as well?

I mean the kind that will not let you create a list whose elements could be of any type.

Java will happily let you fill a list or hash with objects that could be of any type yet it is generally the quintessential blub language.

Re: Smjörið er brætt og hveitið smátt og smátt hrært út í það, þangað til það er gengið upp í smjörið.

#83
post #59
post #8

So. A note to all the "unicode makes this unusable" people - Apparently, while you were complaining, someone else was solving.

OK. Now how about database access (with support for prepared statements), regular expressions, and networking?

Which of those are you planning to contribute?

Re: Smjörið er brætt og hveitið smátt og smátt hrært út í það, þangað til það er gengið upp í smjörið.

#84
post #59

Earlier quoted context omitted.

OK. Now how about database access (with support for prepared statements), regular expressions, and networking?

http://paulgraham.com/core.html

clarification: Arc should probably have some kind of database hook at some point, not much point in reinventing that wheel when it works so well for many problems. But that's not the point, as the author has repeatedly pointed out.

Re: Smjörið er brætt og hveitið smátt og smátt hrært út í það, þangað til það er gengið upp í smjörið.

#85
post #16

Earlier quoted context omitted.

As an Icelander, I must surely ask what pushed you to use Icelandic as an example. :)

Does Icelandic have the 'th' sound? I've heard that English is the only European language with it, but if Icelandic has the written thorn, maybe you have that sound too?

It does, that's precisely what þ and ð represent (the unvoiced and voiced variants respectively, which got folded into the same "th" in English). Also, þorn is the best letter name ever :)

Re: Smjörið er brætt og hveitið smátt og smátt hrært út í það, þangað til það er gengið upp í smjörið.

#86
post #18
post #10

Røv og nøgler! PG succumbs to the demands of political correctness! Will we soon see mandatory static type declarations and CSS in Arc?

Well, not quite. I gave Patrick an early version of the code, a couple weeks before Arc was released, and he immediately sent me this fix. I just didn't get around to incorporating it till now. There's a difference between things I don't care about, and things I'm actively against. I don't care about character sets and css, so those things will no doubt gradually get better. Classic static typing, however, I think is…

Thanks for the serious reply. I'm not sure I deserved it :) I appreciate your clarification of the distinction which is not clear from the "manifesto" (http://arclanguage.com/).

I suspected you deliberately mentioned ASCII-only and presentational markup because you knew it would tick off (and hopefully scare away) a certain type of perfectionist which you consider non-productive for explorative hacking.

Re: Smjörið er brætt og hveitið smátt og smátt hrært út í það, þangað til það er gengið upp í smjörið.

#87
post #78
post #25

Earlier quoted context omitted.

It's not true that static typing always makes languages weaker. It makes map more powerful, for example: the desired type of output sequence can be inferred rather than having to supply a first argument of the same type like in Arc. I used to agree with you, by the way -- static typing in most languages feels like a straight-jacket. ML wasn't enough to change my mind. It took Haskell.

http://news.ycombinator.com/item?id=111278

Interestingly, heterogenous lists are the only example I ever hear cited for how ML-family type systems can cramp your style. It leads me to wonder if the situation is not unlike Fibbonacci sequences and naive recursion.

Anyway, I find that usually when I want a heterogenous list in Lisp, all I really need is a tuple. I want an ad-hoc way to group some values together (i.e., I don't want to bother creating a named structure), but I generally know the type I want in each position.

In the rare situations where I really do want a heterogenous list, Haskell does make it possible. The standard library has a Dynamic type that stores an arbitrary object along with a first-class manifest type identifier. These type identifiers have to be generated at compile time, but GHC has built-in syntax for this, and if it didn't it could still be implemented as a Template Haskell macro, or failing even that, just done by hand once for each user-defined type. That's all the support that's necessary from the core language -- the rest of the dynamic typing system is just an ordinary library.

Now, granted, if you wanted to use manifest typing for everything in Haskell, it would be ridiculously cumbersome and you'd be much better off just using a dynamic language[1]. But if you use it only where it's needed, then the dynamic casts will bloat your program by a couple symbols per thousand lines, and in return you get programs that damn near always work the first time they compile, along with a few other nicities like the one I mentioned above with map.

[1] There are plenty of cases where the converse is true. To name an obvious one, you could write a set of Lisp macros to implement lazy evaluation. But if you wanted to use them everywhere, you'd be much better off in Haskell.

Re: Smjörið er brætt og hveitið smátt og smátt hrært út í það, þangað til það er gengið upp í smjörið.

#89
post #30

Nâh, dâh zèn we maui klâh mei... (define Y (λ (m) ((λ (f) (m (λ (a) ((f f) a)))) (λ (f) (m (λ (a) ((f f) a)))))))

oh yes.

Make λ an alias of fn, and have it replace automatically in whatever editor you use?

fn is fast to write, but λ is much more readable, 'cos it stands out.

Re: Smjörið er brætt og hveitið smátt og smátt hrært út í það, þangað til það er gengið upp í smjörið.

#90
post #77

Earlier quoted context omitted.

By "Classic static typing", do you mean C++/Java-style static typing, or does it include Haskell/ML-style type inference as well?

I mean the kind that will not let you create a list whose elements could be of any type.

http://news.ycombinator.com/item?id=111603
Post reply on HN