Better HN
topnewbestaskshowjobs
Log inSign up

Nav_Panel

1,772 karma · joined Jun 2, 2012 (14y ago) · 562 submissions

hi! https://snavsoft.com
Submissions

comment 12y ago · link · parent

> Maybe implement a game that doesn't have the overhead of an os.

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

Heh, in the C version I wish that "value = str(i);" was replaced with "value = "%d" % (i);"

Format strings feel like C. And not the fun parts of C.

comment 12y ago · link · parent

Here's a different book you might be interested in ("Practical Foundations for Programming Languages":

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

It's actually in the source of the page, just commented out:

    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

Here, I'll summarize the article for you, as I think you've misinterpreted it:

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

> developers are welcome to cast shootings, stabbings, explosions and other gory images

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

> WoW

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

I mean, that is the origin of the word "digital":

>1650s, "pertaining to fingers," from Latin digitalis, from digitus (see digit). Meaning "using numerical digits" is from 1938, especially of computers after c.1945; in reference to recording or broadcasting, from 1960.

Source: http://www.etymonline.com/index.php?term=digital

comment 12y ago · link · parent

There was a time in the 80s when you could pick up a TB-303 or a TR-808/909 for $20 -- nobody wanted them! The 303 didn't sound like a bassline. The 808 certainly didn't sound like actual drums. And the people buying them weren't classically trained musicians: they were dudes who liked the music and wanted to try it themselves.

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

I like this comment because it reminds me of a quote from the late 60s movie Easy Rider, where a pair of guys take their motorcycles across the country in pursuit of "freedom." I think it has the same general sentiment and some interesting historical/societal connotations. Here's the quote (note that George is played by Jack Nicholson, whose other famous quote from this movie involves Venutians interbreeding and living among us...):

  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

EDIT: apparently my post below was predicated on a false assumption, please disregard.

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

Trains don't always cost more than flying. Trains between some areas are cheaper than flying, especially if your flight involves a layover (personal example: I travel between Pittsburgh and Albany often. I need to fly from Pittsburgh to Baltimore before I can get a flight to Albany, and it costs a fair bit, usually around $150. It'd cost me about $60 to take a bus to NYC then Albany, but it'd take about 2-3x as long). Also, at the airport you need to get through security, pray your flight isn't delayed and deal with a bunch of people who board very slowly. Despite these issues, it's usually pretty clear when the time savings of flying makes it worth the hassle.

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

I don't understand why the post you linked would have been flagged. I see nothing at all wrong with it.

comment 13y ago · link · parent

It takes a very long time for your body to go into "starvation mode." Intermittent fasting is actually a reasonably effective dieting technique assuming you don't binge eat afterward to "make up the difference."

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

[1]: http://www.ncbi.nlm.nih.gov/pubmed/2405717

[2]: http://www.ncbi.nlm.nih.gov/pubmed/10837292

comment 13y ago · link · parent

As fun as "Metal Machine Music" is, it's a bit non-musical for my tastes -- you wont find interplay and solid musicianship, just noise. I suggest the next step you take is Velvet Underground's second album, "White Light / White Heat". It meets your feature requests fairly well, perhaps better than "Velvet Underground & Nico", the album "European Son" is from, would.

comment 13y ago · link · parent

I'm interested that "Heroin" was the song that made you feel like that. I've always felt that "European Son" (YT: http://www.youtube.com/watch?v=igWyYA_r06Y) was the most experimental and noisy song on the album, and I always experience a real visceral thrill when listening to it (especially that part with the roar-ish thing and then the glass shattering). The guitar parts are absurd, the band sometimes plays straight screeching noise, and the song barely holds together. "Heroin" feels contained by comparison.

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

Lines of C are certainly not equivalent to lines of, say, Erlang, so I don't think that metric would be extremely useful either.

Perhaps something like WTFs per commit would be best?

comment 13y ago · link · parent

Huh, I remember hearing a similar story but I too can't place the name. I bet he was a Chicago guy... maybe Muddy Waters?

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

You're welcome :) Glad to share it.

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

Oh, oh, let's play the "find similar but older music" game!

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

Although all of the comments here have been valid and interesting, I'm gonna poke this reply thread with a Youtube link: http://www.youtube.com/watch?v=YAqTrbuxCRI

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

In Windows, I generally just default to CTRL+SHIFT+ESC which immediately brings up the Task Manager. At work, I'll use WINKEY+L to lock the machine. It's very rare that I actually need to use the CTRL+ALT+DELETE key combination.

comment 13y ago · link · parent

No clue regarding active noise cancellation. If you're okay with passive (aka, they go on your head and keep sound out just by virtue of surrounding your ear), a few popular low-cost options include the Audio Technica ATH-M50s and Sennheiser HD280Pros. Everyone in the audio world has their own opinions on this sort of stuff, but I've owned a pair of each of those and, despite their small flaws, both are decent pairs of cans.

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

So goes the old saying: "No highs? No lows? Must be Bose!"

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

I have yet to see a restroom on a New York City subway train. Trips on those can take upwards of an hour depending on where you're going. Old folks and children seem fine. I don't think a lack of bathrooms is a very significant problem; I'd say it's not even a problem worth considering.

comment 13y ago · link · parent

When you start a low carb diet, you immediately lose a considerable amount of water weight. It's why people consider Atkins to be a scam (as they would immediately lose 5-10 pounds only to gain it back just as fast when they stopped dieting).

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

Hacker News sans voting is nowhere near completely useless. I strongly suspect that a majority of people who read HN don't even have accounts (and thus are unable to vote). And even if the posts do contain broken links/images, a fair amount of text is often still available; I think a site's textual content is often its most important feature (unless it's a site specifically geared toward images/interactive content).

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

I'm not as old as you guys (I was born in 1993!), but I still remember some of these old feelings going on the internet as a young person. And I agree that surfing Tor is the closest I've come in a long time to re-creating that unknown excitement that "the web" once held for us. (I had about 30 minutes of computer time a day until I was in my mid-teens, so the internet remained novel for me for a long time).

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

>The society in A Brave New World is a dystopian science fiction fantasy world that is a far cry from any society that has ever existed.

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.

1
1516171819