Better HN
topnewbestaskshowjobs
Log inSign up

megrimlock

299 karma · joined Sep 10, 2010 (16y ago) · 126 submissions

nondeterministic automaton
Submissions

comment 10y ago · link · parent

> giving folks the ability to wait-and-see for years, with zero risk, before pulling the trigger isn't really fair

Isn't that what an option represents? The freedom to choose later is the inherent value of the option.

And that value isn't acquired risk free: it's compensation for putting time in in lieu of salary.

comment 10y ago · link · parent

Perhaps there's room for a rust equivalent of cdecl, a tool to map rust to plain English descriptions, offering a gradual onramp to the syntax.

This kind of thing seems silly to experts but could raise the rate at which folks make it through language learning funnel.

comment 10y ago · link · parent

That Niko's text-arrow lifetime annotations are so helpful here suggests a rust IDE could offer similar highlighting or annotations to explain borrow checker errors.

One of the ergonomic hurdles to rust adoption by experienced C++ users is that the language looks similar enough that such people may think they fully understand the semantics even before they've fully internalized all the details. It's a tricky zone when something feels familiar enough that you don't realize the remaining mistakes in your conceptualization.

comment 10y ago · link · parent

You are not alone. If you look at the "target retirement date" funds Vanguard etc. run you'll see that by the time the target date is 5-10 years out they have shifted largely to bonds to provide defined income.

comment 10y ago · link · parent

Anything with low-effort access will always connote little value in people's minds because endless alternatives exist. Anyone who wants to get paid for doing something hard should avoid channels like that, or only use them to float associated freebie products that can introduce people to the real product.

comment 10y ago · link · parent

Thankfully the executive health plan has 100% coverage so the dna regen and orbital massage treatments are gratis. It's the little things.

7.

Furious 7’s most stunning effect: Paul Walker (CG recreation)(fxguide.com ↗)

1 points · by megrimlock · 10y ago · discuss

comment 11y ago · link · parent

> If you could point me to a single bank president who says

Why do you think they would say what their true goals are to you? People in positions of power are extremely judicious and strategic about what they say and to whom. They get daily exercise in this and only the best survive. The most effective are excellent at pursuing their goals while maintaining a socially credible exterior. The less effective use coded language (corpspeak or political rhetoric) to try to hedge through via indirection.

comment 11y ago · link · parent

Anyone know what they mean by an "inverse modulo" algorithm? That only seems meaningful for numbers coprime to the sensor ceiling value.

comment 11y ago · link · parent

You can approximate low frequency light fields with a suitable distribution of virtual point lights.

comment 11y ago · link · parent

