Better HN
topnewbestaskshowjobs
Log inSign up

antics

4,248 karma · joined Aug 13, 2010 (16y ago) · 545 submissions

clemmer.alexander@gmail.com alex@moment.dev
Submissions

comment 12y ago · link · parent

---Author here---

AWESOME TIP, stoked to try it out, thanks!

comment 12y ago · link · parent

---Author here---

I should disclose that I actually work for Microsoft, and still chose the hard way. Fuck the police!

303.

I found a bug in the .NET framework and fixed it by hand-altering the DLL(blog.nullspace.io ↗)

332 points · by antics · 12y ago · 118 comments

comment 12y ago · link · parent

The authors are pretty conscientious about basing the book on tech that's mostly here to stay. For example, camlp4 is not included because it's on it's way out.

So, there's no way to say for sure, but I think there's a reasonable chance it sticks around.

comment 12y ago · link · parent

Yeah, I agree, I was probably too hard on LYAH. But, even if my goals didn't match your goals, I am hoping that the information I am giving you is sort of useful either way. The emphasis is really on the reasoning, rather than the conclusion.

comment 12y ago · link · parent

(Author here)

I think it's totally fair. The whole reason I wrote this post is to help people decide which resources to not use. I love LYAH but I don't care who it was written for. I wanted people to know, specifically, what they were missing with books like that, because it was not obvious to me when I started that I should not start with LYAH (or at least, that I should have kept in mind what it was missing).

comment 12y ago · link · parent

(Author here)

I love Haskell. Love it to death.

I see RWO as a justification of OCaml's language choices from the perspective of system deployment. It gives you a good start on the knowledge you'd need to push an OCaml system into serious production.

I do not see how to get the same knowledge for Haskell. Particularly the runtime is a black box to me. This might be acceptable for your use cases, but for me, this is the primary risk of Haskell.

re: community, It's probably true that Haskell so far is more prominent than OCaml right now, I would be careful to avoid making the mistake of assuming that this means people actually know how to deploy this for serious, scale production systems. Because it is not obvious that this is true. Besides, while the OCaml community is not as noisy, they are certainly still around.

comment 12y ago · link · parent

Yeah, and you can't have that discussion without understanding why it works for HS.

By ignoring this context, the parent comment, and your comment here, debate a position that was never posited at all. In some sense you are debating yourselves.

comment 12y ago · link · parent

I was in the Summer 2013 batch.

Since this is the top-voted comment, let me be emphatic. The assumptions the parent comment makes about the HS experience bear no resemblance to reality. A good example is the consistent theme in this thread that such a rule can't exist without a shaming ritual, or without loss of being considered an adult.

The context we're missing here is that participants at HS are self-selecting. One person in our batch quit his job as director of investment technology at a massive international bank to attend HS; another was a high school student. In all cases, participation represents serious costs of opportunity, time, and capital, and almost always, the reason they do it is because:

Fundamentally, participants already believe in the assumptions of the environment.

There is room for this theoretical debate about whether x policy extends to good rules for all of society. But realistically, the HS rules are effective because people at HS agree with them.

To have this discussion without this specific context is to miss the point entirely.

That is why the rule can be lightweight, and can still be incredibly effective. And if you don't think that's true, then I suggest you poll a nontrivial subset of HS, because almost everyone agrees.

comment 12y ago · link · parent

I was in the Summer 2013 batch.

There is no hard-and-fast rule for figuring out what is and is not a well-actually, but the biggest factors (at least for me) are (1) did it derail the conversation, (2) did my correcting someone make it less acceptable to not know something, and (3) was my motivation to do something like show off?

I've been guilty of all 3. Anecdotally, I found that the effect of this lightweight rule was that at HS it was very much ok to not know something, and let me tell you, adjusting to the real world, where that is subtly untrue, is a trial.

As for the "parachuting in" problem, that's essentially the gist of a different lightweight social rule, "no backseat driving". :)

comment 12y ago · link · parent

Because the trick Knuth pulls is to express this intuition without appealing to the definition of probability. It's quite clever.

comment 12y ago · link · parent

So, the excerpt here is chapter 3, section 1. The actual definition happens in chapter 3 section 5 ("What Is a Random Sequence?"). I have the book at home, though, so I can't quote it here. Sorry. But the intuition is, if you have an infinite sequence of random numbers, then the numbers in all infinite subsequences should be equidistributed. So, like, if you a stream of random 0's and 1's, then if you pick only every other number, the 0's and 1's have to be equiprobable, and if you pick every third number, they still have to be equiprobable, etc. This is slightly wrong, but it's on the right track to the actual definition.

re: Pseudorandomness, the point of pseudorandomness is the following.

1. A lot of algorithms use randomness to make pathologically bad cases extremely unlikely. For example, choosing a random pivot in quicksort makes the worst case very unlikely.

2. But in a lot of cases, this leads to huge amounts of space consumption. For example, most frequency moment estimations involve a matrix of random numbers. So if you're getting those numbers from a "truly random" source, then you have to store the entire matrix, which can be huge.

3. So, a better solution is to use a pseudorandom number generator! That way you can store a seed of s bits, and do something clever, like deterministically re-generate the matrix as you need it, rather than storing it outright.

Notice though, that this is not independent of the notion of randomness! In fact they are quite intimately tied together.

