Better HN
topnewbestaskshowjobs
Log inSign up

emptybits

6,892 karma · joined Nov 20, 2012 (14y ago) · 1,050 submissions

  LOAD "*", 8, 1
Coded stuff. Cofounded companies and a charity. Successes & failures. http://bitmason.com

Darren Stone, Vancouver, BC, Canada

  "Once men turned their thinking over to 
   machines in the hope that this would
   set them free. But that only permitted
   other men with machines to enslave
   them." - Frank P. Herbert, Jr., 1965
  
  "The programmer, like the poet, works
   only slightly removed from pure
   thought-stuff. He builds his castles
   in the air, from air, creating by
   exertion of the imagination." 
   - Fred P. Brooks, Jr., 1975
Submissions

comment 9y ago · link · parent

For the first time (starting in the fall), Nintendo will be charging subscription fees for its online multiplayer service. So expectations and pressure will be on more than ever. I want to believe.

comment 9y ago · link · parent

What you describe (non-linear) would probably have been superior but in my youth and inexperience over 15 years ago (and pressed with time and code-size constraints) I am sure I did nothing more than a scalar, maybe clamped with a C macro MAX() or MIN(). Sorry to disappoint; sometimes game AI and sim work just needs to be "good enough" and ... most importantly, needs to ship on time (on shelves, yes shelves, X weeks before opening day of baseball season) with zero bugs (no online patches in those days). So there is a certain satisfaction in that. :-)

comment 9y ago · link · parent

I have a pair of friends that are serious tandem riders and they now run their premium touring tandem with Gates Carbon Drive. They switched from chain because, if you didn't know, tandem bikes with strong riders have a reputation for eating chains. (Premature stretch, leading to cog/ring wear, and eventually breakage because of the torque involved.) Belts are stronger than chains in some regards and I think high-torque applications is one of them. Witness Harley-Davidson switching to belts decades ago, away from chains. Also, on a bicycle, a belt system can shed almost a pound versus an equivalent chain-cog-ring-derailleurs setup. While being very quiet and very clean.

Downsides ... unlike an easy chain repair, you can't repair a belt in the very rare case it breaks. So you carry a spare on a tour. There are suggestions that frictional losses are higher with belt versus chain, though. And belts are apparently weaker when twisted or laterally flexed than chains, so storage and initial setup is more critical.

comment 9y ago · link · parent

I was a programmer on several baseball games on Playstation (1) & Windows. Among my duties was AI. That meant consuming, encoding, and deploying a lot of historic stats. They'd be sliced and grouped and accessible across interesting combinations of team, opposing team, player at bat, player pitching, players fielding, stadium, inning, absolute score, score difference, time of day, and really just a fascinating set of inputs. We'd license the historic stats.

Baseball is a game of obsessively recorded stats anyways, and we'd use that to our advantage to model pitches, plays, games, seasons, etc. into something that 1) reflected what truly (historically) would/could/should happen in a given scenario, and 2) was fun and kept the player coming back for more. (Or else we'd hear about it in reviews!)

Well, turns out #2 is really, really important. Playing to statistical misunderstandings had to be part of the consideration. "That pitch/play/decision/outcome would never happen as often as it does! Fix it!" a producer with more baseball knowledge than I would claim. "It's happening exactly as frequently as it does/has historically," I would counter. Doesn't matter. Games need to be enjoyable and that means playing to common (mis)perceptions even if they're statistically wrong. But not too wrong. (Or else we'd hear about it in reviews!) :-)

comment 9y ago · link · parent

Braess' paradox is a little more indirect than that, so an analogy might be: Adding more fish to a pond causes you to catch fewer fish.

comment 9y ago · link · parent

For those inspired by "old cyclists", I encourage you to look at the sport of randonneuring.

TL;DR: randonneurs ride in timed, regulated road-coarse events that start at 200 km and work up to a traditional distance of 1200 km (and beyond). It's endurance cycling and ... the kicker ... it's full of "old" people (because they seem to have the wisdom and gumption to ride smart and long). In my local club, there are definitely young riders in their 20s and 30s but the most prolific riders are over 50 and the top two are gentlemen in their 70s. "Top" as measured by most events ridden in a year and most event mileage in a year. Their average speeds put young riders to shame more often than not.

Slow and steady wins the race, for values of "race" greater than 200 km. ;-) There are local clubs all over the USA, Canada, Europe, and everywhere.

Anyways, not everyone knows about the sport of randonneuring so I just wanted to share in the context of inspiration, no-age-limits cycling -- it dates back to the 1890s and I personally think its community and values are better than regular competitive road or mountain biking, having done all of the above. Ride safe.

comment 9y ago · link · parent

Your question is addressed in the fourth paragraph at the link:

> "Then why 6502? Why not a useful assembly language, like x86? Well, I don’t think learning x86 is useful. I don’t think you’ll ever have to write assembly language in your day job - this is purely an academic exercise, something to expand your mind and your thinking. 6502 was originally written in a different age, a time when the majority of developers were writing assembly directly, rather than in these new-fangled high-level programming languages. So, it was designed to be written by humans. More modern assembly languages are meant to written by compilers, so let’s leave it to them. Plus, 6502 is fun. Nobody ever called x86 fun."

