HNHacker News
TopNewBestAskShowJobs

pdhborges

317 karma · joined November 11, 2010

submissionscomments
pdhborges··on CouchDB ships 1.2.0, Windows packages, new website
Another site with a fixed header taking a large chunk of the screen. Seriously, what's wrong with you designers!!??
pdhborges··on GCC celebrates its 25th anniversary with the release of 4.7.0
I built GCC 4.6.3 with GCC 4.2 using the LLVM backend without any problem.
pdhborges··on With Software, Small is the new Big
You got 1/10th of the I/O performance, so you traded disk seeks for network latency?
pdhborges··on Unix as IDE
That kind of auto completion is very easy to do. The problem is when you have references whose creation site you can't trace statically.
pdhborges··on Massive Ruby speed boost with JRuby and Java 7.
You must have missed this part:

"Compared to JRuby on Java 6, JRuby on Java 7 without invokedynamic is around 25% faster, and JRuby with invokedynamic is nearly 3 times faster."

pdhborges··on Greg Wilson - What We Actually Know About Software Development
Here at hacker news there seems to exist an obsession on how to hire the 10x programmers and how to build great teams.

I'm submitting this link because I'm really tired to read blog posts filled with anecdotes and making claims because some "scrum master" or whatever said so and so.

pdhborges··on A Python Optimization Anecdote
It would be nice if the author profiled the code instead of just measuring the test templates time.
pdhborges··on OCaml for the Masses
You don't need ;; to terminate an expression (except when using the REPL).
pdhborges··on Phil Zimmermann: Beware of Snake Oil Crypto (1997)
Hi, what book would you recommend in alternative to e Applied Cryptography?
pdhborges··on The Most Powerful JVM Language Available
The contents of this article are (almost) a bunch of quotes from a bunch of different authors.
pdhborges··on Why Scala seems difficult but really isn’t
Here is the Java version:

  public boolean domainExists(String domain) {
    return Option.of((Domain) HibernateUtil.getSession().getNamedQuery("domain.findByName").setParameter("name", domain.trim().toLowerCase()).uniqueResult()).getOrElse(new Domain()).id > 0;
  }
pdhborges··on You don't understand something until you think it's obvious.
Will the student realize that standing against the wall continually would wield the same limit?
pdhborges··on Apple R&D (1989): Mousing is faster than keyboarding, but users don't believe it
type Ctrl-F2 and then "hi". Problem solved.
pdhborges··on Coding challenge
Looks like Golomb ruler to me.
pdhborges··on Martin Odersky (Scala creator) launches company to commercialize scala and akka
for loops are also syntactic sugar and the case class matching thing

    case class Lol (a: Int, b: Int)

    Lol(2, 3) match {
       case x Lol y => x
    }
pdhborges··on Neural Networks making a come-back?
Is http://www.commendo.at/references/files/kdd08.pdf (this) the paper you are talking about?
pdhborges··on Want a job working on mongoDB? Your first online interview is in this post
The sum is guaranteed to fit into 128 bits
pdhborges··on Linus Torvalds on Garbage Collection (2002)
Yes, but if the object fall into the default autorelease pool you have no way to control when the memory is going to be released (at least without risking a segfault).
pdhborges··on Linus Torvalds on Garbage Collection (2002)
The runtime system might not free the memory immediately.
pdhborges··on Clojure vs Java, pt. 1
Imagine I have a JSONfiable protocol and I have a generic function to traverse a structure that uses the protocol to make a JSON document. It would be nice if the caller had a way to change the format.
pdhborges··on Clojure vs Java, pt. 1
Is it possible to implement the same protocol for a particular type in multiple ways?
pdhborges··on Trying Haskell
C++ quicksort :|

    #include <algorithm>
    #include <iterator>
    #include <functional>
    using namespace std;
 
    template <typename T>
    void sort(T begin, T end) {
        if (begin != end) {
            T middle = partition (begin, end,   bind2nd(less<iterator_traits<T>::value_type>(), *begin));
            sort (begin, middle);
            sort (max(begin + 1, middle), end);
        }
    }
from wikipedia
pdhborges··on OCamlPro and the future of OCaml
Type classes or module implicits, that would be great.
pdhborges··on PyCon 2011: How Dropbox Did It and How Python Helped
Just a little not so readers don't get the wrong impression:

- imap returns an iterator, any is used to "force" the iterator run through all elements.

- the loop runs on C because of any. Instead of a for loop where jump and body are repeatedly evaluated by the interpreter, any consumes the iterator through a loop implemented in C.

pdhborges··on Firefox 4.0 Beta 7 - Super fluid, beats everyone on sunspider
Look at the source code of the C program. It uses glib and the TCL libraries and it even includes locking for the multicore benchmark.
← PreviousPage 6 of 6