comment 12y ago · link · parent

You are 100% mistaken that this implies we had a good definition of random sequences before Knuth. In the article you link, they discuss the uniform distribution, but any distribution (and the modern notion of probability in general) absolutely depends on a mathematically precise notion of random sequences.

If you don't believe me, read the chapter. Early probability theorists (e.g., von Mises, Kolmogorov) literally started thinking about randomness in order to define probability.

EDIT: And, I don't suppose it's worth pointing out that pseudorandomness is not at all the same thing as randomness. The fact that you seem to use them interchangeably is not a good sign IMHO.

EDIT 2: Why the unexplained downvote, HN? :(

comment 12y ago · link · parent

When you step back to think about it, a huge amount of CS theory papers rely on this hand-wavy definition of "randomness" to prove something. Oddly, though, if you actually press a CS theory person for a mathematical definition of this concept, they virtually always draw a blank.

As a student I remember thinking that this was incredibly alarming. Without a good understanding of this concept, how can we be sure any of what we're saying is even remotely correct?

What Knuth has given us here is the ideal treatment of the subject, essentially putting the question of what randomness is, to rest for good. He starts by taking a comprehensive, entertaining history of the landscape (in short: researchers ping-ponged between having definitions of randomness so strict that nothing was random, and so loose that they were all pathologically predictable) before finally proving a theorem that completely solves the problem.

It is a monumental accomplishment in the field, and it is quite shocking to me that it's still so obscure. It's one of my favorite results in all of CS, anywhere.

If you haven't had the chance, I highly recommend the rest of this volume (Seminumerical Algorithms). It is just stuffed with other surprising, amazing results.

comment 12y ago · link · parent

I'm the author of the post -- that's good to know, thanks! :) I know embarrassingly little about filesystems. I'm glad you pointed this out.

EDIT: though, I'd point out that if you really wanted to recover the file you should probably try to use /proc or something (at the time I didn't know about this). This approach requires crawling the disk which is obv pretty slow. :) It's less of a "here's a useful thing" and more of an excited "HEY DID YOU KNOW THAT YOU CAN DO X".

EDIT 2: I updated the blog to link to your comment, because it's baller.

comment 12y ago · link · parent

Arrrrgh, thanks for pointing it out. I don't use Firefox, and I don't know a damn thing about web programming.

comment 12y ago · link · parent

A couple months ago, I decided to write a very short tutorial/introduction to the program `telnet`. I ended up deciding to use the <blink> tag to make a cursor that blinks similar to how it blinks in the terminal.

Hilariously, I discovered that <blink> is actually no longer implemented in Chrome.

The one legitimate use!

I ended up mocking it with JavaScript. EDIT: it's here if you want to see how the cursor turned out! http://blog.nullspace.io/day-208.html

comment 12y ago · link · parent

Let's recap a bit. You said there wasn't any talent. I said that's not true, and there talented people who have good reasons for staying. You now say that the culture sucks and the talented people who stay are there because of they're handcuffed, or because they're lazy, or they're going to leave soon.

My opinion is that you're now debating a completely different set of points.First you only told us that no one talented works there, and I think we both know that's just wrong. That you haven't brought it up again indicates that you concede this point. Correct me if I'm wrong.

Look. This is not to say that everything you've said is completely wrong. A lot of what you say is true. But I do think your case is pretty overstated, especially since these things depend pretty dramatically on which team your on. The disparity between a good Yahoo team and a good Google team is miniscule, even though the difference between a good Yahoo team and a bad Yahoo team is really high.

comment 12y ago · link · parent

I'll be honest, this is a pretty despicable comment, Ryan. The fact that you personally don't like the culture at Yahoo certainly does not mean that everyone who is talented also dislikes the culture at Yahoo. For example, I know a very talented woman who chooses to work there because her judgement is that the company has superior procedures for dealing with sexism. Versus, say, the generally-toxic startup scene. You should carefully consider whether you actually understand why someone would choose to stay in a situation like this, because I suspect you don't.

Beyond the fact that I don't think you understand the reasons why people would stay at a company like Yahoo, I don't think you actually know much about the people who work there. Yahoo owns Tumblr, which still employs some of the best engineers I've ever met. More than 20% of the hires the first year after the Mayer takeover were boomerangs, which is a good indication that your implication that between 2009 and now Yahoo suddenly lost every talented non-immigrant employee is just wrong. And so on.

I'm not saying this to pick on you or just to be critical for its own sake. I'm sure you're a nice person. But this comment was just painful to read. Please think carefully about this sort of thing before you say something else like it.

EDIT: Ah, HN. Where telling someone that a company with 10,000 employees probably does in fact have a few talented engineers earns you anonymous down votes. :(

comment 12y ago · link · parent

I'll see your flooding river and raise you The Great Molasses Flood of Boston:

http://en.m.wikipedia.org/wiki/Boston_Molasses_Disaster

21 dead. 150 injured.

Had they done their calculus/physics homework properly, they'd have known to calculate thickness of the tanks required as a function of the depth of the liquid. Stay in school, kids.

comment 12y ago · link · parent

Sure, but how do you deal with the long tail? Flappy Bird is not an app that would have surfaced until it was well on its way to becoming what it is today (or was yesterday, I guess).
1
101112
19