GridProtectionAlliance / go2cs

Golang to C# Converter
https://go2cs.net
MIT License
362 stars 50 forks source link

Unable to port github.com/mithrandie/csvq to .NET #22

Open deangoddard opened 2 years ago

deangoddard commented 2 years ago

Even though I am 2 days into GO (golang), I've been able to download, build and run csvq, onto a Windows 10 PC. Works brilliantly.

So thought it would be awesome if I could port it from GO to C#, then I can roll a CsvDataReader similar to a SqlDataReader around the csvq.net port and pull in the data directly into a DTO/POCO.

Upon running go2cs on the csvq => go2cs -o -i -s C:\Repo1\csvq I kept getting WARNING: Failed messages. So then I tried the -r option and nothing in terms of productive C# code was produced. See attached file for the command line output. go2cs issue.txt

ritchiecarroll commented 2 years ago

Currently, converted code likely won't immediately compile without work - for large projects, with many dependent projects, perhaps much work.

Work is progressing to better handle code compilation used to make the code compile and operate properly. So at the moment, the tool will help you along, perhaps as much as 80% to 90%, but for the moment, that last 10 to 20% will be on the user, and perhaps hard won.

I am confident based on experience so far, most pure Golang translations in the future will be able to hit near 100% conversion, that is, run immediately - but the project is not quite there yet...

FYI, that's why I haven't had an "official" release yet - if it can get most simple apps converted at 100% and complex apps at > 95%, then this will represent the initial release.

Thanks, Ritchie

deangoddard commented 2 years ago

Hi Ritchie,

Understood. Appreciate the reply.

Cheers,

Dean Goddard Champion Technology Officer FunKey Solutions Mobile: 0434 298 412 | Email: @.***


From: "J. Ritchie Carroll" @.> Sent: 8/24/22 11:13 PM To: GridProtectionAlliance/go2cs @.> Cc: Dean Goddard @.>, Author @.> Subject: Re: [GridProtectionAlliance/go2cs] Unable to port github.com/mithrandie/csvq to .NET (Issue #22)

Currently, converted code likely won't immediately compile without work - for large projects, with many dependent projects, perhaps much work.

Work is progressing to better handle code compilation used to make the code compile and operate properly. So at the moment, the tool will help you along, perhaps as much as 80% to 90%, but for the moment, that last 10 to 20% will be on the user, and perhaps hard won.

I am confident based on experience so far, most pure Golang translations in the future will be able to hit near 100% conversion, that is, run immediately - but the project is not quite there yet...

FYI, that's why I haven't had an "official" release yet - if it can get most simple apps converted at 100% and complex apps at > 95%, then this will represent the initial release.

Thanks, Ritchie

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>