News for hackers. Stuff that matters.

a-nom-a-ly

I'm not sure what you're trying to say. This is, IMO, nothing more than a lack of understanding. Is the result of `a := make([]struct{}, 0, 1); b := a; b = append(b, struct{}{}); println(len(a), len(b))` also surprising?
You seem to be confusing `array` with `slice`. AFAIK, append always returns a new slice. How could it not, when everything is copy/pass by value? A slice is essentially a struct with fields for len, cap and a pointer to an array.
Re:PH7 – An Embedded Implementation of PHP (C Library) on Saturday February 22, 2014 @02:14PM (#7283172)
Well, these arguments of yours aren't the most ridiculous I've ever heard... I'll give you that much.
Re:Neovim on Saturday February 22, 2014 @02:28AM (#7281284)
> It can not do bare metal programming or real time applications without major changes to the language standard.

TIL that these are required for text editors and related tools.

Re:PH7 – An Embedded Implementation of PHP (C Library) on Wednesday February 19, 2014 @02:29PM (#7265636)
> If you cant learn anything else pretty sure you havent the skills to program any "embedded device".

How did you arrive at this conclusion?

Re:Spark web server on Wednesday February 12, 2014 @02:27PM (#7226646)

    # pgrep nginx
    #
This behavior is disgusting in ways I cannot begin to describe. You didn't even attempt to do anything helpful, and probably didn't even read the post you responded to. To others: don't waste your time clicking on this link, it's just an obfuscated link to lmgtfy.com
Re:Yahoo mail hacked on Monday February 03, 2014 @01:34AM (#7169181)
Where did you hear about this? because this is the first I'm hearing about it... don't be so selfish.
Re:“We Just Can’t Have You Here” on Friday January 24, 2014 @11:53PM (#7119901)
> In the real world the only person who always has your back isyou.

In context of this post, from personal experience, I can tell you only one thing: This is almost never true.

Re:Go by Example on Friday January 17, 2014 @05:11PM (#7078784)
You can do this just as easily in Go as well, using reflection.
Re:Gen - a generics library for Go on Sunday January 12, 2014 @05:45AM (#7045715)
Adding `::` just to separate package namespace adds nothing useful IMO; just more noise and one more needless concept.

If I decided to re-use the package name more than once it'd be `list1, list2`

I guess it's probably a programming culture thing, but I wouldn't use the word `list` to begin with. I'd use `l1`, `l2` etc. in the case where the name isn't important. It conveys no less information than `list` and short variable names AFAIK are already idiomatic so it's not even unconventional... But with all that said, `list2` wasn't a very good variable name to begin with. If you needed more than one list, then they clearly served different purposes and in that case it makes sense to name them as such: `apples`, `oranges`, `input`, `output`.

Re:Gen - a generics library for Go on Sunday January 12, 2014 @04:17AM (#7045608)
(Can't reply to your post below)

> I edited that part of the comment out because it was not really related to anything, but I meant that all identifiers go into a single namespace, e.g if you have a package called bytes you can't call a variable bytes, if you have a struct type called bytes, you can't call the instance bytes

http://play.golang.org/p/98vt2YLslY

You might have a point regarding binary blobs but, IMO, if they can alter text(comments, source, etc.) in such a way that it's not obvious to the human reviewer, then they deserve to succeed. I don't know what `unused files` means. Git used `sha1` last time I checked, so I'm not sure why you mention `md5`.
Re:Court Rules No Suspicion Needed for Laptop Searches at Border on Wednesday January 01, 2014 @05:30AM (#6994724)
Including those who make and enforce the laws.
Re:Golang implementation of Bentley/McIlroy compression on Thursday December 19, 2013 @04:00PM (#6937815)
> you really just need a shell script that sets GOPATH

No. :|

Re:Ask HN: What to do in case of GPL license break? on Friday November 01, 2013 @07:02AM (#6652930)
> Doesnt the GPL and other free licenses state it has to be available together with the binaries?

Have you read them? No.

Re:Mac OS 10.9 – Infinity times your spam on Saturday October 26, 2013 @12:13PM (#6617882)
Out of curiosity, do you mind explaining why you think it's unprofessional?

> Won't it piss off iOS users, who are not responsible for Apple's bad practices?

In many(most?) services abuse of the service is met with suspension, etc. IMHO this case clearly counts as an abuse of the system regardless of whose fault it is.

> Those that want to get money with the free work of others, should give something back and most authors do offer commercial licenses when asked for.

Have you ever considered the fact that it's not all about money and proprietary software? This affect Open Source software as well. If I want to allow other to do as they will with my code, I won't touch a library with such a viral license because I don't want to subject myself or my users with having to even think about it. Also, have you considered...

> With licenses like BSD, the living proof is that most companies are leechers.

That's not a proof of anything... The same license you cite is a living proof that most[1] companies and regular people will contribute even more than they have to without you having to force them to do anything.

[1] most, for some definition of most, because if a company of individual have neither the expertise nor the resources to contribute, then what good does restricting their use of the code achieve? (rhetorical question)