r/HamRadio • u/mkeee2015 • Aug 24 '22
Reverse engineering "Morse Runner" source code and porting/rewriting it?
Morse Runner is a widely known piece of freeware (http://www.dxatlas.com/morserunner/) by VE3NEA.
It runs on Windows and simulates as CW (with very high realism) piles up and brief QSO exchanges typical of a contest.
Its code (written in Pascal/Delphi) has been freely released (https://github.com/VE3NEA/MorseRunner).
Anybody interested in joining forces with me and "porting" or rewriting it - for fun - as a more universal app?
I have Javascript in mind (leveraging on the excellent Fabian Kurz's library (https://fkurz.net/ham/jscwlib.html#0.2.2) to make it as a "in browser" app.
Experience in programing is likely a must.
Edit: typo
2
u/wasbee56 Aug 24 '22
i was with you till you said JavaScript. kudos, after a number of years of procedural coding, JavaScript kicked my patoot on a job assignment i took to avoid layoff some years back (i was more of a script kitty unix root owner)...
seriously tho, on CW, i've been really interested in getting into it lately (better be soon i'm gonna be 66). something about it is so intrinsically ... radio to me. and it makes QRP much more of a do-able item usage wise.
2
u/V1ld0r_ Aug 24 '22
You have a type on the github link: https://github.com/VE3NEA/MorseRunner (there's a space on yours).
I'm terrible at JS but would like to keep tabs on your progress but again, terrible at JS and I really don't want to finish work to... do more work :P
2
u/tayler6000 Aug 24 '22
Sounds like a cool project, though I may suggest typescript, it’s essentially JavaScript but with type annotations and type juggling is removed. (It might still happen in some situations I think? I’ve never used typescript personally, but it’s the new thing)
1
u/listener4 Aug 27 '22
Just a suggestion: try compiling to Wasm with something like Free Pascal and then load that from JavaScript.
1
u/w6el [extra] Aug 24 '22
What exactly does it do? Can you TLDR for me on the program’s primary function?
It’s great to have running and working code. Perfect for a re-write or porting effort.
1
u/phobeaphobe Aug 24 '22
Tentatively interested! I just want to look at the source code a little more before commiting to anything.
I have zero knowledge of pascal, but a couple years of experience writing production level JavaScript and C#. Also dabbled in several others; I'm pretty adept with Python.
I unfortunately do not have a lot of free time to contribute to these things but I would love to help make this a reality!!
2
u/kd5pda Aug 25 '22
I can’t help, but Morse Runner definitely helped me in my pursuit of Morse code. If you have a donation link or a way to fund this project let me/us know.
3
u/[deleted] Aug 24 '22
If I knew JS better I’d for sure be in. This is an awesome idea and I hope it takes off!
1
u/b1t5murf Feb 26 '23
Why port it away from Delphi or modern Object Pascal for that
matter?
Delphi today can easily compile for multiple platforms, or, you
could port it to Lazarus / Free Pascal and have it compile on multiple
platforms too.And even compile it to JavaScript (yuck) if you so desire with pas2js.
1
u/nsomnac May 13 '23 edited May 13 '23
I actually looked at this and was considering something similar in rust/wasm.
The Pascal is very readable and should translate to any language fairly easily (I’d suggest TypeScript over JS to not pull your hair out when chasing bugs).
I actually also considered Free Pascal. Port from Delphi to Free Pascal - reality is the only proprietary stuff in the existing code are the Embarcadero/Delphi GUI toolkit and IDE. Personally I’ve not worked in Pascal in over 20 years (I might even have an old copy of TurboPascal in my horde)
I can understand the desire to leverage the jscwlib however it’s just a small component to a complex app - I wouldn’t use it as-is personally. I’ve also looked at the code for jscwlib, and while it works and is vanilla JS, it’s not a very maintainable IMO. I would likely fork it and convert it into a proper library before using in my own project; as it’s currently one giant JS file and JS class with a lot of hard coded constants.
edit: Looking at https://github.com/mgiugliano/MorseRunnerJS is your project? If it is, I notice we have similar professional backgrounds in neuroscience and tech.
1
u/elLarryTheDirtbag Aug 25 '22
25 years ago CS classes used Delphi/pascal for a number of OO classes. I remember it being a rather solid and had a well designed dev environment. I mention this as I remember when Borland started to fade a number of migration tools were made to help devs replatform code. You might want to explore that.
I’ve actually been looking for something to help expand SDR++ and contribute. I might take a look at this but from a different implementation approach. I’m just really not a fan of js or inbrowser style app development in general.
Anyway, good luck sir