doranchak / azdecrypt

azdecrypt is a fast and powerful hillclimbing classical cipher solver written in freebasic
91 stars 8 forks source link

Linux build #6

Open dkokron opened 4 months ago

dkokron commented 4 months ago

Does anyone have experience building and running AZDecrypt on Linux (Ubuntu-22.04 in particular)?

louiehelm commented 4 months ago

The GUI interface code is Windows-specific currently.

I've compiled and used a command line version for batched testing on Ubuntu before.

What use case are you hoping for?

dkokron commented 4 months ago

Louie, My background and interest is in performance optimization (reduced time to solution). I wanted to run a few different cases under a performance profiler to see if there is any room for improvement. Dan

On Fri, Apr 5, 2024 at 7:05 PM Louie Helm @.***> wrote:

The GUI interface code is Windows-specific currently.

I've compiled and used a command line version for batched testing on Ubuntu before.

What use case are you hoping for?

— Reply to this email directly, view it on GitHub https://github.com/doranchak/azdecrypt/issues/6#issuecomment-2040801528, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACODV2B6RBLBCWKF3HRWRHDY3435DAVCNFSM6AAAAABFZVUTRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBQHAYDCNJSHA . You are receiving this because you authored the thread.Message ID: @.***>

louiehelm commented 4 months ago

I'd welcome help with performance tuning.

There is a "Windows GUI (debug)" setting in FBEdit under "Options" --> "Build Options". Select that then use "Make" --> "Build" to create a version with symbols.

I've profiled AZdecrypt in VTune before. I'm sure other tools could work as well.

You'd probably be better off doing this work on Windows (or a VM) to start so you can see how the build process works. I've run AZdecrypt + build process inside QEMU before.

You could also add code to mainloop in AZdecrypt.bas then run a known benchmark from the command line to do more native Ubuntu performance tuning.

It's a somewhat big ask but there are branches on 99% of the Windows-only code for the GUI so anyone who knew how to add the corresponding Window-drawing code for Linux could make AZdecrypt run natively in Ubuntu with a bit of work. Would be happy to merge in a change like that in addition to performance tweaks.

dkokron commented 4 months ago

I don't have access to a Windows system. I tried running the fbEdit.exe under Wine on Linux, but it didn't work. So, if you have a Linux only recipe, I'd rather stick with that.

On Fri, Apr 5, 2024, 7:29 PM Louie Helm @.***> wrote:

I'd welcome help with performance tuning.

There is a "Windows GUI (debug)" setting in FBEdit under "Options" --> "Build Options". Select that then use "Make" --> "Build" to create a version with symbols.

I've profiled AZdecrypt in VTune before. I'm sure other tools could work as well.

You'd probably be better off doing this work on Windows (or a VM) to start so you can see how the build process works. I've run AZdecrypt + build process inside QEMU before.

You could also add code to mainloop in AZdecrypt.bas then run a known benchmark from the command line to do more native Ubuntu performance tuning.

It's a somewhat big ask but there are branches on 99% of the Windows-only code for the GUI so anyone who knew how to add the corresponding Window-drawing code for Linux could make AZdecrypt run natively in Ubuntu with a bit of work. Would be happy to merge in a change like that in addition to performance tweaks.

— Reply to this email directly, view it on GitHub https://github.com/doranchak/azdecrypt/issues/6#issuecomment-2040824048, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACODV2EX2J34MWHYYZ5ZA7TY346X5AVCNFSM6AAAAABFZVUTRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBQHAZDIMBUHA . You are receiving this because you authored the thread.Message ID: @.***>

louiehelm commented 4 months ago

Use QEMU. Something like this...

https://rtbecard.gitlab.io/2022/07/23/QEmu_win10.html

dkokron commented 4 months ago

Louie, Is this what you did on Spartan? Dan

On Fri, Apr 5, 2024 at 8:28 PM Louie Helm @.***> wrote:

Use QEMU. Something like this...

https://rtbecard.gitlab.io/2022/07/23/QEmu_win10.html

— Reply to this email directly, view it on GitHub https://github.com/doranchak/azdecrypt/issues/6#issuecomment-2040845584, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACODV2FMMDQYF2MIUH6PIQ3Y35FU7AVCNFSM6AAAAABFZVUTRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBQHA2DKNJYGQ . You are receiving this because you authored the thread.Message ID: @.***>

dkokron commented 4 months ago

Louie, I haven't used a Windows machine in about 20 years. I'm not interested in relearning how to use Windows. If I can't build and run AZDecrypt natively on Linux, then I'm no longer interested in pursuing this effort. Dan

On Fri, Apr 5, 2024 at 8:28 PM Louie Helm @.***> wrote:

Use QEMU. Something like this...

https://rtbecard.gitlab.io/2022/07/23/QEmu_win10.html

— Reply to this email directly, view it on GitHub https://github.com/doranchak/azdecrypt/issues/6#issuecomment-2040845584, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACODV2FMMDQYF2MIUH6PIQ3Y35FU7AVCNFSM6AAAAABFZVUTRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBQHA2DKNJYGQ . You are receiving this because you authored the thread.Message ID: @.***>