HNHacker News
TopNewBestAskShowJobs

mmavnn

950 karma · joined January 2, 2010

[ my public key: https://keybase.io/mavnn; my proof: https://keybase.io/mavnn/sigs/XP1doWi5y1DWLOq5tHikbVnSpyiuVDn8PGjBG8W7hUw ]
submissionscomments
mmavnn··on .NET Core 3.0 Concludes the .NET Framework API Porting Project
It also has syntax for structural typing where needed.
mmavnn··on Ask HN: What do you do when your website seems to be penalised by Google?
I must admit, I'm not desperate enough for new readers to hamstring my own publishing to my existing readers - so summary RSS feed is out for me.

I'd consider delaying RSS publication but that's actually very awkward as it's an Octopress website (i.e. created and pushed as a set of static pages, including things like the rss feed).

mmavnn··on Ask HN: What do you do when your website seems to be penalised by Google?
Known Octopress issue, apparently: http://hackingoff.com/blog/octopress-default-seo-flaws/

Thanks, patio11

mmavnn··on Ask HN: What do you do when your website seems to be penalised by Google?
Interesting; that's autogenerated by Octopress (or Jakyll). I'd never noticed it's missing the '/'.
mmavnn··on Ask HN: What do you do when your website seems to be penalised by Google?
I have yes, no mention of any issues from the tools (it even claims to like the sitemap).
mmavnn··on F# 2014 – A Retrospective and Call to Action
Packages generally work fine, although if they rely on native binaries they often require a bit of tweaking to point at the Linux .so rather than the windows .dll. That's uncommon in the .net world though.

The ecosystem is huge; http://nuget.org hosts the main .net package collection, and it fairly comprehension. Also, to be fair to MS the standard library is pretty "batteries included"; it just doesn't always have what I would consider the nicest APIs.

mmavnn··on F# 2014 – A Retrospective and Call to Action
As mentioned above, fsx files can be executed with the correct #! if fsharpi is installed.
mmavnn··on F# 2014 – A Retrospective and Call to Action
I'd probably look into Paket (a nuget aware package/source dependency manager) for that. Sorry for the short answer, New Years celebrations beckon!
mmavnn··on F# 2014 – A Retrospective and Call to Action
The F# community seem to be most active via twitter, Google+ and (slightly bizarrely) StackOverflow chat in my experience. /r/fsharp is pretty small, although I've always found it friendly.
mmavnn··on F# 2014 – A Retrospective and Call to Action
It is mainly Windows, but as stated in a few other answers people are using Mono in production. How long ago did you look around? I have to admit that it's only really become fully practical (in my mind) in the last 6 months or so.
mmavnn··on F# 2014 – A Retrospective and Call to Action
It should be possible to plug the F# binding backend into sublime; it expects to run as a separate process and have buffer states passed back and forth as JSON. I don't know much about sublime plugins, but I believe that they're Python based and should be able to handle that reasonably elegantly.
mmavnn··on F# 2014 – A Retrospective and Call to Action
As in a self executing file? Not the standard deploy story, but is in theory possible on Mono with a combination of F# compiler options to compile in all dependencies, and mono's "ahead of time (AOT)" build.

It does mean that you lose a number of traditional clr advantages such as JITting - and I have to admit that I haven't tried this route myself. Almost all of the clr code I've written has been server side.

mmavnn··on F# 2014 – A Retrospective and Call to Action
The lack of good instructions is definitely one!

(Edit: although http://fsharp.org/use/linux/ covers the absolute basics pretty well)

Up until recently, packaging was a bit of an issue, but recently the official Mono repositories have started being much more up to date again, and now include recent versions of F# as well: http://www.mono-project.com/download/#download-lin

Getting vim support is still a case of cloning the project from github https://github.com/fsharp/fsharpbinding and running make in the vim directory - Vim 7.4+, make, python and a couple of other vim plugins required.

After that, things can start getting pretty nice. For (my only public) example, https://github.com/mavnn/Advent2014 shows how you can use fsx scripts and paket (a package manager compatible with nuget.org and taking source dependencies from github) to create a nice little project without needing to get into any of the Visual Studio project file nastiness. Of course, if you need to work on an existing project, the Vim bindings know about how to handle that too - but actually editing project files is still a pain.

One word of caution: there's currently a bug in the packaging for rpm: I'd go with Debian/Ubuntu packages at the moment. And as a final option, building from source is slow but has become pretty reliable over the last year or so.

mmavnn··on F# 2014 – A Retrospective and Call to Action
There are definitely people using F# on Mono in production, but it is the smaller brother still.

Having said that, nearly all of the "core" projects are now being CI tested on mono as well as windows, and the fsharpbindings project provides autocompletion for Vim and Emacs (+ powers the MonoDevelop/Xamarin Studio F# support as well).

I'm having great fun writing F# code in Linux with Vim - now that .fsx (F# script) files have proper #! support you can just write fsx files with full highlighting, error checking and autocompletion in place and then run them with supervisord.

mmavnn··on Idris: Type safe printf [video]
Have a type provider ;)

http://blog.mavnn.co.uk/type-safe-printf-via-type-providers/

And yes: syntax is not quite so nice.

mmavnn··on Creating maps using R, Deedle and F# type providers
Slightly blowing my own trumpet, but if you want a brief overview of the basics this might help: http://blog.mavnn.co.uk/type-providers-from-the-ground-up/
mmavnn··on .NET Fiddle adds F#
Un-functional might be a bit misleading for an ML-based, default immutable language. Impure might be slightly more accurate.

Having seen F# written by C# coders who've just learnt the syntax, and haskell programmers who are having to work in a .net environment, I'd say F# does a fairly good job of supporting both. It does make some trade offs to allow easy interop with the rest of the .net world (it's type system is much less powerful than Haskell, Scala or (especially) Idris) but depending on your environment that can be out weighed by the massive scale of the .net ecosystem, easy interop with your existing .net code and very, very good tooling.

mmavnn··on FBI Admits It Controlled Tor Servers Behind Mass Malware Attack
It's not that widely known, but you can remove your child from state education as a parent and teach them yourself. You just have to tell the local authority you're doing so in writing.
mmavnn··on "I have come to find out what it's like to be dumb."
You are, in your very definition, stating that it fails for more than a handful of intelligent people ("if you set aside the atypical cases of candidates who are esteemed scholars, scientists and technologists, who are nevertheless fervently religious, of whom we can be sure there are more than a handful"). These 'intelligent people' of whom there are 'more than a handful' will also almost certainly disagree with your definition of intelligence.

I might go out on a limb at this point and suggest that defining religious people as stupid is not particularly helpful, even operating from your own assumptions as stated in your own definition. Some intelligent people might happen to disagree with your assumptions as well, but I'll leave that argument as well outside the normally appreciated scope of HN discussion.

mmavnn··on Human rights record of the United States in 2012 (Chinese viewpoint)
True. Unfortunately there is a length limit on submission titles, and it was the best I managed within the constraints. I don't believe it makes it a less interesting read from a Western viewpoint, though.
mmavnn··on Human rights record of the United States in 2012 (Chinese viewpoint)
I am not in the slightest defending China's human rights record.

But hopefully you realise that none of the above refutes the article in the slightest. You have not addressed a single point in it.

mmavnn··on BitCon: Don't
I could hear the volume of my 'mental voice' rising as the various forms of emphasis started overlapping and leaving less and less text untouched, until it felt like I was reading the screaming denouncements of a deranged dictator.

The content was actually quite interesting underneath.

mmavnn··on How To Build a Naive Bayes Classifier
He covers this in some detail, under the term stemming (which I've heard more often in this context). He even makes a library recommendation.
mmavnn··on Game Developer Gives 7-Year-Old Best Birthday Present Ever
I don't know where you live, but Ikea do some great 'mini' crocery. Just like the real stuff (even made of the real materials) but smaller.

It's all in neutral colours too.

mmavnn··on VsVim
It does actually support a limited .vimrc - depends a bit what types of custom bindings you want.
mmavnn··on VsVim
That's largely my thought. I love Vim, and it's occasionally frustrating when VsVim doesn't cover a corner case; but the functionality of VS with ReSharper means that for .net code I'll put up with it.
mmavnn··on Why, oh why, do those nutheads use vi?
Try VsVim if you're on VS2010.
mmavnn··on Why, oh why, do those nutheads use vi?
Not sure about passionate, but I like it enough that I use VsVim for my day job (.net developer).

I actually started using Dvorak before picking up vi; never had a problem with the keyboard mappings. It helps that j and k are still next to each other, and h is to the left of l.

mmavnn··on Applications open for Y Combinator's summer 2012 funding cycle
Aside from that, though: who values their start up more than their marriage? Seriously?

Snark apart, some of us have a priority order that places family above work - even good, interesting, start up work. I'd never choose to live apart from my spouse for 90 days.

mmavnn··on Negotiating a Job Offer with a Company
Yes. Be polite, have an accurate view of what your time is worth and be open about what you're asking and why.

People may not want (or have the authority) to change the deal, but if they are offended by you asking you do not want to work with them. It implies they are looking for a drone, not a real human being.

I've worked in several local government jobs in the UK, where budget (and 'Single Status payscale') constraints mean that the hiring manager normally doesn't have the authority to change the salary offered. Just asking the question has still given me an invaluable insight into the manager's way of thinking.

Page 1 of 3Next →