Lombiq / Hastlayer-SDK

Turning .NET software into FPGA hardware for faster execution and lower power usage.
https://hastlayer.com
BSD 3-Clause "New" or "Revised" License
302 stars 33 forks source link

F# sample #23

Closed Piedone closed 5 years ago

Piedone commented 6 years ago

We could have a simple F# sample project, much like Hast.Samples.Demo + ParallelAlgorithm (i.e. have a piece of transformed code as well as the Hastlayer orchestration in a single F# project). Doesn't seem to be too complicated to do even as an F# newbie, see: https://sachabarbs.wordpress.com/2014/05/15/f-28-integrating-with-task-parallel-library/

The point is to have a basic sample demonstrating non-C# .NET code, F# being a very suitable next candidate.

Piedone commented 5 years ago

F# TPL: https://sachabarbs.wordpress.com/2014/05/15/f-28-integrating-with-task-parallel-library/

Piedone commented 5 years ago

We could start with a sample F# ParallelAlgorithm version in a separate assembly but then used from the existing Hast.Samples.Consumer as another sample.

If we use TPL and don't utilize F# Async then it'll pretty much look like the C# sample though.

Piedone commented 5 years ago

Done, will be part of the next release.