1,772 karma · joined Jun 2, 2012 (14y ago) · 562 submissions
comment 12y ago · link · parent
I'm in CMU's operating systems class right now and that was one of our projects (our second). The first was writing a stack-tracing debug library, the third was a user-space thread library built on top of a particular kernel spec, and then the fourth was to build a kernel basically from scratch, using our thread library as a test program.
Here's a link to the spec for the game we built on the bare metal: https://www.cs.cmu.edu/~410/p1/proj1.html
That fourth project, or "p3" as it's known around here, is known to be a killer. It's tough to write a whole kernel in 6 weeks (+ 1 week of break), especially when it's expected to have a full virtual memory system, kernel tasks/threads for concurrent programming, program loading, interrupt handling, etc, even with a partner.
comment 12y ago · link · parent
http://www.cs.cmu.edu/~rwh/plbook/book.pdf
It gets pretty math-heavy at times, at least in the beginning (you can probably skip the first chapter if it's too rough), but ultimately the book is about programming language design and different ways of designing and evaluating typed (or un(i)typed) languages. It also looks at a large number of important languages including PCF, Typed/Untyped Lambda Calculus, System F, Gödel's T and ALGOL (the last of which is interesting because it uses what we now call the IO Monad).
I'm taking the class (15-312) right now, and as homework we typically implement an interpreter for some language using SML (OCaml would likely work fine for the general use case), and then prove a few things about the language. Our languages rely on our Abstract Binding Tree (ABT) infrastructure that we developed early on in the course. You can find the course page at http://www.cs.cmu.edu/~rjsimmon/15312-s14/index.html if you want to check out what we're working on.
comment 12y ago · link · parent
Javascript: Java is scary.
Also hidden in the source: Python: Modula-3 is scary.
Curl: Lisp syntax is scary, and XML is redundant.
Arc: Scheme has no libraries, and both could be denser.
There are a lot of languages I haven't been able to figure out
how to describe this way. Suggestions would be appreciated about any
languages missing from the list. What I'm looking for is not exactly what
motivated the language designer (Smalltalk was originally intended
for children) but what niche the language first lodged in. What was
the appeal of the language to its first users?comment 12y ago · link · parent
1. Programs were put in place throughout the last 60 years to help provide better opportunities for kids who did NOT come from affluent backgrounds.
2. Over the last 20 years (and perhaps even earlier, posits the author), these programs have been increasingly abused by for-profit universities. Additionally, these programs have become less effective as the cost of tuition grows.
3. So, if we want to restore the opportunities for aspiring students from less affluent families, we need to regulate the for-profits and we need to bring government aid programs back in line with the current state of higher education.
Of course the kids from affluent backgrounds have better opportunities -- that's not the point of the article. The point was that kids from less affluent backgrounds have fewer opportunities than they did within our parents' lifetimes, and that systemic corruption/abuse is responsible for this change.
comment 12y ago · link · parent
Although I strongly agree with your general sentiment regarding the USA's backwards policies on sexual content, I'm not sure it's accurate in this particular case. From the article:
> Also verboten are hate speech, violence and bullying and online gambling.
It appears to me that Google is simply attempting to block all "R-rated content" as opposed to just nudity, sex, etc.
comment 12y ago · link · parent
Hold on for a minute. WoW is almost the exact opposite of this model, and for that reason I still respect it as an MMO compared to others I've seen.
In WoW, at least when I played it heavily during the Lich King expansion, you pay for the game and for a monthly subscription fee and that's it -- there was no other use for real money other than maybe buying a faster computer or a vent server, but that's outside of the game environment. Buying gold, while possible, was heavily discouraged and bannable.
This policy made WoW feel very fair to teenage me and I ended up putting a considerable amount of time into the game as a result. I realized that it was plausible for me to be the best simply by putting enough time into it.
Additionally, WoW's social environment is typically what keeps the long-term players going (as opposed to ingame objectives, although objectives are important for keeping players engaged), and that's another story entirely.
comment 12y ago · link · parent
There's a documentary I really like on the history of House music called "Pump Up The Volume," and it can actually be found entirely on Youtube: http://www.youtube.com/watch?v=Y1HpY65cXDA -- it covers what some of the early genre originators were doing and feeling at the time. Generally they were just experimenting, as well as doing the "track -> venue/club -> evaluate" feedback loop so common in the origin of genres. However, I still think it's cool to hear them discuss their unique contributions to a style that would eventually grow far larger than they ever expected.
There are also some good books on the history of electronic music I can recommend, the best one being "Last Night A DJ Saved My Life" http://www.amazon.com/Last-Night-DJ-Saved-Life/dp/0802146104...
comment 12y ago · link · parent
George Hanson: You know, this used to be a helluva good country.
I can't understand what's gone wrong with it.
Billy: Man, everybody got chicken, that's what happened.
Hey, we can't even get into like, a second-rate hotel,
I mean, a second-rate motel, you dig?
They think we're gonna cut their throat or somethin'. They're scared, man.
George Hanson: They're not scared of you. They're scared of what you represent to 'em.
Billy: Hey, man. All we represent to them, man, is somebody who needs a haircut.
George Hanson: Oh, no. What you represent to them is freedom.
Billy: What the hell is wrong with freedom? That's what it's all about.
George Hanson: Oh, yeah, that's right. That's what's it's all about, all right.
But talkin' about it and bein' it, that's two different things.
I mean, it's real hard to be free when you are bought and sold in the marketplace.
Of course, don't ever tell anybody that they're not free,
'cause then they're gonna get real busy killin' and maimin'
to prove to you that they are.
Oh, yeah, they're gonna talk to you,
and talk to you, and talk to you about individual freedom.
But they see a free individual, it's gonna scare 'em.
Billy: Well, it don't make 'em runnin' scared.
George Hanson: No, it makes 'em dangerous...comment 12y ago · link · parent
That's Beijing, not Shanghai, and I think we can assume that Beijing is at least slightly cleaner than Shanghai, if not by much.
According this article[0], Shanghai's level reached 602.5, which, when compared to the data on the graph you linked, is about 75 points higher than Beijing.
[0]: http://abcnews.go.com/International/wireStory/smog-extremely...
comment 13y ago · link · parent
Generally, I find the more challenging travel choice to be bus vs train. The bus is cheaper, but has a higher chance of being delayed unexpectedly and taking longer than the train. Otherwise, they take about the same amount of time.
comment 13y ago · link · parent
Good source: http://www.leangains.com/2010/10/top-ten-fasting-myths-debun...
> Looking at the numerous studies I've read, the earliest evidence for lowered metabolic rate in response to fasting occurred after 60 hours[0] (-8% in resting metabolic rate). Other studies show metabolic rate is not impacted until 72-96 hours have passed (George Cahill has contributed a lot on this topic).
> Seemingly paradoxical, metabolic rate is actually increased in short-term fasting. For some concrete numbers, studies have shown an increase of 3.6% - 10% after 36-48 hours[1,2].
[0]: http://www.ncbi.nlm.nih.gov/pubmed/3661473
comment 13y ago · link · parent
comment 13y ago · link · parent
In a similar vein, considering your appreciation for "the clash of consonance and dissonance," I hope you're getting a chance to see My Bloody Valentine during their short tour in the next few weeks.
comment 13y ago · link · parent
Johnson and Beiderbecke are both good name from their respective periods (30s country blues and 20s jazz), but I'd argue that there were significantly more influential musicians on the development of the blues style throughout the 40s and 50s. More on that in a minute... Robert Johnson's an interesting guy.
Johnson's influence is a weird case: he was almost totally unknown until the early 1960s, when that classic compilation (King of the Delta Blues Singers, on Columbia, 1961) came out with many of his recordings. As a result, his influence really begins to widen in the 1960s, as many white blues-rock bands were starting to form and gain popularity (such as The Rolling Stones, The Yardbirds (featuring Eric Clapton), and Mike Bloomfield + Bob Dylan). This blues-rock was the stuff that really made an impact on American society at large, and as a result, we tend to consider Robert Johnson to be one of the seminal blues artists. Odd how that turns out.
Anyway, back to seminal blues artists. Lonnie Johnson and Blind Lemon Jefferson (see: https://www.youtube.com/watch?v=h3yd-c91ww8) were the two who I'd argue contributed most to the "classic" style. Johnson was exceptionally prolific and exceptionally good, and Blind Lemon mentored many young artists, including Robert Johnson and T-Bone Walker. On the white side of things, Eddie Lang (see: https://www.youtube.com/watch?v=Loc8WiDvNaE) was arguably the first jazz guitarist (and had a heavy influence on many blues musicians), and Jimmie Rodgers (yay, awesome video footage! https://www.youtube.com/watch?v=cIlURYJI-xs) was arguably the first guitar-playing "modern" country musician (he fused country and blues). He too had a wide influence on blues artists, going so far as to collaborate with Louis Armstrong (https://www.youtube.com/watch?v=9BFbY9Vw8DM), and to be the reason why Howlin' Wolf started "howling."
Thanks for playing :)
comment 13y ago · link · parent
I'd love to take more classes in music history! I already took one (called "Roots of Rock & Roll", covered the mid-1800s minstrel show through the 1960s) that I absolutely adored, but unfortunately there aren't any other jazz, world or American music history courses offered (I wouldn't be that interested in classical history, I'm not quite ready for it yet, but we'll see where my growing musicianship leads me over the rest of my years).
If you have recommendations for good books that deal with music history, especially American musical history from the past 200 years or so, I'd be interested. I also would be interested in discussing this stuff in general; it seems like a lot of people, especially within the tech community, don't delve that deeply into the history and context of music (or really of art in general), so it's great to meet individuals that do.
comment 13y ago · link · parent
I'll go next! You were on the right track with blues from Texas, but it goes way before 1949. Try to find the Chuck Berry riffs...
http://www.youtube.com/watch?v=odwaE1hlwgc
T-Bone Walker - I Got A Break Baby (1942) (B-side of Mean Old World, Capitol 10033) (Wikipedia: http://en.wikipedia.org/wiki/Mean_Old_World)
Here's an article about him that I grabbed off Wikipedia's sources: http://www.there1.com/browse_articles.php?action=view_record...
> "[This single was] the first important blues [recording] on the electric guitar"
Some other cool stuff in the article too, like how he worked with Blind Lemon Jefferson (Robert Johnson also worked with him) and with Charlie Christian, who brought the electric guitar to jazz.
I'll go again just because it's fun: https://www.youtube.com/watch?v=EbWmAgp2R30 - Ernest Tubb - Walking The Floor Over You (1941) (Wikipedia: http://en.wikipedia.org/wiki/Walking_the_Floor_Over_You)
A country single that sold over a million copies, and it used that nice prominent electric guitar, beating Walker by a year.
Reading further on Wikipedia to try and find earlier recordings, I'm pointed to an artist I've been exploring only this past week: Milton Brown & His Musical Brownies, one of the "big 3" Western Swing artists (along with Spade Cooley and Bob Wills & His Texas Playboys).
Ugh, this stuff's hard to find on Youtube... Found something: https://www.youtube.com/watch?v=qnjE5aB-cWQ - Milton Brown & His Musical Brownies - Right Or Wrong (1936, date source: http://www.secondhandsongs.com/performance/200653)
Note the electrified pedal steel solo midway through. That's some innovative stuff, though I like Merle Haggard's version better (on his Bob Wills tribute album, "A Tribute To The Best Damn Fiddle Player In The World" from 1970. Wills' version is also pretty good, but not all that much better than Brown's. As you can see, I think Western Swing is great stuff (my last.fm is utterly full of it), and my secret theory is that there were only 3 big Western Swing bands because there were only 3 pedal steel players talented enough in the 30s and 40s to do the style justice. Before it came along, there wasn't all that much popular music that really used the electric guitar.
Anyway, I digressed pretty hard, but I think I've made my point somewhere in there...
comment 13y ago · link · parent
James Cotton - Cotton Crop Blues, on Sun Records. Recorded 1954, with a guitar solo harder/heavier than most records up until the late 60s (with a few exceptions like Dick Dale). And it features distorted power chords. Pretty much the first really heavy track out there, I figure. It's my go-to point to show people the origins of heavy, distorted guitar music.
I also like to show them some Bob Wills & His Texas Playboys, as he had a lot of electrified instruments (electric guitar, electric mandolin, pedal steel) and was a big influence on Chuck Berry and Elvis. Plus I love Bob Wills.
http://en.wikipedia.org/wiki/Origins_of_rock_and_roll does a pretty good job of covering the important records that led up to the explosion of rock music in the 60s. Not sure about how it is beyond that.
Pretty glad a musical topic came up here on HN, though. I'm more passionate about music history than I am about computer science (though there are no career prospects there, so CS it is).
comment 13y ago · link · parent
The only time you really want the active stuff is when you're traveling and there exists a lot of low-frequency noise, such as on a train or airplane. Looking around on Hydrogenaudio confirms that the QC are okay if that's all you need, and also that alternatives exist, such as IEMs, which might have a wider range of use as they simply have very heavy passive isolation.
comment 13y ago · link · parent
While that saying might be a tad unjustified, I find that their products are often purchased by people who don't do adequate research into other headphones that might suit them better. I often see people wearing the "QuietComfort" brand headphones in situations where they gain no benefit from active noise cancelling, although for all I know they could be heavy travelers and only own a single pair of headphones. But honestly, a comparable pair from another brand would run them $200 less...
comment 13y ago · link · parent
comment 13y ago · link · parent
However, I have some personal experience eating low carb, and the rate of weight loss, for me at least, was around 2 lbs/week, as predicted by my food/calorie tracking app (MyFitnessPal).
comment 13y ago · link · parent
The "1% Rule"[0] grew out of this idea -- the hypothesis it poses is that 89% of the users of a given internet forum are strictly lurkers. HN has a more tech-oriented population than many forums, so I bet the differences between groups are less extreme, but I also bet that the overall trend still stands.
[0]: http://en.wikipedia.org/wiki/1%25_rule_(Internet_culture)
comment 13y ago · link · parent
Part of it is HOW you explore the onion network: via links, often subtle, from other sites. There's no Google or Reddit to aggregate all the content; you need to know where to look. That's exciting and fun (although stumbling on illegal content isn't ):...). Feels almost like a game, with the whole idea of discovering hidden content in dark corners.
I think what happened to the internet in the past decade or so could be described as gentrification. The "discovery" period began to fade, and we started cleaning up, resulting in the "suburban internet," as posted above. I feel like oftentimes this can be compared to the process of gentrifying a sleazy area in a city: early adopters move in and make interesting things, causing more people to come and try to participate. As more people move in, the early adopters are crowded/priced out, and the things that made the place interesting begin to fade out in favor of more bland/easily accessible things... Just some food for thought.
comment 13y ago · link · parent
Could you justify this further? I'm curious as to your reasons for writing off Brave New World. I just recently finished it (I've read 1984 a few times already too), and I found Brave New World to resemble life in America a lot more than 1984 did, at least based on my personal experiences and not what I hear on the news. However, before I go and write up a bunch of stuff, I am interested in hearing your view.