HNHacker News
TopNewBestAskShowJobs

bobm_kite9

457 karma · joined April 27, 2013

submissionscomments
bobm_kite9··on Pure4J: Compile-Time Functional Purity and Immutability for the Java Language
Great questions:

1. Very conservative (I hope). As to exactly what this means, the specs are here: http://robmoffat.github.io/pure4j/concordion/org/pure4j/test...

2. Not the whole program, but "islands of purity". i.e. classes or hierarchies of classes which are annotated with @Pure/@ImmutableValue/@MutableUnshared (see above for what these mean, exactly).

3. At compile time, it builds a model of your software by analysing the byte-code. It should run in linear time I guess but I haven't tried it on any huge codebases yet. At runtime, the performance will be heavily dependent on the performance of the Clojure collections that I've imported.

bobm_kite9··on Pure4J: Compile-Time Functional Purity and Immutability for the Java Language
It's a good question. Originally, there were two reasons why I didn't do this.

First, the contract is slightly different, as I am also asserting purity. This means that one @ImmutableValue knows that another @ImmutableValue (perhaps from a library package) is pure. Whereas, a class annotated with @Immutable might not be.

Second, I developed this with the bank I work in in mind. They are still on flavours of Java 6 + 7.

However, I am currently in mind to port this to Checker Framework, http://types.cs.washington.edu/checker-framework/ which is fully supported by the JDK8 compiler.

I expect I'll still keep the separate annotation, but there are a lot of benefits from a tooling point of view to doing this (IDE support, gradle etc)

