Recent submissions

Comment · 12 years ago
You may be interested in this paper www.cs.ox.ac.uk/ralf.hinze/publications/ICFP01.pdf. It solves Dijkstra's algorithm as an example for the implementation of a priority search queue data structure, which is very similar to a priority search tree. These structures act as a heap on one index and a search tree on a second index. So you get both efficient update and find-min.
Comment · 12 years ago
I don't know about the author but not all of us oppose Gay marriage.
Comment · 12 years ago
Sure but unless this new service is along the lines of "I generate my own key pair _and then only ever give Google my public key_" there's no way they're getting me to trust them. And I seriously doubt that's something they are going to try to do, it's to much of a niche market for Google IMO.
Comment · 12 years ago

    Not only are those wise words for users, enabling that
    way of working, and making security an easy verifiable  
    default, and, is going to be the only way to heal this  
    problem for US tech companies. And they have been slow 
    to  get started.
The trouble is the service providers have a significant vested interest in having access to your data. Google will never implement a system where only you have access to your data because they make a lot of money by accessing your data.

Depending on where you want to draw the line it would not be a stretch to say that an advertising company like Google would be eliminating their entire revenue stream by implementing such a system.

Comment · 12 years ago
At my previous job I thought the same thing. They didn't stop people being bullied by superiors and basically did nothing but exit interviews and layoffs. The entire company was really dysfunctional. At my current job HR is _supremely_ competent. The entire organization is more functional and a joy to work for. I think there are subtle but significant effects when people know that it is not okay to behave in a bullying or discriminatory manner because HR takes those things seriously.
Comment · 12 years ago
> variables don't have types, only individual values do.

It really depends on what language you're using. This is more or less true in Python, Ruby, and Javascript. In Lisp generic methods you can specify the type for the input variables and be guaranteed that if you are inside the method the parameters are of that specific type. For optimization reasons you can also declare to the compiler that variables are a specific type. This is really important when doing numeric computations in a tight loop. I've had 50% - 80% performance improvement by declaring types (amounting to hours of run time). I think Groovy and Clojure also allow this but I don't know much about those two.

There's also the maintenance issue though. After a few years of maintaining a fairly large Lisp project I've become pretty convinced that the only way to stay sane, at least for me, is to treat it as a statically typed language. I have asserts and check-type macros all over the place. If variables may have multiple types they can be checked against '(or type1 type2) but things do become more complicated then.

Comment · 12 years ago
That latter's debatable but probably not the former unfortunately.
Comment · 12 years ago
Indeed, the first thing that came into my mind when reading this was "You wouldn't have this problem if the only valid type in a conditional was boolean."
Comment · 12 years ago
I think the point was that homosexuality has been taboo for a lot longer than the CIA has been around. So while they obviously have found it useful there's no reason to think they needed to work to keep it taboo for so long.
Comment · 12 years ago
>they've gone way beyond being about what any actual women think and care about...

And those articles were written by whom then? Apparently at least one woman actually cares about those issues. Or are you trying to say that by going "that far" she or they are not "actual" women? Whatever that means.

Comment · 13 years ago
Could you elaborate or provide links to examples of what you mean by solving this with codata?
Comment · 13 years ago
My point was not that no guys do, of course I know some do. The OP used 'guys' to seemingly include all men. My point was that, no, not all men do, so you don't get to play the "everyone does it so it's okay" rationalization card.
Comment · 13 years ago
None of the guys I'm around, nor myself, think that's okay just because women aren't present.
Comment · 13 years ago
I notice substantial overlap between the things these men are wanted for and what the NSA and FBI have been doing....
Comment · 13 years ago
I was thinking the same thing. At my last job we had one dev board (TI ARM/DSP SOC + lots of custom hardware) that we could reset with a static discharge into the carpet 6 - 8 feet away. That took us a while to figure out :p

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton