Better HN
topnewbestaskshowjobs
Log inSign up

nmrm

534 karma · joined Mar 2, 2014 (12y ago) · 299 submissions

Submissions

comment 12y ago · link · parent

It would be quite neat to extend this with an evolutionary algorithm for picking starting positions in the hierarchy and probabilities based upon some proxies of enjoy-ability or play-ability.

comment 12y ago · link · parent

I don't have actual code. But when tutoring CS1 and CS2 students during undergrad, it was common for students to try to implement algorithms in terms of linked lists when they should have been using a tree.

The really persistent students would get things to almost work -- often with hundreds or thousands of lines for something that, with a tree, doesn't take more than 10-50 lines.

This is also an interesting case study in human behavior; the students were typically too impatient to spend 20 minutes thinking about the problem before coding, but could spend 20-30 hours on a single assignment. Odd combination of work ethic and lack of patience...

comment 12y ago · link · parent

Well, yes. But I think this undersells it.

This is probably the best TL;DR: The author created a nice way of specifying loot dropping behavior such that (begin quote): "Any monster has a chance of dropping almost any item, so you have that pleasant anticipation. At the time time, the probabilities are weighted so that each monster still has a unique “feel” to their drops, and you can seek out monsters that are more likely to drop what you want."

And the author achieved this with a concise but clear DSL in which you specify the probability of starting at a particular point in the equipment hierarchy, and then an object is chosen by traversing (probabilistically) the equipment hierarchy.

comment 12y ago · link · parent

Move to a foreign country without much cash for a summer or so. Hopefully your employer is accommodating; if not, find a good story or line-up a new job. It's an incredibly liberating experience. Puts a lot into perspective.

comment 12y ago · link · parent

Since others have described the high-level difference between checking and proving, I will point out that you might not want to use a dependently typed language even if you plan on doing some proving.

A large cost of formal verification is designing and implementing specifications. For this reason, even if you plan on proofs for some components, it still makes sense to use a tool which supports both model checking and theorem proving using a single specification. Especially if your interests are non-academic.

Type-theoretic proof assistants typically don't support model checking (or, it's at least fair to say it's not in the culture even where supported). So to use model checking, you have to re-implement the specification.

comment 12y ago · link · parent

Here's an interesting blurb about how they were using TLA+. TL;DR is is that, unsurpisingly, model checking trumps proving in roi:

We have found formal specification and model-checking to yield high return on investment. In addition to model checkers, many formal specification methods also support formal machine-checked proof. TLA+ has such a system. The TLA+ proof system has several compelling benefits; for example, it supports hierarchical proof. After doing only a small number of such proofs, author C.N. has found that hierarchical structure is an effective way to handle the otherwise overwhelming amount of detail that arises in formal proofs of even small systems. Another benefit of the TLA+ proof system is that it takes

as input the same specification text as the model-checker. This allows users to find most of the errors quickly using the model-checker, and switch to the proof system if even more confidence is required. Even though formal machine-checked proof is the only way to achieve the highest levels of confidence in a design, use of formal proof is rarely justified. The issue is cost; formal proof still takes vastly more human effort than model-checking. We are continuing to experiment with the TLA+ proof system, but currently model-checking remains the sweet spot in return on investment for our problem domain. We suspect that proof will only be a worthwhile return on investment for one or two of the most critical core algorithms.

comment 12y ago · link · parent

There's a lot to an interview besides just coding questions. Interacting with an actual interviewer lets you get all of the human interactions, talk in-between problems, using problems to showcase talent, etc... all this stuff I'm told I should do but have no idea how to actually do, basically.

comment 12y ago · link · parent

> Are you literally demanding the candidate spit out the optimal answer immediately?

I think the author of the article is indicting situations where this is the case. Perhaps he could have been more explicit up front, but reading between the lines this is the situation he's complaining about.

> If not, can they solve it with a naive method and then make reasonable attempts to iterate on that, even if they never hit an optimal solution?

If I were asking the question, absolutely.

> It is a little like a high end restaurant asking a trainee chef to make an omelette, which is apparently common in the culinary industry.

Are there omlettes that are "optimal" (very awesome in some sense)? I honestly don't know (and if so, man, I want one!)

comment 12y ago · link · parent

> Interesting is fairly subjective

Interesting is a social construction. As such, I would define interesting as worthy of publication in a first or second-tier conference at some point in the history of the field.

> If you cannot demonstrate ability to solve a simple, well trodden problem how will you be able to solve a new one?

0. I've seen many well-respected researchers who have solved truly interesting, new-to-humanity problems stumble on well-known problems others consider easy and/or fundamental. In fact, this is probably true for every single researcher. And doubly so for practitioners. One person's fundamental technique is another's blind spot.