comment 9y ago · link · parent

> "He said users can visit a page in Facebook’s help center, which provides links to the opt-outs for six data brokers that sell personal data to Facebook."

The link provided is: https://m.facebook.com/help/494750870625830?helpref=uf_perma....

LOL. The amount of personal information requested at those "opt-out" links is suspicious and/or ironic.

Examples of information requested to "opt-out" of the USA partners' reach include: Social Security Number (!), date of birth, "all variations" of full name, all recent mailing addresses, ... (!!)

939.

Volkswagen to purchase PayByPhone for undisclosed amount(wsj.com ↗)

2 points · by emptybits · 9y ago · discuss

comment 9y ago · link · parent

Good on Apple for "completely" fixing this, according to the authors. But am I wrong to wish for more plain-English acknowledgement of the problem and reassurance in Apple's 10.12.2 release notes?

i.e. https://support.apple.com/en-ca/HT207423

Anyways, at this point in time it's nice to read (from the authors of the exploit): "The mac is now one of the most secure platforms with regards to this specific attack vector."

comment 9y ago · link · parent

Maybe a better analogy is ... if hearing aids are glasses, these are reading glasses.

i.e. off-the-shelf, self-diagnosed, cheap and easy solution for part-time use without getting "medical"

(I say "cheap" because I don't know what the Hearphones will cost but I've helped relatives shop for hearing aids and WOW ... from what I gather, as you step up in price in a company's line of hearing aids, ticking off more boxes in their feature matrix, they're probably just enabled bits of code in an otherwise identical DSP ... and the price increments go like this: $3K-$4K-$5K),

comment 9y ago · link · parent

Saw the film last night. If you blacked out, then so did I. (Or else we're already only remembering what the heptapods want us to...)

Like a lot of good sci fi I think this is one of those movies where I'd appreciate a Director's Cut or Extended Edition that includes obscure and technical and deep (read: nerdy) bits cut from wide release.

comment 9y ago · link · parent

Simply: a goto never returns while a function call returns to where it was called from.

So specifically in the example above, if you called failure-handling functions instead of using goto's then when the function returned you would continue execution on the next line after the function call. In the example above, that's clearly not what you want.

Now you could add some else's after the function calls to prevent execution from continuing. i.e. to get to the appropriate step in the free_* sequence at the bottom, but that starts to look messy. So I have to admit (not being a goto-lover), the above example reads very nicely.

It conforms to the "gotos might be okay if they only jump forward" rule of thumb I've heard.

comment 10y ago · link · parent

The 68k is still being made in the form of the 680x0-compatible line from NXP. http://www.nxp.com/products/microcontrollers-and-processors/...

They're in the "legacy" line and labelled "not recommended for new design" but I think that's just design opinion and doesn't imply it's no longer made.

I'm sure this video has done the HN rounds before. It's a slow but fascinating watch. "Motorola 68000 Oral History Panel" from original Motorola team members. https://www.youtube.com/watch?v=UaHtGf4aRLs

comment 10y ago · link · parent

> the question literally wanted a number in $ for net worth

That is literally not true. The question did not literally ask for a number in $ for net worth.

I do agree the questioner may have had dollars in mind (and probably would have settled for a ballpark) and that Wales avoided a quantitative answer. Evasive and cheeky but still with some enjoyable insight.

comment 10y ago · link · parent

> * solving Go (hard)

1. Perfect play from any game position.

2. Proof of perfect play.

#1 may be achievable with a sufficiently clever algorithm. (We may suspect it is perfect and may only later prove it.) #2 may be much much harder. Neither are suitable for brute force approaches to play or proof as some problem spaces are.

comment 10y ago · link · parent

> A city should be happy to have the tax revenue with none of the burden.

This is true. The city (actually province & city) receive the tax revenue.

Unfortunately, rental stocks are so low in Vancouver that it's very difficult to find a place to live among all the (apparently) empty condos and houses owned by people who don't live here. The average house price is $1.4 M. A small 2 bedroom condo will still set you back half that. Thus, the pressure is on the rental market and finding/encouraging a larger rental supply.

So while the government is fairly paid by absentee home owners, there is an argument that the government should be doing something for its resident citizens.

It's an experiment. Much like our recent 15% foreign buyers tax reported a few months ago. We're all watching the experiment. Perhaps our role is to serve as a lesson to other cities? :-)

comment 10y ago · link · parent

> Twitter puts no intermediary between speaker and listener.

Actually, Twitter puts ads, filters, and clever curation algorithms between the speaker and listener.

Now an IRC channel ... that puts no intermediary between speaker and listener.

comment 10y ago · link · parent

The article makes a good point. But one reason I favour watching such an event live is to get ahead of the mainstream analysis before it starts to influence me. i.e. I only have one shot at a blank slate and first impression

This is similar to why I might want to watch a popular film on opening night, before the rest of the world declares it a winner or loser.

The headline and "winner"/"loser" judgements of tonight's debate will be loud and unavoidable by tomorrow morning. Their impact can be insidious.

comment 10y ago · link · parent

