Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Voxera115855yI tried to rewrite a go based program in c#.
That was a similar solution as go has a lot of multi thread support that lacks equivalents in .net and c#.
So I do understand the pain.
Or trying to fix bugs in an old perl script. (I don’t know perl either) -
@incognito I know I know but I want to keep it as native as possible and the python application is a web listener ;)
-
@incognito Okay nevermind, this is starting to look like an actually good option .____.
-
@linuxxx What about Swig? Can that help? It’s not pretty but it’ll give you something to work with?
Full disclosure: my only experience with Swig is watching it do stuff in a Docker build (by which I mean convert a C++ library to PHP) -
@incognito Oh this isn't much about my skillset, I'm just entirely unfamiliar with this topic so it'll be a while until I learn enough to natively convert this I fear :)
-
Evonox7655y@Voxera I know it's not related to this rant but can you look at my last post (question), maybe you can help me. Please 🙏
-
Pray you don't need some library the python code uses that is only available in python. I ran into that problem going from python to C++. lxml and Construct are both awesome libraries. Have not found replacements that are as simple and good.
-
@Demolishun I don't think so yet but I'm stuck somehwere now where I simply have no clue as for how to convert that to PHP because I'm not even sure what it does in python...
-
C0D4681455y
-
Voxera115855y@Evonox7 if it the one about moching in go I am sorry, while I can read and mostly understand go code I have never written any.
I have tried to port the raft server example from go to c# but gave up and wrote it from scratch as there was so many threading issues that just cannot easily be dine in c#. -
Dude you can so learn Python in a sitdown if you want to. You're a smart dude.
I am assuming the application is not necessarily web related? -
Flygger19815yOr you could just keep it in Python and code as you're used to?
Did you see/try/discard https://github.com/juokaz/pyhp
Currently trying to convert a python application to PHP because the learning curve of python is a little too high right now for me.
It's especially a challenge to find PHP functions/libraries which can do the same as some python ones.
I've never written a single thing in python, this is a very weird experience!
rant