1. Simple != easy to come up with. Often exactly the opposite! Take the TH algorithm as an example. It's a very simple algorithm. Small. Simple. Optimal. Awesome. Not trivial to discover, however.

2. Well-trodden -> unless the algorithm is absolutely fundamental and taught everywhere (e.g. sorting), you've given up on testing problem solving skills. You're just testing whether the person's intro/DS/algo professor covered this particular algorithm (and maybe their memory). Or, more likely, rather their random interview studying happened to hit your pet problem. Since curriculum is not anywhere close to uniform in CS -- even among top schools -- this is just silly.

3. Simple problems don't always have (simple) solutions. Create a fair voting scheme.

comment 12y ago · link · parent

> Actually this is a simplification as the chairs slow down and bunch up at the bottom and top to make getting on and of simpler

Yeah, this is the problem with the question that I noticed as well.

If you don't know what a ski lift is (grew up in the south and didn't have money for vacations as a kid), you might not even know how ski lifts work. In which case maybe you guess that the chairs are fixed and give the 127 answer. Ironically, you guessed wrong and got the correct answer.

If you do know how ski lifts work and assume the interview does as well, then you just look like an idiot.

I guess the lesson is to state all your assumptions (and also, don't ask these questions).

comment 12y ago · link · parent

Are you referring to tortoise-hare algorithm? I refuse to believe CS freshmen regularly come up with this on their own. Maybe a few percent, everyone else is googling or relying on huge hints from the lecturer.

If you were referring to a more trivial algorithm (e.g. linear space), I think you misinterpreted what the interviewer was expecting and would not have gotten the job.

It's also worth noting -- esp if you're referring to the TH algorithm -- that CS curricula are not standardized and that there are probably dozens of "clever trick" algorithms you haven't seen and couldn't come up with on the spot (e.g. can you initialize an array in constant time?), but someone else thinks is trivial because they happened to see it in a lecture/read it online.

comment 12y ago · link · parent

If your list is laid-out a contiguously in memory as structs with both next and prev ptrs, you can visit each member using ptr arith and switch the values without actually walking the list using next and prev. Ditto if there's an underlying data-structure involved such as an array.

comment 12y ago · link · parent

I think "coming up with interesting algorithms" was the intended meaning.

In which case, no, everyday programming is mostly not about designing algorithms. Otherwise, programmers would spend most of their time with journals and books, with a few days of programming each month.

comment 12y ago · link · parent

> Self-consciously derivative and combinatorial art exacerbates this.

You are absolutely entitled to your artistic opinions and I have no interest in challenging those.

However, using the hammer of law to enforce your aesthetic perspectives is just unwise.

Copyright law is absolutely not the place to choose a best-possible-definition of what constitutes good art. We should instead take a broadest-resonable-definition and work from there. And I think most reasonable people -- who are attempting not to enforce their own aesthetic sensibilities -- will agree that if a significant subcommunity of well-established artists call some variation a piece of art (even if derivative or uninspired), then we can proceed assuming it's not an "exact copy".

> there are few scientists who labor unrewarded out of compulsion

There's up to a $40k split between what a top science student can make in industry and a first year grad student stipend at a top school. Plus the dent to future income potential. And even then they are not paid exclusively for the science -- the stipend typically includes lots of community work and/or teaching that is unrelated to the science. A lot of students at lower ranked universities get stipends exclusively for teaching and complete research in their spare time. In other words, completely unrewarded.

And "most scientists" are grad students.

So I respectfully disagree (and even resent) the implication that science doesn't involve significant personal sacrifice for most scientists, at least on the order of magnitude of the what most artists experience.

My point w.r.t. science was that a lot of highly derivative work is done (including "mashups" of theories, techniques, etc.). Although we realize this research isn't "as original", people aren't going around accusing these researchers of stealing their ideas. Of if they are, they certainly aren't even thinking about the hammer of law or lost profits. This fundamentally demonstrates that the artistic community is making an unnecessary and avoidable choice.

comment 12y ago · link · parent

Hm. I understand your individual points, but don't understand the argument you're trying to make.

Why does this difference between art and science justify art's comparatively hostile attitude toward "derivative" works?

Also, I don't agree that there is such a stark contrast. I think you over-state the role of testability in science (esp. the task of articulating theories) and under-state the importance of the social process in science.

Oh, it's worth noting that sometimes scientific communities do frown on "derivative" works. E.g. scooping other group's low-hanging fruit. But the general sentiment regarding these cases doesn't even come close to even contemplating something like litigation. (edit: oh, I guess there's some patenting in the natural sciences esp. in near-to-market research. But patents != copyright. And CS comes a lot closer to the nature of art, and AFAIK it's unheard of for a researcher to sue another researcher over derivative works.)

comment 12y ago · link · parent

> But a lot of art is original, and speaking of someone's originality is usually one of the highest artistic compliments one can pay.

Um, this is exactly true in science. But scientists are generally required to make clear and explicit the influences for their work.

comment 12y ago · link · parent

Thanks for the reflection based on your experience. fwiw I spent some time on Oplerno today. Your model (start with credit, then figure out accreditation through existing reputable boards) makes a lot more sense.

> ...and as a layperson the distinction might be unclear.

This is really the problem I understand he's trying to solve. As long as there exists meaningless accreditation and general confusion among laypeople, non-traditional models face an uphill battle.

So it's not that accreditation agencies in general are awful. It's just at accreditation doesn't mean much to people who aren't insiders. Which is just as a bad, from a student's perspective and from the perspective of non-traditional institutions.

Offering an accreditation aimed at admittedly non-traditional degree programs where the accreditation really means something seems helpful. But perhaps this is better solved by going through one of the existing high-quality accreditation agencies and then explicitly pointing out the quality of your accreditation.

comment 12y ago · link · parent

For me, the social aspect of college was about a lot more than forming a "professional network".

I learned a lot and grew as a person interacting with people outside of my area who will probably never (directly) provide me with a competitive advantage in the job marketplace. However, I know what I don't know in much deeper ways than I otherwise would.

Attending meetups might get you this for the very narrow slice of the world that is CS.

comment 12y ago · link · parent

You make some good points, but many of your objections are shallow.

> It starts with colleges should be more than job training centers, then ends with trying to create an accreditation process to prove value to external entities (of which I assume employers are a big part?).

It is absolutely consistent to realize that a degree is not about job training, but should probably produce employable graduates. Ensuring the quality of the program is important for both. Many universities/colleges are "not about job training", but all of them are accredited.

I think the point is to ensure quality rather than demonstrate value; the main reason he identifies for not attending the smaller public schools in his area is quality. Similarly for existing online schools, which definitely are about job training.

> It mentions the high cost of education, then describes how his current options are lacking because the number of classes in each major is limited.

I don't think this is inconsistent (which seems to be what you're implying), but agree that the author probably has a poor understanding of how such things work. See threads below.

