Hacker Newsnew | past | comments | ask | show | jobs | submit | tom-lord's commentslogin

There's no such thing as a performance measurement "on all workloads".


It's written in the article?


> Restricted gTLDs should have only been for trademarked company names, like .google or .microsoft

Unfortunately however, there are a lot of grey areas... To name a few:

* Amazon have been in a long dispute with the Brazilian government, over the right to operate a .amazon TLD - as the Brazilians claim it should instead be related to the rainforest.

* On the other hand, Amazon have secured TLDs such as .prime, which could also be disputed. Apple have won .apple, Sky have won .sky, ... the list goes on.

* Sometimes, the conflicts can even be with foreign languages. For example, Ferrero are now the registry operator for .kinder - but as this is the German word for "children", it's been the cause for similar debate.

Also, with regards to your concern that there is a lack of variety in available unrestricted TLDs - I disagree; if anything, there are far too many (there's hundreds!!).


> Unfortunately however, there are a lot of grey areas...

Certainly. Ideally, I'd have left it as .com, .net, .org.

> the Brazilians claim it should instead be related to the rainforest.

How many TLDs does a rainforest need, anyway? :P

> Apple have won .apple, Sky have won .sky, ... the list goes on.

I'm certainly particularly interested in .dev, because I'd like to have a .dev domain. I think there's a lot more people who are developers that would want a .dev than apples that would want a .apple domain ;)

(I actually use /etc/hosts to map byuu.dev to my VPS' IP when I'm setting up a new box before deploying it to the world.)

> Also, with regards to your concern that there is a lack of variety in available unrestricted TLDs - I disagree; if anything, there are far too many (there's hundreds!!).

Still wishing someone would buy .emu for people to use. Anyone have a few hundred thousand dollars lying around for a good cause? :D


> Certainly. Ideally, I'd have left it as .com, .net, .org.

(And .edu?)

Ideally, we would never have had more than one TLD; even before the new rounds of TLDs showed up, people found it annoying and confusing to have example.org and example.com go to two different places. Why did we need more than one TLD in the first place, other than as a license to mint money in the form of domain registration fees? I don't think it makes much sense as an organizational mechanism.


I suspect if there was a flat gTLD with no suffixes, everyone would have domain names that looked more like AOL screen names (lots of numbers after the names.)

I'm okay with a few TLDs, but the original distinction is kind of vague. There's really no distinguishing characteristics between .com and .net, and even though for some reason .org became popular with open source, a lot of OSS sites (including mine) are not organizations. If not for Google, .dev would have been a great one for developer sites.

What I don't like is the idea of adding an infinite number of gTLDs. It's bound to do nasty things: break a bunch of old URL matching regular expressions, collide with some poor businesses that made bad choices for their internal networks, etc.


> I suspect if there was a flat gTLD with no suffixes, everyone would have domain names that looked more like AOL screen names (lots of numbers after the names.)

I don't tend to see lots of numbers in domain names today, even in popular TLDs like .com.


Because there are alternatives. You can grab foo.(net,org,io,country-code,etc) if foo.com is already taken.


That was the whole point in theory, yes. But in reality, almost all new gTLD registrations are being made as brand protection, and redirecting to the company's existing .com domain. Only a very small minority of websites are trying to build a brand on a new gTLD domain name.


Technically, there is one single TLD at the top of the tree; the root zone is called empty-string-dot and exists at the end of every DNS name, although resolving software doesn't normally require it. But it's why news.ycombinator.com. works as well as news.ycombinator.com without the trailing dot.


Interesting that it works now. Previously some browsers at least would reject https sites like that for a cert name mismatch.


ICANN has made $400 million with new domains. Doesn't include the $135 million for .WEB. Non-profit? BS!


Non-profit has nothing to do with how much money they make, but with how they spend it.


This is the most annoying misconception on the internet.


Why does a rainforest even need a TLD?


Why does there even need to be such thing as a TLD? :P

I'm guessing the idea is similar to .London, .NYC, .Amsterdam, ... i.e. it would be used for a geographic indicator/market.


Shell/batch scripting can often be useful in the devops world, where you have no guarantee that any additional tools (python, ruby, perl, powershell, whatever) wil be available.

Shell scripts are guaranteed to be runnable on all machines.

Unfortunately the shell "language" sucks, but still...


So you're running 'sh' scripts, right? none of that new-fangled bash stuff...

Oh, and be very careful of the commands your script invokes!

shell scripts have no guarantee of portability (often less than Python, which has a rich standard library available on all platforms).


Shell languages are great at doing interactive programming. Few non-shell languages can match the convenience, flexibility, and expressiveness in that domain. Of course, in any other domain (scripts) they are awful.


> Unfortunately the shell "language" sucks, but still...

Why do you say that? genuinely curious


> If the POSIX standard is going to require backreferences, then it should also require a non-backtracking implementation for regular expressions without backreferences

At least in some regexp engines, this is possible. There is a concept of possessive (as opposed to reluctant, or as it's often called, "non-greedy") quantifiers. Given the string "abb", consider the following regexes:

/[ab]+b/ -- matches "abb"

/[ab]+?b/ -- matches "ab"

/[ab]++b/ -- DOES NOT MATCH!! (Because there is no back-tracking.)

More info: http://www.regular-expressions.info/possessive.html

One regexp engine which implements this (see section 4): https://raw.githubusercontent.com/k-takata/Onigmo/master/doc... -- this is the engine used by modern Ruby versions.


No one really knows for sure, but....

https://en.wikipedia.org/wiki/Planck_length


Funny how the conclusion is basically "Don't use `var`, use `let` instead" - even though almost all documentation/examples exclusively use the `var` keyword!


From Ryan Cavanaugh's comment[1]:

> (...) there's already the let keyword available for those who want saner scoping rules. We should definitely update the docs to use let everywhere, though.

[1]: https://github.com/Microsoft/TypeScript/issues/5822#issuecom...


Yes, however that was 3 and a half months ago -- and as far as I can tell, there's been no movement towards doing so.


It's been fixed for a few months in the Handbook repo (https://github.com/Microsoft/TypeScript-Handbook/pull/119/fi...), but the new updated Handbook hasn't been pushed to the website yet.


> Designers suck at code. Coders suck at design. Keep that shit separate.

I currently work in a small-ish company, where I am the ONLY person designing/developing multiple systems. (I do get some input now and then, but it's mostly all down to me.)

I like this idea in principle, but you don't always have the resources to achieve this!


    [1] pry(main)> 10..100
    => 10..100
    [2] pry(main)> (10..100).class
    => Range
    [3] pry(main)> (10..100).to_a
    => [10, 11, 12, 13, 14, ..., 99, 100]


Yes, you can. Ordering has been guaranteed since ruby v1.9, very much intentionally.

The implementation of a ruby hash is now as a doubly linked list [0]. This has inevitably caused a slight performance hit, but the benefits far outweigh the cost IMO.

[0] https://www.igvita.com/2009/02/04/ruby-19-internals-ordered-...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: