HNHacker News
TopNewBestAskShowJobs

dreish

771 karma · joined November 28, 2007

(subst "@" "%" (apply + (cddr:rev:cdr:ssplit "42 rg .o ish %dre dan @example. com")))

[let f nil (= f (_ [f _])) f]

submissionscomments
dreish··on Anthropic’s $5B, 4-year plan to take on OpenAI
You can already do that with OpenCharacters at https://josephrocca.github.io/OpenCharacters/. You just need to set up an API key with OpenAI, and you can customize hidden prompts for different characters, whom you can name, you can edit earlier parts of conversations, and it automatically summarizes earlier parts of conversations to keep a never-ending thread within the context limit.
dreish··on The myth of revealed preference for suburbs
That's an interesting point. I would point out another problem with this article based on my own experience living in metro Atlanta since 2001: many people, especially those moving to Atlanta from the Northeast, would likely have said that there was no good urban neighborhood in which to live in Atlanta in 2005. I think that was more of a chicken-and-egg problem than a zoning one. Midtown Atlanta had the right zoning and had neighborhood civic associations that were working toward urbanizing the neighborhood, but it wasn't until several years later that significant amounts of neighborhood-serving businesses started to move in.
dreish··on The myth of revealed preference for suburbs
That's decidedly not what the article claims. It claims that there are people who live in the suburbs but would prefer not to, and provides evidence to support that claim. The same evidence acknowledges the existence of people who are happy living in suburbs.
dreish··on Meltdown Proof-of-Concept
I've been thinking along the same lines for the last few years. If you did this, you could have a multi-user operating system in a single address space and avoid the cost of interrupts for system calls (which would just be like any other function call).
dreish··on Notes on debugging Clojure code
Why not define debug-req and debug-auth as atoms before this function, and set them with (reset! debug-req req) etc.?
dreish··on Everything you need to know about the WannaCry / Wcry / WannaCrypt ransomware
The article points out that the phone-home domains this ransomware uses were generated by keyboard-mashing. Can we tell what keyboard layout was used?
dreish··on My 2015 MacBook Pro Retina Exploded
I've had plenty of batteries swell, and none catch fire before I got them replaced, so I have to think it could help.

In my experience Apple is not consistently good about dealing with this. In every case, I've ultimately been able to get the battery replaced at no cost to me, but with an iPhone 6 that started swelling about a year ago, pushing the screen out, phone support told me flatly that this wasn't something that could possibly happen with such a new device, and suggested that I try to make a Genius Bar appointment on my own. When I brought the phone into the store later that day, they replaced it on the spot, with no appointment. (I wasn't going to accept carrying around a time bomb for another week or more.)

dreish··on Ask HN: Are we overcomplicating software development?
In case you're not joking, MINIX is much smaller than 100KLOCs.
dreish··on The Lisp Curse (2011)
But one of the most important features of Clojure is that it's hosted on mature, decidedly non-Lisp platforms with plenty of well-maintained libraries, and it has clean, concise interop. If that's what a Lisp needs to become popular, then I'd say that's evidence for this theory, not against it.
dreish··on Undefined behavior can result in time travel
pascal_cuoq is correct. Here's an excellent introduction to the subject:

http://blog.llvm.org/2011/05/what-every-c-programmer-should-...

dreish··on Fidelity now allows clients to put bitcoins in IRAs
You are vastly overestimating how happy millions of dollars will make you. Google around a little and you might actually put a negative number on it.

If you get the numbers right, you will arrive at the same advice any financial advisor would give you: in something as novel and hard to price as bitcoin, only invest risk capital, defined as money you could lose in its entirety and still have a sound financial plan.

dreish··on A glimpse of undefined behavior in C
That's a reasonable question. It's a shame this comment gets downvoted instead of the various people falling all over themselves to show off how smart they are by posting incorrect guesses about how undefined behavior doesn't matter.

Here's a good article that addresses the question "Why have undefined behavior?"

http://blog.regehr.org/archives/213

This one linking to the above is also worth reading:

http://blog.llvm.org/2011/05/what-every-c-programmer-should-...

dreish··on Which hashing algorithm is best for uniqueness and speed?
That's a design goal for cryptographic hash functions, which these are not.
dreish··on Whatever happened to due process?
It's "just" a business district within London, leaving aside a couple of millennia of history. London comprises the City and 32 boroughs, somewhat similarly to the way New York is made up of five boroughs, one of which is also called "New York" in some contexts.
dreish··on Make the Metric system the standard in the United States
What does it mean to say that "the 1/2-inch chuck/collet/whatever is really machined to 12.7mm"? 0.5 inches is exactly 12.7 mm, so what else would it be machined to?
dreish··on The hum that helps to fight crime
This is the illustration I see (I think it might be European):

http://news.bbcimg.co.uk/media/images/64639000/jpg/_64639977...

This is what very nearly every power outlet in the U.S. looks like, down to the color, vertical configuration, and flat-head screw in the center:

http://img.ehowcdn.com/article-new/ds-photo/getty/article/16...

dreish··on Apple Said to Fire Maps Manager After Flaws Hurt iPhone 5
Compared to the last time Google switched mapping databases, which I think was about three years ago, Apple Maps (for my town at least) has been remarkably accurate. For several months, Google Maps was putting my home address more than a mile from where I actually live (right in the middle of a major city, so a mile is a world away), and it refused to parse addresses for at least a couple of major commercial roads with unusual names. I don't think I've been able to find a single comparable problem with Apple Maps. Visual glitches don't ruin my day nearly as much as refusing to parse a business' address or placing it a mile away from where it is.

I still use Google Maps (via the web now), though, since I prefer the way it presents traffic data.

dreish··on Fog Creek is about to go down
I would suggest the following mental exercise the next time you want to make a comment on HN:

Imagine you are at a dinner party at Paul Graham's house. He's there, obviously, along with several startup founders, aspiring founders, and a few established industry figures, including the person you are about to disagree with or criticize.

It will undoubtedly take more effort to figure out how to frame your criticism so that it doesn't make you a pariah, but the advantage will be that you will leave open the possibility of forming beneficial business and personal relationships.

In this case, I would try describing your own successes with building redundant services, and describe some of the other approaches you found while researching ones that you have built.

dreish··on Javascript's NaN
This is hardly a JavaScript quirk. In Clojure:

    hackclj.core=> Double/NaN
    NaN
    hackclj.core=> (== Double/NaN Double/NaN)
    false
    hackclj.core=> (= Double/NaN Double/NaN) 
    false
    hackclj.core=> (.equals Double/NaN Double/NaN)
    true
    hackclj.core=> (identical? Double/NaN Double/NaN)
    false
    hackclj.core=> (type Double/NaN)
    java.lang.Double
    hackclj.core=> (number? Double/NaN)
    true
In Perl (which doesn't have a concept of a number type distinct from other scalars such as strings, but we can see that it participates in addition differently from non-numeric scalars, which behave like 0):

      DB<1> $inf = 1e300 * 1e300
    
      DB<2> $nan = $inf - $inf
    
      DB<3> print $nan
    nan
      DB<4> print ($nan == $nan)
    
      DB<5> print ref($nan)
    
      DB<6> print $nan+1   
    nan
In Ruby:

    irb(main):001:0> inf = 1e300*1e300
    => Infinity
    irb(main):002:0> nan = inf-inf
    => NaN
    irb(main):003:0> nan == nan
    => false
    irb(main):004:0> nan.class
    => Float
Python 2.7.3 (much earlier versions got equality wrong, claiming nan == nan):

    >>> inf = 1e300*1e300
    >>> nan = inf-inf
    >>> nan
    nan
    >>> nan == nan
    False
    >>> type(nan)
    <type 'float'>
dreish··on Clojure's concurrent agents in action
send should never be used in a function that will not keep the CPU busy, such as one that calls Thread/sleep. send-off, which will allocate a new thread rather than taking up a slot in Clojure's fixed-size agent thread pool, should be used instead.
dreish··on Something is deeply broken in OS X memory management
Probably a lot of people hitting the up arrow to save the link to try out this evening. I plead guilty to doing that. I wish I'd read the comments first.
dreish··on Intel Reinvents Transistors Using New 3-D Structure
Ah, but PC Magazine has "9 things you need to know" about it, which includes an incorrect explanation of what a nanometer is. I think it's in a sidebar next to their "38 makeup tips for the summer" article.
dreish··on Ask HN: How to stave off decline of HN?
Pick as many active users whose judgment you trust as you can find, train a Bayesian classifier on their votes, up and down, and use that to score the voting patterns of users. Set ignore for the ones with the worst scores. Even if it turns out not to help much, at least you'll have had some fun doing it.

Also, there's currently nothing reminding users of the ideals you want them to uphold just before they submit a comment -- i.e., right next to the submit button. It never hurts to ask.

dreish··on Subprime loans already being abused again, this time to push car sales
This is a vastly different issue from subprime home loans. The key difference is that depreciation of cars is reasonably predictable; car prices are not typically subject to speculative bubbles.
dreish··on Eric Schmidt: "If you have something [to hide], maybe you shouldn't be doing it"
That's pretty much all The Register does.

As more practical advice, if you're doing something you don't want others associating with your IP address, use an anonymizer you feel you can trust.

dreish··on Can Java Be Saved?
Funny that this article praises C#'s generics over Java's type erasures, when Rich Hickey specifically cited the latter, and the convenience it creates for dynamic languages, as a reason for choosing the JVM over the CLR for his implementation of Clojure.
dreish··on Tell HN: Couldn't Sleep Last Night, Wrote a (No-Flash) HTML5 Viewer for YouTube

   javascript:(function(){url='http://deturl.com/download-video.js';document.body.appendChild(document.createElement('script')).src=url;})();
I've never had a problem using this.
dreish··on F. Scott Fitzgerald and living on $500,000 a year
Yes, and since 1920 there have been changes in pretty much all the inputs to the luxury car price function, wealth distribution, production costs of pretty much everything, and what the Joneses that you're trying to keep ahead of can be expected to have being the ones that immediately come to mind.
dreish··on F. Scott Fitzgerald and living on $500,000 a year
And bizarre comparisons at that, since the luxury car market can hardly be expected to be consistent in any meaningful way from 1920 to 2009.
dreish··on Ask HN: What are your best resume tips?
I can tell you as a hirer I would most likely not seriously consider your resume. You might think that is unwise, but you clearly don't know what it's like to wade through a pile of crap from people who are obviously just spamming every job opening they can find, trying to find the few people who are actually reasonable candidates, before even trying to figure out which ones might be any good. Even using a recruiter is of limited use -- you can give them criteria, but they often just don't know to tell the difference between a real programmer and someone who has put "programmer" on a piece of paper.

Three pages, with skills on the third page, is roughly as rude as walking into my office and unplugging my computer.

Page 1 of 9Next →