Better HN
topnewbestaskshowjobs
Log inSign up

T-R

1,407 karma · joined Jun 14, 2010 (16y ago) · 438 submissions

Submissions

comment 15y ago · link · parent

I don't think he meant for the 3 bits to be per-column, I think he meant 3 bits total - one for each row below the top, meaning "does this row have a hole that is covered? (and as such, cannot be cleared unless a line above it is cleared)". This effectively turns all board states with the same exact topology and potential for clearing lines below the surface into the same state.

I think his overall strategy is similar to a point that I intended to make - that there are large sets of states that are effectively equivalent, and treating them as such reduces the complexity of the problem. Not that dissimilar from alpha-beta pruning or branch-and-bound.

comment 15y ago · link · parent

It might be a good idea to look at it as an induction problem - one state leads to another, and since a lot of states are effectively the same, it means the tree can be pruned.

Let's say the player has a row that's almost full - say, one spot left to fill all the way on the right. That means the AI needs to not give the player any block that would let him fill it (I,J,L,S,T) - so the player can force the AI to just give him O and Z blocks. If the hole isn't against the wall, the AI can only give O blocks. There are only a few, if any board states where the player cannot create a line using only O and Z blocks - the player just needs to make sure he doesn't loosen the restriction on the AI (such as by covering the hole).

If the hole is 2-wide, depending on the hole's depth, the AI may only be able to give T blocks, if even that, and for most board states, you'll probably find that T blocks can be used to make a line without loosening the restrictions on the AI.

comment 15y ago · link · parent

I don't think it's a preference for dedicated devices in that instance - the electronic dictionaries are just better than most cell phones for that purpose. Most people haven't switched over to smart phones, so the screens are small, and the English alphabet doesn't map all that well to a cell phone keypad (compared to a QWERTY keyboard, or Hiragana on a cell phone keypad). Newer electronic dictionaries also have a stylus and do handwriting recognition. On the other hand, the Nintendo DS electronic dictionary is pretty good, and much cheaper than an equally functional 電子辞書.

comment 15y ago · link · parent

> The fact something such as CoffeeScript can generate running, valid JavaScript is a testament to it's flexibility.

s/Javascript/Brainfuck

It's not all bad, but even overlooking Standards and DOM issues, the language itself has some not insignificant, bug causing issues, as brought up in some other comments. Compiling into a strict subset of an interpreted language shouldn't be considered a sufficient alternative to a real VM, or a language without those flaws.

comment 15y ago · link · parent

The worst part about these issues is that they aren't consistent, and fail completely silently. Global variables cause heisenbugs - you'll only notice when there's a collision, such as after compressing your script. The ==/!= operators and falsy values just put you on the wrong side of an if-statement. The for...in operator sometimes just loops a few extra times. The coercion and overloaded + operator will just sometimes give you a wrong number if you forget to caste an input:

    "25"+5 = 255
    ("25"+5)/5 = 51

comment 15y ago · link · parent

I think the issue is that the images are different sizes, so putting size/location into CSS would require generating both CSS and a Sprite Sheet for each request.

With Data URIs, they can convert to Base64 ahead of time, and then just concatenate them into a JSON request as needed. This potentially saves them an HTTP request per page load because it means the CSS can be static. The decoding overhead is on the client, which in most cases should offer better user perceived performance than an extra HTTP request for a dynamically generated stylesheet, so it's just a matter of whether it's outweighed by the increase in file size.

comment 15y ago · link · parent

They're sending the Data URIs in a single JSON file, so it gives the same benefit (fewer HTTP requests) as normal CSS sprites. When you just combine multiple images into one (as you do for normal CSS sprites) you lose the information on the size/location of each sprite. An array of Data URIs keeps the images separate, so you don't need to put size/location information into CSS/Javascript/HTML.

comment 15y ago · link · parent

Depends a lot on the school, and how much prior experience you have. As far as rigor and workload, that really depends on the professor. That said, intro courses are usually designed to be at least survivable by someone with no background at all.

Strictly talking about the difficulty of concepts, a curriculum based off of SICP (or something with a similar emphasis on functional programming or math) will probably be full of new concepts even for those who've had some experience programming. I'd say this is a good thing for everyone involved, because it both levels the playing field for those without experience, and ensures that those who have some still get something out of the course.

