News for hackers. Stuff that matters.

isaacabraham79

Re:Ask HN: Have you worked on F# web apps in production? on Tuesday December 28, 2021 @08:02AM (#29713365)
What are you thinking of when you say "something goes wrong"?
Re:Ask HN: Have you worked on F# web apps in production? on Tuesday December 28, 2021 @08:01AM (#29713359)
Because JS is pervasive.
Since the F# transpiles into JS at runtime it's really no different than, say, TS in terms of performance concerns.

Unless you meant something else there?

Re:How the .NET Foundation kerfuffle became a brouhaha on Friday October 08, 2021 @06:25PM (#28804836)
The Director of the Foundation is a Microsoft employee and they are the creators of the Foundation.

In addition to the obvious issues, this is also about Microsoft and their relationship with the Foundation.

Re:Is your programming language unreasonable? (2015) on Saturday October 10, 2020 @12:33PM (#24740049)
No. In languages like F#, you can encode in the type system that the result can be either a customer or an error. And the compiler won't let you "access" the customer until you've safely checked that the result is, indeed, the customer rather than an error.

In this way you end up encoding more intent within your types and behaviours rather than implicitly letting the consumer figure it out themselves.

Re:Is your programming language unreasonable? (2015) on Saturday October 10, 2020 @10:28AM (#24739204)
'0' is a string (or char), not a number. Just saying.
Re:Is your programming language unreasonable? (2015) on Saturday October 10, 2020 @09:09AM (#24738734)
Yep, this is definitely something that should be made easier and there's an RFC to address it.

There are also some libraries out there that make this easier.

I'd say it's an annoyance and should be improved, but it's nowhere near a blocker for us.

Try here https://dotnet.microsoft.com/download. We also put some beginner videos on our you tube channel here https://m.youtube.com/compositionalit.
Re:Try F# on WebAssembly on Friday December 28, 2018 @01:43PM (#18778577)
Thank you :-)
Re:Try F# on WebAssembly on Friday December 28, 2018 @12:28PM (#18778089)
Disclaimer: I'm one of the maintainers of the SAFE stack.

The SAFE Stack is slightly different in that in itself it's not a technology as such, aside from the .NET template that we a lot of invest time into. Instead, it brings together several distinct technologies that when pieced together form an excellent end-to-end stack.

I would say that SAFE seems to currently have a larger community movement around it (as well as a commercial support aspect for those people that want / need that).

SAFE Stack doesn't support WASM though - the client side story is instead built on top of the excellent Fable (an F#-to-Babel-to-Javascript transpiler). In this regard I think SAFE is also slightly different to WebSharper in that (from when I last tried WS out at least) WS is more of a complete framework whereas SAFE contains a number of libraries and components that you can opt in / out of as you see fit and lives a bit closer on the JS ecosystem side (again, happy to be corrected here on the WS side).

Both Websharper and SAFE stack are excellent stacks, and both encourage the use of F# end-to-end - try them both out and see what fits better for you :)

Re:Fable: F# to JavaScript compiler on Monday October 30, 2017 @05:15AM (#15583809)
Typescript has grown into way more than just "JavaScript with some type annotations". It's a much bigger superset with lots of language features that JS doesn't have.