Neat stuff. It's worth noting that shadow rays don't entirely avoid precision issues either. You still need to handle self-intersections. One option is to add a bias epsilon (which introduces other artifacts, depending on the scale); another is to reject local self-shadowing (which means you can't get finely shadowed surface cracks); another is to give artists explicit control over which sets of objects shadow which others (which adds artist time). Offline rendered movies use all of these.

comment 11y ago · link · parent

A suggestion. Your comment reads as though you wrote your own press release to then take issue with. Mis-quoting them with hyperbole for emphasis is less persuasive than directly addressing what they actually wrote.

comment 11y ago · link · parent

For a reference point on how far this tech has come: https://en.wikipedia.org/wiki/Soviet_laser_pistol

comment 11y ago · link · parent

Makes sense. I didn't realize the problem description was for a game that would be played repeatedly with the same opponent -- i.e. one where you can gather information. If we were doing this in person instead of on a internet forum and async post/response we'd probably iron that out quickly. Thanks for elaborating.

comment 11y ago · link · parent

Ok, I'm stumped. If I've parsed your description correctly, we get no info about our opponent's actions or the results until the end. Absent any ability to observe their strategy, it seems like you do want to maximize for expected value of your own actions, and I'm curious about the counterexample.

How do we maximize EV? A single throw's pdf is 1, for x in [0,1], so its EV is 0.5. The question is how to improve on a single throw by deciding to re-throw. A re-throw is independent and gives the same EV. We want a strategy that gives us higher cumulative EV. Say our strategy is that we have a threshold A, where we re-throw any result below A. Because x is uniform, the probability that we re-throw is also A. The cumulative EV of the strategy is A * EV(second_throw) + (1-A) * EV(keep_first_throw). Since we only keep the first throw for results in [A,1], the EV for that event (integrating x * pdf from A to 1) is (1+A)/2. So EV of the whole strategy is A/2 + (1-A) * (1+A)/2. It has max EV when A is 0.5, giving EV of 5/8.

So how do you do better?

comment 12y ago · link · parent

Old unit testing habits compelled me to txt a photo that already has a mustache. Result? Better mustache. Test passed.

comment 12y ago · link · parent

It feels pretty grand to consider the prospect of no longer having to debug crashes due to expired QTreeViewItem pointers, or spending time counseling junior team members to check for expired weak pointers.

Qt is excellent for its epoch, but if you've read the source you will know that we should not treat it as sacrosanct. Algebraic types and explicit lifetime declarations and macro syntax extensions could all do wonders for it.

comment 12y ago · link · parent

Agreed. I'd also make an analogy to C++ where you sometimes must hop between std::string and char*'s with ambiguous lifetimes. Not to mention various custom string types that any big app will have (ex. one that internally exploits jemalloc's allocator optimizations (i.e. exposing block overages), or does rope-style allocation, or intern's into a shared table, or whatever).

comment 12y ago · link · parent

The history of gamedev (in particular) eschewing C++ for years until the consensus flipped gives me hope that something similar might happen here. The strings thing may take a similar path to so many aspects of C++ -- where it took years of folks like Scott Meyers and Josuttis and Herb Sutter and Alexandrescu talking through the details and rationale before enough people grew to like the decisions C++ made. Think of how many C++ programmers had to get their head around (say) RAII -- it probably first seemed horribly odd and weird, and now it's seen as a fundamental reason why it's a great language.

comment 12y ago · link · parent

Agreed -- I've found these pearls of received wisdom often crumble on non-trivial projects. "Premature optimization" can lead some to defer thinking about performance at all. "Profile and fix the hotspots" without simultaneously thinking about architecture can yield a mass of uniformly slow branchy code with no path forward. It's hard to appreciate until you've been there. However, I do have faith that mozilla folks have most certainly been there and that those lessons inform the rust design.

comment 12y ago · link · parent

Your observation reminded me of the Million Short search engine that skips past the first N ranked hits.

Is there a name for the phenomenon that the first entries in any contested ranking tend to be less interesting?

There's something about the ranking systems used on the web in the way they tally the nearly-effort-free actions of hordes (clicks, likes, upvotes, star ratings) that means they represent one kind of magnitude (statistical average impulse behavior) but very little of another (deeper reflection & significance). Deeper stuff tends to see less impulse attention and therefore sinks down the ranking, but is there some other way to identify it?

comment 12y ago · link · parent

This api really needs to operate off an atomic snapshot, or at least return a timestamp of when monkeyness was observed, to avoid latency & synchronization issues. What if the monkey hands the phone off before the client code can continue execution?

comment 13y ago · link · parent

"Framework" for some has the connotation of being dogmatically prescriptive: a monolithic culture of libraries where you must buy into the whole system to use any of it. For example, a classical C++ framework might come with its own string class, its own container classes, its own smart pointers, its own way of binding to other languages, etc. Escaping the cultural ecosystem to integrate something external can be quite a burden.

A middle ground is where you try to factor out useful parts but do so in a way that keeps in mind that users might not want to also use associated packages X, Y, and Z. This means backing off a bit from the maximally elegant integration you might do when you have a giant framework ecosystem and imagine people wanting to use all of it in its glory.

Doing this requires resisting the inclination to build a code empire -- a megalomania that anyone ambitious among us has felt as your excitement at being able to build more complex things grows. You only learn the opposite instinct after being burned suitably by frameworks, or looking upon your own empire and despairing.

12345