bobm_kite9··on Pure4J: Compile-Time Functional Purity and Immutability for the Java Language
Thanks! This was largely inspired by Frege (https://github.com/Frege/frege) which has been on HN before, but is worth checking out.
bobm_kite9··on Google sheep view
yes, I see what you mean: gambling is a good trait to have in a population, but it sucks if you're the guy who has to pour all his money into fruit machines.
bobm_kite9··on Google sheep view
I know exactly what you mean. I am trying to figure out why I do this too.

I guess at some level, I expect a dopameine reward for watching a video.

And, I guess this also motivates the other 8 million people.

Even after I've watched something like this, I'm not entirely sure I've wasted my time.

But, I think this does point to some kind of human failing, or inherent human bias, a bit like a propensity for gambling.

bobm_kite9··on 15B More Reasons to Worry About Facebook (2007)
Yeah I think I basically agree. I'm not sure about physical assets though. The way to price those is to PV the future cash flows. However, if interest rates are zero, PVs are infinite.. so we need a different approach. Or, if we continue to use PV, then as rates get lower, physical assets increase in price.

But yeah, I'm pretty sure the amoeba will have zero-rates.

bobm_kite9··on 15B More Reasons to Worry About Facebook (2007)
I agree with this, but for one thing. What makes you think interest rates will rise?

Governments set interest rates to combat inflation, caused by wage or price increase. However, we've had 0 rates for 7 years, and QE to combat deflation.

If you believe (as I do) that the value of the worker is decreasing with time (due to substitutability with technology), it kind of stands to reason that we're not going to see much wage inflation anymore.. doesn't it?

Or, is there another kind of inflation I haven't considered?

bobm_kite9··on Robot Framework – test automation in Python
I think all these frameworks are basically different ways of handling the separation of concerns between the specification and the code to test it: cucumber, concordion, robot etc.

The essential difficulty I think is in presenting the documentation in a form that is readable / writeable by the wider audience of non-developers.

bobm_kite9··on How should we talk to AIs?
What's the difference between Wolfram Language and just any other programming language?

Also, one of the advantages of natural language is it's imprecision: it makes communication more robust, and leaves room for interpretation.. in much the same way as imprecise duplication of the genome allows for evolution, imprecision in language allows for alternative interpretations of the results.

Plus, if you want to, you can check interpretation and understanding just by asking some questions and creating feedback.

Actually, I just don't get how this is advancing the art in either direction.

bobm_kite9··on Mr. Buffett on the Stock Market (1999)
My favourite piece of advice here:

| Sometimes, incidentally, it's much easier in these transforming events to figure out the losers. You could have grasped the importance of the auto when it came along but still found it hard to pick companies that would make you money. But there was one obvious decision you could have made back then it's better sometimes to turn these things upside down and that was to short horses. Frankly, I'm disappointed that the Buffett family was not short horses through this entire period. And we really had no excuse: Living in Nebraska, we would have found it super-easy to borrow horses and avoid a "short squeeze."

bobm_kite9··on MI5 'secretly collected phone data' for decade
really? I know electronic miniaturization is an amazing thing, but is this big enough for all data and calls to be tapped from?
bobm_kite9··on Diverging Diamond Interchange
In the UK, we have something similar to this for most of our motorway junctions, except that the traffic lights are replaced by roundabouts and there's no need for changing sides of the road.

I take it all this extra complexity is just to avoid roundabouts?

bobm_kite9··on A visual proof that neural nets can compute any function
I love the inline videos and graphs. How was this done?
bobm_kite9··on BPMN 2.0 rendering toolkit and web modeler
This is pretty sweet. I should really try and understand BPMN better. I'm assuming you work on this project in some capacity: if so, you might be interested in looking at my software (http://kite9.com) which does automatic orthogonal layouts.
bobm_kite9··on Compilers Are Databases [video]
Really good points.

I expect you're right about the expressiveness, although I don't really know exactly what you mean by this. The "buffet of abstractions" available in Scala actually put me off it. For me, there are too many options available to expect to have readable, maintainable code at the end of it all, especially if you work in a team which regularly creates almost wilfully hard-to-comprehend java.

This video is 2 years old now, but I think it marked the point when I stopped investigating scala. https://www.youtube.com/watch?v=TS1lpKBMkgg&feature=youtube_...

bobm_kite9··on Compilers Are Databases [video]
Martin Odersky is a clever guy, there's no doubt about that. But, at the beginning of the talk he introduces the scala compiler as having 40 steps. And he says that translating from scala to the JVM is a translation from a complex input to a complex output. And now, Databases. So.. I just don't understand why he would even want to take on such a difficult task.

It strikes me that bringing functional programming to the JVM can / has been done simpler: Clojure being the obvious one, but F# on the CLR is another good template.

Third, Frege is a Haskell implementation for the JVM which to my mind is a much better long-term bet than Scala: it's already a tried-and-tested language, and the work involved in the translation has taken an order of magnitude less time.

It's all very well having some new great language on the JVM, but simplicity is a huge virtue if you want people to build an ecosystem around it.

bobm_kite9··on Compilers Are Databases [video]
He means that compilers create an in-memory database, representing your code, which could be put in an actual database.

Not that compilers can be used as a general DBMS. I think.

bobm_kite9··on Ask HN: Does Groovy/Grails have a future?
Yeah it's a good question, I think. It's a shame no one else pitched in.

There are some answers on SO, but they're usually closed down as it's not the appropriate forum for this kind of debate. Nevertheless, it's worth searching for a few of the more recent ones and seeing what people say.

Personally, I chose to use Grails fairly recently, but it was a tough decision. I started with the requirement that it needed to run on the JVM as a webapp.

So, I tried using clojure and it's ecosystem for building a webapp, but it's quite new. There were few libararies and plugins and SO answers to help me. While I think that the whole React/Clojurescript/Clojure approach to building webapps is good, I just didn't want to participate in the bleeding edge / reinventing the wheel thing.

Grails by comparison had a much more mature ecosystem, and although it's not without its faults, it's much easier to get started in coming from a Java background. I still don't feel like I know groovy, but I was still productive and got everything I wanted done.

So a few further points that I can't really answer to:

- I felt it could still be better. I've not really used Django or Rails much, but it would be nice to know how they compare.

- I built a very old-style app, in that there was a CRUD model, and pages for entities. It would have been nice to build a single-page webapp with lots of AJAX. There are lots of frameworks out there for this, but I am not aware of anything really established in Java.

- I still don't really understand what the deal is with Groovy, or really why they needed to have this in there.

bobm_kite9··on Ask HN: Does Groovy/Grails have a future?
This is really two questions. Or maybe three. Can you edit it to be a single one? Personally, I'm most interested in the Grails part and I'd probably weigh in on that, but I'll see which way you take it.
bobm_kite9··on Bloomberg New Energy Finance Summit 2015 [pdf]
I posted this on here because I was interested to learn today that although battery technology (being based on chemistry) isn't improving very quickly (certainly not exponentially like electronics does), the cost _is_, and it's the same for PV. I find that result surprising.

As for the rest of the article, it's a nice breezy graphics-heavy overview of a lot of the renewables sector and I think the TL;TR from Bloomberg is that things are changing fast and there's a lot to be optimistic about.

bobm_kite9··on How to make Selenium tests reliable, scalable, and maintainable
The PageObjects tip is a really good one. Previously using Selenium you end up with a complete maintainability nightmare.

I used Geb on a recent project, and I actually felt that the tests I built demonstrated a passable level of engineering discipline. However, Geb was really hard to learn (partly the error messages were really confusing/missing) and you're still on top of Selenium so you still get wacky exceptions and edge cases.

bobm_kite9··on MasterCard to start verifying transactions through selfies
Ok, so everyone has pointed out how insecure this would obviously be, and all the simple ways in which you could fool it.

But, I'm left wondering, did the guys at mastercard never even think this through at all? This is people's money after all. It needs to be safe. Did they not even consider that, as soon as this is rolled out, people were going to see money disappear?

I can't believe they didn't think of that. Which makes me wonder, why am I even reading about this at all?

bobm_kite9··on Cameron reaffirms there will be no “safe spaces” from UK government snooping
Is this really about terrorism? I have a feeling that terrorism is the excuse being used to try and surveil the public generally.

Why would they want to do this? My feeling is so that they can keep control of public order. It's a mystery to me why there hasn't been more public activism around unemployment levels and wealth equality in Europe so far.

http://www.theguardian.com/commentisfree/2014/apr/01/europe-...

bobm_kite9··on Are Humans the Horses of the 21st Century?
ouch!
bobm_kite9··on UML in Practice
Someone in the thread above suggested the same. This needs doing.
bobm_kite9··on UML in Practice
(plug starts)

Can I also suggest Kite9?

www.kite9.com/kite9/gui.html

Which does automatic diagram layout. It's not quite doing UML yet, but a reasonable approximation thereof. It's more visual/drag-and-drop than UMLet.

I intend to include a suite of actual UML symbols within the next week or so.

Hopefully this will be useful to you!

(end plug)

bobm_kite9··on UML in Practice
I was sitting on a swing today, thinking about this line of thinking. UML is getting out of date, I've thought so before:

http://www.kite9.com/content/muddle-uml

I've also thought about what I would like in a modern visual language, but all of that was from a strongly-typed (typically Java) POV.

Having spent a lot more time with JavaScript & Ruby recently, I am now thinking that surely there is a need for a notation for dynamically typed languages. What the hell would that look like though? Anyone interested in trying to figure it out with me?

bobm_kite9··on Design
Maybe it's the images you chose, or a sense of nostalgia, or retro kitsch, but to me both those cars look completely awesome now.

On the other hand from a maintenance point of view... probably not so much

← PreviousPage 5 of 5