HNHacker News
TopNewBestAskShowJobs

ghswa

437 karma · joined May 23, 2013

submissionscomments
ghswa··on Ask HN: I'm quadriplegic – can you help me with my security?
At least the Ubuntu VM can be password protected and encrypted, unlike OS X in this scenario, or am I missing some other issue?

Using a VM as the "real" machine seems to be at least as effective as any other suggestion made here and far less brittle.

ghswa··on Google Chromebook Under $300 Defies PC Market With Growth
Not if I don't know my wife's login credentials and not if I'm watching a home video or a DVD that I've ripped.
ghswa··on Google Chromebook Under $300 Defies PC Market With Growth
I'm looking forward to it spreading between platforms.

If I'm watching a movie on my linux laptop and the battery dies I want to continue watching from the same spot on my wife's ipad.

ghswa··on Programming languages influence network
And another in timeline form: http://www.levenez.com/lang/

This one is my personal favourite. My wife got a print made around a year ago for our anniversary. It's around 3m long so we don't actually have anywhere in the house we can hang it!

ghswa··on Why the world needs Haskell
I frequently see people talking about an unqualified "100% test coverage". Is it safe to assume in these cases that the author is referring to statement coverage[1] rather than something more stringent like decision coverage or even MC/DC?[2]

If we're talking about statement coverage then I agree that achieving 100% statement coverage then calling it a day really isn't as helpful as it might sound.

[1] https://en.wikipedia.org/wiki/Code_coverage#Basic_coverage_c...

[2] https://en.wikipedia.org/wiki/Code_coverage#Modified_conditi...

ghswa··on Why the world needs Haskell
For Haskell you're absolutely right however I was responding to the OPs comment that controlling effects in general is over the top.

The issue of composing effects, along with the widespread fear of monads, are enough for me to conclude that monads are not the best way to control effects.

I don't remember ever seeing any solutions other than monads and deprecate effect systems, hence my preference for the later.

ghswa··on Why the world needs Haskell
Effect inference has already been done: http://research.microsoft.com/apps/mobile/showpage.aspx?page...

I doubt we'll see anything like this in a mainstream language anytime soon.

ghswa··on Why the world needs Haskell
Using the mechanic employed by the scala plugin I linked to[1], dofib would be annotated with pure(argumentProvider). dofib itself is pure however, at each call site, it has the effect of its argument for that call. This is consistent with your example.

[1] https://github.com/lrytz/efftp/wiki/Relative-Effects

edit: That's effectively (sorry!) higher-order effects, behaving just as you'd expect.

ghswa··on Why the world needs Haskell
I don't agree that managing effects is over the top per se however the use of monads feels over the top for pretty much everything!

It's always struck me as strange that value (as in a typical type system) and effects would be controlled through the same system. The type signature of a function and it's effects seem very much orthogonal to me.

If we want to be controlling side effects then we really ought to be using a separate effect system[1]. There's a scala plugin demonstrating this (although I've not tried it)[2].

With separate type and effect systems I should be able to define a pure function fib(n) and call it like this fib(getValueFromUser()) that is without having to use special operators to get at the value which can only be used in certain contexts a la Haskell.

[1] http://en.wikipedia.org/wiki/Effect_system

[2] https://github.com/lrytz/efftp/wiki

ghswa··on MyRedis acquired by Garantia Data, gives customers 3 days to move off
Perhaps, but why shutdown the service so abruptly?

Why not shut down the service in, say, 3 months, support MyRedis customers to migrate to Redis Cloud (or elsewhere) before moving the MyRedis personnel into their new roles.

As somebody without any experience in the world of start-ups the only explanation I can come up is that MyRedis was haemoraging cash so badly that this wasn't feasible however if that is the case why would you want to hire the team?

Can anybody with experience of such dealings shed some light?

ghswa··on What I learned using unit tests/TDD
Solving this surely requires explicit support for testing at the language level, eg. a "private testable" scope.
ghswa··on How Exercise Can Calm Anxiety
I'd recommend seeing a podiatrist anyway[1].

