HNHacker News
TopNewBestAskShowJobs

axman6

520 karma · joined November 22, 2009

Hacker Newsers URL:

[ my public key: https://keybase.io/axman6; my proof: https://keybase.io/axman6/sigs/iW_swLHLPyPBft7t-R5kHZD3ZCHhIX-7pBUTbVj6yBQ ]

submissionscomments
axman6··on A Random Walk Through Ada (2014)
(Reposting from lobste.rs)

It's a shame there wasn't more information on the tools Ada provides for concurrency - I haven't seen another language which gives you as much flexibility and power to write safe concurrent code. It's much more heavy weight than some other languages in some ways, but gives you very strong guarantees you don't get elsewhere.

It also would've been nice to talk a bit about some of the features which make it particularly well suited for embedded systems:

* things like the ravenscare profile which give you a safe subset of the language using statically allocated never terminating threads

* the ability to select the scheduling algorithm (including ones with task priorities which are used to avoid the possibility of deadlocks completely - see the priority ceiling protocol for more details)

* the ability to address specific memory locations being built into the language, not just casting ints to pointers like you would in C

* full control over how elements on records are laid out, including endianness, this is essential with the previous feature when you're dealing with memory mapped IO registers for controlling hardware

* the ability to define that certain data types can only be used at certain specific memory locations (see https://cs.anu.edu.au/courses/comp4330/Lectures/RTES-03%20In... "pages" 314 - 332)

For anyone who's had to write code to interface with hardware on micro controllers, they're probably wetting themselves with excitement by now, doing this in C relies on the compiler doing what you think it will, which there's no guarantee of because the ability to use many of the features is implementation defined, if defined at all.

ANU's COMP4330, which these slides come from, is an excellent resource for learning more about both Ada and real time systems in general: https://cs.anu.edu.au/courses/comp4330/1-Lectures-Contents.h...

axman6··on Apache Arrow – Powering Columnar In-Memory Analytics
I'm confused, is this just Structure of Arrays as a service for columnar data? It's not clear to me what this actually does.
axman6··on HTTP/2 – How did we get here
I actually disagree with both your conclusions - the techniques you mentioned exist to get around painful deficiencies with HTTP/1.1, and are anti patterns in http/2 - sprites exist to reduce the latency of loading many small images, which is now no longer an issue (see httpvshttps.com for a demonstration).

Also my brief experiments using HTTP/2 in Haskell involved zero changes to my web service handler code, and maybe one or two extra lines to give paths to the TLS cert files. Web services will benefit massively from HTTP/2 in some domains, I do a lot of web geospatial work and using it for servers which return hundreds of image tiles will be a massive win

axman6··on A founder's perspective on 4 years with Haskell
Can you expand on all of these complaints? I've been using Haskell for about 9 years and none of these are things I've ever had a complaint about, except package management, which I find stack's solution works incredibly well in practice.
axman6··on New haskell-lang.org
I'm not going to argue with you, I don't think you're contributing anything to the conversation, and your tone definitely isn't, that's all
axman6··on Corrode: C to Rust translator written in Haskell
It was possibly even a Apple added their blocks extension to C and Obj-C, I remember this verifying some issues for Haskell tool which parsed C.
axman6··on New haskell-lang.org
You do understand that comments like this are actually building their case for problems in the community right? I've read several of your comments on this page, and you're the only one making accusations without any evidence, and turning this into a flame war. If you don't like stack, don't use it.

I'm not a big fan of this whole community splitting action, but to think that it's been undertaken as a coup d'état to take control of the community by a commercial entity is verging on tinfoil hat territory.

And you know what? Stack is a fantastic tool for newcomers, we use it exclusively for our commercial Haskell projects and it's changed our development practices for the better by a long way. Something that built today I can be sure will build in a year without changes - cabal has never been able to guarantee that. I'm really glad someone has put in the huge amount of effort to make a better Haskell build tool, it's been far too long coming.

axman6··on New haskell-lang.org
Are we reading the same r/Haskell? I've never seen anything more than minor disagreements - any trolling gets down voted into oblivion, beginner questions are always answered constructively with usually more information than was originally requested.

I usually head straight to the comments, often before reading the articles to see what additional information has been added to the conversation.

I note that several of the names in the announcement are often front and centre of anything that could be flamewars - the rest of the community is very civil. This is really disappointing to see this sort of public division in the community, with as far as I can see no good reason.

axman6··on Rewrite Tor in Rust
As a side note, Galois have written an implementation of Tor which happily interacts with official tor, for use in HalVM based unikernels. So, if you want ephemeral tor nodes, HalVM is a pretty great way to get it working.

Edit: Video about it [2]

[1] https://github.com/GaloisInc/haskell-tor [2] https://www.youtube.com/watch?v=oHcHTFleNtg

axman6··on Simon Peyton Jones Elected into the Royal Society Fellowship
#haskell on freenode has always had s reputation of being open, welcoming and helpful. Try not to mistake pretension for someone talking about something you don't yet understand, which is very often the case when someone is accused of being an pretentious arsehole. Simon is by no means alone in his manner and friendliness within the Haskell community.
axman6··on Microkernels are slow and Elvis didn't do no drugs
Triple tap the home button and then invert colours. Not the worlds best solution, but does solve the problem.
axman6··on Australian Geocoded national address data to be made openly available
This is big news, PSMA was basically setup as a for profit government owned business which sold this data at great cost. I'm really glad the government has seen how valuable this data is to the Australian people and business. Great to see the government making genuine improvements to foster innovation in Australia today, really impressive stuff.
axman6··on A lot of websockets in Haskell
I was actually a little annoyed the author didn't explain more, it felt like it was a half finished article.
axman6··on OCamlers' critiques of Haskell
My experience with the Haskell community over the last 8 years has been so far from toxic than I'm not sure where that idea could even come from.
axman6··on OCamlers' critiques of Haskell
I've used a similar construct in dealing with some JSON data recently, using Either String a:

    (?) :: Maybe a -> String -> Either String a
    Nothing ? s = Left s
    Just a ? _ = Right a


    foo :: Value -> Either String Int
    foo val = do
        nested <- val ^? key "foo" . key "bar" ? "Could not find foo.bar"
        mid <- nested ^? nth 2 . _Integral ? "Second element of foo.bar was not an Integral value"
        return mid
which has really helped deal with the stringly typed nature of JSON. I should also mention I stole the idea (and operator name) from one of the Haskell parser combinator libraries which allowed you to name a whole parser expression, so errors would say "could not find ident" instead of "Expected on of a,b,c,d,e,d,f,g,h...., found X"
axman6··on OCamlers' critiques of Haskell
He seems pretty active in comments in the linked discussion... BUt I'm pretty sure John also carries a list around with him of reasons why he doesn't like Haskell, just in case he needs it. Truly unpleasant.
axman6··on Apple Loses German Top Court Case on Swipe-to-Unlock Patent
If this were true, then the patent is obviously invalid. But since this has never been the argument in court, I'm guessing your assertion mostly false. If you have proof that there was another company who had a product with this idea before the priority date of the patent, then I'd love to see it.
axman6··on OCamlers' critiques of Haskell
Your experiences are completely different to mine, and I've been a member of the community for about 8 years now. Haskellers are in general very aware of the flaws in the language, and this isn't limited to records - space leaks are the primary reason for the proliferation of streaming IO libraries. And for records, we've been lead to lenses, which are an extremely powerful abstraction which surpasses, IMO, whats available in most other languages in terms of being able to interact with nested data structures (giving them such a limited definition is doing them a disservice, because they're far more powerful than that). You keep mentioning the use of the "if it compiles, it works" phrase - this is clearly a meme, and often used as a joke, but is also used as a goal for writing reliable software: if we can encode enough of our problem domain into the type system, then we can be much more certain that if we write programs which compile, they likely do what we want them to. If it not a synonym for "If it compiles, it has no bugs and is perfect", which is how you seem to be interpreting it.
axman6··on OCamlers' critiques of Haskell
You're judging a whole community based on interractions you had with Haskellers most likely many years ago - dons almost never speaks publicly these days, since moving to SC (which is shame, he's someone I've looked up to and learned a huge amount from). If I were to characterise the OCaml community based on what jdh says, I'd be writing to politicians to ban all use of OCaml everywhere because his comments are toxic, and far more dishonest than I've seen from anyone in the Haskell community.
axman6··on OCamlers' critiques of Haskell
It's curious seeing you mention this, while completely ignoring how overwhelmingly negative the linked to thread is, devolving into personal attacks for no good reason - the other linked discussions between various language communities have been very civil and fun to read, but reading this bunch of OCamlers writing long lists of often minor deficiencies shows to me a level of insecurity I haven't seen elsewhere, and I find it very unappealing. It's enough for me to not want to try OCaml because the community seems very hostile. And it's not just jdh, even without his (your?) comments, it's overwhelmingly negative, and needlessly so.
axman6··on NeXTBSD aka FreeBSD X
Yeah but that's just, like, one example man. What has Apple given back, apart from LLVM, WebKit, launchd, the viaducts, sanitation?
axman6··on Apple Loses German Top Court Case on Swipe-to-Unlock Patent
In hindsight, yes, but the fact a solution is simple does not mean that it isn't inventive. There is the possibility of invention in the use of technology from one field in another unrelated field.
axman6··on Apple Loses German Top Court Case on Swipe-to-Unlock Patent
My primary point still stands - the test isn't whether physical analogs exist, it is whether someone WOULD be lead to reach the same solution to the problem. I'm not sure I agree that someone, at the time, would have been lead to the same solution when the existing art revolved around physical mechanisms such as buttons and switches, and did not involve interaction with the screen which the mechanisms has previously been in place to prevent.
axman6··on Apple Loses German Top Court Case on Swipe-to-Unlock Patent
It's making life easier for the user... this is one of the primary things that patents are here for, inventions which make life easier. And it's certainly not what would be considered "an algorithm" by any patent office - it has user interaction, in involves hardware, it is clearly not just a mere algorithm.
axman6··on Apple Loses German Top Court Case on Swipe-to-Unlock Patent
No, this is not one of a million nonsense patents, it one of a handful of patents which were close enough to be on the line between valid and invalid, and the decision fell on one side of the line. The vast majority of patents, even from Apple, are completely valid, and never see any time in court because they are valid. I hate this meme that patents are all awful because sometimes they are found invalid. Do some research, learn about the system, then talk about it because you clearly have no idea how successful the patent system is, and the benefits it provides to you.
axman6··on Apple Loses German Top Court Case on Swipe-to-Unlock Patent
I feel it would be easy for Apple to argue that is does have a physical effect - it makes it easier to access a locked phone than having to enter a pin, or one of the many other methods of unlocking electronic devices.
axman6··on Apple Loses German Top Court Case on Swipe-to-Unlock Patent
You're looking at the process backwards. Just because latches exist does not mean that, at the time the patent was filed, it was obvious to use a latch analog to unlock a digital device. A person skilled in the art would NOT be lead directly to that solution, but one which is already know: a pin, password, fingerprint, keycard, heck even facial or voice recognition. The test is not "did latches already exist" but "is it obvious to use them in the method claimed, as the time of application", and I would strongly argue that it is not, without some evidence to support the contrary.

I say this as someone who has worked as a patent examiner and understand the law (not the US law exactly, but they're quite similar world wide).

axman6··on Apple Loses German Top Court Case on Swipe-to-Unlock Patent
This is all mostly irrelevant though, and all of this discussion involves ex post facto analysis. The test for patentability is would a person skilled in the art come to the same solution without an inventive step - is the claimed invention what someone familiar with the art of human computer interaction do without doing something new. I would argue that the answer is no: there are many well known mechanisms for unlocking an electronic device (a pin, a password, a fingerprint, an identifying card or dongle, and so on) - using an analog of something that exists in the physical world such as a latch is not what someone skilled in the art WOULD do, there is some invention in taking the physical and bring it into the digital.
axman6··on The Umbrella Reinvented
I just today had my Blunt umbrella[1] delivered, haven't had a chance to use it yet but it's certainly extremely sturdy and claims it'll withstand strong winds and i'm inclined to believe the claims after playing with it.

[1] https://www.bluntumbrellas.com

axman6··on Libcbor – CBOR implementation for C and others
Duncan Coutts has been working on replacing the current fairly brain dead Data.Binary encoding for Haskell by using CBOR [1], which I believe is currently on the back burner (more important work to be done elsewhere). The results appear very promising and I'd love to see this announcement provide the impetus to keep the work going.

[1] http://code.haskell.org/~duncan/binary-experiment/binary.pdf

← PreviousPage 3 of 11Next →