Most schools, though, start with imperative concepts (as does AP Comp Sci), which isn't a bad thing either, but someone with experience won't get as much out of it until later in the course.

If you're applying to schools or about to start a class, it wouldn't be a bad idea to dig through the department website and see if you can find the site for the class to see what it entails.

comment 15y ago · link · parent

I could see that, but is that necessarily the case all the time (particularly if you see it a lot)? I'd be surprised if it wasn't ever the case that they just didn't have permission, or the time, ability, or necessity to track down a person, to cite them by name.

comment 15y ago · link · parent

I'd definitely go for the classroom. Unless you're living in the country, it can be pretty hard to maintain the discipline to cram vocabulary at a reasonable pace without anyone checking on you. Also, at some point you'll at least need someone to practice with, ask questions, and check your grammar.

If you're looking for tips - when I was taking multiple languages at once (Japanese, Chinese, and Korean), between classes I listened to music from the language of the class I was about to go to, to get my mind switched into that mode. I'm also under the impression that the music helped with my pronunciation a lot (but not with listening comprehension as much as I'd've expected).

comment 15y ago · link · parent

That could be true, or it could not be. I had more courses before my OS class, but strictly speaking, I didn't necessarily need to take them in that order.

Either way, it seems that the thing to do would be to get more practice independently. If you're really worried about that particular course, see if you can read up on some of the material beforehand. If the assignments are published somewhere publicly, you could even start on them early.

Also, dropping the course and re-taking it isn't really a dirty trick - they just took some more time to learn the material. You could do the same by getting a head start practicing it. If they finished with a 96% the second time, there's a good chance they learned more from it than someone who got through with a 50% and never touched the material again.

comment 15y ago · link · parent

Not that I have any reason to doubt the BLS data, but does anyone know of any other data on the issue? Everyone seems to be citing the same pdf.

comment 15y ago · link · parent

I just want to say thanks for the great post. I thought your comment on the other thread was particularly good, I'm glad to see you expand a bit more on it. Honestly, I was a little disappointed to see patio11 reference yummy's comments, since they really leave the impression that he has a horse in this race - it's nice to see a more even handed treatment of the matter.

comment 15y ago · link · parent

I agree with your overall points, but sarcasm and characterizations of those who disagree with you as communists isn't conducive to conversation.

comment 15y ago · link · parent

I understand how you feel, but I can't imagine Google's restricting the service for anything but practical reasons. Minors are, legally, a special case, and Google+, being in such an early stage of development, might not have the privacy features necessary yet, or they may not feel ready to test them. A legal issue arising from minors using the service at this point in the product's lifecycle would be disastrous PR-wise.

comment 15y ago · link · parent

Perhaps not compared to, say, car accidents in the U.S., but that doesn't by any means imply that it's rare enough to not be a valid concern for potential victims.

From the wikipedia article cited above:

"Rape prevalence among women in the U.S. (the percentage of women who experienced rape at least once in their lifetime so far) is in the range of 15%-20%, with different studies agreeing with each other.

I'm personally not aware of any statistics that would justify calling rape an 'ultra-rare' occurrence in any part of the world; perhaps someone will enlighten me.

comment 15y ago · link · parent

> except in ultra-rare occasions they do not happen in first world countries

...That sounds a lot like you're implying that rape and assault don't happen very often in first-world countries... which would be a statement quite divorced from reality. Care to clarify?

comment 15y ago · link · parent

I don't think his intention was to characterize all men as thinking/behaving that way, but to point out that those men exist, and that there is a historical/cultural aspect to the prevalence of that behavior.

That is, I think he was just trying to assert that they are effectively a minority, and that their concerns have a legitimate basis, despite the fact that many outside their group may have trouble empathizing with them.

comment 15y ago · link · parent

> kids were not allowed to say "he" or "she" when talking about person but rather had to use [a gender-neutral pronoun]

At first, that struck me as excessive, too, but on the other hand, I can't help but wonder how much of an effect language has on the way people think, and gender-specific pronouns are something that really reinforces the concept of "other".