> He talks about how administrators are unnecessary, then suggests a similarly labor intensive accreditation system that requires experts, committees and other logistics that requires significant manpower and time/energy.

Well, you actually answer this below. Lots of those "administrative" costs are not about necessary things like accreditation and instruction (sports, fancy facilities, libraries, etc.).

Some of these (e.g. libraries) are necessary (for serious students). However, this approach could externalize many such costs. Most public universities open these facilities -- esp. their libraries -- to the public (sometimes for a small fee). That doesn't make the cost problem for the sector go away, but it does provide an affordable education for those who cannot afford the mainstream option.

> however his solution doesn't seem to solve many of the challenges he mentions.

I don't think this is intended as a complete solution. I think it's intended to solve one specific problem standing in the way of a whole variety of solutions (that is, quality assurance and associated reputation).

> He finds it unconscionable that adjunct faculty don't make enough money, then hopes to solve it with a free market - where honestly the things he values might not be the things many others value.

This is a fair and important criticism. I think the author of the post should think deeply. I imagine there are two answers. First, his approach seems to genuinely value rigor. This can go a long way toward resolving negative perceptions (one major road-block for these sorts of approaches). Second, there might be enough similar people that this sort of project could become feasible.

> He wants rigor - then critiques current accreditation processes that largely does what he suggests.

I didn't see any critique of the current accreditation process. It's fair to ask why he isn't using one of those. I assume there are two reasons. First, many probably have a strong bias toward brick and mortar institutions. Second, I am sure many are "rubber stamp" committees (e.g. consider the dubious curricula of various "accredited!" online CS degree programs).

> Each of the major MOOCs already are trying to accredite/build reputation/be rigorous. What OP is essentially doing is describing the idea of Udacity, Coursera, etc without the technical backend, the users to attract such a marketplace, connections, support, or actually being able to do a MOOC.

Well, no. His model is actually very different.

The M in the MOOC model is important. Star lecturers, hundreds of students, several TAs and little or no cost to the student has been the model thus far. There are many reasons this model probably doesn't scale to an entire degree program. Quality of assessment is one reason.

His model seems to call for something more intimate and more hands-on, with the instructor paid exclusively through student tuition. This seems both more sustainable and more likely to produce quality students (imho).

edit: cleaned up some grammar. But this is still an internet comment post, so thanks for putting up with my slopping writing!

comment 12y ago · link · parent

Your tone is less than constructive and I agree with the down-votes.

