Better HN
topnewbestaskshowjobs
Log inSign up

smoothdeveloper

153 karma · joined Apr 7, 2016 (10y ago) · 79 submissions

Submissions

comment 10y ago · link · parent

* reduced churn on proj files

ensure consistency of dependencies across repository (can't do that with so many packages.config files)

* easy to figure out outdated dependencies / update those with changes that are very easy to diff

* no need to battle with transitive dependencies

* several transitive dependencies resolution algorithm (max can be used to be as up-to-date as possible)

* ease support for multi platform targeting (it puts conditionals around the references, when you switch platform, it switches to correct assemblies without you having to do anything)

* will write/maintain binding redirects related to nuget packages for you (saves from many runtime errors)

* can generate include scripts for nuget packages if you do .csx or .fsx scripting

* many more things

the UI integration in VS is not as good but if you look at it, the UI is also part of the problem with Nuget (doesn't work on several solutions, doesn't really understand transitive dependencies, etc.).

You can migrate with single command line, and start improving from then on.

comment 10y ago · link · parent

Small note about Nuget, you might consider upgrading to paket (works nice with C# too):

http://fsprojects.github.io/Paket/

It removes so much pain compared to raw usage of Nuget and is very easy to learn/adopt.

comment 10y ago · link · parent

You could evaluate using WebSharper which is opensource and company backed project with good trackrecord at using F# on server and client with same semantics.

http://www.websharper.com/

Fable has made few choices on the semantics which make it not totally identical to F# on the server, although this shouldn't impact most of the code severely; but the mindset of Fable is different than websharper.

For F# on the server, Mono might not be lightest (if you compare to python or ruby which are already there by default) but is still the most suitable option right now until the OSS dotnet core eco system stabilizes and supports major libraries.

F# is definitely a fine functional programming language, able to blend with a tinge of OO where it makes sense while still being functional first. Relatively easy to pick-up if you have exposure to haskell or ocaml or sibblings.

comment 10y ago · link · parent

I found few examples browsing in Documentation:

https://nitlanguage.org/examples/

https://nitlanguage.org/examples/circular_list.html

comment 10y ago · link · parent

You can hit the other "forward" key to recover everything in a good browser and/or websites which don't do silly things (99.99% of cases).

It really feels chromium team should install telemetry:

* how many unsubmitted forms edits lost by mistake

* how many backspace keystroke to do "history-back"

They should also consider alt-gr + left as "back-history", using two hands for this could be avoided this way.

comment 10y ago · link · parent

alternatives:

* alert if any form filled by user wasn't submitted (in case site doesn't do that already)

* let 99% of user who don't know what they did (they are in minority compared to number of times backspace is pressed to actually navigate back) retype their form if they don't navigate forward (which recovers their input, or should)

* add a third hand to human race so it doesn't take all the hands to navigate back from keyboard

* lure lenovo to restore the back / forward keys on thinkpads and make that implemented on most keyboards

comment 10y ago · link · parent

Have you considered F#? Works well for scripting.

comment 10y ago · link · parent

Curious what are the curly-bracketisms in F#?

comment 10y ago · link · parent

Not sure about exposing Swift to C itself, while Rust has a clear "call from C" story.

I think that's what was referred to.

70.

Hype: Compositional Machine Learning and Hyperparameter Optimization(hypelib.github.io ↗)

5 points · by smoothdeveloper · 10y ago · discuss

comment 10y ago · link · parent

you can get around the login wall with http://bugmenot.com/

72.

Building scientific experiments with F# by Anton Tcholakov [video](skillsmatter.com ↗)

2 points · by smoothdeveloper · 10y ago · 1 comment

comment 10y ago · link · parent

You might be right about a small subset of people, but most developers using languages like ruby, python, basic, pascal, etc. would prove this wrong.

Also most of F# are fairly well experienced C# programmer, and I think they do find the language compelling.

comment 10y ago · link · parent

It is still a long way before:

* pattern matching / active patterns

* Discriminated Unions and many other crucial type system enhancements over POCO in C#

* real functional orientation (function composition, immutability by default, partial application)

* type providers (it is not necessarily about data provider)

* more compile time safety harness

* plenty of other things that become apparent when you get comfortable with the language

C# 7 is still doing catch-up with F# 1.

My hypothesis is that it is easier for many people to not try too hard to grasp at functional programming or just learn a new language.

comment 10y ago · link · parent

https://fsprojects.github.io/VisualFSharpPowerTools/

comment 10y ago · link · parent

My hypothesis is that other half says:

* Code is less clear than C style (type inference, not used to some pervasive operators like function composition or piping)

* Code is terse and short names are more prevalent (Lost the way to kingdom of nouns)

* There is no Resharper support, and Visual Studio (the main IDE with F# support) tooling is not as advanced as for C#, which is impairing to some extent if you look use the language like a glorified C# and not too used to F# way (tooling is great compared to many other languages IMHO)

* There is no do/while or goto or break

comment 10y ago · link · parent

I'd say yes if you have exposure to Java library & ecosystem, because .NET Framework's Library has a similar flavor to Java Standard Library.

There are also a bunch of F# centric projects (http://fsprojects.github.io/) which might help you to stay in mostly functional programming land and not mingle too much with OOP.

The main difficulty is to get runtime working well, I think Mono has come a long way and is now well packaged and stable enough to get a good experience of the language, thanks to Xamarin who really invested a lot of efforts.

Microsoft is allegedly working on its open source implementation of .NET Framework and runtime, which just landed official F# support, but I think right now the experience and eco-system support has catch-up to do with what can be done with Mono.

Hope this helps!

comment 10y ago · link · parent

2015 survey results https://docs.google.com/forms/d/1Ly_W1ZUH3x_ph4H6I_64uvEib2b...

I hope there will be more submissions this year!

79.

The second annual F# survey(fsharpworks.com ↗)

73 points · by smoothdeveloper · 10y ago · 23 comments

123