There's no logical reason for encoding gender into the grammar of a language, particularly as opposed to some other construct that would be better at distinguishing between multiple subjects in the same passage.

Of course, I wouldn't go to the extent of forcing children to use non-standard language, but I can't disagree with the idea that we'd be better off switching to gender-neutral pronouns.

comment 15y ago · link · parent

As with other minority issues, I'd imagine he's speaking out on it because he feels that:

- The population he speaks for is a minority: they aren't yet well represented within the group

- Those who are in the group may feel uncomfortable speaking out about it, particularly because they're a minority

- The issue is important enough to that minority that it may lead them to leave or not join (and so continue to be underrepresented), and the group and the minority are important enough to him that he thinks it's worth addressing.

The "long rant" serves to bring attention to the significance of the issue, as does the fact that someone so well known is taking the time to make it.

comment 15y ago · link · parent

Sounds like you're looking for Hackruiter: http://www.hackruiter.com/

comment 15y ago · link · parent

There was a somewhat related discussion a while back; you might find it interesting if you missed it. Granted, it's for a different demographic (25+ US citizens), and doesn't cover the gender aspect, just education level.

http://news.ycombinator.com/item?id=2525621

There was also another discussion earlier today on youth unemployment in the US:

http://news.ycombinator.com/item?id=2730268

which argued that youth unemployment is related to the 55+ demographic retiring later (as opposed to minimum wage laws).

comment 15y ago · link · parent

When I last worked on a Java project, I ended up going back and forth between Sublime Text and Eclipse.

ST makes navigating the code more quick and smooth - the minimap takes away the feeling of looking at code through tunnel vision, you can preview files much more quickly, and view more code at once with minimalist full-screen mode settings and multi-column layout. The regex search with active highlighting in both the minimap and the file is also nice, and multi-select is pretty helpful for refactoring repetitive code.

That said, ST is just a text editor, not an IDE - while some features, like autocomplete, are partially compensated for, it doesn't do type checking or follow references across files, so other features that stem from those will be missed; e.g. refactoring across multiple files is usually faster in Eclipse. I would usually do most of my editing in ST, and then type-check, compile, and debug in Eclipse.

comment 15y ago · link · parent

Have you been having a problem with a particular language? I've been using Sublime Text to work on code with comments in Japanese without a problem for almost 2 years now (well, the fonts were squished at first, but that bug was fixed a long time ago).

comment 15y ago · link · parent

There's been a bit of backlash against that, though - while it does set an upper bound on the negotiation, it also couches the range of the whole negotiation (i.e. the other side is unlikely to make a significantly lower counter-offer, since their perception of a reasonable counter-offer is based on the initial offer).

Still, the typical advice is probably pretty solid for situations where you don't know where to start.

comment 15y ago · link · parent

His class at Kansai Gaidai? Every time I read another one of his blog articles, I regret even more not taking his class when I had the chance.

comment 15y ago · link · parent

But for Android consumers, hardware manufacturer is usually a secondary choice. I won't contest that Apple's ahead, but all this survey really points out is that Apple has more control over their branding - consumers have no need to distinguish between Apple, iPad, and iOS. Sure it's not beneficial for manufacturers (in terms of market share) to be competing within a single brand, against a company that controls its brand entirely - that's pretty obvious. It doesn't support a conclusion that "customers want iPads, not Tablets", however, since customers mostly aren't framing their purchasing decisions around hardware manufacturers.

Again, I'm not saying Apple isn't dominating, but it does seem like the question was written with the conclusion already in mind.

238.

Ericsson buys Telcordia (Bellcore)(dealbook.nytimes.com ↗)

2 points · by T-R · 15y ago · discuss

comment 15y ago · link · parent

Not insignificantly, though, Sega dropped the ball on their (already limited selection of) first-party software before they dropped out of the hardware business. Nintendo has multiple franchises that are all at least as strong as Sonic was in the Genesis days. Nintendo's console sales have always been held up by first party franchises - they burned bridges with 3rd parties long ago by charging extortionate license fees on the SNES. It'll be interesting to see how far they need to go to tip the scales against them.
1
789
15