But I also have to agree with your assessment given the contents of the article. The bill typifies the sort of "you're so stupid/corrupt/ridiculous we can't even talk with each other" attitude that is causing so many problems of late. "Made me chuckle at those other people" does not constitute good leadership.

edit: the title of the bill is "The Dog Ate My Tax Receipts Act". Tell me that's not some juvenile and unbecoming of a representative of the government of the united states.

comment 12y ago · link · parent

Thanks for replying. these are all interesting points, and I'm intrigued by your prediction. If things work out that way I would be quite happy; pay walls in front of science suck!

> - A lot of papers end up in a lot of different official journals in some form. Publishing slightly varied versions of the same work across 3-4 different journals is a time honoured tradition.

Hm. Typically in CS these happens a different scales; e.g. a few papers with the same title (workshop, conference, perhaps another conference paper with a different application or an extension to the theory, ..., journal) but vastly different levels of detail/justification or significant extensions to theory/application. So same idea, but not the same paper and not presenting the same results.

Publishing the same exact results in multiple venues is, afaik, a form of academic dishonesty and a serious black mark. Hopefully it works the same way in other fields.

> - Actual journals do effectively the same thing that arXiv does, but theoretically with more 'experts' and rigour.

I'd remove the theoretically qualifier; getting into top venues in very difficult. Although I'm sure many worthy papers are rejected, the bar is still very high.

For your last three points, I'll cede to your knowledge on the matter.

comment 12y ago · link · parent

You sound like you're trying to justify a bad decision...

Outside of the top-ranked flagship state schools -- which carry as much prestige as an ivy in some fields (e.g. in CS uiuc, u.w., austin, etc.) -- state schools are actually by far the best bang for the buck around.

For example, $180/cr is actually not far off from what most non-flagship state schools cost. In fact, there are schools in my state that cost within $10 or so of that. Crucially, all these institutions have quite good reputations in the region, no one perceives them as diploma mills, and they all have great CS departments with a sense of continuity.

comment 12y ago · link · parent

> I'm not in academia, but when I was in college in the 90's, adjunct sounded like a grad student on a stipend.

This attitude was perhaps more appropriate a decade ago, before adjunct faculty were covering a significant portion of the course load and students could reasonably expect most of their courses to be taught by people with the word "professor" in their job title.

comment 12y ago · link · parent

It's not quite a fair comparison, since a whole bunch of published papers end up on arXiv in some form

comment 12y ago · link · parent

This sounds like a good description of their approach to the tablet market, actually.

comment 12y ago · link · parent

Could someone read through the website/bill [1] and verify this story even comes close to accurately portraying the bill?

As far as I could find, the text of the bill doesn't even mention the issue of navigation apps. Nor does the website. At the very, very most it mentions egnaging with state governments about driver safety issues. Which might possibly maybe include talking with people this issue, and definitely is not "regulation".

The NYT article mentions the agency has released general guidelines. That's a hell of a long way from "regulation", though... and it's completely unrelated to the bill or any legislative action afaict.

As far as I can tell this article -- at best -- massively hugely ridiculously sensationalizes.

[1] http://www.dot.gov/sites/dot.gov/files/docs/DOT_surface_reau....

comment 12y ago · link · parent

> I'm not defending uncompetitive environments and monopolistic exploitation

Okay. Well that's what the article is attacking. So I guess I don't understand your point w.r.t. the thesis of the original article. Do you agree with the article but disagree that Wal-Mart is an example? Or what? Could you clarify?

> I'm asserting Wal-Mart as example uncompetitive environment is, in the general case, nuts.

To repeat myself, there's more than one way for companies to behave anti-competitively.

Wal-mart cannot afford to screw consumers, so they find other ways to leverage their status as a mega-corp -- squeezing local government via tifs (this corn field/park/10 year old walmart is "blighted", so give us 15 year tax break to build a new one), paying poorly compared to other players in the market, abusing or undercutting supply chain partners, etc..

> but making groceries cost more is a freakishly regressive sort of way to attempt to redistribute wealth

Well, we could one-up Wal-Mart and make all the groceries completely free by enslaving all those involved in food production. So this is clearly an over-simplification.

It's also a false choice. Wal-Mart could instead decrease its profits and play nicer with everyone (like many of its local chain competitors do, arguably because they don't have the huge legal/PR/marketing team and cash reserves which can buy F-U leverage against local governments and labor groups -- this coercive power that comes with being so big is at the heart of the article's thesis).

Also, the price difference vs. wage difference between Walmart and its competitors also puts the lie to this claim -- even an extra 1.00+ an hour way more than offsets an extra .10 cents on the dollar for groceries.

comment 12y ago · link · parent

Yes, I agree. I was just explaining how it works :)
1
678910