I know this is politically naive but I'll say it.

Self-declared police nations (like USA & UK & France & their allies) are so quick to intervene in Not Their Country when issues like oil or political alliances are at stake. So can we see the same level of committment (e.g. military intervention) when large scale extinction events or environmental devastation are at stake?

Soldiers lives are precious. So this is easy for me to say, but would we really be putting much at stake to drop a peacekeeping (read: anti-poacher) presence into Kenya?

comment 10y ago · link · parent

When I occasionally start to think my work in technology is overly important or that the woes of my startup projects are unbearably heavy, I'm glad I can be humbled by something like this. This doctor has responsibilities and gravity I will never know. Great article and great doctor. Wow.

comment 10y ago · link · parent

A couple of these have been named and I've upvoted them, but this is my list:

* "Flow" by Mihály Csíkszentmihályi. Being fully immersed and engaged in an activity. 1) Knowing the value of this mental state, 2) being able to recognize when you're in it, and 3) setting yourself up so that you can be in this state as much as possible is really valuable. File it under living an examined life, IMO. All the popular "don't interrupt the programmer" and Pomodoro and other time management techniques build on this old research.

* "Meditations" by Marcus Aurelius (several translations, worth comparing for even more insight) -- this is a man who understood duty and getting things done! (Not surprising from a stoic, but somehow this collection has extra impact because I know they were primarily notes and reflections written for his own clarity, more than for an audience.) Wisdom to apply to situations. Patterns to recognize in yourself and others.

* "Seven Habits of Highly Effective People" by Stephen Covey. When more sophisticated or trendy approaches to effectiveness reach their limits, you can't go wrong falling back on "Begin with the end in mind", "Sharpen the saw", classifying activities into the Four Quadrants, etc.

* Modern (typically psychological) interpretations of Buddhism. If a single book pops into my head, I will update this, so right now I'm talking about a whole category of books on Buddhist perspectives on character traits and habits of behaviour. If you strip any paranormal nonsense from Buddhist psychology you are often left with effective ways to classify your own thoughts, words, and deeds and work on improving them. A simple example would be the Four Sublime Attitudes. If I reflect on any relationship or interaction I have with colleagues or clients or new prospects, I can almost always take direct action immediately to improve it by applying these old rules: 1) replace anger toward someone with active good will toward them, 2) replace jealousy or envy of someone else's fortune with sympathetic joy for them, 3) approach anyone's suffering as your own suffering (compassion), 4) treat all situations and people impartially without judgement of of "good" or "bad" (equanimity).

I'm sorry these are really old! For me, these just don't go out of style and their wisdom works cross-culture.

comment 10y ago · link · parent

I think it's worth noting that caffeine is a vasoconstrictor, at least with respect to blood vessels in the brain. (Aside: This may be why it provides partial headache relief for some.)

So while it's true that our brains get a stimulating boost from caffeine, it's also a fact that caffeine significantly reduces cerebral blood flow. A moderate dose (250 mg) may reduce cerebral blood flow by 27%(!)

http://www.ncbi.nlm.nih.gov/pmc/articles/PMC2748160/

I'm no brain scientist but I would expect this to reduce some cognitive function to some degree.

comment 10y ago · link · parent

Good call. Done. Also cathartic.

comment 10y ago · link · parent

Sad face. Right now, on my iPhone:

"iOS 9.3.5 provides an important security update for your iPhone"

40.5 MB. Great! Tapped "Download and install". It's greyed out. Huh?

Oh, "this important security update requires a Wi-Fi network connection to download". Really? It's only 40.5 MB. Let me decide, please, how I use my data.

Am I missing a setting that allows me to install an important security update on a network of my choosing?

comment 10y ago · link · parent

Zika should receive more attention if we discover it now affects all adults and not just a minority of them. That's reasonable.

(If your point was about male privilege/priority then I don't disagree, but I don't think it's necessary to read that into this situation because the number of both male and female adult lives Zika could impact may have just grown enormously.)

comment 10y ago · link · parent

> This completely misses the key factor: (most) computers were not big or fast enough to run high level languages back then.

The first paragraph leads with that key factor: "Even back then, there were better languages/OS's that cheap hardware just hadn't caught up to. That cheap hardware's limitations, and them alone, drove the design decisions of BCPL, B, and then C."

comment 10y ago · link · parent

So... asking on behalf of a friend ;-)... my local dealer stocks both Arduino and Genuino brand boards. Is this unusual or about to change?

I feel like a curtain of innocence has been torn away for me. Ignorance of the politics in the Arduino scene was bliss.

comment 10y ago · link · parent

From the 2009 study in the article:

"Half the students were asked to recall something which had irritated them and write a short essay about it. The other half of the group were made to feel sad."

So the "better" performing group was angry and did something about it. While the control group was made to feel sad. Not neutral. Not happy. Not optimistic. Hm.

comment 10y ago · link · parent

Here's a paper on the topic:

"Spontaneous knotting of an agitated string" [1]

From the abstract: "We performed experiments in which a string was tumbled inside a box and found that complex knots often form within seconds. We used mathematical knot theory to analyze the knots."

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

1
3132333435