I've known about my alignment issues for years - mega tight hamstrings and weak gluteals so I got my first pair of (corrective) running shoes from a local, reputable, running shop[2] after a gait analysis. I couldn't run further than 3 miles before the pain in my knee became too much.

The shop then referred me to a podiatrist and switched my corrective shoes for a neutral pair, with insoles from the podiatrist. Since then I've had no problems and have run a half-marathon and 10k.

[1] Not that I'm an especially experienced runner but I've known about my alignment issues for years and, with running in particular, really notice the difference the right correction makes.

[2] http://www.mymoti.com/

ghswa··on Your test suite is trying to tell you something
For those that are interested, here's a link to the docs: http://msdn.microsoft.com/en-us/library/dd233243.aspx
ghswa··on Stephen Fry reveals he attempted suicide in 2012
Most people I regularly spend time with are aware that I'm bipolar even if they aren't in the "been there" category. This is quite deliberate. When I'm well, I do my best to explain the difficulties I have during an episode to try and avoid people feeling alienated. This is not something I can do effectively whilst ill.

The result of this seems to be that when I become unwell people in this group provide me with the best kind of support that they're equipped to give while others help me talk it out.

Unfortunately this hasn't been so easy to achieve with family members as it has with friends since they're so desperate to see me well, although things are improving. Fortunately (or unfortunately) my wife is also bipolar so I don't have that problem with her.

As to balancing talking it out vs. distraction? I rapid cycle so distraction can be very effective for dealing with short-term mood swings. If I notice that I'm distracting myself a lot then that's a sign that bigger trouble is just around the corner and is when I start to seek help. My wife and I discuss the state of our mental health very frequently so there's always a certain amount of discussion going on as well.

ghswa··on Stephen Fry reveals he attempted suicide in 2012
For me this depends very much on who it is that's trying to help.

If they've not experienced something similar to the mental health problems I'm suffering from it's usually best if they treat me as normal. The effort required to try and explain aspects of what I'm going through, usually with little success, is often far more detrimental than any benefit they could hope to provide. Being distracted from the problems, even if only for a short while, can be blissful and hugely appreciated.

On the other hand, I'm usually happy to be treated differently by people that have had similar experiences to me. I can often communicate to them in a sentence things which would take hours of conversation with somebody who'd not been there before.

It's a difficult situation for both the supporter and the supported, particularly in the early days.

ghswa··on Stephen Fry reveals he attempted suicide in 2012
I'm not aware of any conclusive research showing that depression is more common than mania although people are more likely to seek treatment when depressed than when they're manic.

I also struggle to believe that there is any evidence to support your claim that depression as experienced by somebody who is bipolar is worse than somebody who is unipolar which is again worse than depression caused by life events.

ghswa··on Stephen Fry reveals he attempted suicide in 2012
This doesn't sound like you're talking from personal experience.

Saying that the highs bring genius is a gross simplification.

Yes, manic episodes can provide productivity boosts and huge amounts of energy but it doesn't have to go much further before it becomes impossible to complete a thought let alone a sentence, where you cannot sit still, where your judgement is severely impaired or you're suffering psychoses.

None of these symptoms (and there are many more) are particularly conducive to productive work, let alone breakthroughs.

ghswa··on Stephen Fry reveals he attempted suicide in 2012
And in these cases the situation can be exasperated by well meaning friends, relatives and practitioners searching for a root cause that, if addressed, will make it all go away.
ghswa··on Stephen Fry reveals he attempted suicide in 2012
Thanks very much for posting those links, I too am bipolar. Unfortunately I'll have to put off checking them out properly until another time.

Until last December I'd been stable for around 5 years. Now I'm putting together an account of my health over the last 6 months for the benefit of my department's special circumstances committee. With any luck I'll make it through to the next year of my degree.

Thank you for your efforts, I hope to be able to contribute similarly when I'm stable again.

I'll forward this to my wife[1] as I expect she'll find them of interest too (she's also bipolar).

[1] http://www.time-to-change.org.uk/blog/academic-life-mental-i...

← PreviousPage 2 of 2